diff options
author | wzy <32936898+Freed-Wu@users.noreply.github.com> | 2022-10-18 01:56:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 19:56:17 +0200 |
commit | f215d07366dac50aa7068e9c3f8d5f46b09b4c1a (patch) | |
tree | c49eaaa1c32957af5bd857f6d14b028f84673d1e /assets | |
parent | 9679ae36624b28c29803cc7b567acaf4924503ad (diff) |
Improve Manpage.sublime-syntax, Fix #2353 (#2364)
* Improve Manpage.sublime-syntax, Fix #2353
* Add highlight tests for fzf-0.33.0
Diffstat (limited to 'assets')
-rw-r--r-- | assets/syntaxes/02_Extra/Manpage.sublime-syntax | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/syntaxes/02_Extra/Manpage.sublime-syntax b/assets/syntaxes/02_Extra/Manpage.sublime-syntax index b50dc19d..00a9bc73 100644 --- a/assets/syntaxes/02_Extra/Manpage.sublime-syntax +++ b/assets/syntaxes/02_Extra/Manpage.sublime-syntax @@ -75,7 +75,7 @@ contexts: options: # command-line options like --option=value, --some-flag, or -x - - match: '^[ ]{7}(?=-)' + - match: '^[ ]{7}(?=-|\+)' push: expect-command-line-option - match: '(?:[^a-zA-Z0-9_-]|^|\s){{command_line_option}}' captures: @@ -96,7 +96,7 @@ contexts: - include: env-var expect-command-line-option: - - match: '[A-Za-z0-9-]+' + - match: '[A-Za-z0-9-\.\?:#\$\+]+' scope: entity.name.command-line-option.man - match: '(\[)(=)' captures: @@ -122,7 +122,7 @@ contexts: pop: true expect-parameter: - - match: '[A-Za-z0-9-]+' + - match: '[A-Za-z0-9-_]+' scope: variable.parameter.man - match: (?=\s+\|) pop: true |