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:
Luna 2019-09-22 16:16:45 +02:00 committed by David Peter
parent 4df5973fde
commit 853e48e3f3
2 changed files with 2 additions and 2 deletions

BIN
assets/syntaxes.bin vendored

Binary file not shown.

View File

@ -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