From f059649bc39ab39d55f2a165db752c956897d4fd Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Fri, 27 Mar 2026 11:37:59 -0700 Subject: fix(go): highlight rune as `@character` (#8612) --- runtime/queries/go/highlights.scm | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) (limited to 'runtime') diff --git a/runtime/queries/go/highlights.scm b/runtime/queries/go/highlights.scm index 91a9d4d76..0251f3b5b 100644 --- a/runtime/queries/go/highlights.scm +++ b/runtime/queries/go/highlights.scm @@ -152,32 +152,28 @@ "panic" "print" "println" "real" "recover")) ; Delimiters -"." @punctuation.delimiter - -"," @punctuation.delimiter - -":" @punctuation.delimiter - -";" @punctuation.delimiter - -"(" @punctuation.bracket - -")" @punctuation.bracket - -"{" @punctuation.bracket - -"}" @punctuation.bracket - -"[" @punctuation.bracket +[ + "." + "," + ":" + ";" +] @punctuation.delimiter -"]" @punctuation.bracket +[ + "(" + ")" + "{" + "}" + "[" + "]" +] @punctuation.bracket ; Literals (interpreted_string_literal) @string (raw_string_literal) @string -(rune_literal) @string +(rune_literal) @character (escape_sequence) @string.escape -- cgit v1.3