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 20, 2022
1 parent 55f4f69 commit 257faa9
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 257faa9

Please sign in to comment.