Skip to content

Commit da52f83

Browse files
authored
Merge pull request #4 from arne-vl/feat/inlineslash
fix inline / characters
2 parents d1157ca + 4e390f7 commit da52f83

File tree

5 files changed

+1022
-732
lines changed

5 files changed

+1022
-732
lines changed

grammar.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ module.exports = grammar({
116116
),
117117

118118
// -- REQUIRED RUN KEY-VALUE
119-
command: $ => prec.right(/[^\/\/\n]+/),
119+
command: $ => prec.right(
120+
repeat1(
121+
/[A-Za-z0-9_./:~+=@%*\-?!$'"`&|<>(){}\[\]\\; \t]/
122+
)
123+
),
120124
run_key: $ => "run",
121125
run_definition: $ => seq(
122126
$._indent,
@@ -127,7 +131,11 @@ module.exports = grammar({
127131

128132
// -- OPTIONAL DESC KEY-VALUE
129133
desc_key: $ => "desc",
130-
text: $ => prec.right(/[^\/\/\n]+/),
134+
text: $ => prec.right(
135+
repeat1(
136+
/[A-Za-z0-9_./:~+=@%*\-?!$'"`&|<>(){}\[\]\\; \t]/
137+
)
138+
),
131139
desc_definition: $ => seq(
132140
$._indent,
133141
$.desc_key,

src/grammar.json

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

0 commit comments

Comments
 (0)