Improve highlights for types

This commit is contained in:
Oliver Marshall 2021-06-13 23:20:29 +01:00 committed by mergify[bot]
parent dd75916ef9
commit 39d0b9b61b

View file

@ -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