mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40: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
|
; Types
|
||||||
;; TODO: improve?
|
;; TODO: improve?
|
||||||
;; - symbols with `.` but not `/`?
|
|
||||||
((sym_lit) @type
|
((sym_lit) @type
|
||||||
(#match? @type "^[A-Z][^/]*$"))
|
(#match? @type "^[A-Z][^/]*$"))
|
||||||
|
;; Symbols with `.` but not `/`
|
||||||
|
((sym_lit) @type
|
||||||
|
(#match? @type "^[^/]+[.][^/]*$"))
|
||||||
|
|
||||||
; Interop
|
; Interop
|
||||||
((sym_lit) @method
|
((sym_lit) @method
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue