Skip to content

Commit

Permalink
parser: reorder phrases in for statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbz64 committed Dec 14, 2023
1 parent 259b484 commit 7aaa3f6
Show file tree
Hide file tree
Showing 3 changed files with 26,490 additions and 27,296 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,10 @@ module.exports = grammar({
optional($.of),
optional($.where_clause),
repeat($.query_tuning),
optional($.sort_clause),
optional($.on_error_phrase),
optional($.on_quit_phrase),
optional($.on_stop_phrase),
optional($.sort_clause),
":",
optional($.body),
$._block_terminator
Expand Down
8 changes: 4 additions & 4 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -5676,7 +5676,7 @@
"members": [
{
"type": "SYMBOL",
"name": "on_error_phrase"
"name": "sort_clause"
},
{
"type": "BLANK"
Expand All @@ -5688,7 +5688,7 @@
"members": [
{
"type": "SYMBOL",
"name": "on_quit_phrase"
"name": "on_error_phrase"
},
{
"type": "BLANK"
Expand All @@ -5700,7 +5700,7 @@
"members": [
{
"type": "SYMBOL",
"name": "on_stop_phrase"
"name": "on_quit_phrase"
},
{
"type": "BLANK"
Expand All @@ -5712,7 +5712,7 @@
"members": [
{
"type": "SYMBOL",
"name": "sort_clause"
"name": "on_stop_phrase"
},
{
"type": "BLANK"
Expand Down
Loading

0 comments on commit 7aaa3f6

Please sign in to comment.