mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(go): highlight rune as @character (#8612)
This commit is contained in:
parent
6620ae1c44
commit
f059649bc3
1 changed files with 15 additions and 19 deletions
|
|
@ -152,32 +152,28 @@
|
||||||
"panic" "print" "println" "real" "recover"))
|
"panic" "print" "println" "real" "recover"))
|
||||||
|
|
||||||
; Delimiters
|
; Delimiters
|
||||||
"." @punctuation.delimiter
|
[
|
||||||
|
"."
|
||||||
|
","
|
||||||
|
":"
|
||||||
|
";"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
"," @punctuation.delimiter
|
[
|
||||||
|
"("
|
||||||
":" @punctuation.delimiter
|
")"
|
||||||
|
"{"
|
||||||
";" @punctuation.delimiter
|
"}"
|
||||||
|
"["
|
||||||
"(" @punctuation.bracket
|
"]"
|
||||||
|
] @punctuation.bracket
|
||||||
")" @punctuation.bracket
|
|
||||||
|
|
||||||
"{" @punctuation.bracket
|
|
||||||
|
|
||||||
"}" @punctuation.bracket
|
|
||||||
|
|
||||||
"[" @punctuation.bracket
|
|
||||||
|
|
||||||
"]" @punctuation.bracket
|
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
(interpreted_string_literal) @string
|
(interpreted_string_literal) @string
|
||||||
|
|
||||||
(raw_string_literal) @string
|
(raw_string_literal) @string
|
||||||
|
|
||||||
(rune_literal) @string
|
(rune_literal) @character
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue