Skip to content

Commit

Permalink
Highlight import expression
Browse files Browse the repository at this point in the history
  • Loading branch information
zoodogood committed Nov 8, 2024
1 parent 7ceca3b commit b1a4a4e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lsp/syntaxes/civet.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,22 @@
]
},
{
"match": "\\b(?<![\\.\\$])(break|by|case|catch|continue|else|finally|for|in|of|if|return|switch|then|throw|try|unless|when|while|until|loop|do|export|import|default|from|as|yield|async|await|(?<=for)\\s+own)(?!\\s*:)\\b",
"name": "meta.import.civet",
"match": "(?:(import)\\s+(type)?\\s*)?(\\{(?:.|\\n)*\\}(?=\\s+from)|\\w+)\\s+(from)\\s+(\\S+)",
"captures": {
"1": { "name": "keyword.control.import.civet" },
"2": { "name": "keyword.control.type.civet" },
"3": {
"patterns": [
{"include": "source.civet"}
]
},
"4": { "name": "keyword.control.from.civet" },
"5": { "name": "string.unquoted.module-reference.civet" }
}
},
{
"match": "\\b(?<![\\.\\$])(break|by|case|catch|continue|else|finally|for|in|of|if|return|switch|then|throw|try|unless|when|while|until|loop|do|export|import|default|from|as|yield|async|await|with|(?<=for)\\s+own)(?!\\s*:)\\b",
"name": "keyword.control.civet"
},
{
Expand Down

0 comments on commit b1a4a4e

Please sign in to comment.