@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reteps/tree-sitter-htmlmustache",
3
- "version": "0.0.24",
3
+ "version": "0.0.30",
4
4
  "description": "HTML with Mustache/Handlebars template syntax grammar for tree-sitter",
5
5
  "repository": {
6
6
  "type": "git",
package/src/grammar.json CHANGED
@@ -785,6 +785,14 @@
785
785
  {
786
786
  "type": "SYMBOL",
787
787
  "name": "html_attribute"
788
+ },
789
+ {
790
+ "type": "SYMBOL",
791
+ "name": "mustache_interpolation"
792
+ },
793
+ {
794
+ "type": "SYMBOL",
795
+ "name": "mustache_triple"
788
796
  }
789
797
  ]
790
798
  },
@@ -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
  }