Skip to content

Commit ce378c9

Browse files
committed
pain
1 parent b62f930 commit ce378c9

File tree

5 files changed

+436
-427
lines changed

5 files changed

+436
-427
lines changed

grammar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports = grammar({
7272
),
7373

7474
// -- REQUIRED RUN KEY-VALUE
75-
command: $ => /.+/,
75+
command: $ => token(prec(1, /[^\n]+/)),
7676
run_key: $ => "run",
7777
run_definition: $ => seq(
7878
$._indent,
@@ -133,5 +133,7 @@ module.exports = grammar({
133133
)
134134
)
135135
),
136+
137+
comment: $ => token(prec(0, seq("//", /.*/))),
136138
}
137139
});

src/grammar.json

Lines changed: 29 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 8 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)