Skip to content

Commit

Permalink
feat: Support or-pattern and alias syntax (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Jun 6, 2022
1 parent 15985ee commit 38e8ed8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions editor-extensions/vscode/syntaxes/grain.json
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,12 @@
"1": { "name": "punctuation.definition.parameters.grain" }
},
"patterns": [
{
"match": "(\\||\\bas\\b)",
"captures": {
"1": { "name": "keyword.operator.grain" }
}
},
{
"match": "\\b([a-z]\\w*)\\b",
"captures": {
Expand All @@ -1109,6 +1115,12 @@
}
]
},
{
"match": "(\\||\\bas\\b)",
"captures": {
"1": { "name": "keyword.operator.grain" }
}
},
{
"match": "\\b([a-z]\\w*)\\b",
"captures": {
Expand Down

0 comments on commit 38e8ed8

Please sign in to comment.