@@ -212,19 +212,7 @@ contexts:
212
212
1 : punctuation.definition.variable.crontab
213
213
2 : meta.completion.at.crontab
214
214
215
- # ##[ MISCELLANEOUS ]###########################################################
216
-
217
- comments :
218
- - match : ^\s*(?=#)
219
- push : comment
220
-
221
- comment :
222
- - match : ' #'
223
- scope : punctuation.definition.comment.crontab
224
- push :
225
- - meta_scope : comment.line.number-sign.crontab
226
- - include : pop-nl
227
- - include : pop-nl
215
+ # ##[ ENVIRONMENT VARIABLES ]###################################################
228
216
229
217
variables :
230
218
- match : ^([a-zA-Z0-9_]+)\s*(=)
@@ -237,23 +225,43 @@ contexts:
237
225
- include : pop-nl
238
226
- match : ' "'
239
227
scope : punctuation.definition.string.begin.crontab
240
- set :
241
- - meta_scope : string.quoted.double.crontab
242
- - match : ' "'
243
- scope : punctuation.definition.string.end.crontab
244
- pop : true
228
+ set : string-body-double
245
229
- match : " '"
246
230
scope : punctuation.definition.string.begin.crontab
247
- set :
248
- - meta_scope : string.quoted.single.crontab
249
- - match : " '"
250
- scope : punctuation.definition.string.end.crontab
251
- pop : true
231
+ set : string-body-single
252
232
- match : \S
233
+ push : string-body-unquoted
234
+
235
+ string-body-double :
236
+ - meta_scope : meta.string.crontab string.quoted.double.crontab
237
+ - match : ' "'
238
+ scope : punctuation.definition.string.end.crontab
239
+ pop : 1
240
+
241
+ string-body-single :
242
+ - meta_scope : meta.string.crontab string.quoted.single.crontab
243
+ - match : " '"
244
+ scope : punctuation.definition.string.end.crontab
245
+ pop : 1
246
+
247
+ string-body-unquoted :
248
+ - meta_scope : meta.string.crontab string.unquoted.crontab
249
+ - match : (?=\s*$)
250
+ pop : 1
251
+
252
+ # ##[ MISCELLANEOUS ]###########################################################
253
+
254
+ comments :
255
+ - match : ^\s*(?=#)
256
+ push : comment
257
+
258
+ comment :
259
+ - match : ' #'
260
+ scope : punctuation.definition.comment.crontab
253
261
push :
254
- - meta_scope : string.unquoted .crontab
255
- - match : (?=\s*$)
256
- pop : true
262
+ - meta_scope : comment.line.number-sign .crontab
263
+ - include : pop-nl
264
+ - include : pop-nl
257
265
258
266
illegal-punctuation :
259
267
- match : \*{2,}|[/,?-]{2,}|,(?=[ \t])
@@ -271,7 +279,7 @@ contexts:
271
279
272
280
pop-nl :
273
281
- match : $\n?
274
- pop : true
282
+ pop : 1
275
283
276
284
# ##############################################################################
277
285
0 commit comments