mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
[language-typescript] Add syntax highlighting for enums
This commit is contained in:
parent
89686ce03a
commit
82eac2276d
@ -295,6 +295,21 @@
|
||||
name: (_) @entity.name.type.interface._LANG_
|
||||
(#set! capture.final))
|
||||
|
||||
; ENUMS
|
||||
; =====
|
||||
|
||||
; The "Foo" in `enum Foo {`
|
||||
(enum_declaration
|
||||
name: (_) @entity.name.type.enum._LANG_
|
||||
(#set! capture.final))
|
||||
|
||||
; The "foo" and "bar" in `enum Baz { foo, bar }`
|
||||
(enum_body
|
||||
name: (property_identifier) @variable.declaration.enum._LANG_)
|
||||
|
||||
; The "foo" in `enum Bar { foo = 1 }`
|
||||
(enum_assignment
|
||||
name: (property_identifier) @variable.declaration.enum._LANG_)
|
||||
|
||||
; TYPES
|
||||
; =====
|
||||
|
Loading…
Reference in New Issue
Block a user