Improve Manpage.sublime-syntax, Fix #2353 (#2364)

* Improve Manpage.sublime-syntax, Fix #2353

* Add highlight tests for fzf-0.33.0
This commit is contained in:
wzy authored and GitHub committed 2022-10-17 19:56:17 +02:00
1 parent 9679ae3662
commit f215d07366
4 files changed
+1550 -3

No files matched your search

+3 -3
View File
@@ -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