This repository has been archived by the owner on Feb 28, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathedge.sublime-syntax
69 lines (57 loc) · 1.71 KB
/
edge.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: Edge
file_extensions: [edge, edge.html]
scope: text.edge
contexts:
main:
- match: ""
push:
- include: 'scope:text.html.basic'
- meta_scope: text.html
pop: true
with_prototype:
- match: "{{--"
captures:
0: punctuation.definition.comment.begin.edge
push:
- meta_scope: comment.block.html
- match: "--}}"
scope: punctuation.definition.comment.end.edge
pop: true
- match: "@raw"
captures:
0: keyword.other.function
push:
- include: 'scope:text.html.basic'
- match: "@endraw"
scope: keyword.other.function
pop: true
- match: ^\s*(@(!)?\w+)\(
captures:
1: keyword.other.function
push: Packages/JavaScript/JavaScript.sublime-syntax
with_prototype:
- match: (\w+)\s=[^=]
captures:
1: keyword.operator.assignment
- match: "(?=\\))"
pop: true
- match: \@debugger|\@super
scope: keyword.operator.js
- match: ^\s*(\@end\w+)|\@else(if)?
scope: keyword.other.function
- match: "{{{?"
scope: entity.name.tag
push: Packages/JavaScript/JavaScript.sublime-syntax
with_prototype:
- match: "(?=}})"
pop: true
- match: "}}}?"
scope: entity.name.tag
- match: \(.+(in)
captures:
1: keyword.operator.word
- match: \@{{\s*(.+?)\s*}}}?
scope: variable.other