Skip to content

Commit 3e53586

Browse files
Fix multiline RBS signature dimming (#3864)
1 parent 6563cd3 commit 3e53586

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

vscode/src/rbs.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import * as vscode from "vscode";
55
//
66
// #: (String) -> (String | nil)
77
// #: (String) { (String) -> boolish } -> void
8+
// #: (
9+
// #| String baz,
10+
// #| ) -> void
811
// #: return: String
912
//
1013
// However, this will not be dimmed:
@@ -57,7 +60,8 @@ export class RBS {
5760

5861
for (let i = 0; i < lines.length; i++) {
5962
const line = lines[i];
60-
if (line.trim().startsWith("#:")) {
63+
const trimmedLine = line.trim();
64+
if (trimmedLine.startsWith("#:") || trimmedLine.startsWith("#|")) {
6165
decorations.push({
6266
range: new vscode.Range(i, 0, i, line.length),
6367
});

0 commit comments

Comments
 (0)