Skip to content

Commit

Permalink
Update tree-sitter queries to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
meain authored Aug 25, 2023
1 parent 1997984 commit 715274d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions queries/dart/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; class
((
[(marker_annotation)? (annotation)?] @class.outer.start .
(annotation)? @class.outer.start .
(class_definition
body: (class_body) @class.outer._end @class.inner) @class.outer._start
)
Expand All @@ -13,7 +13,7 @@

; function/method
((
[(marker_annotation)? (annotation)?] @function.outer.start .
(annotation)? @function.outer.start .
[(method_signature) (function_signature)] @function.outer._start .
(function_body) @function.outer._end
)
Expand Down
8 changes: 7 additions & 1 deletion queries/fish/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
(function_definition) @function.outer
;; assignment
(command
name: (word) @_command
argument: (word) @_varname @assignment.lhs @assignment.inner
argument: (_)* @assignment.rhs
(#not-lua-match? @_varname "[-].*")
(#eq? @_command "set")) @assignment.outer

(command
name: (word) @_name
Expand Down
2 changes: 2 additions & 0 deletions queries/hlsl/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
; inherits: cpp

0 comments on commit 715274d

Please sign in to comment.