typescript treesitter injection for angular templates

This commit is contained in:
2023-06-23 19:51:54 -05:00
parent 356ed03d2f
commit ee951b099b
4 changed files with 33 additions and 17 deletions
+14 -5
View File
@@ -1,16 +1,25 @@
(type (string (string_content) @python))
((assignment
(type (identifier) @_type)
(string (string_content) @python))
(type
(identifier) @_type)
(string
(string_content) @python))
(#eq? @_type "TypeAlias"))
((assignment
(type (string (string_content) @_type))
(string (string_content) @python))
(type
(string
(string_content) @_type))
(string
(string_content) @python))
(#eq? @_type "TypeAlias"))
(class_definition (argument_list (subscript (string (string_content) @python))))
(class_definition
(argument_list
(subscript
(string
(string_content) @python))))
(((string (string_content) @python) @_str)
(#match? @_str "^r.*$"))