diff --git a/grammar.js b/grammar.js index b86e71b..428763b 100644 --- a/grammar.js +++ b/grammar.js @@ -259,7 +259,7 @@ module.exports = grammar({ rellitvec: $ => choice( seq($.cmp , $.term), - seq($.rellitvec, $.cmp, $.term) + seq($.cmp, $.term, $.rellitvec) ), literal: $ => choice( diff --git a/src/grammar.json b/src/grammar.json index 097345e..cef0a69 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -1800,15 +1800,15 @@ "members": [ { "type": "SYMBOL", - "name": "rellitvec" + "name": "cmp" }, { "type": "SYMBOL", - "name": "cmp" + "name": "term" }, { "type": "SYMBOL", - "name": "term" + "name": "rellitvec" } ] }