mirror of
https://github.com/sharkdp/bat
synced 2026-07-25 17:21:43 +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:
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