aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-11-21 15:34:16 +0200
committerObserverOfTime <chronobserver@disroot.org>2022-11-26 13:17:51 +0200
commit04712814cc783390c7f415adb8b4abcbece41508 (patch)
treef27081866c72183f5ac781af7e915ae05eb397af
parenthighlights(twig): fix captures (diff)
downloadnvim-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.scm5
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