Skip to content

Commit 2308ff9

Browse files
Add files via upload
1 parent 7b9d736 commit 2308ff9

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

JunLang.sublime-build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"shell_cmd": "junlang ${file}"
3+
}

JunLang.sublime-syntax

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
%YAML 1.2
2+
---
3+
name: JunLang
4+
scope: source.junlang
5+
6+
file_extensions:
7+
- jun
8+
- junlang
9+
10+
contexts:
11+
main:
12+
- 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'
13+
scope: keyword.control
14+
- match: 'note'
15+
push: note
16+
- match: '"'
17+
push: string
18+
string:
19+
- meta_scope: string.quoted.double
20+
- match: '"'
21+
scope: string.quoted.double
22+
pop: true
23+
- match: \\.
24+
scope: constant.character.escape
25+
note:
26+
- meta_scope: comment.line
27+
- match: '\n'
28+
pop: true

0 commit comments

Comments
 (0)