Skip to content

Commit

Permalink
feat: Add syntax support for for loops (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer authored Mar 11, 2021
1 parent e040cfc commit 6f49218
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor-extensions/vscode/syntaxes/grain.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
"statement": {
"patterns": [
{
"begin": "\\b(if|while)\\b\\s*(\\()",
"begin": "\\b(if|while|for)\\b\\s*(\\()",
"end": "(\\))",
"beginCaptures": {
"1": { "name": "keyword.control.grain" },
Expand All @@ -356,14 +356,14 @@
},
"patterns": [
{
"match": ",",
"match": "(,|;)",
"name": "punctuation.support.grain"
},
{ "include": "#expressions" }
]
},
{
"match": "\\b(if|else|while)\\b",
"match": "\\b(if|else|while|for)\\b",
"name": "keyword.control.grain"
}
]
Expand Down Expand Up @@ -830,7 +830,7 @@
"keywords": {
"patterns": [
{
"match": "\\b(throw|let|rec|mut|record|enum|while|match|when|pattern|assert|fail|import|export|foreign|primitive|from|except|as)\\b",
"match": "\\b(throw|let|rec|mut|record|enum|while|for|continue|break|match|when|pattern|assert|fail|import|export|foreign|primitive|from|except|as)\\b",
"name": "keyword.control.grain"
}
]
Expand Down

0 comments on commit 6f49218

Please sign in to comment.