Re-add attribute highlight

This commit is contained in:
Akin Sowemimo 2020-09-18 16:57:38 +01:00 committed by Thomas Vigouroux
parent 8cc0b8d4c4
commit 3652bed53e
3 changed files with 4 additions and 2 deletions

View file

@ -29,6 +29,7 @@ hlmap["number"] = "TSNumber"
hlmap["boolean"] = "TSBoolean"
hlmap["float"] = "TSFloat"
hlmap["annotation"] = "TSAnnotation"
hlmap["attribute"] = "TSAttribute"
-- Functions
hlmap["function"] = "TSFunction"

View file

@ -40,6 +40,7 @@ highlight default link TSField Identifier
highlight default link TSProperty Identifier
highlight default link TSConstructor Special
highlight default link TSAnnotation PreProc
highlight default link TSAttribute PreProc
highlight default link TSConditional Conditional
highlight default link TSRepeat Repeat

View file

@ -8,9 +8,9 @@
; Annotations
(annotation
name: (identifier) @annotation)
name: (identifier) @attribute)
(marker_annotation
name: (identifier) @annotation)
name: (identifier) @attribute)
; Operators and Tokens