Skip to content

Commit 486ba6b

Browse files
committed
feat: allow $.alias_directive to match flags at any point
1 parent bb3dd08 commit 486ba6b

4 files changed

Lines changed: 570615 additions & 559617 deletions

File tree

grammar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,7 @@ module.exports = grammar({
893893
command(
894894
$,
895895
/[a-z-]+/,
896-
repeat(alias(/-\w+/, $.command_line_option)),
897-
repeat(choice($._string)),
896+
repeat(choice(alias(/-\w+/, $.command_line_option), $._string)),
898897
),
899898
),
900899

src/grammar.json

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

0 commit comments

Comments
 (0)