-
Notifications
You must be signed in to change notification settings - Fork 0
/
art.sublime-syntax
executable file
·46 lines (45 loc) · 1.42 KB
/
art.sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%YAML 1.2
---
name: art
file_extensions: [art]
first_line_match: ^<%|^{{
scope: text.art.percentsign
contexts:
main:
- match: ''
push: Packages/HTML/HTML.sublime-syntax
with_prototype:
- match: '<%#'
scope: punctuation.definition.javascript_comment.begin.art
push: javascript_comment
- match: '<%(?!%)[=_-]?'
scope: keyword.operator.delimiter.art, punctuation.definition.javascript.begin.art
push: javascript
- match: '{{@?'
scope: keyword.operator.delimiter.art, punctuation.definition.normal.begin.art
push: normal
javascript:
- match: '[_-]?%>'
scope: keyword.operator.delimiter.art, punctuation.definition.javascript.end.art
pop: true
- match: ''
push: Packages/art/syntaxs/javascript.sublime-syntax
with_prototype:
- match: '(?=[_-]?%>)'
scope: punctuation.definition.javascript.end.art
pop: true
javascript_comment:
- meta_scope: comment.block.art
- match: '%>'
scope: punctuation.definition.javascript_comment.end.art
pop: true
normal:
- match: '}}'
scope: keyword.operator.delimiter.art, punctuation.definition.javascript.end.art
pop: true
- match: ''
push: Packages/art/syntaxs/normal.sublime-syntax
with_prototype:
- match: '(?=}})'
scope: punctuation.definition.javascript.end.art
pop: true