From 04712814cc783390c7f415adb8b4abcbece41508 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Mon, 21 Nov 2022 15:34:16 +0200 Subject: [PATCH] highlights(yang): fix captures --- queries/yang/highlights.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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