mirror of https://github.com/helix-editor/helix
highlights: add type.parameter scope to several more languages (#8718)
* typescript * go * haskell * ocaml * kotlin (+ bugfix)pull/8735/head
parent
a98ad137f9
commit
f73e9a8d15
@ -0,0 +1,15 @@
|
|||||||
|
; Scopes
|
||||||
|
|
||||||
|
[
|
||||||
|
(class_declaration)
|
||||||
|
(function_declaration)
|
||||||
|
] @local.scope
|
||||||
|
|
||||||
|
; Definitions
|
||||||
|
|
||||||
|
(type_parameter
|
||||||
|
(type_identifier) @local.definition)
|
||||||
|
|
||||||
|
; References
|
||||||
|
|
||||||
|
(type_identifier) @local.reference
|
Loading…
Reference in New Issue