-
Notifications
You must be signed in to change notification settings - Fork 0
/
q.YAML-tmLanguage
45 lines (40 loc) · 1.15 KB
/
q.YAML-tmLanguage
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
# [PackageDev] target_format: plist, ext: tmLanguage
name: q
scopeName: source.q
fileTypes: [q]
uuid: bca9b127-2473-d54b-de01-c1000069f009
patterns:
- comment: block comment
name: comment.block.q
begin: ^(/)[ \t]*$
beginCaptures:
'1': {name: puctuation.definition.comment.begin.q}
end: ^(\\)[ \t]*$
endCaptures:
'1': {name: puctuation.definition.comment.end.q}
- comment: comment to the end of file
name: comment.block.q
begin: ^(\\)[ \t]*$
beginCaptures:
'1': {name: puctuation.definition.comment.begin.q}
end: ^\z
- comment: line comment
name: comment.line.q
match: (/).*$
captures:
'1': {name: punctuation.definition.comment.begin.q}
- comment: double quoted string
name: string.quoted.double.q
begin: '"'
beginCaptures:
'0': {name: punctuation.definition.string.begin.q}
end: (")|((?:[^\\\n])$)
endCaptures:
'1': {name: punctuation.definition.string.end.q}
'2': {name: invalid.illegal.newline.q}
patterns:
- include: '#string-character-escape'
repository:
string-character-escape:
name: constant.character.escape.q
match: \\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)