mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -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
|
||||
])
|
||||
|
||||
(class name: (constant) @constant)
|
||||
(class name: (constant) @type)
|
||||
(module name: (constant) @type)
|
||||
|
||||
; Identifiers
|
||||
[
|
||||
|
|
@ -144,8 +145,8 @@
|
|||
] @boolean
|
||||
|
||||
(interpolation
|
||||
"#{" @punctuation.bracket
|
||||
"}" @punctuation.bracket) @embedded
|
||||
"#{" @punctuation.special
|
||||
"}" @punctuation.special) @embedded
|
||||
|
||||
(comment) @comment
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue