mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Improve highlights for types
This commit is contained in:
parent
dd75916ef9
commit
39d0b9b61b
1 changed files with 3 additions and 1 deletions
|
|
@ -73,9 +73,11 @@
|
|||
|
||||
; Types
|
||||
;; TODO: improve?
|
||||
;; - symbols with `.` but not `/`?
|
||||
((sym_lit) @type
|
||||
(#match? @type "^[A-Z][^/]*$"))
|
||||
;; Symbols with `.` but not `/`
|
||||
((sym_lit) @type
|
||||
(#match? @type "^[^/]+[.][^/]*$"))
|
||||
|
||||
; Interop
|
||||
((sym_lit) @method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue