Skip to content

Commit

Permalink
Switch parse order in rellitvec
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Thiele committed Oct 11, 2024
1 parent 8bdbcd1 commit b256295
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ module.exports = grammar({

rellitvec: $ => choice(
seq($.cmp , $.term),
seq($.rellitvec, $.cmp, $.term)
seq($.cmp, $.term, $.rellitvec)
),

literal: $ => choice(
Expand Down
6 changes: 3 additions & 3 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1800,15 +1800,15 @@
"members": [
{
"type": "SYMBOL",
"name": "rellitvec"
"name": "cmp"
},
{
"type": "SYMBOL",
"name": "cmp"
"name": "term"
},
{
"type": "SYMBOL",
"name": "term"
"name": "rellitvec"
}
]
}
Expand Down

0 comments on commit b256295

Please sign in to comment.