mirror of
https://github.com/sharkdp/bat
synced 2024-11-04 18:00:24 +00:00
Allow underscores and dashes in page names to fix highlighting issues with pages such as signal-safety or posix_openpt.
This commit is contained in:
parent
4df5973fde
commit
853e48e3f3
BIN
assets/syntaxes.bin
vendored
BIN
assets/syntaxes.bin
vendored
Binary file not shown.
4
assets/syntaxes/Manpage.sublime-syntax
vendored
4
assets/syntaxes/Manpage.sublime-syntax
vendored
@ -15,7 +15,7 @@ contexts:
|
||||
push: first_line
|
||||
|
||||
first_line:
|
||||
- match: '([A-Z0-9]+)(\()([^)]+)(\))'
|
||||
- match: '([A-Z0-9_\-]+)(\()([^)]+)(\))'
|
||||
captures:
|
||||
1: meta.preprocessor
|
||||
2: keyword.operator
|
||||
@ -36,7 +36,7 @@ contexts:
|
||||
- match: '^\S.*$'
|
||||
scope: markup.heading
|
||||
|
||||
- match: '\b([a-z0-9_]+)(\()([^)]*)(\))'
|
||||
- match: '\b([a-z0-9_\-]+)(\()([^)]*)(\))'
|
||||
captures:
|
||||
1: entity.name.function
|
||||
2: keyword.operator
|
||||
|
Loading…
Reference in New Issue
Block a user