mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-17 03:23:14 +02:00
More consistent scoping in commands section in Manpages
This commit is contained in:
committed by
Martin Nordholts
parent
2ac584dd72
commit
5e77ca37e8
11
assets/syntaxes/02_Extra/Manpage.sublime-syntax
vendored
11
assets/syntaxes/02_Extra/Manpage.sublime-syntax
vendored
@ -185,15 +185,16 @@ contexts:
|
||||
push: command-line-option-or-pipe
|
||||
|
||||
commands-start:
|
||||
- match: '^[ ]{7}(?=.*(?:[ ]<|[|]))'
|
||||
- match: (?=^[ ]{7}.*(?:[ ]<|[|]))
|
||||
push: commands
|
||||
|
||||
commands:
|
||||
- match: '[-\w]+'
|
||||
scope: entity.name.command.man
|
||||
- match: '^[ ]{7}([a-z_\-]+)(?=[ ]|$)'
|
||||
captures:
|
||||
1: entity.name.command.man
|
||||
push: expect-parameter
|
||||
- match: '^[ ]{7}(?=[\[<]|\w+[|\]])'
|
||||
push: expect-parameter
|
||||
- match: $
|
||||
pop: true
|
||||
|
||||
environment-variables:
|
||||
- match: '^[ ]{7}([A-Z_]+)\b'
|
||||
|
Reference in New Issue
Block a user