From 257faa957a6ae5802a6fce1644ec2bd69e1a68b7 Mon Sep 17 00:00:00 2001 From: farwyler <1705805+farwyler@users.noreply.github.com> Date: Tue, 14 Jun 2022 06:43:31 +0200 Subject: [PATCH] adds tree-sitter-comment injection for js/ts --- runtime/queries/javascript/injections.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"))