fork/numbat

git clone https://git.julia.blue/fork/numbat

David PeterUpdate syntaxesf46cd6a

v1.6.2
1.1 KiB34 linesraw
1%YAML 1.2
2---
3# See http://www.sublimetext.com/docs/3/syntax.html
4name: Numbat
5file_extensions:
6  - nbt
7scope: source.nbt
8contexts:
9  main:
10    - match: \b(per|to|let|fn|dimension|unit|use|long|short|both|none|print|assert_eq|type|if|then|else|true|false|bool|str)\b
11      scope: keyword.control.nbt
12    - match: '#(.*)'
13      scope: comment.line.nbt
14    - match: \b([A-Z][a-zA-Z]*)\b
15      scope: storage.type.nbt
16    - match: \b([a-z][a-zA-Z_0-9]*)\b
17      scope: variable.other.nbt
18    - match: \b([0-9]+(\.[0-9]+)?)\b
19      scope: constant.numeric.nbt
20    - match: '(@aliases(\_short)?|@metric_prefixes|@binary_prefixes)'
21      scope: meta.annotation.attribute.nbt
22    - match: '[+\-/*=\^:<>·×÷²³]'
23      scope: keyword.operator.nbt
24    - match: '[\(\)]'
25      scope: punctuation.definition.parenthesis.nbt
26    - match: ','
27      scope: punctuation.separator.comma.nbt
28    - match: '"'
29      scope: punctuation.definition.string.begin.nbt
30      push:
31        - meta_scope: string.quoted.double.nbt
32        - match: '"'
33          scope: punctuation.definition.string.end.nbt
34          pop: true