diff --git a/runtime/queries/javascript/injections.scm b/runtime/queries/javascript/injections.scm index e84291115dae..41f39720c5d6 100644 --- a/runtime/queries/javascript/injections.scm +++ b/runtime/queries/javascript/injections.scm @@ -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"))