diff --git a/JunLang.sublime-build b/JunLang.sublime-build new file mode 100644 index 0000000..5612894 --- /dev/null +++ b/JunLang.sublime-build @@ -0,0 +1,3 @@ +{ + "shell_cmd": "junlang ${file}" +} diff --git a/JunLang.sublime-syntax b/JunLang.sublime-syntax new file mode 100644 index 0000000..1caa2e4 --- /dev/null +++ b/JunLang.sublime-syntax @@ -0,0 +1,28 @@ +%YAML 1.2 +--- +name: JunLang +scope: source.junlang + +file_extensions: + - jun + - junlang + +contexts: + main: + - match: '\b(output|wrap|new|set|input|addition|subtraction|multiplication|division|equal|greater|less|equal_or_greater|equal_or_less|not|if|end-if|loop|end-loop)\b' + scope: keyword.control + - match: 'note' + push: note + - match: '"' + push: string + string: + - meta_scope: string.quoted.double + - match: '"' + scope: string.quoted.double + pop: true + - match: \\. + scope: constant.character.escape + note: + - meta_scope: comment.line + - match: '\n' + pop: true