more stuff

This commit is contained in:
2023-10-03 11:17:34 -05:00
parent 6d8df1881f
commit b1c3d01773
8 changed files with 96 additions and 68 deletions
+21 -9
View File
@@ -1,18 +1,15 @@
(type (string (string_content) @python))
(type (subscript (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
@@ -23,3 +20,18 @@
(((string (string_content) @python) @_str)
(#match? @_str "^r.*$"))
((call
(identifier) @_function
(argument_list
(string
(string_content) @python)))
(#any-of? @_function "cast" "NewType" "TypeVar" "TypedDict"))
; Too slow
;((call
; (identifier) @_function
; (argument_list
; (string
; (string_content) @htmldjango)))
;(#eq? @_function "Template"))