From 2bac01fb7b4e43a2f7e707b7848d1b925d598cda Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 8 Nov 2021 18:49:15 -0800 Subject: syntax highlighting for Visual Studio Code --- editor/VSCode/syntaxes/Mu.tmLanguage | 96 ++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 editor/VSCode/syntaxes/Mu.tmLanguage (limited to 'editor/VSCode/syntaxes') diff --git a/editor/VSCode/syntaxes/Mu.tmLanguage b/editor/VSCode/syntaxes/Mu.tmLanguage new file mode 100644 index 00000000..64f71320 --- /dev/null +++ b/editor/VSCode/syntaxes/Mu.tmLanguage @@ -0,0 +1,96 @@ + + + + + fileTypes + + mu + + name + Mu + patterns + + + match + #.* + name + comment.line.mu + + + match + <- + name + meta.operator.mu + + + match + \b(return|break[^ ]*|loop[^ ]*) + name + keyword.control.mu + + + match + \b[^ ]*:\b + name + constant.other.label.mu + + + match + ^fn|->\b + name + meta.function.mu + + + match + \bvar\b + name + storage.type.var.mu + + + match + \b(addr|array|boolean|byte|code-point|grapheme|handle|int|float|stream|type)\b + name + storage.type.mu + + + begin + " + end + " + name + string.quoted.double.mu + patterns + + + match + \. + name + constant.character.escape + + + + + match + \b(0x\h+|[0-9])\b + name + constant.numeric.integer.mu + + + match + \b([0-9][0-9a-f]+)\b + name + invalid.illegal.constant.numeric + + + match + \b([0-9a-zA-Z][0-9a-zA-Z])\b + name + invalid.illegal.constant.numeric + + + scopeName + source.mu + uuid + 766C3FEA-ED70-4B61-B17B-79E6ECE54036 + + -- cgit 1.4.1-2-gfad0