diff --git a/editor/Mu.tmbundle/Syntaxes/Mu.tmLanguage b/editor/Mu.tmbundle/Syntaxes/Mu.tmLanguage new file mode 100644 index 00000000..64f71320 --- /dev/null +++ b/editor/Mu.tmbundle/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 + + diff --git a/editor/Mu.tmbundle/info.plist b/editor/Mu.tmbundle/info.plist new file mode 100644 index 00000000..8f3292b8 --- /dev/null +++ b/editor/Mu.tmbundle/info.plist @@ -0,0 +1,16 @@ + + + + + contactEmailRot13 + zh.grkgzngr@nxxnegvx.pbz + contactName + Kartik Agaram + description + Bundle for Mu: https://github.com/akkartik/mu + name + Mu + uuid + 24559A54-666E-40D4-A561-C9A49DD9B675 + +