-
Notifications
You must be signed in to change notification settings - Fork 45
/
smali.JSON-tmLanguage
814 lines (813 loc) · 48.7 KB
/
smali.JSON-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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
{
"name": "Smali",
"scopeName": "source.smali",
"fileTypes": [
"Smali"
],
"foldingStartMarker": "[\\s\\t]*\\.method",
"foldingStopMarker": "[\\s\\t]*\\.end method",
"patterns": [
{ "include": "#annotation" },
{ "include": "#annotation-end" },
{ "include": "#annotation-value_list" },
{ "include": "#annotation-value" },
{ "include": "#annotation-name" },
{ "include": "#annotation-access" },
{ "include": "#comment-alone" },
{ "include": "#comment-inline" },
{ "include": "#field" },
{ "include": "#field-end" },
{
"comment": "Class name",
"match": "^[\\s\\t]*(\\.class)[\\s\\t]*((?:(?:interface|public|protected|private|abstract|static|final|synchronized|transient|volatile|native|strictfp|synthetic|enum|annotation)[\\s\\t]+)*)[\\s\\t]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "constant.language.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "entity.name.tag.smali" },
"4": { "name": "string.quoted.double.smali" },
"5": { "name": "entity.name.tag.smali" }
}
},
{
"comment": "Super / implements class name",
"match": "^[\\s\\t]*(\\.(?:super|implements))[\\s\\t]+(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "constant.language.smali" },
"2": { "name": "entity.name.tag.smali" },
"3": { "name": "string.quoted.double.smali" },
"4": { "name": "entity.name.tag.smali" }
}
},
{
"comment": "Source file",
"match": "^[\\s\\t]*(\\.source)[\\s\\t]+(\")(.*?)((?<!\\\\)\")(?=[\\s\\t]*(#.*)?$)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "constant.language.smali" },
"2": { "name": "entity.name.tag.smali" },
"3": { "name": "string.quoted.double.smali" },
"4": { "name": "entity.name.tag.smali" }
}
},
{
"comment": "Method signature and body",
"begin": "^[\\s\\t]*(\\.method)[\\s\\t]*((?:(?:bridge|varargs|declared-synchronized|public|protected|private|abstract|static|final|synchronized|transient|volatile|native|strictfp|synthetic|enum)[\\s\\t]+)*)(constructor )?(<init>|<clinit>|(?:[\\$\\p{L}_\\-][\\p{L}\\d_\\$]*))\\(((?:[\\[]*(?:Z|B|S|C|I|J|F|D|L(?:[\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*);))*)\\)(?:(V)|[\\[]*(Z|B|S|C|I|J|F|D)|[\\[]*(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))(?=[\\s\\t]*(#.*)?$)",
"beginCaptures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "entity.name.function.smali" },
"5": { "name": "constant.numeric.smali" },
"6": { "name": "constant.numeric.smali" },
"7": { "name": "constant.numeric.smali" },
"8": { "name": "entity.name.tag.smali" },
"9": { "name": "constant.numeric.smali" },
"10": { "name": "entity.name.tag.smali" },
"11": { "name": "constant.numeric.smali" },
"12": { "name": "entity.name.tag.smali" }
},
"end": "^[\\s\\t]*(\\.end method)(?=[\\s\\t]*(#.*)?$)",
"endCaptures": {
"1": { "name": "constant.language.smali" }
},
"patterns": [
{ "include": "#comment-inline" },
{
"comment": "Prologue",
"name": "constant.language.smali",
"match": "^[\\s\\t]*(\\.prologue)(?=[\\s\\t]*(#.*)?$)"
},
{
"comment": "Local",
"match": "^[\\s\\t]*(\\.local)[\\s\\t]+([vp]\\d+),[\\s\\t]+(\"[\\p{L}_\\$][\\w\\$]*\"):[\\[]*(?:(?:(Z|B|S|C|I|J|F|D)|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))(?:,(\")(.*?)((?<!\\\\)\"))?(?:,[\\s\\t]*(\")(.*?)((?<!\\\\)\"))?(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "string.interpolated.smali" },
"4": { "name": "constant.numeric.smali" },
"5": { "name": "entity.name.tag.smali" },
"6": { "name": "constant.numeric.smali" },
"7": { "name": "entity.name.tag.smali" },
"8": { "name": "entity.name.tag.smali" },
"9": { "name": "string.interpolated.smali" },
"10": { "name": "entity.name.tag.smali" },
"11": { "name": "entity.name.tag.smali" },
"12": { "name": "string.interpolated.smali" },
"13": { "name": "entity.name.tag.smali" }
}
},
{
"comment": "Catch exceptions",
"match": "^[\\s\\t]*(\\.catch)[\\s\\t]+(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))[\\s\\t]+{(:[A-Za-z_\\d]+)[\\s\\t]+\\.\\.[\\s\\t]+(:[A-Za-z_\\d]+)}[\\s\\t]+(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "entity.name.tag.smali" },
"3": { "name": "constant.numeric.smali" },
"4": { "name": "entity.name.tag.smali" },
"5": { "name": "keyword.control.smali" },
"6": { "name": "keyword.control.smali" },
"7": { "name": "keyword.control.smali" }
}
},
{
"comment": "Gotta catch 'em all!",
"match": "^[\\s\\t]*(\\.catchall)[\\s\\t]+{(:[A-Za-z_\\d]+)[\\s\\t]+\\.\\.[\\s\\t]+(:[A-Za-z_\\d]+)}[\\s\\t]+(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "keyword.control.smali" },
"3": { "name": "keyword.control.smali" },
"4": { "name": "keyword.control.smali" }
}
},
{
"comment": "End / Restart Local",
"name": "constant.language.smali",
"match": "^[\\s\\t]*(\\.(?:end|restart)[\\s\\t]+local)[\\s\\t]+[vp]\\d+(?=[\\s\\t]*(#.*)?$)"
},
{
"comment": "Sparse Switch",
"begin": "^[\\s\\t]*(\\.sparse-switch)(?=[\\s\\t]*(#.*)?$)",
"beginCaptures": { "1": { "name": "constant.language.smali" } },
"end": "^[\\s\\t]*(\\.end sparse-switch)(?=[\\s\\t]*(#.*)?$)",
"endCaptures": { "1": { "name": "constant.language.smali" } },
"patterns": [
{ "include": "#comment-inline" },
{
"match": "^[\\s\\t]*(-?0x(?i:0|[1-9a-f][\\da-f]*))[\\s\\t]+->[\\s\\t]+(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "variable.parameter.smali" },
"2": { "name": "keyword.control.smali" }
}
}
]
},
{
"comment": "Begin Packed Switch, no idea what literal limit is for these. Have seen up to 0x7f090005",
"match": "^[\\s\\t]*(\\.packed-switch)[\\s\\t]+(-0x1|0x(?i:0|[1-9a-f][\\da-f]*))(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "variable.parameter.smali" }
}
},
{
"comment": "End Packed Switch",
"name": "constant.language.smali",
"match": "^[\\s\\t]*(\\.end packed-switch)(?=[\\s\\t]*(#.*)?$)"
},
{
"comment": "Array data",
"begin": "^[\\s\\t]*(\\.array-data)[\\s\\t]+(1|2|4|8)(?=[\\s\\t]*(#.*)?$)",
"beginCaptures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "variable.parameter.smali" }
},
"end": "^[\\s\\t]*(\\.end array-data)(?=[\\s\\t]*(#.*)?$)",
"endCaptures": { "1": { "name": "constant.language.smali" } },
"patterns": [
{ "include": "#comment-inline" },
{
"match": "^[\\s\\t]*(?i:((?:-0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}|8[0]{7})|0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}))[st]?|(?:(?:-0x(?:0|[1-9a-f][\\da-f]{0,14}|[1-7][\\da-f]{15}|8[0]{15})|0x(?:0|[1-9a-f][\\da-f]{0,14}|[1-7][\\da-f]{15}))L))\\b)(?=[\\s\\t]*(#.*)?$)",
"captures": { "1": { "name": "variable.parameter.smali" } }
}
]
},
{ "include": "#field" },
{ "include": "#field-end" },
{ "include": "#annotation" },
{ "include": "#annotation-end" },
{ "include": "#annotation-value_list" },
{ "include": "#annotation-value" },
{ "include": "#annotation-name" },
{ "include": "#annotation-access" },
{ "include": "#comment-alone" },
{ "include": "#directive-method-line" },
{ "include": "#directive-method-registers_locals" },
{ "include": "#directive-method-label" },
{ "include": "#directive-method-parameter" },
{ "include": "#directive-method-parameter-end" },
{ "include": "#directives-method-relaxed" },
{ "include": "#opcode-format-10x" },
{ "include": "#opcode-format-10x-relaxed" },
{ "include": "#opcode-format-11n" },
{ "include": "#opcode-format-11n-relaxed" },
{ "include": "#opcode-format-11x" },
{ "include": "#opcode-format-11x-relaxed" },
{ "include": "#opcode-format-22x" },
{ "include": "#opcode-format-22x-relaxed" },
{ "include": "#opcode-format-32x" },
{ "include": "#opcode-format-32x-relaxed" },
{ "include": "#opcode-format-12x" },
{ "include": "#opcode-format-12x-relaxed" },
{ "include": "#opcode-format-21c-string" },
{ "include": "#opcode-format-21c-type" },
{ "include": "#opcode-format-21c-field" },
{ "include": "#opcode-format-21c-relaxed" },
{ "include": "#opcode-format-21h" },
{ "include": "#opcode-format-21h-relaxed" },
{ "include": "#opcode-format-21s" },
{ "include": "#opcode-format-21s-relaxed" },
{ "include": "#opcode-format-21t" },
{ "include": "#opcode-format-21t-relaxed" },
{ "include": "#opcode-format-31t" },
{ "include": "#opcode-format-31t-relaxed" },
{ "include": "#opcode-format-22b" },
{ "include": "#opcode-format-22b-relaxed" },
{ "include": "#opcode-format-22c-type" },
{ "include": "#opcode-format-22c-type_array" },
{ "include": "#opcode-format-22c-field" },
{ "include": "#opcode-format-22c-relaxed" },
{ "include": "#opcode-format-22s" },
{ "include": "#opcode-format-22s-relaxed" },
{ "include": "#opcode-format-22t" },
{ "include": "#opcode-format-22t-relaxed" },
{ "include": "#opcode-format-23x" },
{ "include": "#opcode-format-23x-relaxed" },
{ "include": "#opcode-format-3rc-type" },
{ "include": "#opcode-format-3rc-meth" },
{ "include": "#opcode-format-3rc-relaxed" },
{ "include": "#opcode-format-35c-type" },
{ "include": "#opcode-format-35c-meth" },
{ "include": "#opcode-format-35c-relaxed" },
{ "include": "#opcode-format-51l" },
{ "include": "#opcode-format-51l-relaxed" },
{ "include": "#opcode-format-31i" },
{ "include": "#opcode-format-31i-relaxed" },
{ "include": "#opcode-format-10t-20t-30t" },
{ "include": "#opcode-format-10t-20t-30t-relaxed" }
]
},
{
"comment": "Method directives - relaxed",
"match": "^[\\s\\t]*(\\.(?:class|super|implements|method|(end )?(?:method|annotation|field)))",
"captures": { "1": { "name": "invalid.illegal.smali" }}
}
],
"repository": {
"field": {
"comment": "Field",
"match": "^[\\s\\t]*(\\.field)[\\s\\t]+((?:(?:bridge|varargs|declared-synchronized|public|protected|private|abstract|static|final|synchronized|transient|volatile|native|strictfp|synthetic|enum)[\\s\\t]+)*)([\\p{L}_\\$\\-][\\w\\$]*):[\\[]*(?:(?:(Z|B|S|C|I|J|F|D)|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))(?:[\\s\\t]+=[\\s\\t]+(?:(null|true|false)|(?i:(\\d+(?:\\.\\d+)?[fldst]?))|(?i:((?:-0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}|8[0]{7})|0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}))|(?:(?:-0x(?:0|[1-9a-f][\\da-f]{0,14}|[1-7][\\da-f]{15}|8[0]{15})|0x(?:0|[1-9a-f][\\da-f]{0,14}|[1-7][\\da-f]{15}))[fldst]?))\\b)|([\"'])(.*?)((?<!\\\\)[\"'])))?(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali"},
"2": { "name": "variable.parameter.smali" },
"3": { "name": "string.interpolated.smali" },
"4": { "name": "constant.numeric.smali" },
"5": { "name": "entity.name.tag.smali" },
"6": { "name": "constant.numeric.smali" },
"7": { "name": "entity.name.tag.smali" },
"8": { "name": "constant.language.smali" },
"9": { "name": "constant.numeric.smali" },
"10": { "name": "constant.numeric.smali" },
"11": { "name": "entity.name.tag.smali" },
"12": { "name": "string.quoted.double.smali" },
"13": { "name": "entity.name.tag.smali" }
}
},
"field-end": {
"comment": "Parsing this is hard to do right. This is Good Enough™.",
"match": "^[\\s\\t]*(\\.end field)(?=[\\s\\t]*(#.*)?$)",
"captures": { "1": { "name": "constant.language.smali"} }
},
"annotation": {
"match": "^[\\s\\t]*(\\.annotation)[\\s\\t]+(build|runtime|system)[\\s\\t]+(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali"},
"2": { "name": "storage.modifier.smali" },
"3": { "name": "entity.name.tag.smali" },
"4": { "name": "constant.numeric.smali" },
"5": { "name": "entity.name.tag.smali" }
}
},
"annotation-end": {
"comment": "Parsing this is hard to do right. This is Good Enough™.",
"match": "^[\\s\\t]*(\\.end annotation)(?=[\\s\\t]*(#.*)?$)",
"captures": { "1": { "name": "constant.language.smali"} }
},
"annotation-access": {
"comment": "accessFlags property in annotation. Haven't seen any of these go over 0x4019.",
"match": "^[\\s\\t]*(accessFlags)[\\s\\t]*=[\\s\\t]*(0x(?:0|[1-9a-f][\\da-f]{0,3}))(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "support.function.smali" },
"2": { "name": "constant.numeric.smali" }
}
},
"annotation-name": {
"comment": "Name property in annotation",
"match": "^[\\s\\t]*(name)[\\s\\t]*=[\\s\\t]*(?:(null)|(\")(.*?)((?<!\\\\)\")?)(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "support.function.smali" },
"2": { "name": "constant.language.smali" },
"3": { "name": "entity.name.tag.smali" },
"4": { "name": "string.quoted.double.smali" },
"5": { "name": "entity.name.tag.smali" }
}
},
"annotation-value": {
"comment": "This is another hack because sublime can't handle multi-line regex, particulaly for 'end'.",
"match": "^[\\s\\t]*(value)[\\s\\t]*=[\\s\\t]*(?:(\")(.*?)((?<!\\\\)\")?|(?:\\.(enum|subannotation)[\\s\\t]+)?(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?:->(?:([\\p{L}_\\$][\\w\\$]*):[\\[]*(?:(?:(Z|B|S|C|I|J|F|D)|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))|(<init>|<clinit>|(?:[\\$\\p{L}_][\\p{L}\\d_\\$]*))\\(((?:[\\[]*(?:Z|B|S|C|I|J|F|D|L(?:[\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*);))*)\\)(?:(V)|[\\[]*(Z|B|S|C|I|J|F|D)|[\\[]*(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))))?(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "support.function.smali" },
"2": { "name": "entity.name.tag.smali" },
"3": { "name": "string.quoted.double.smali" },
"4": { "name": "entity.name.tag.smali" },
"5": { "name": "entity.name.tag.smali" },
"6": { "name": "entity.name.tag.smali" },
"7": { "name": "constant.numeric.smali" },
"8": { "name": "entity.name.tag.smali" },
"9": { "name": "string.interpolated.smali" },
"10": { "name": "constant.numeric.smali" },
"11": { "name": "entity.name.tag.smali" },
"12": { "name": "constant.numeric.smali" },
"13": { "name": "entity.name.tag.smali" },
"14": { "name": "entity.name.function.smali" },
"15": { "name": "constant.numeric.smali" },
"16": { "name": "constant.numeric.smali" },
"17": { "name": "constant.numeric.smali" },
"18": { "name": "entity.name.tag.smali" },
"19": { "name": "constant.numeric.smali" },
"20": { "name": "entity.name.tag.smali" },
"21": { "name": "constant.numeric.smali" },
"22": { "name": "entity.name.tag.smali" }
}
},
"annotation-value_list": {
"comment": "This is another hack. Deals.",
"begin": "^[\\s\\t]*(value)[\\s\\t]*=[\\s\\t]*{(?=[\\s\\t]*(#.*)?$)",
"beginCaptures": { "1": { "name": "support.function.smali" } },
"end": "^[\\s\\t]*}(?=[\\s\\t]*(#.*)?$)",
"patterns": [
{ "include": "#comment-inline" },
{
"match": "(?:(\")(.*?)((?<!\\\\)\")?|(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?:,)?(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "entity.name.tag.smali" },
"2": { "name": "string.quoted.double.smali" },
"3": { "name": "entity.name.tag.smali" },
"4": { "name": "entity.name.tag.smali" },
"5": { "name": "constant.numeric.smali" },
"6": { "name": "entity.name.tag.smali" }
}
}
]
},
"directive-method-registers_locals": {
"comment": "Registers / Locals",
"match": "[\\s\\t]*(\\.(?:registers|locals))[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "variable.parameter.smali" }
}
},
"directive-method-line": {
"comment": "Line",
"match": "[\\s\\t]*(\\.line)[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "constant.language.smali" },
"2": { "name": "variable.parameter.smali" }
}
},
"directive-method-parameter": {
"comment": "Parameter",
"match": "[\\s\\t]*(\\.param(?:eter)?)[\\s\\t]+(p(?:0|[1-9][\\d]?|[1-4][\\d]{2}|50[\\d]|51[0-2])\\b)(?:,[\\s\\t]*(\")(.*?)((?<!\\\\)\"))?(?=[\\s\\t]*(#.*)?$)",
"captures": {
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "entity.name.tag.smali" },
"4": { "name": "string.quoted.double.smali" },
"5": { "name": "entity.name.tag.smali" }
}
},
"directive-method-parameter-end": {
"comment": "Parsing this is hard to do right. This is Good Enough™.",
"match": "^[\\s\\t]*(\\.end param)(?=[\\s\\t]*(#.*)?$)",
"captures": { "1": { "name": "constant.language.smali"} }
},
"directive-method-label": {
"comment": "Label",
"match": "^[\\s\\t]*(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures":{ "1": { "name": "keyword.control.smali" } }
},
"directives-method-relaxed": {
"match": "^[\\s\\t]*(:|\\.(?:parameter|line|registers|locals|(?:restart )?local|prologue|(?:end )?(annotation|(sparse|packed)-switch|local)|catch(?:all)?))",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"comment-alone": {
"comment": "Single line, stand alone comment",
"match": "^[\\s\\t]*(#.*)$",
"captures": { "1": { "name": "comment.line.number-sign.smali"} }
},
"comment-inline": {
"comment": "In-line comment",
"match": "(#.*)$",
"captures": { "1": { "name": "comment.line.number-sign.smali"} }
},
"opcode-format-10x": {
"comment": "Format: op",
"match": "^[\\s\\t]*(nop|return-void)(?=[\\s\\t]*(#.*)?$)",
"captures": { "1": { "name": "support.function.smali" } }
},
"opcode-format-10x-relaxed": {
"match": "^[\\s\\t]*(nop|return-void)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-11n": {
"comment": "Format: op vA, #+B",
"match": "^[\\s\\t]*(const\/4)[\\s\\t]+([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*(?i:(-0x[0-8]|0x[0-7]))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "constant.numeric.smali" }
}
},
"opcode-format-11n-relaxed": {
"match": "^[\\s\\t]*(const\/4)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-11x": {
"comment": "Format: op vAA",
"match": "^[\\s\\t]*(move-(?:result(?:-wide|-object)?|exception)|return(?:-wide|-object)?|monitor-(?:enter|exit)|throw)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" }
}
},
"opcode-format-11x-relaxed": {
"match": "^[\\s\\t]*(move-(?:result(?:-wide|-object)?|exception)|return(?:-wide|-object)?|monitor-(?:enter|exit)|throw)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-22x": {
"comment": "Format: op vAA, vBBBB",
"match": "^[\\s\\t]*(move(?:-wide|-object)?\/from16)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9][\\d]{0,3}|[1-5][\\d]{4}|6[0-4][\\d]{3}|65[0-4][\\d]{2}|655[0-2][\\d]|6553[0-5])\\b)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" }
}
},
"opcode-format-22x-relaxed": {
"match": "^[\\s\\t]*(move(?:-wide|-object)?\/from16)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-32x": {
"comment": "Format: op vAAAA, vBBBB",
"match": "^[\\s\\t]*(move(?:-wide|-object)?\/16)[\\s\\t]+([vp](?:0|[1-9][\\d]{0,3}|[1-5][\\d]{4}|6[0-4][\\d]{3}|65[0-4][\\d]{2}|655[0-2][\\d]|6553[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9][\\d]{0,3}|[1-5][\\d]{4}|6[0-4][\\d]{3}|65[0-4][\\d]{2}|655[0-2][\\d]|6553[0-5])\\b)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" }
}
},
"opcode-format-32x-relaxed": {
"match": "^[\\s\\t]*(move(?:-wide|-object)?\/16)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-12x": {
"comment": "Format: op vA, vB",
"match": "^[\\s\\t]*(move(?:-wide|-object)?|array-length|neg-(?:int|long|float|double)|not-(?:int|long)|int-to-(?:long|float|double|byte|char|short)|long-to-(?:int|float|double)|float-to-(?:int|long|double)|double-to-(?:int|long|float)|(?:add|sub|mul|div|rem|and|or|xor|shl|shr|ushr)-(?:int|long)\/2addr|(?:add|sub|mul|div|rem)-(?:float|double)\/2addr)[\\s\\t]+([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" }
}
},
"opcode-format-12x-relaxed": {
"match": "^[\\s\\t]*(move(?:-wide|-object)?|array-length|neg-(?:int|long|float|double)|not-(?:int|long)|int-to-(?:long|float|double|byte|char|short)|long-to-(?:int|float|double)|float-to-(?:int|long|double)|double-to-(?:int|long|float)|(?:add|sub|mul|div|rem|and|or|xor|shl|shr|ushr)-(?:int|long)\/2addr|(?:add|sub|mul|div|rem)-(?:float|double)\/2addr)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-21c-string": {
"comment": "Format: op vAA, string@BBBB",
"match": "^[\\s\\t]*(const-string(?:/jumbo)?)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(\")(.*?)((?<!\\\\)\")(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "entity.name.tag.smali" },
"4": { "name": "string.quoted.double.smali" },
"5": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-21c-type": {
"comment": "Format: op vAA, type@BBBB",
"match": "^[\\s\\t]*(const-class|check-cast|new-instance)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*[\\[]*(?:(?:(Z|B|S|C|I|J|F|D)|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "constant.numeric.smali" },
"4": { "name": "entity.name.tag.smali" },
"5": { "name": "constant.numeric.smali" },
"6": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-21c-field": {
"comment": "Format: op vAA, field@BBBB",
"match": "^[\\s\\t]*((?:sget|sput)(?:-wide|-object|-boolean|-byte|-char|-short)?)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)->([\\p{L}_\\$][\\w\\$]*):[\\[]*(?:(?:(Z|B|S|C|I|J|F|D)|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "entity.name.tag.smali" },
"4": { "name": "constant.numeric.smali" },
"5": { "name": "entity.name.tag.smali" },
"6": { "name": "string.interpolated.smali" },
"7": { "name": "constant.numeric.smali" },
"8": { "name": "entity.name.tag.smali" },
"9": { "name": "constant.numeric.smali" },
"10": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-21c-relaxed": {
"match": "^[\\s\\t]*(const-string|const-class|check-cast|new-instance|(?:sget|sput)(?:-wide|-object|-boolean|-byte|-char|-short)?)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-21h": {
"comment": "Format: op vAA, #+BBBB0000(00000000)",
"match": "^[\\s\\t]*(const(?:-wide)?\/high16)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*((?i:-?0x(?:0|[1-9a-f][\\da-f]{0,2}|[1-7][\\da-f]{3}|8000)[0]{0,12}L?))\\b(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "constant.numeric.smali" }
}
},
"opcode-format-21h-relaxed": {
"match": "^[\\s\\t]*(const(?:-wide)?\/high16)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-21s": {
"comment": "Format: op vAA, #+BBBB",
"match": "^[\\s\\t]*(const(?:-wide)?\/16)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(?i:(-0x(?:0|[1-9a-f][\\da-f]{0,2}|[1-7][\\da-f]{3}|8000)|0x(?:0|[1-9a-f][\\da-f]{0,2}|[1-7][\\da-f]{3})))\\b(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "constant.numeric.smali" }
}
},
"opcode-format-21s-relaxed": {
"match": "^[\\s\\t]*(const(?:-wide)?\/16)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-21t": {
"comment": "Format: op vAA, +BBBB",
"match": "^[\\s\\t]*(if-(?:eq|ne|lt|ge|gt|le)z)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "keyword.control.smali" }
}
},
"opcode-format-21t-relaxed": {
"match": "^[\\s\\t]*(if-(?:eq|ne|lt|ge|gt|le)z)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-31t": {
"comment": "Format: op vAA, +BBBBBBBB",
"match": "^[\\s\\t]*(fill-array-data|(?:packed|sparse)-switch)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "keyword.control" }
}
},
"opcode-format-31t-relaxed": {
"match": "^[\\s\\t]*(fill-array-data|(?:packed|sparse)-switch)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-22b": {
"comment": "Format: op vAA, vBB, #+CC",
"match": "^[\\s\\t]*((?:add|rsub|mul|div|rem|and|or|xor|shl|shr|ushr)-int\/lit8)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(?i:(-0x(?:[\\da-f]|[1-7][\\da-f]|80)|0x(?:[\\da-f]|[1-7][\\da-f])))\\b(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "constant.numeric.smali" }
}
},
"opcode-format-22b-relaxed": {
"match": "^[\\s\\t]*((?:add|rsub|mul|div|rem|and|or|xor|shl|shr|ushr)-int\/lit8)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-22c-type": {
"comment": "Format: op vA, vB, type@CCCC",
"match": "^[\\s\\t]*(instance-of)[\\s\\t]+([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*[\\[]*(?:(Z|B|S|C|I|J|F|D)|(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "constant.numeric.smali" },
"5": { "name": "entity.name.tag.smali" },
"6": { "name": "constant.numeric.smali" },
"7": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-22c-type_array": {
"comment": "Format: op vA, vB, [type@CCCC",
"match": "^[\\s\\t]*(new-array)[\\s\\t]+([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*[\\[]+(?:(Z|B|S|C|I|J|F|D)|(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "constant.numeric.smali" },
"5": { "name": "entity.name.tag.smali" },
"6": { "name": "constant.numeric.smali" },
"7": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-22c-field": {
"comment": "Format: op vA, vB, field@CCCC",
"match": "^[\\s\\t]*((?:iget|iput)(?:-wide|-object|-boolean|-byte|-char|-short)?)[\\s\\t]+([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)->([\\p{L}_\\$][\\w\\$]*):[\\[]*(?:(Z|B|S|C|I|J|F|D|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "entity.name.tag.smali" },
"5": { "name": "constant.numeric.smali" },
"6": { "name": "entity.name.tag.smali" },
"7": { "name": "string.interpolated.smali" },
"8": { "name": "constant.numeric.smali" },
"9": { "name": "entity.name.tag.smali" },
"10": { "name": "constant.numeric.smali" },
"11": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-22c-relaxed": {
"match": "^[\\s\\t]*(instance-of|new-array|(?:iget|iput)(?:-wide|-object|-boolean|-byte|-char|-short)?)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-22s": {
"comment": "Format: op vA, vB, #+CCCC",
"match": "^[\\s\\t]*((?:(?:add|mul|div|rem|and|or|xor)-int\/lit16)|rsub-int)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(?i:(-0x(?:0|[1-9a-f][\\da-f]{0,2}|[1-7][\\da-f]{3}|8000)|0x(?:0|[1-9a-f][\\da-f]{0,2}|[1-7][\\da-f]{3})))\\b(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "constant.numeric.smali" }
}
},
"opcode-format-22s-relaxed": {
"match": "^[\\s\\t]*((?:(?:add|mul|div|rem|and|or|xor)-int\/lit16)|rsub-int)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-22t": {
"comment": "*Format: op vA, vB, +CCCC",
"match": "^[\\s\\t]*(if-(?:eq|ne|lt|ge|gt|le))[\\s\\t]+([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "keyword.control" }
}
},
"opcode-format-22t-relaxed": {
"match": "(if-(?:eq|ne|lt|ge|gt|le))",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-23x": {
"comment": "Format: op vAA, vBB, vCC",
"match": "^[\\s\\t]*((?:cmpl|cmpg)-(?:float|double)|cmp-long|(?:aget|aput)(?:-wide|-object|-boolean|-byte|-char|-short)?|(?:add|sub|mul|div|rem|and|or|xor|shl|shr|ushr)-(?:int|long)|(?:add|sub|mul|div|rem)-(?:float|double))[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "variable.parameter.smali" }
}
},
"opcode-format-23x-relaxed": {
"match": "^[\\s\\t]*((?:cmpl|cmpg)-(float|double)|cmp-long|(?:aget|aput)(?:-wide|-object|-boolean|-byte|-char|-short)?|(?:add|sub|mul|div|rem|and|or|xor|shl|shr|ushr)-(?:int|long)|(?:add|sub|mul|div|rem)-(?:float|double))",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-3rc-type": {
"comment": "Format: op {vCCCC .. vNNNN}, type@BBBB",
"match": "^[\\s\\t]*(filled-new-array\/range) {([vp](?:0|[1-9][\\d]{0,3}|[1-5][\\d]{4}|6[0-4][\\d]{3}|65[0-4][\\d]{2}|655[0-2][\\d]|6553[0-5])\\b) \\.\\. ([vp](?:0|[1-9][\\d]{0,3}|[1-5][\\d]{4}|6[0-4][\\d]{3}|65[0-4][\\d]{2}|655[0-2][\\d]|6553[0-5])\\b)},[\\s\\t]*[\\[]+(?:(Z|B|S|C|I|J|F|D)|(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "constant.numeric.smali" },
"5": { "name": "entity.name.tag.smali" },
"6": { "name": "constant.numeric.smali" },
"7": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-3rc-meth": {
"comment": "Format: op {vCCCC .. vNNNN}, meth@BBBB",
"match": "^[\\s\\t]*(invoke-(?:virtual|super|direct|static|interface)\/range) {[\\s\\t]*([vp](?:0|[1-9][\\d]{0,3}|[1-5][\\d]{4}|6[0-4][\\d]{3}|65[0-4][\\d]{2}|655[0-2][\\d]|6553[0-5])\\b) \\.\\. ([vp](?:0|[1-9][\\d]{0,3}|[1-5][\\d]{4}|6[0-4][\\d]{3}|65[0-4][\\d]{2}|655[0-2][\\d]|6553[0-5])\\b)[\\s\\t]*},[\\s\\t]*[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)->(<init>|<clinit>|(?:[\\$\\p{L}_][\\p{L}\\d_\\$]*))\\(((?:[\\[]*(?:Z|B|S|C|I|J|F|D|L(?:[\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*);))*)\\)(?:(V)|[\\[]*(Z|B|S|C|I|J|F|D)|[\\[]*(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "entity.name.tag.smali" },
"5": { "name": "constant.numeric.smali" },
"6": { "name": "entity.name.tag.smali" },
"7": { "name": "entity.name.function.smali" },
"8": { "name": "constant.numeric.smali" },
"9": { "name": "constant.numeric.smali" },
"10": { "name": "constant.numeric.smali" },
"11": { "name": "entity.name.tag.smali" },
"12": { "name": "constant.numeric.smali" },
"13": { "name": "entity.name.tag.smali" },
"14": { "name": "constant.numeric.smali" },
"15": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-3rc-relaxed": {
"match": "^[\\s\\t]*((?:filled-new-array|invoke-(?:virtual|super|direct|static|interface))\/range)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-35c-type": {
"comment": "Format: op {vC, vD, vE, vF, vG}, type@BBBB",
"match": "^[\\s\\t]*(filled-new-array) {([vp](?:0|[1-9]|1[0-5])\\b),[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b)(?:,[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b))?(?:,[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b))?(?:,[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b))?},[\\s\\t]*[\\[]+(?:(Z|B|S|C|I|J|F|D)|(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "variable.parameter.smali" },
"5": { "name": "variable.parameter.smali" },
"6": { "name": "variable.parameter.smali" },
"7": { "name": "constant.numeric.smali" },
"8": { "name": "entity.name.tag.smali" },
"9": { "name": "constant.numeric.smali" },
"10": { "name": "entity.name.tag.smali" },
"11": { "name": "constant.numeric.smali" }
}
},
"opcode-format-35c-meth": {
"comment": "Format: op {vC, vD, vE, vF, vG}, meth@BBBB",
"match": "^[\\s\\t]*(invoke-(?:virtual|super|direct|static|interface)) {[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b)?(?:,[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b))?(?:,[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b))?(?:,[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b))?(?:,[\\s\\t]*([vp](?:0|[1-9]|1[0-5])\\b))?[\\s\\t]*},[\\s\\t]*[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)->(<init>|<clinit>|(?:[\\$\\p{L}_][\\p{L}\\d_\\$]*))\\((?:[\\[]*(Z|B|S|C|I|J|F|D)|(?:[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))?(?:[\\[]*(Z|B|S|C|I|J|F|D)|(?:[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))?(?:[\\[]*(Z|B|S|C|I|J|F|D)|(?:[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))?(?:[\\[]*(Z|B|S|C|I|J|F|D)|(?:[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))?(?:[\\[]*(Z|B|S|C|I|J|F|D)|(?:[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))?\\)(?:(?:(V)|[\\[]*(Z|B|S|C|I|J|F|D))|(?:[\\[]*(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:\/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)))(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "variable.parameter.smali" },
"4": { "name": "variable.parameter.smali" },
"5": { "name": "variable.parameter.smali" },
"6": { "name": "variable.parameter.smali" },
"7": { "name": "entity.name.tag.smali" },
"8": { "name": "constant.numeric.smali" },
"9": { "name": "entity.name.tag.smali" },
"10": { "name": "entity.name.function.smali" },
"11": { "name": "constant.numeric.smali" },
"12": { "name": "entity.name.tag.smali" },
"13": { "name": "constant.numeric.smali" },
"14": { "name": "entity.name.tag.smali" },
"15": { "name": "constant.numeric.smali" },
"16": { "name": "entity.name.tag.smali" },
"17": { "name": "constant.numeric.smali" },
"18": { "name": "entity.name.tag.smali" },
"19": { "name": "constant.numeric.smali" },
"20": { "name": "entity.name.tag.smali" },
"21": { "name": "constant.numeric.smali" },
"22": { "name": "entity.name.tag.smali" },
"23": { "name": "constant.numeric.smali" },
"24": { "name": "entity.name.tag.smali" },
"25": { "name": "constant.numeric.smali" },
"26": { "name": "entity.name.tag.smali" },
"27": { "name": "constant.numeric.smali" },
"28": { "name": "entity.name.tag.smali" },
"29": { "name": "constant.numeric.smali" },
"30": { "name": "entity.name.tag.smali" },
"31": { "name": "constant.numeric.smali" },
"32": { "name": "constant.numeric.smali" },
"33": { "name": "entity.name.tag.smali" },
"34": { "name": "constant.numeric.smali" },
"35": { "name": "entity.name.tag.smali" }
}
},
"opcode-format-35c-relaxed": {
"match": "^[\\s\\t]*(filled-new-array|invoke-(?:virtual|super|direct|static|interface))",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-51l": {
"comment": "Format: op vAA, #+BBBBBBBBBBBBBBBB",
"match": "^[\\s\\t]*(const-wide)(?!\/32)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(?i:((?:-0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}|8[0]{7})|0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}))|(?:(?:-0x(?:0|[1-9a-f][\\da-f]{0,14}|[1-7][\\da-f]{15}|8[0]{15})|0x(?:0|[1-9a-f][\\da-f]{0,14}|[1-7][\\da-f]{15}))L))\\b)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "constant.numeric.smali" }
}
},
"opcode-format-51l-relaxed": {
"match": "^[\\s\\t]*(const-wide)(?!\\\/32)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-31i": {
"comment": "Format: op vAA, #+BBBBBBBB",
"match": "^[\\s\\t]*(const(?:-wide\/32)?)[\\s\\t]+([vp](?:0|[1-9][\\d]?|1[\\d]{2}|2[0-4][\\d]|25[0-5])\\b),[\\s\\t]*(?i:(-0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}|8[0]{7})|0x(?:0|[1-9a-f][\\da-f]{0,6}|[1-7][\\da-f]{7}))\\b)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "variable.parameter.smali" },
"3": { "name": "constant.numeric.smali" }
}
},
"opcode-format-31i-relaxed": {
"match": "^[\\s\\t]*(const(?:-wide\/32)?)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
},
"opcode-format-10t-20t-30t": {
"comment": "Format: op +AA(AA(AAAA))",
"match": "^[\\s\\t]*(goto(?:\/16|\/32)?) (:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
"captures":{
"1": { "name": "support.function.smali" },
"2": { "name": "keyword.control" }
}
},
"opcode-format-10t-20t-30t-relaxed": {
"match": "^[\\s\\t]*(goto(?:\/16|\/32)?)",
"captures": { "1": { "name": "invalid.illegal.smali" }}
}
},
"uuid": "d6fe4632-f21a-4533-8908-723df0b58ac0"
}