diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-11-21 15:34:16 +0200 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2022-11-26 13:17:51 +0200 |
| commit | 04712814cc783390c7f415adb8b4abcbece41508 (patch) | |
| tree | f27081866c72183f5ac781af7e915ae05eb397af | |
| parent | highlights(twig): fix captures (diff) | |
| download | nvim-treesitter-04712814cc783390c7f415adb8b4abcbece41508.tar nvim-treesitter-04712814cc783390c7f415adb8b4abcbece41508.tar.gz nvim-treesitter-04712814cc783390c7f415adb8b4abcbece41508.tar.bz2 nvim-treesitter-04712814cc783390c7f415adb8b4abcbece41508.tar.lz nvim-treesitter-04712814cc783390c7f415adb8b4abcbece41508.tar.xz nvim-treesitter-04712814cc783390c7f415adb8b4abcbece41508.tar.zst nvim-treesitter-04712814cc783390c7f415adb8b4abcbece41508.zip | |
highlights(yang): fix captures
| -rw-r--r-- | queries/yang/highlights.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/yang/highlights.scm b/queries/yang/highlights.scm index 8c3569e8d..9604a39a8 100644 --- a/queries/yang/highlights.scm +++ b/queries/yang/highlights.scm @@ -31,8 +31,11 @@ ; Highlight xpath and pattern strings differently from plain strings (statement - (statement_keyword ["pattern" "must"]) + (statement_keyword "must") (argument (string) @string.special)) +(statement + (statement_keyword "pattern") + (argument (string) @string.regex)) ; Punctuation (plus_symbol) @operator |
