treat jinja as comments in hcl
This commit is contained in:
@@ -349,6 +349,7 @@ module.exports = function make_grammar(dialect) {
|
||||
comment: ($) =>
|
||||
token(
|
||||
choice(
|
||||
seq("{%", /.*/),
|
||||
seq("#", /.*/),
|
||||
seq("//", /.*/),
|
||||
seq("/*", /[^*]*\*+([^/*][^*]*\*+)*/, "/"),
|
||||
|
||||
15
src/grammar.json
generated
15
src/grammar.json
generated
@@ -1695,6 +1695,19 @@
|
||||
"content": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "{%"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": ".*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
@@ -1798,4 +1811,4 @@
|
||||
"inline": [],
|
||||
"supertypes": [],
|
||||
"reserved": {}
|
||||
}
|
||||
}
|
||||
|
||||
2861
src/parser.c
generated
2861
src/parser.c
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user