Skip to content

Commit

Permalink
feat: Update module include syntax (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Mar 2, 2024
1 parent e738bb0 commit 13f5269
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion editor-extensions/vscode/syntaxes/grain.json
Expand Up @@ -944,7 +944,7 @@
]
},
{
"match": "\\b(include)\\b\\s*(\\\".*\\\")\\s*\\b(as)\\b\\s*\\b([A-Z]\\w*)\\b",
"match": "\\b(from)\\b\\s*(\\\".*\\\")\\s*\\b(include)\\b\\s*\\b([A-Z]\\w*)\\b(\\s*(as)\\s*\\b([A-Z]\\w*)\\b)?",
"captures": {
"1": {
"patterns": [{ "include": "#keywords" }]
Expand All @@ -957,6 +957,12 @@
},
"4": {
"name": "entity.name.module.grain"
},
"5": {
"patterns": [{ "include": "#keywords" }]
},
"6": {
"name": "entity.name.module.grain"
}
}
}
Expand Down

0 comments on commit 13f5269

Please sign in to comment.