mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-18 16:50:33 +01:00
Add simple pattern for command-line options
This commit is contained in:
parent
49e2073910
commit
396e1ac6b6
9
assets/syntaxes/Manpage.sublime-syntax
vendored
9
assets/syntaxes/Manpage.sublime-syntax
vendored
@ -42,3 +42,12 @@ contexts:
|
|||||||
2: keyword.operator
|
2: keyword.operator
|
||||||
3: constant.numeric
|
3: constant.numeric
|
||||||
4: keyword.operator
|
4: keyword.operator
|
||||||
|
|
||||||
|
# command-line options like --option=value, --some-flag, or -x
|
||||||
|
- match: '(?:[^a-zA-Z0-9_-]|^|\s)(--?[A-Za-z0-9][A-Za-z0-9-]*)(?:(=)?("?)([A-Za-z0-9]+)("?))?'
|
||||||
|
captures:
|
||||||
|
1: entity.name
|
||||||
|
2: keyword.operator
|
||||||
|
3: punctuation.definition.string.begin
|
||||||
|
4: variable.parameter
|
||||||
|
3: punctuation.definition.string.end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user