mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
- Fix TSType and TSPunctuationSpecial
Move class and module names to @type to be consistent with the other languages. (fixes #448) Use @punction.special for interpolation brackets. (fixes #449)
This commit is contained in:
parent
a755017dd5
commit
e1434ff68b
1 changed files with 4 additions and 3 deletions
|
|
@ -80,7 +80,8 @@
|
||||||
(constant) @constant
|
(constant) @constant
|
||||||
])
|
])
|
||||||
|
|
||||||
(class name: (constant) @constant)
|
(class name: (constant) @type)
|
||||||
|
(module name: (constant) @type)
|
||||||
|
|
||||||
; Identifiers
|
; Identifiers
|
||||||
[
|
[
|
||||||
|
|
@ -144,8 +145,8 @@
|
||||||
] @boolean
|
] @boolean
|
||||||
|
|
||||||
(interpolation
|
(interpolation
|
||||||
"#{" @punctuation.bracket
|
"#{" @punctuation.special
|
||||||
"}" @punctuation.bracket) @embedded
|
"}" @punctuation.special) @embedded
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue