-
Notifications
You must be signed in to change notification settings - Fork 0
/
aurelia-typescript-v1.sublime-syntax
113 lines (91 loc) · 2.69 KB
/
aurelia-typescript-v1.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
%YAML 1.2
---
name: Aurelia TypeScript v1
scope: source.ts.aurelia.v1
version: 2
extends: Packages/JavaScript/TypeScript.sublime-syntax
file_extensions: [ts,cts,mts]
contexts:
main:
- meta_prepend: true
decorator:
- match: '@(?=inlineView)'
scope: punctuation.definition.annotation.js
push:
- decorator-meta
- decorator-expression-end
# - decorator-expression-begin
- decorator-expression-begin-au
- match: '@'
scope: punctuation.definition.annotation.js
push:
- decorator-meta
- decorator-expression-end
- decorator-expression-begin
decorator-expression-begin-au:
- include: decorator-name
- include: parenthesized-expression
- include: expression-begin-au
expression-begin-au:
- match: (?=inlineView\s*\()
scope: meta.function-call.js
set:
- function-call-arguments-au
- literal-variable
# - include: literal-string
- include: literal-string-au
# - include: literal-string-template
- include: literal-string-template-au
- include: literal-number
- include: prefix-operators
- include: else-pop
function-call-arguments-au:
- match: \(
scope: punctuation.section.group.begin.js
set:
- meta_scope: meta.group.js
- match: \)
scope: punctuation.section.group.end.js
pop: true
- include: expression-list-au
expression-list-au:
- include: expression-break
- include: comma-separator
- match: (?=\S)
push: expression-no-comma-au
expression-no-comma-au:
- meta_include_prototype: false
- match: ''
set:
- expression-end-no-comma
- expression-begin-au
literal-string-au:
- include: literal-double-quoted-string-au
- include: literal-single-quoted-string-au
literal-double-quoted-string-au:
- clear_scopes: true
- match: \"
scope: punctuation.definition.string.begin.js
embed: scope:text.html.aurelia.v1
embed_scope: text.html.aurelia.v1
escape: \"
escape_captures:
0: punctuation.definition.string.end.js
literal-single-quoted-string-au:
- clear_scopes: true
- match: \'
scope: punctuation.definition.string.begin.js
embed: scope:text.html.aurelia.v1
embed_scope: text.html.aurelia.v1
escape: \'
escape_captures:
0: punctuation.definition.string.end.js
literal-string-template-au:
- clear_scopes: true
- match: \`
scope: punctuation.definition.string.begin.js
embed: scope:text.html.aurelia.v1
embed_scope: text.html.aurelia.v1
escape: \`
escape_captures:
0: punctuation.definition.string.end.js