Skip to content

Commit

Permalink
Fix object property key token type
Browse files Browse the repository at this point in the history
closes #46
  • Loading branch information
moetelo committed Nov 16, 2024
1 parent 95079d6 commit de99b3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/tree-sitter-twig/corpus/expressions.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
==================
Identifier
Variable
==================
{{ user }}
---
Expand Down Expand Up @@ -184,10 +184,10 @@ Object property keys as names
(output
(object
(pair
(variable)
(identifier)
(string))
(pair
(variable)
(identifier)
(string)))))

==================
Expand Down
4 changes: 2 additions & 2 deletions packages/tree-sitter-twig/corpus/statements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ With variables
(with
(object
(pair
(variable)
(identifier)
(number)))
(source_elements
(content))))
Expand All @@ -726,7 +726,7 @@ With variables only
(with
(object
(pair
(variable)
(identifier)
(number)))
(source_elements
(content))))
Expand Down
2 changes: 1 addition & 1 deletion packages/tree-sitter-twig/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ module.exports = grammar({
choice(
$.string,
$.number,
alias($.identifier, $.variable),
$.identifier,
$.computed_property_name,
),

Expand Down

0 comments on commit de99b3c

Please sign in to comment.