@reteps/tree-sitter-htmlmustache 0.0.24 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grammar.js +1 -1
- package/package.json +1 -1
- package/src/grammar.json +8 -0
- package/src/node-types.json +16 -0
- package/src/parser.c +4407 -4116
package/grammar.js
CHANGED
|
@@ -218,7 +218,7 @@ module.exports = grammar({
|
|
|
218
218
|
html_erroneous_end_tag: ($) =>
|
|
219
219
|
seq('</', $.html_erroneous_end_tag_name, '>'),
|
|
220
220
|
|
|
221
|
-
_attribute: ($) => choice($.mustache_attribute, $.html_attribute),
|
|
221
|
+
_attribute: ($) => choice($.mustache_attribute, $.html_attribute, $.mustache_interpolation, $.mustache_triple),
|
|
222
222
|
html_attribute: ($) =>
|
|
223
223
|
seq(
|
|
224
224
|
seq(
|
package/package.json
CHANGED
package/src/grammar.json
CHANGED
package/src/node-types.json
CHANGED
|
@@ -395,6 +395,14 @@
|
|
|
395
395
|
{
|
|
396
396
|
"type": "mustache_attribute",
|
|
397
397
|
"named": true
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"type": "mustache_interpolation",
|
|
401
|
+
"named": true
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"type": "mustache_triple",
|
|
405
|
+
"named": true
|
|
398
406
|
}
|
|
399
407
|
]
|
|
400
408
|
}
|
|
@@ -418,6 +426,14 @@
|
|
|
418
426
|
{
|
|
419
427
|
"type": "mustache_attribute",
|
|
420
428
|
"named": true
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"type": "mustache_interpolation",
|
|
432
|
+
"named": true
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"type": "mustache_triple",
|
|
436
|
+
"named": true
|
|
421
437
|
}
|
|
422
438
|
]
|
|
423
439
|
}
|