@codingame/monaco-vscode-less-default-extension 1.85.1 → 1.85.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -3,8 +3,9 @@ import { registerExtension } from 'vscode/extensions';
3
3
  var manifest = {name:"less",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},scripts:{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin atom/language-less grammars/less.cson ./syntaxes/less.tmLanguage.json"},contributes:{languages:[{id:"less",aliases:["Less","less"],extensions:[".less"],mimetypes:["text/x-less","text/less"],configuration:"./language-configuration.json"}],grammars:[{language:"less",scopeName:"source.css.less",path:"./syntaxes/less.tmLanguage.json"}],problemMatchers:[{name:"lessc",label:"Lessc compiler",owner:"lessc",source:"less",fileLocation:"absolute",pattern:{regexp:"(.*)\\sin\\s(.*)\\son line\\s(\\d+),\\scolumn\\s(\\d+)",message:1,file:2,line:3,column:4}}]},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"},main:undefined};
4
4
 
5
5
  const { registerFileUrl, whenReady } = registerExtension(manifest);
6
- registerFileUrl('./syntaxes/less.tmLanguage.json', new URL('./less.tmLanguage.json', import.meta.url).toString(), 'application/json');
7
- registerFileUrl('./language-configuration.json', new URL('./language-configuration.json', import.meta.url).toString(), 'application/json');
8
- registerFileUrl('package.nls.json', new URL('./package.nls.json', import.meta.url).toString(), 'application/json');
6
+ registerFileUrl('language-configuration.json', new URL('./resources/language-configuration.json', import.meta.url).toString(), 'application/json');
7
+ registerFileUrl('package.json', new URL('./resources/package.json', import.meta.url).toString(), 'application/json');
8
+ registerFileUrl('package.nls.json', new URL('./resources/package.nls.json', import.meta.url).toString(), 'application/json');
9
+ registerFileUrl('syntaxes/less.tmLanguage.json', new URL('./resources/less.tmLanguage.json', import.meta.url).toString(), 'application/json');
9
10
 
10
11
  export { whenReady };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-less-default-extension",
3
- "version": "1.85.1",
3
+ "version": "1.85.3",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.85.1"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.85.3"
22
22
  }
23
23
  }
@@ -0,0 +1 @@
1
+ {"comments":{"blockComment":["/*","*/"],"lineComment":"//"},"brackets":[["{","}"],["[","]"],["(",")"]],"autoClosingPairs":[{"open":"{","close":"}","notIn":["string","comment"]},{"open":"[","close":"]","notIn":["string","comment"]},{"open":"(","close":")","notIn":["string","comment"]},{"open":"\"","close":"\"","notIn":["string","comment"]},{"open":"'","close":"'","notIn":["string","comment"]}],"surroundingPairs":[["{","}"],["[","]"],["(",")"],["\"","\""],["'","'"]],"folding":{"markers":{"start":"^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/","end":"^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"}},"indentationRules":{"increaseIndentPattern":"(^.*\\{[^}]*$)","decreaseIndentPattern":"^\\s*\\}"},"wordPattern":"(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]+(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])"}
@@ -0,0 +1 @@
1
+ {"information_for_contributors":["This file has been converted from https://github.com/atom/language-less/blob/master/grammars/less.cson","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/atom/language-less/commit/87d4d59e8de6796b506b81a16e1dc1fafc99d30f","name":"Less","scopeName":"source.css.less","patterns":[{"include":"#strings"},{"captures":{"1":{"name":"entity.other.attribute-name.class.mixin.css"}},"match":"(\\.[_a-zA-Z][a-zA-Z0-9_-]*(?=\\())"},{"captures":{"1":{"name":"entity.other.attribute-name.class.css"},"2":{"name":"punctuation.definition.entity.css"},"4":{"name":"variable.other.interpolation.less"}},"match":"((\\.)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)"},{"captures":{"0":{"name":"entity.other.attribute-name.parent-selector.css"},"1":{"name":"punctuation.definition.entity.css"}},"match":"(&)[a-zA-Z0-9_-]*"},{"begin":"(format|local|url|attr|counter|counters)\\s*(\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.css"}},"end":"\\)","endCaptures":{"0":{"name":"punctuation.section.function.css"}},"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"match":"\\\\.","name":"constant.character.escape.css"}]},{"begin":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"match":"\\\\(\\d{1,6}|.)","name":"constant.character.escape.css"}]},{"match":"[^'\") \\t]+","name":"variable.parameter.misc.css"}]},{"match":"(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?<!@){)","name":"constant.other.rgb-value.css"},{"captures":{"1":{"name":"entity.other.attribute-name.id"},"2":{"name":"punctuation.definition.entity.css"},"4":{"name":"variable.other.interpolation.less"}},"match":"((#)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)","name":"meta.selector.css"},{"begin":"/\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.css"}},"end":"\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.css"}},"name":"comment.block.css"},{"include":"source.css#numeric-values"},{"captures":{"1":{"name":"punctuation.definition.begin.entity.css"},"2":{"name":"entity.other.attribute-name.attribute.css"},"3":{"name":"punctuation.separator.operator.css"},"4":{"name":"string.unquoted.attribute-value.css"},"5":{"name":"string.quoted.double.attribute-value.css"},"6":{"name":"punctuation.definition.string.begin.css"},"7":{"name":"punctuation.definition.string.end.css"},"8":{"name":"punctuation.definition.end.entity.css"}},"match":"(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])","name":"meta.attribute-selector.css"},{"begin":"((@)import\\b)","beginCaptures":{"1":{"name":"keyword.control.at-rule.import.less"},"2":{"name":"punctuation.definition.keyword.less"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.import.css","patterns":[{"match":"(?<=\\(|,|\\s)\\b(reference|optional|once|multiple|less|inline)\\b(?=\\)|,)","name":"keyword.control.import.option.less"},{"include":"#brace_round"},{"include":"source.css#commas"},{"include":"#strings"}]},{"captures":{"1":{"name":"keyword.control.at-rule.fontface.css"},"2":{"name":"punctuation.definition.keyword.css"}},"match":"^\\s*((@)font-face\\b)","name":"meta.at-rule.fontface.css"},{"captures":{"1":{"name":"keyword.control.at-rule.media.css"},"2":{"name":"punctuation.definition.keyword.css"}},"match":"^\\s*((@)media\\b)","name":"meta.at-rule.media.css"},{"include":"source.css#media-features"},{"match":"\\b(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)\\b","name":"support.constant.media-type.media.css"},{"match":"\\b(portrait|landscape)\\b","name":"support.constant.property-value.media-property.media.css"},{"captures":{"1":{"name":"support.function.less"}},"match":"(\\.[a-zA-Z0-9_-]+)\\s*(;|\\()"},{"begin":"(^[ \\t]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.less"}},"end":"(?!\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.less"}},"end":"\\n","name":"comment.line.double-slash.less"}]},{"match":"(@|\\-\\-)[\\w-]+(?=\\s*)","name":"variable.other.less","captures":{"1":{"name":"punctuation.definition.variable.less"}}},{"include":"#variable_interpolation"},{"begin":"{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.css"}},"name":"meta.property-list.css","patterns":[{"include":"source.css#pseudo-elements"},{"include":"source.css#pseudo-classes"},{"include":"source.css#tag-names"},{"include":"source.css#commas"},{"include":"#variable_interpolation"},{"include":"source.css#property-names"},{"include":"#property_values"},{"include":"$self"}]},{"match":"\\!\\s*important","name":"keyword.other.important.css"},{"match":"\\*|\\/|\\-|\\+|~|=|<=|>=|<|>","name":"keyword.operator.less"},{"match":"\\b(not|and|when)\\b","name":"keyword.control.logical.operator.less"},{"include":"source.css#tag-names"},{"match":"(?<![\\w-])[a-z][\\w&&[^A-Z]]*+-[\\w-&&[^A-Z]]+","name":"entity.name.tag.custom.css"},{"include":"source.css#pseudo-elements"},{"include":"source.css#pseudo-classes"},{"captures":{"1":{"name":"punctuation.section.property-list.begin.css"},"2":{"name":"punctuation.section.property-list.end.css"}},"match":"(\\{)(\\})","name":"meta.brace.curly.css"},{"match":"\\{|\\}","name":"meta.brace.curly.css"},{"include":"#brace_round"},{"match":"\\[|\\]","name":"meta.brace.square.less"},{"match":";","name":"punctuation.terminator.rule.css"},{"match":":","name":"punctuation.separator.key-value.css"},{"match":"\\btrue\\b","name":"constant.language.boolean.less"},{"match":"\\bdefault\\b","name":"support.function.default.less"},{"match":"\\b(isurl|isstring|isnumber|iskeyword|iscolor)\\b","name":"support.function.type-checking.less"},{"match":"\\b(isunit|ispixel|ispercentage|isem)\\b","name":"support.function.unit-checking.less"},{"include":"source.css#property-keywords"},{"include":"source.css#color-keywords"},{"include":"source.css#commas"},{"include":"#less_builtin_functions"},{"include":"source.css#functions"}],"repository":{"variable_interpolation":{"match":"@{[a-zA-Z0-9_-]+}","name":"variable.other.interpolation.less"},"strings":{"patterns":[{"begin":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"match":"\\\\([0-9A-Fa-f]{1,6}|.)","name":"constant.character.escape.css"},{"include":"#variable_interpolation"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"match":"\\\\([0-9A-Fa-f]{1,6}|.)","name":"constant.character.escape.css"},{"include":"#variable_interpolation"}]}]},"brace_round":{"match":"\\(|\\)","name":"meta.brace.round.css"},"property_values":{"begin":"(?<!&)(:)\\s*(?!(\\s*{))(?!.*(?<!@){)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"end":"\\s*(;)|\\s*(?=})","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"contentName":"meta.property-value.css","patterns":[{"begin":"url(\\()","beginCaptures":{"1":{"name":"meta.brace.round.css"}},"end":"\\)","endCaptures":{"0":{"name":"meta.brace.round.css"}},"name":"support.function.any-method.builtin.url.css","patterns":[{"include":"#strings"},{"match":"(\\b|\\.{0,2}/)[^)]*\\b","name":"string.url.css"}]},{"include":"source.css#property-keywords"},{"include":"source.css#color-keywords"},{"include":"source.css#commas"},{"include":"#less_builtin_functions"},{"include":"source.css#functions"},{"include":"$self"}]},"less_builtin_functions":{"match":"\\b(abs|acos|alpha|argb|asin|atan|average|blue|calc|ceil|color|contrast|convert|convert|cos|darken|data-uri|desaturate|difference|e|escape|exclusion|extract|fade|fadein|fadeout|floor|format|green|greyscale|hardlight|hsl|hsla|hsv|hsva|hsvhue|hsvsaturation|hsvvalue|hue|length|lighten|lightness|luma|max|min|mix|mod|multiply|negation|overlay|percentage|pi|pow|red|replace|round|saturate|saturation|screen|sin|softlight|spin|sqrt|tan|unit)\\b","name":"support.function.any-method.builtin.less"}}}
@@ -0,0 +1 @@
1
+ {"name":"less","displayName":"%displayName%","description":"%description%","version":"1.0.0","publisher":"vscode","license":"MIT","engines":{"vscode":"*"},"scripts":{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin atom/language-less grammars/less.cson ./syntaxes/less.tmLanguage.json"},"contributes":{"languages":[{"id":"less","aliases":["Less","less"],"extensions":[".less"],"mimetypes":["text/x-less","text/less"],"configuration":"./language-configuration.json"}],"grammars":[{"language":"less","scopeName":"source.css.less","path":"./syntaxes/less.tmLanguage.json"}],"problemMatchers":[{"name":"lessc","label":"Lessc compiler","owner":"lessc","source":"less","fileLocation":"absolute","pattern":{"regexp":"(.*)\\sin\\s(.*)\\son line\\s(\\d+),\\scolumn\\s(\\d+)","message":1,"file":2,"line":3,"column":4}}]},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}
@@ -0,0 +1 @@
1
+ {"displayName":"Less Language Basics","description":"Provides syntax highlighting, bracket matching and folding in Less files."}
@@ -1,36 +0,0 @@
1
- {
2
- "comments": {
3
- "blockComment": ["/*", "*/"],
4
- "lineComment": "//"
5
- },
6
- "brackets": [
7
- ["{", "}"],
8
- ["[", "]"],
9
- ["(", ")"]
10
- ],
11
- "autoClosingPairs": [
12
- { "open": "{", "close": "}", "notIn": ["string", "comment"] },
13
- { "open": "[", "close": "]", "notIn": ["string", "comment"] },
14
- { "open": "(", "close": ")", "notIn": ["string", "comment"] },
15
- { "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
16
- { "open": "'", "close": "'", "notIn": ["string", "comment"] }
17
- ],
18
- "surroundingPairs": [
19
- ["{", "}"],
20
- ["[", "]"],
21
- ["(", ")"],
22
- ["\"", "\""],
23
- ["'", "'"]
24
- ],
25
- "folding": {
26
- "markers": {
27
- "start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/",
28
- "end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"
29
- }
30
- },
31
- "indentationRules": {
32
- "increaseIndentPattern": "(^.*\\{[^}]*$)",
33
- "decreaseIndentPattern": "^\\s*\\}"
34
- },
35
- "wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]+(?=[^,{;]*[,{]))|(([@#.!])?[\\w-?]+%?|[@#!.])"
36
- }
@@ -1,542 +0,0 @@
1
- {
2
- "information_for_contributors": [
3
- "This file has been converted from https://github.com/atom/language-less/blob/master/grammars/less.cson",
4
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
- "Once accepted there, we are happy to receive an update request."
6
- ],
7
- "version": "https://github.com/atom/language-less/commit/87d4d59e8de6796b506b81a16e1dc1fafc99d30f",
8
- "name": "Less",
9
- "scopeName": "source.css.less",
10
- "patterns": [
11
- {
12
- "include": "#strings"
13
- },
14
- {
15
- "captures": {
16
- "1": {
17
- "name": "entity.other.attribute-name.class.mixin.css"
18
- }
19
- },
20
- "match": "(\\.[_a-zA-Z][a-zA-Z0-9_-]*(?=\\())"
21
- },
22
- {
23
- "captures": {
24
- "1": {
25
- "name": "entity.other.attribute-name.class.css"
26
- },
27
- "2": {
28
- "name": "punctuation.definition.entity.css"
29
- },
30
- "4": {
31
- "name": "variable.other.interpolation.less"
32
- }
33
- },
34
- "match": "((\\.)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)"
35
- },
36
- {
37
- "captures": {
38
- "0": {
39
- "name": "entity.other.attribute-name.parent-selector.css"
40
- },
41
- "1": {
42
- "name": "punctuation.definition.entity.css"
43
- }
44
- },
45
- "match": "(&)[a-zA-Z0-9_-]*"
46
- },
47
- {
48
- "begin": "(format|local|url|attr|counter|counters)\\s*(\\()",
49
- "beginCaptures": {
50
- "1": {
51
- "name": "support.function.misc.css"
52
- },
53
- "2": {
54
- "name": "punctuation.section.function.css"
55
- }
56
- },
57
- "end": "\\)",
58
- "endCaptures": {
59
- "0": {
60
- "name": "punctuation.section.function.css"
61
- }
62
- },
63
- "patterns": [
64
- {
65
- "begin": "'",
66
- "beginCaptures": {
67
- "0": {
68
- "name": "punctuation.definition.string.begin.css"
69
- }
70
- },
71
- "end": "'",
72
- "endCaptures": {
73
- "0": {
74
- "name": "punctuation.definition.string.end.css"
75
- }
76
- },
77
- "name": "string.quoted.single.css",
78
- "patterns": [
79
- {
80
- "match": "\\\\.",
81
- "name": "constant.character.escape.css"
82
- }
83
- ]
84
- },
85
- {
86
- "begin": "\"",
87
- "beginCaptures": {
88
- "0": {
89
- "name": "punctuation.definition.string.begin.css"
90
- }
91
- },
92
- "end": "\"",
93
- "endCaptures": {
94
- "0": {
95
- "name": "punctuation.definition.string.end.css"
96
- }
97
- },
98
- "name": "string.quoted.double.css",
99
- "patterns": [
100
- {
101
- "match": "\\\\(\\d{1,6}|.)",
102
- "name": "constant.character.escape.css"
103
- }
104
- ]
105
- },
106
- {
107
- "match": "[^'\") \\t]+",
108
- "name": "variable.parameter.misc.css"
109
- }
110
- ]
111
- },
112
- {
113
- "match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?<!@){)",
114
- "name": "constant.other.rgb-value.css"
115
- },
116
- {
117
- "captures": {
118
- "1": {
119
- "name": "entity.other.attribute-name.id"
120
- },
121
- "2": {
122
- "name": "punctuation.definition.entity.css"
123
- },
124
- "4": {
125
- "name": "variable.other.interpolation.less"
126
- }
127
- },
128
- "match": "((#)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)",
129
- "name": "meta.selector.css"
130
- },
131
- {
132
- "begin": "/\\*",
133
- "beginCaptures": {
134
- "0": {
135
- "name": "punctuation.definition.comment.begin.css"
136
- }
137
- },
138
- "end": "\\*/",
139
- "endCaptures": {
140
- "0": {
141
- "name": "punctuation.definition.comment.end.css"
142
- }
143
- },
144
- "name": "comment.block.css"
145
- },
146
- {
147
- "include": "source.css#numeric-values"
148
- },
149
- {
150
- "captures": {
151
- "1": {
152
- "name": "punctuation.definition.begin.entity.css"
153
- },
154
- "2": {
155
- "name": "entity.other.attribute-name.attribute.css"
156
- },
157
- "3": {
158
- "name": "punctuation.separator.operator.css"
159
- },
160
- "4": {
161
- "name": "string.unquoted.attribute-value.css"
162
- },
163
- "5": {
164
- "name": "string.quoted.double.attribute-value.css"
165
- },
166
- "6": {
167
- "name": "punctuation.definition.string.begin.css"
168
- },
169
- "7": {
170
- "name": "punctuation.definition.string.end.css"
171
- },
172
- "8": {
173
- "name": "punctuation.definition.end.entity.css"
174
- }
175
- },
176
- "match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])",
177
- "name": "meta.attribute-selector.css"
178
- },
179
- {
180
- "begin": "((@)import\\b)",
181
- "beginCaptures": {
182
- "1": {
183
- "name": "keyword.control.at-rule.import.less"
184
- },
185
- "2": {
186
- "name": "punctuation.definition.keyword.less"
187
- }
188
- },
189
- "end": ";",
190
- "endCaptures": {
191
- "0": {
192
- "name": "punctuation.terminator.rule.css"
193
- }
194
- },
195
- "name": "meta.at-rule.import.css",
196
- "patterns": [
197
- {
198
- "match": "(?<=\\(|,|\\s)\\b(reference|optional|once|multiple|less|inline)\\b(?=\\)|,)",
199
- "name": "keyword.control.import.option.less"
200
- },
201
- {
202
- "include": "#brace_round"
203
- },
204
- {
205
- "include": "source.css#commas"
206
- },
207
- {
208
- "include": "#strings"
209
- }
210
- ]
211
- },
212
- {
213
- "captures": {
214
- "1": {
215
- "name": "keyword.control.at-rule.fontface.css"
216
- },
217
- "2": {
218
- "name": "punctuation.definition.keyword.css"
219
- }
220
- },
221
- "match": "^\\s*((@)font-face\\b)",
222
- "name": "meta.at-rule.fontface.css"
223
- },
224
- {
225
- "captures": {
226
- "1": {
227
- "name": "keyword.control.at-rule.media.css"
228
- },
229
- "2": {
230
- "name": "punctuation.definition.keyword.css"
231
- }
232
- },
233
- "match": "^\\s*((@)media\\b)",
234
- "name": "meta.at-rule.media.css"
235
- },
236
- {
237
- "include": "source.css#media-features"
238
- },
239
- {
240
- "match": "\\b(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)\\b",
241
- "name": "support.constant.media-type.media.css"
242
- },
243
- {
244
- "match": "\\b(portrait|landscape)\\b",
245
- "name": "support.constant.property-value.media-property.media.css"
246
- },
247
- {
248
- "captures": {
249
- "1": {
250
- "name": "support.function.less"
251
- }
252
- },
253
- "match": "(\\.[a-zA-Z0-9_-]+)\\s*(;|\\()"
254
- },
255
- {
256
- "begin": "(^[ \\t]+)?(?=//)",
257
- "beginCaptures": {
258
- "1": {
259
- "name": "punctuation.whitespace.comment.leading.less"
260
- }
261
- },
262
- "end": "(?!\\G)",
263
- "patterns": [
264
- {
265
- "begin": "//",
266
- "beginCaptures": {
267
- "0": {
268
- "name": "punctuation.definition.comment.less"
269
- }
270
- },
271
- "end": "\\n",
272
- "name": "comment.line.double-slash.less"
273
- }
274
- ]
275
- },
276
- {
277
- "match": "(@|\\-\\-)[\\w-]+(?=\\s*)",
278
- "name": "variable.other.less",
279
- "captures": {
280
- "1": {
281
- "name": "punctuation.definition.variable.less"
282
- }
283
- }
284
- },
285
- {
286
- "include": "#variable_interpolation"
287
- },
288
- {
289
- "begin": "{",
290
- "beginCaptures": {
291
- "0": {
292
- "name": "punctuation.section.property-list.begin.bracket.curly.css"
293
- }
294
- },
295
- "end": "}",
296
- "endCaptures": {
297
- "0": {
298
- "name": "punctuation.section.property-list.end.bracket.curly.css"
299
- }
300
- },
301
- "name": "meta.property-list.css",
302
- "patterns": [
303
- {
304
- "include": "source.css#pseudo-elements"
305
- },
306
- {
307
- "include": "source.css#pseudo-classes"
308
- },
309
- {
310
- "include": "source.css#tag-names"
311
- },
312
- {
313
- "include": "source.css#commas"
314
- },
315
- {
316
- "include": "#variable_interpolation"
317
- },
318
- {
319
- "include": "source.css#property-names"
320
- },
321
- {
322
- "include": "#property_values"
323
- },
324
- {
325
- "include": "$self"
326
- }
327
- ]
328
- },
329
- {
330
- "match": "\\!\\s*important",
331
- "name": "keyword.other.important.css"
332
- },
333
- {
334
- "match": "\\*|\\/|\\-|\\+|~|=|<=|>=|<|>",
335
- "name": "keyword.operator.less"
336
- },
337
- {
338
- "match": "\\b(not|and|when)\\b",
339
- "name": "keyword.control.logical.operator.less"
340
- },
341
- {
342
- "include": "source.css#tag-names"
343
- },
344
- {
345
- "match": "(?<![\\w-])[a-z][\\w&&[^A-Z]]*+-[\\w-&&[^A-Z]]+",
346
- "name": "entity.name.tag.custom.css"
347
- },
348
- {
349
- "include": "source.css#pseudo-elements"
350
- },
351
- {
352
- "include": "source.css#pseudo-classes"
353
- },
354
- {
355
- "captures": {
356
- "1": {
357
- "name": "punctuation.section.property-list.begin.css"
358
- },
359
- "2": {
360
- "name": "punctuation.section.property-list.end.css"
361
- }
362
- },
363
- "match": "(\\{)(\\})",
364
- "name": "meta.brace.curly.css"
365
- },
366
- {
367
- "match": "\\{|\\}",
368
- "name": "meta.brace.curly.css"
369
- },
370
- {
371
- "include": "#brace_round"
372
- },
373
- {
374
- "match": "\\[|\\]",
375
- "name": "meta.brace.square.less"
376
- },
377
- {
378
- "match": ";",
379
- "name": "punctuation.terminator.rule.css"
380
- },
381
- {
382
- "match": ":",
383
- "name": "punctuation.separator.key-value.css"
384
- },
385
- {
386
- "match": "\\btrue\\b",
387
- "name": "constant.language.boolean.less"
388
- },
389
- {
390
- "match": "\\bdefault\\b",
391
- "name": "support.function.default.less"
392
- },
393
- {
394
- "match": "\\b(isurl|isstring|isnumber|iskeyword|iscolor)\\b",
395
- "name": "support.function.type-checking.less"
396
- },
397
- {
398
- "match": "\\b(isunit|ispixel|ispercentage|isem)\\b",
399
- "name": "support.function.unit-checking.less"
400
- },
401
- {
402
- "include": "source.css#property-keywords"
403
- },
404
- {
405
- "include": "source.css#color-keywords"
406
- },
407
- {
408
- "include": "source.css#commas"
409
- },
410
- {
411
- "include": "#less_builtin_functions"
412
- },
413
- {
414
- "include": "source.css#functions"
415
- }
416
- ],
417
- "repository": {
418
- "variable_interpolation": {
419
- "match": "@{[a-zA-Z0-9_-]+}",
420
- "name": "variable.other.interpolation.less"
421
- },
422
- "strings": {
423
- "patterns": [
424
- {
425
- "begin": "\"",
426
- "beginCaptures": {
427
- "0": {
428
- "name": "punctuation.definition.string.begin.css"
429
- }
430
- },
431
- "end": "\"",
432
- "endCaptures": {
433
- "0": {
434
- "name": "punctuation.definition.string.end.css"
435
- }
436
- },
437
- "name": "string.quoted.double.css",
438
- "patterns": [
439
- {
440
- "match": "\\\\([0-9A-Fa-f]{1,6}|.)",
441
- "name": "constant.character.escape.css"
442
- },
443
- {
444
- "include": "#variable_interpolation"
445
- }
446
- ]
447
- },
448
- {
449
- "begin": "'",
450
- "beginCaptures": {
451
- "0": {
452
- "name": "punctuation.definition.string.begin.css"
453
- }
454
- },
455
- "end": "'",
456
- "endCaptures": {
457
- "0": {
458
- "name": "punctuation.definition.string.end.css"
459
- }
460
- },
461
- "name": "string.quoted.single.css",
462
- "patterns": [
463
- {
464
- "match": "\\\\([0-9A-Fa-f]{1,6}|.)",
465
- "name": "constant.character.escape.css"
466
- },
467
- {
468
- "include": "#variable_interpolation"
469
- }
470
- ]
471
- }
472
- ]
473
- },
474
- "brace_round": {
475
- "match": "\\(|\\)",
476
- "name": "meta.brace.round.css"
477
- },
478
- "property_values": {
479
- "begin": "(?<!&)(:)\\s*(?!(\\s*{))(?!.*(?<!@){)",
480
- "beginCaptures": {
481
- "1": {
482
- "name": "punctuation.separator.key-value.css"
483
- }
484
- },
485
- "end": "\\s*(;)|\\s*(?=})",
486
- "endCaptures": {
487
- "1": {
488
- "name": "punctuation.terminator.rule.css"
489
- }
490
- },
491
- "contentName": "meta.property-value.css",
492
- "patterns": [
493
- {
494
- "begin": "url(\\()",
495
- "beginCaptures": {
496
- "1": {
497
- "name": "meta.brace.round.css"
498
- }
499
- },
500
- "end": "\\)",
501
- "endCaptures": {
502
- "0": {
503
- "name": "meta.brace.round.css"
504
- }
505
- },
506
- "name": "support.function.any-method.builtin.url.css",
507
- "patterns": [
508
- {
509
- "include": "#strings"
510
- },
511
- {
512
- "match": "(\\b|\\.{0,2}/)[^)]*\\b",
513
- "name": "string.url.css"
514
- }
515
- ]
516
- },
517
- {
518
- "include": "source.css#property-keywords"
519
- },
520
- {
521
- "include": "source.css#color-keywords"
522
- },
523
- {
524
- "include": "source.css#commas"
525
- },
526
- {
527
- "include": "#less_builtin_functions"
528
- },
529
- {
530
- "include": "source.css#functions"
531
- },
532
- {
533
- "include": "$self"
534
- }
535
- ]
536
- },
537
- "less_builtin_functions": {
538
- "match": "\\b(abs|acos|alpha|argb|asin|atan|average|blue|calc|ceil|color|contrast|convert|convert|cos|darken|data-uri|desaturate|difference|e|escape|exclusion|extract|fade|fadein|fadeout|floor|format|green|greyscale|hardlight|hsl|hsla|hsv|hsva|hsvhue|hsvsaturation|hsvvalue|hue|length|lighten|lightness|luma|max|min|mix|mod|multiply|negation|overlay|percentage|pi|pow|red|replace|round|saturate|saturation|screen|sin|softlight|spin|sqrt|tan|unit)\\b",
539
- "name": "support.function.any-method.builtin.less"
540
- }
541
- }
542
- }
package/package.nls.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "displayName": "Less Language Basics",
3
- "description": "Provides syntax highlighting, bracket matching and folding in Less files."
4
- }