-
Notifications
You must be signed in to change notification settings - Fork 2
/
solution.yaml-tmLanguage
103 lines (95 loc) · 2.93 KB
/
solution.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
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
name: Visual Studio Solution File
scopeName: source.solution
fileTypes:
- '.sln'
patterns:
- include: '#main'
repository:
main:
patterns:
- include: '#header'
- include: '#functions'
- include: '#variables'
- include: '#strings'
- include: '#numbers'
- include: '#booleans'
- include: '#punct'
header:
patterns:
- name: entity.other.header.format.solution
begin: 'Microsoft Visual Studio Solution File'
end: '$'
- name: entity.other.header.major-version.solution
begin: '#'
beginCaptures:
'0': { name: punctuation.definition.header.solution }
end: '$'
functions:
patterns:
- name: meta.block.solution
begin: '(?:Project|GlobalSection|Global)'
beginCaptures:
'0': { name: keyword.block.start.solution }
end: 'End(?:Project|GlobalSection|Global)'
endCaptures:
'0': { name: keyword.block.start.solution }
patterns:
- include: '#main'
- name: meta.parens.solution
begin: '\('
beginCaptures:
'0': { name: punctuation.section.parens.begin.solution }
end: '\)'
endCaptures:
'0': { name: punctuation.section.parens.end.solution }
patterns:
- include: '#strings'
- include: '#variables'
variables:
patterns:
- name: meta.generic.variable.other.solution
match: '(?<![.|])([A-Za-z]+)\s*(=)'
captures:
'0': { name: variable.other.solution }
'1': { name: punctuation.separator.declaration.solution }
- name: meta.generic.variable.property.solution
match: '([A-Za-z]+)\s*(\|)'
captures:
'0': { name: variable.language.property.solution }
'1': { name: punctuation.separator.property.solution }
- name: variable.other.member.solution
match: '(?<=[.|])\s*[A-Za-z0-9 ]+'
- name: variable.language.setting.solution
match: '(?:pre|post)Solution'
- name: variable.other.solution
match: '[A-Za-z]+'
strings:
patterns:
- name: string.quoted.double.solution
begin: '"'
beginCaptures:
'0': { name: punctuation.other.string.begin.solution }
end: '"'
endCaptures:
'0': { name: punctuation.other.string.end.solution }
- name: string.quoted.other.guid.solution
begin: '{'
beginCaptures:
'0': { name: punctuation.other.guid.begin.solution }
end: '}'
endCaptures:
'0': { name: punctuation.other.guid.end.solution }
numbers:
patterns:
- name: string.unquoted.version.solution
match: '\d+(?:\.\d+)*'
booleans:
patterns:
- name: constant.language.boolean.solution
match: 'TRUE|FALSE'
punct:
patterns:
- name: punctuation.separator.attributes.solution
match: ','
- name: punctuation.accessor.solution
match: '.'