From ae8b07cc3ee45d5b7a462ea6914864ddbb585574 Mon Sep 17 00:00:00 2001 From: Yoann Padioleau Date: Wed, 15 Sep 2021 09:32:57 +0200 Subject: [PATCH] remove template_directive for ocaml-tree-sitter-semgrep to compile --- grammar.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/grammar.js b/grammar.js index 172414d..a77e4d2 100644 --- a/grammar.js +++ b/grammar.js @@ -272,7 +272,6 @@ module.exports = grammar({ optional(repeat(choice( $.template_literal, $.template_interpolation, - $.template_directive, ))), $.quoted_template_end, )), @@ -283,7 +282,6 @@ module.exports = grammar({ optional(repeat(choice( $.template_literal, $.template_interpolation, - $.template_directive, ))), $.heredoc_identifier, ), @@ -304,11 +302,7 @@ module.exports = grammar({ $.template_interpolation_end, ), - // TODO - template_directive: $ => choice( - //$.template_for, - //$.template_if, - ), + // http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890 comment: $ => token(choice(