Skip to content

Commit

Permalink
Remove function from ecma treesit grammar query
Browse files Browse the repository at this point in the history
Fixes #123
  • Loading branch information
meain committed Aug 29, 2024
1 parent cf25134 commit b4ef204
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions treesit-queries/ecma/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
(function_declaration
body: (_) @function.inner) @function.outer

(function
body: (_) @function.inner) @function.outer
;; Javascript grammar no more has a function node
;; TODO: remove from upstream
;; (function
;; body: (_) @function.inner) @function.outer

(arrow_function
body: (_) @function.inner) @function.outer
Expand Down

0 comments on commit b4ef204

Please sign in to comment.