Skip to content

Commit

Permalink
auto-sync: Fix some tree-sitter queries
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy committed Jan 19, 2024
1 parent 25a69b5 commit 91768e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_search_pattern(self) -> str:
return (
"(subscript_expression "
' ((identifier) @id (#match? @id "[fF]eatureBits"))'
" ((qualified_identifier) @qid)"
" (subscript_argument_list ((qualified_identifier) @qid))"
") @feature_bits"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, priority: int):
super().__init__(priority)

def get_search_pattern(self) -> str:
return "(namespace_definition" " (identifier)" " (declaration_list) @decl_list" ") @namespace_def"
return "(namespace_definition" " (namespace_identifier)" " (declaration_list) @decl_list" ") @namespace_def"

def get_main_capture_name(self) -> str:
return "namespace_def"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, priority: int):
def get_search_pattern(self) -> str:
return (
"(namespace_definition"
' (identifier) @id (#eq? @id "llvm")'
' (namespace_identifier) @id (#eq? @id "llvm")'
" (declaration_list) @decl_list"
") @namespace_def"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_search_pattern(self) -> str:
" )"
" (argument_list)"
" )"
" ((qualified_identifier) @flag)"
" (subscript_argument_list ((qualified_identifier) @flag))"
") @sti_feature_bits"
)

Expand Down

0 comments on commit 91768e1

Please sign in to comment.