File tree Expand file tree Collapse file tree 1 file changed +62
-1
lines changed Expand file tree Collapse file tree 1 file changed +62
-1
lines changed Original file line number Diff line number Diff line change 283
283
}
284
284
},
285
285
{
286
- "begin" : " (?i)^(\\ b(?:Client)?(?:Class)?Method\\ b)(\\ s+)((?:%|%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)|(?:\" [^\" .]+\" ))" ,
286
+ "begin" : " (?i)^(\\ bClient(?:Class)?Method\\ b)(\\ s+)((?:%|%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)|(?:\" [^\" .]+\" ))" ,
287
+ "beginCaptures" : {
288
+ "1" : {
289
+ "name" : " keyword.objectscript_class"
290
+ },
291
+ "2" : {
292
+ "name" : " whitespace.objectscript_class"
293
+ },
294
+ "3" : {
295
+ "name" : " entity.name.function.objectscript_class"
296
+ }
297
+ },
298
+ "patterns" : [
299
+ {
300
+ "include" : " #jsmethod"
301
+ }
302
+ ],
303
+ "end" : " ^(})$" ,
304
+ "endCaptures" : {
305
+ "1" : {
306
+ "name" : " punctuation.objectscript_class"
307
+ }
308
+ }
309
+ },
310
+ {
311
+ "begin" : " (?i)^(\\ b(?:Class)?Method\\ b)(\\ s+)((?:%|%?[a-zA-Z][0-9a-zA-Z]*(?:_[0-9a-zA-Z]+)*)|(?:\" [^\" .]+\" ))" ,
287
312
"beginCaptures" : {
288
313
"1" : {
289
314
"name" : " keyword.objectscript_class"
460
485
}
461
486
]
462
487
},
488
+ "jscode" : {
489
+ "patterns" : [
490
+ {
491
+ "begin" : " ^({)" ,
492
+ "beginCaptures" : {
493
+ "1" : {
494
+ "name" : " punctuation.objectscript_class"
495
+ }
496
+ },
497
+ "patterns" : [
498
+ {
499
+ "include" : " source.js"
500
+ }
501
+ ],
502
+ "contentName" : " text.js" ,
503
+ "end" : " ^(?=})" ,
504
+ "endCaptures" : []
505
+ }
506
+ ]
507
+ },
463
508
"comments" : {
464
509
"patterns" : [
465
510
{
601
646
}
602
647
]
603
648
},
649
+ "jsmethod" : {
650
+ "patterns" : [
651
+ {
652
+ "include" : " #formal_spec"
653
+ },
654
+ {
655
+ "include" : " #as"
656
+ },
657
+ {
658
+ "include" : " #params"
659
+ },
660
+ {
661
+ "include" : " #jscode"
662
+ }
663
+ ]
664
+ },
604
665
"params" : {
605
666
"patterns" : [
606
667
{
You can’t perform that action at this time.
0 commit comments