mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +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:
1 parent
4df5973fde
commit
853e48e3f3
2 files changed
+2
-2
No files matched your search
Vendored
BIN
Binary file not shown.
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user