Skip to content

Commit

Permalink
adds tree-sitter-comment injection for js/ts
Browse files Browse the repository at this point in the history
  • Loading branch information
farwyler committed Jun 14, 2022
1 parent d7bd441 commit 280226e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runtime/queries/javascript/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
((regex_pattern) @injection.content
(#set! injection.language "regex"))

; Parse JSDoc annotations in comments
; Parse JSDoc annotations in comments

((comment) @injection.content
(#set! injection.language "jsdoc"))

; Parse comment tags (TODO, FIXME, ...)

([(comment)] @injection.content
(#set! injection.language "comment"))

0 comments on commit 280226e

Please sign in to comment.