diff --git a/bindings/dust b/bindings/dust index c9c7eb3..3182e7c 160000 --- a/bindings/dust +++ b/bindings/dust @@ -1 +1 @@ -Subproject commit c9c7eb31737fc3ce02bed5ce0069d8e04345f00b +Subproject commit 3182e7c860ac74d1d4e2846152eef45c4111bd63 diff --git a/grammar.js b/grammar.js index 93a290e..8f67a4b 100644 --- a/grammar.js +++ b/grammar.js @@ -21,10 +21,10 @@ module.exports = grammar({ open_statement: $ => prec.left(seq($.expression)), expression: $ => choice( - prec(0, $.value), - prec(1, $.identifier), - prec(2, $.operation), - prec(3, $.control_flow), + prec(0, $.control_flow), + prec(1, $.value), + prec(2, $.identifier), + prec(3, $.operation), ), close: $ => ";", diff --git a/src/grammar.json b/src/grammar.json index c7b2fe4..3e05fb7 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -88,7 +88,7 @@ "value": 0, "content": { "type": "SYMBOL", - "name": "value" + "name": "control_flow" } }, { @@ -96,7 +96,7 @@ "value": 1, "content": { "type": "SYMBOL", - "name": "identifier" + "name": "value" } }, { @@ -104,7 +104,7 @@ "value": 2, "content": { "type": "SYMBOL", - "name": "operation" + "name": "identifier" } }, { @@ -112,7 +112,7 @@ "value": 3, "content": { "type": "SYMBOL", - "name": "control_flow" + "name": "operation" } } ]