remove template_directive for ocaml-tree-sitter-semgrep to compile
This commit is contained in:
committed by
Michael Hoffmann
parent
b1ef087f58
commit
ae8b07cc3e
@@ -272,7 +272,6 @@ module.exports = grammar({
|
|||||||
optional(repeat(choice(
|
optional(repeat(choice(
|
||||||
$.template_literal,
|
$.template_literal,
|
||||||
$.template_interpolation,
|
$.template_interpolation,
|
||||||
$.template_directive,
|
|
||||||
))),
|
))),
|
||||||
$.quoted_template_end,
|
$.quoted_template_end,
|
||||||
)),
|
)),
|
||||||
@@ -283,7 +282,6 @@ module.exports = grammar({
|
|||||||
optional(repeat(choice(
|
optional(repeat(choice(
|
||||||
$.template_literal,
|
$.template_literal,
|
||||||
$.template_interpolation,
|
$.template_interpolation,
|
||||||
$.template_directive,
|
|
||||||
))),
|
))),
|
||||||
$.heredoc_identifier,
|
$.heredoc_identifier,
|
||||||
),
|
),
|
||||||
@@ -304,11 +302,7 @@ module.exports = grammar({
|
|||||||
$.template_interpolation_end,
|
$.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
|
// http://stackoverflow.com/questions/13014947/regex-to-match-a-c-style-multiline-comment/36328890#36328890
|
||||||
comment: $ => token(choice(
|
comment: $ => token(choice(
|
||||||
|
|||||||
Reference in New Issue
Block a user