Skip to content

Commit

Permalink
Minor fix - node name consistency in previous commit
Browse files Browse the repository at this point in the history
Nodes with a depth more than one does not have a '_' at the begining of their name
  • Loading branch information
este36 committed Nov 7, 2024
1 parent 4ae9c9b commit c18c7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ module.exports = grammar(HTML, {
),

// Since 'else' and 'if' are separated by space, we cannot put them in a simple tag() like $._else_tag or $._if_start_tag
_else_if_tag: $ => seq(
else_if_tag: $ => seq(
tag(':', 'else'),
field('tag', 'if'),
),
else_if_start: $ => seq(
'{',
alias($._else_if_tag, $.block_tag),
alias($.else_if_tag, $.block_tag),
field('condition', $.svelte_raw_text),
'}',
),
Expand Down

0 comments on commit c18c7d8

Please sign in to comment.