github-linguist 5.3.3 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +5 -2
- data/ext/linguist/linguist.c +18 -7
- data/grammars/annotation.liquidhaskell.haskell.json +969 -862
- data/grammars/config.xcompose.json +22 -25
- data/grammars/file.lasso.json +296 -309
- data/grammars/hint.haskell.json +867 -766
- data/grammars/hint.message.haskell.json +867 -766
- data/grammars/hint.type.haskell.json +867 -766
- data/grammars/objdump.x86asm.json +20 -24
- data/grammars/source.Kotlin.json +220 -225
- data/grammars/source.LS.json +36 -55
- data/grammars/source.MCPOST.json +24 -38
- data/grammars/source.MOD.json +26 -41
- data/grammars/source.SASLog.json +9 -16
- data/grammars/source.abap.json +48 -56
- data/grammars/source.abl.json +8 -14
- data/grammars/source.abnf.json +88 -98
- data/grammars/source.actionscript.3.json +398 -429
- data/grammars/source.acucobol.json +5 -8
- data/grammars/source.ada.json +46 -53
- data/grammars/source.afm.json +548 -554
- data/grammars/source.agc.json +34 -37
- data/grammars/source.agda.json +79 -91
- data/grammars/source.ahk.json +62 -66
- data/grammars/source.alloy.json +16 -20
- data/grammars/source.ampl.json +41 -47
- data/grammars/source.angelscript.json +71 -80
- data/grammars/source.antlr.json +131 -136
- data/grammars/source.apache-config.json +93 -99
- data/grammars/source.apache-config.mod_perl.json +19 -24
- data/grammars/source.apl.json +1038 -1029
- data/grammars/source.applescript.json +501 -523
- data/grammars/source.apt.json +9 -16
- data/grammars/source.asn.json +27 -31
- data/grammars/source.asp.json +61 -67
- data/grammars/source.aspectj.json +385 -391
- data/grammars/source.assembly.json +49 -55
- data/grammars/source.ats.json +45 -121
- data/grammars/source.autoit.json +64 -69
- data/grammars/source.awk.json +172 -176
- data/grammars/source.ballerina.json +48 -395
- data/grammars/source.batchfile.json +269 -269
- data/grammars/source.befunge.json +17 -21
- data/grammars/source.bf.json +5 -11
- data/grammars/source.bison.json +10 -14
- data/grammars/source.blitzmax.json +300 -305
- data/grammars/source.boo.json +189 -193
- data/grammars/source.brightauthorproject.json +8 -13
- data/grammars/source.brightscript.json +37 -47
- data/grammars/source.bro.json +134 -140
- data/grammars/source.bsl.json +152 -193
- data/grammars/source.bsv.json +96 -102
- data/grammars/source.c++.json +176 -193
- data/grammars/source.c++.qt.json +13 -21
- data/grammars/source.c.ec.json +15 -21
- data/grammars/source.c.json +237 -251
- data/grammars/source.c.platform.json +153 -159
- data/grammars/source.c2hs.json +3 -6
- data/grammars/source.cabal.json +17 -20
- data/grammars/source.cache.cmake.json +18 -23
- data/grammars/source.cake.json +4 -7
- data/grammars/source.camlp4.ocaml.json +24 -27
- data/grammars/source.capnp.json +33 -38
- data/grammars/source.ceylon.json +44 -50
- data/grammars/source.cfscript.cfc.json +78 -86
- data/grammars/source.cfscript.json +513 -520
- data/grammars/source.changelogs.rpm-spec.json +8 -16
- data/grammars/source.chapel.json +109 -87
- data/grammars/source.cirru.json +25 -30
- data/grammars/source.clarion.json +41 -54
- data/grammars/source.clean.json +90 -95
- data/grammars/source.click.json +25 -28
- data/grammars/source.clips.json +10 -23
- data/grammars/source.clojure.json +151 -168
- data/grammars/source.cm.json +14 -19
- data/grammars/source.cmake.json +53 -61
- data/grammars/source.cobol.json +165 -180
- data/grammars/source.coffee.json +454 -462
- data/grammars/source.cool.json +36 -43
- data/grammars/source.coq.json +17 -21
- data/grammars/source.crystal.json +889 -983
- data/grammars/source.cs.json +739 -740
- data/grammars/source.csound-document.json +69 -73
- data/grammars/source.csound-score.json +52 -55
- data/grammars/source.csound.json +167 -171
- data/grammars/source.css.json +683 -688
- data/grammars/source.css.less.json +211 -511
- data/grammars/source.css.mss.json +94 -101
- data/grammars/source.css.postcss.sugarss.json +260 -0
- data/grammars/source.csx.json +4 -7
- data/grammars/source.cuda-c++.json +47 -81
- data/grammars/source.cwl.json +103 -0
- data/grammars/source.cython.json +536 -582
- data/grammars/source.d.json +243 -252
- data/grammars/source.dart.json +161 -166
- data/grammars/source.data-weave.json +901 -905
- data/grammars/source.desktop.json +29 -33
- data/grammars/source.diff.json +43 -52
- data/grammars/source.disasm.json +15 -16
- data/grammars/source.ditroff.desc.json +73 -84
- data/grammars/source.ditroff.json +60 -61
- data/grammars/source.dm.json +202 -213
- data/grammars/source.dmf.json +44 -47
- data/grammars/source.dockerfile.json +29 -34
- data/grammars/source.dot.json +46 -55
- data/grammars/source.dylan.json +63 -68
- data/grammars/source.ebnf.json +55 -62
- data/grammars/source.eiffel.json +57 -62
- data/grammars/source.elixir.json +321 -366
- data/grammars/source.emacs.lisp.json +458 -249
- data/grammars/source.erazor.json +49 -57
- data/grammars/source.erlang.json +508 -515
- data/grammars/source.essl.json +17 -30
- data/grammars/source.factor.json +85 -91
- data/grammars/source.fan.json +92 -96
- data/grammars/source.fancy.json +93 -118
- data/grammars/source.fish.json +74 -98
- data/grammars/source.fontforge.json +142 -146
- data/grammars/source.forth.json +42 -57
- data/grammars/source.fortran.json +193 -231
- data/grammars/source.fortran.modern.json +77 -103
- data/grammars/source.fsharp.fsi.json +1 -6
- data/grammars/source.fsharp.fsl.json +1 -6
- data/grammars/source.fsharp.fsx.json +1 -6
- data/grammars/source.fsharp.json +148 -153
- data/grammars/source.gap.json +60 -70
- data/grammars/source.gcode.json +9 -16
- data/grammars/source.gdb.json +63 -79
- data/grammars/source.gdb.session.json +27 -28
- data/grammars/source.gdbregs.json +7 -8
- data/grammars/source.gdscript.json +92 -96
- data/grammars/source.gerber.json +38 -56
- data/grammars/source.gfm.json +447 -462
- data/grammars/source.glsl.json +58 -83
- data/grammars/source.gn.json +188 -193
- data/grammars/source.gnuplot.json +104 -120
- data/grammars/source.go.json +169 -181
- data/grammars/source.golo.json +82 -87
- data/grammars/source.gosu.2.json +58 -68
- data/grammars/source.grace.json +266 -270
- data/grammars/source.graphql.json +586 -596
- data/grammars/source.groovy.gradle.json +18 -22
- data/grammars/source.groovy.json +422 -433
- data/grammars/source.harbour.json +129 -173
- data/grammars/source.haskell.json +871 -772
- data/grammars/source.haxe.2.json +402 -413
- data/grammars/source.hlsl.json +6 -16
- data/grammars/source.hsc2hs.json +1 -4
- data/grammars/source.hsig.json +871 -770
- data/grammars/source.hss.1.json +122 -144
- data/grammars/source.httpspec.json +119 -123
- data/grammars/source.hxml.json +8 -15
- data/grammars/source.ideal.json +125 -125
- data/grammars/source.idl-dlm.json +25 -32
- data/grammars/source.idl.json +59 -80
- data/grammars/source.idris.json +171 -185
- data/grammars/source.inform7.json +117 -121
- data/grammars/source.ini.json +37 -43
- data/grammars/source.io.json +65 -73
- data/grammars/source.ioke.json +72 -78
- data/grammars/source.isabelle.root.json +26 -30
- data/grammars/source.isabelle.theory.json +46 -50
- data/grammars/source.j.json +18 -21
- data/grammars/source.jasmin.json +45 -50
- data/grammars/source.java-properties.json +31 -41
- data/grammars/source.java.json +333 -342
- data/grammars/source.jcl.json +15 -18
- data/grammars/source.jflex.json +166 -172
- data/grammars/source.jison.json +331 -334
- data/grammars/source.jisonlex-injection.json +1 -2
- data/grammars/source.jisonlex.json +148 -151
- data/grammars/source.jolie.json +37 -43
- data/grammars/source.jq.json +80 -87
- data/grammars/source.js.json +798 -818
- data/grammars/source.js.jsx.json +2115 -2225
- data/grammars/source.js.objj.json +167 -172
- data/grammars/source.js.regexp.json +50 -50
- data/grammars/source.js.regexp.replacement.json +7 -7
- data/grammars/source.jsdoc.json +94 -94
- data/grammars/source.json.json +61 -71
- data/grammars/source.julia.console.json +5 -6
- data/grammars/source.julia.json +237 -234
- data/grammars/source.lean.json +55 -67
- data/grammars/source.lid.json +6 -10
- data/grammars/source.lilypond.json +181 -195
- data/grammars/source.lisp.json +40 -50
- data/grammars/source.litcoffee.json +169 -183
- data/grammars/source.livescript.json +207 -220
- data/grammars/source.llvm.json +28 -38
- data/grammars/source.logos.json +7 -14
- data/grammars/source.logtalk.json +136 -141
- data/grammars/source.loomscript.json +77 -83
- data/grammars/source.lsl.json +90 -106
- data/grammars/source.lua.json +100 -109
- data/grammars/source.makefile.json +181 -188
- data/grammars/source.makegen.json +3 -7
- data/grammars/source.mask.json +260 -265
- data/grammars/source.mata.json +38 -46
- data/grammars/source.mathematica.json +155 -167
- data/grammars/source.matlab.json +407 -684
- data/grammars/source.maxscript.json +293 -281
- data/grammars/source.mercury.json +179 -184
- data/grammars/source.meson.json +52 -58
- data/grammars/source.meta-info.json +64 -74
- data/grammars/source.ml.json +107 -113
- data/grammars/source.modelica.json +51 -59
- data/grammars/source.modula2.json +33 -42
- data/grammars/source.monkey.json +234 -241
- data/grammars/source.moonscript.json +51 -56
- data/grammars/source.mql5.json +74 -101
- data/grammars/source.mupad.json +30 -72
- data/grammars/source.ncl.json +1 -14
- data/grammars/source.ne.json +39 -42
- data/grammars/source.nemerle.json +58 -63
- data/grammars/source.nesc.json +9 -15
- data/grammars/source.netlinx.erb.json +13 -25
- data/grammars/source.netlinx.json +231 -292
- data/grammars/source.nextflow-groovy.json +1360 -0
- data/grammars/source.nextflow.json +74 -0
- data/grammars/source.nginx.json +274 -287
- data/grammars/source.nim.json +442 -483
- data/grammars/source.nim_filter.json +6 -26
- data/grammars/source.nimcfg.json +38 -51
- data/grammars/source.ninja.json +64 -70
- data/grammars/source.nit.json +60 -64
- data/grammars/source.nix.json +269 -273
- data/grammars/source.nmml.json +31 -37
- data/grammars/source.nsis.json +66 -72
- data/grammars/source.nu.json +129 -139
- data/grammars/source.nut.json +129 -133
- data/grammars/source.objc++.json +3 -10
- data/grammars/source.objc.json +303 -314
- data/grammars/source.objc.platform.json +145 -151
- data/grammars/source.ocaml.json +506 -514
- data/grammars/source.ocamllex.json +108 -115
- data/grammars/source.ocamlyacc.json +116 -123
- data/grammars/source.ooc.json +148 -155
- data/grammars/source.opa.json +39 -49
- data/grammars/source.opal.json +84 -89
- data/grammars/source.opalsysdefs.json +9 -13
- data/grammars/source.opencobol.json +22 -25
- data/grammars/source.opentype.json +148 -152
- data/grammars/source.ox.json +36 -44
- data/grammars/source.oz.json +31 -38
- data/grammars/source.p4.json +49 -59
- data/grammars/source.pan.json +273 -278
- data/grammars/source.papyrus.skyrim.json +705 -781
- data/grammars/source.parrot.pir.json +59 -65
- data/grammars/source.pascal.json +54 -61
- data/grammars/source.pawn.json +835 -849
- data/grammars/source.pcb.board.json +153 -158
- data/grammars/source.pcb.schematic.json +134 -138
- data/grammars/source.pcb.sexp.json +64 -74
- data/grammars/source.pep8.json +28 -32
- data/grammars/source.perl.6.json +83 -92
- data/grammars/source.perl.json +711 -737
- data/grammars/source.perl6fe.json +1204 -1218
- data/grammars/source.php.zephir.json +80 -89
- data/grammars/source.pic.json +137 -142
- data/grammars/source.pig_latin.json +76 -80
- data/grammars/source.pike.json +23 -36
- data/grammars/source.po.json +74 -84
- data/grammars/source.pogoscript.json +23 -29
- data/grammars/source.pony.json +98 -108
- data/grammars/source.postcss.json +370 -0
- data/grammars/source.postscript.json +88 -97
- data/grammars/source.pov-ray sdl.json +36 -42
- data/grammars/source.powershell.json +175 -197
- data/grammars/source.processing.json +236 -249
- data/grammars/source.prolog.eclipse.json +33 -38
- data/grammars/source.prolog.json +66 -72
- data/grammars/source.protobuf.json +88 -94
- data/grammars/source.puppet.json +144 -151
- data/grammars/source.purescript.json +268 -289
- data/grammars/source.pyjade.json +256 -281
- data/grammars/source.python.django.json +13 -18
- data/grammars/source.python.json +3319 -3367
- data/grammars/source.python.salt.json +3 -7
- data/grammars/source.qmake.json +83 -90
- data/grammars/source.qml.json +57 -78
- data/grammars/source.quoting.perl6fe.json +666 -669
- data/grammars/source.r.json +75 -84
- data/grammars/source.racket.json +17 -38
- data/grammars/source.rascal.json +77 -80
- data/grammars/source.reason.hover.type.json +1 -1
- data/grammars/source.reason.json +1025 -1080
- data/grammars/source.rebol.json +167 -177
- data/grammars/source.red.json +169 -177
- data/grammars/source.regexp.babel.json +74 -77
- data/grammars/source.regexp.extended.json +4 -5
- data/grammars/source.regexp.json +260 -264
- data/grammars/source.regexp.perl6fe.json +108 -111
- data/grammars/source.regexp.python.json +210 -215
- data/grammars/source.regexp.spin.json +63 -72
- data/grammars/source.renpy.json +617 -687
- data/grammars/source.rexx.json +25 -32
- data/grammars/source.ring.json +84 -114
- data/grammars/source.rpm-spec.json +392 -401
- data/grammars/source.ruby.gemfile.json +9 -12
- data/grammars/source.ruby.json +862 -952
- data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
- data/grammars/source.rust.json +223 -281
- data/grammars/source.sas.json +88 -105
- data/grammars/source.sass.json +100 -108
- data/grammars/source.sbt.json +16 -23
- data/grammars/source.scad.json +60 -67
- data/grammars/source.scala.json +215 -228
- data/grammars/source.scaml.json +120 -135
- data/grammars/source.scheme.json +119 -136
- data/grammars/source.scilab.json +40 -47
- data/grammars/source.scss.json +369 -403
- data/grammars/source.sdbl.json +14 -25
- data/grammars/source.shaderlab.json +24 -27
- data/grammars/source.shell.json +409 -440
- data/grammars/source.shen.json +75 -94
- data/grammars/source.smali.json +232 -293
- data/grammars/source.smalltalk.json +60 -75
- data/grammars/source.smt.json +67 -82
- data/grammars/source.solidity.json +35 -54
- data/grammars/source.sp.json +40 -45
- data/grammars/source.sparql.json +3 -8
- data/grammars/source.spin.json +277 -297
- data/grammars/source.sqf.json +34 -44
- data/grammars/source.sql.json +142 -156
- data/grammars/source.stan.json +201 -160
- data/grammars/source.stata.json +57 -68
- data/grammars/source.strings.json +26 -30
- data/grammars/source.stylus.json +558 -565
- data/grammars/source.supercollider.json +33 -40
- data/grammars/source.swift.json +999 -1077
- data/grammars/source.systemverilog.json +351 -365
- data/grammars/source.tcl.json +77 -94
- data/grammars/source.tea.json +61 -67
- data/grammars/source.terra.json +25 -32
- data/grammars/source.terraform.json +68 -88
- data/grammars/source.thrift.json +300 -306
- data/grammars/source.tl.json +112 -117
- data/grammars/source.tla.json +65 -69
- data/grammars/source.toc.json +21 -25
- data/grammars/source.toml.json +117 -122
- data/grammars/source.ts.json +2838 -2774
- data/grammars/source.tsx.json +180 -184
- data/grammars/source.turing.json +970 -974
- data/grammars/source.turtle.json +124 -140
- data/grammars/source.txl.json +23 -37
- data/grammars/source.ucfconstraints.json +16 -21
- data/grammars/source.ur.json +15 -27
- data/grammars/source.vala.json +221 -235
- data/grammars/source.varnish.vcl.json +117 -129
- data/grammars/source.vbnet.json +69 -106
- data/grammars/source.verilog.json +101 -107
- data/grammars/source.vhdl.json +437 -445
- data/grammars/source.viml.json +540 -550
- data/grammars/source.wavefront.mtl.json +274 -277
- data/grammars/source.wavefront.obj.json +781 -784
- data/grammars/source.wdl.json +66 -46
- data/grammars/source.webassembly.json +97 -102
- data/grammars/source.webidl.json +311 -326
- data/grammars/source.x10.json +28 -32
- data/grammars/source.x86asm.json +21 -26
- data/grammars/source.xc.json +164 -172
- data/grammars/source.xq.json +81 -92
- data/grammars/source.xtend.json +199 -208
- data/grammars/source.yaml-ext.json +118 -124
- data/grammars/source.yaml.json +155 -174
- data/grammars/source.yaml.salt.json +113 -116
- data/grammars/source.yang.json +10 -13
- data/grammars/source.yara.json +98 -0
- data/grammars/text.bibtex.json +95 -100
- data/grammars/text.cfml.basic.json +403 -404
- data/grammars/text.elixir.json +18 -23
- data/grammars/text.error-list.json +15 -16
- data/grammars/text.find-refs.json +487 -488
- data/grammars/text.gherkin.feature.json +45 -53
- data/grammars/text.haml.json +176 -189
- data/grammars/text.hamlc.json +82 -88
- data/grammars/text.html.abl.json +16 -21
- data/grammars/text.html.asciidoc.json +139 -153
- data/grammars/text.html.asdoc.json +145 -155
- data/grammars/text.html.asp.json +23 -28
- data/grammars/text.html.basic.json +323 -338
- data/grammars/text.html.cfm.json +316 -325
- data/grammars/text.html.creole.json +177 -189
- data/grammars/text.html.django.json +27 -33
- data/grammars/text.html.ecr.json +21 -25
- data/grammars/text.html.elixir.json +3 -9
- data/grammars/text.html.erb.json +81 -85
- data/grammars/text.html.erlang.yaws.json +24 -29
- data/grammars/text.html.factor.json +5 -11
- data/grammars/text.html.ftl.json +16 -25
- data/grammars/text.html.handlebars.json +579 -598
- data/grammars/text.html.javadoc.json +426 -0
- data/grammars/text.html.js.json +11 -17
- data/grammars/text.html.jsp.json +377 -384
- data/grammars/text.html.liquid.json +8 -18
- data/grammars/text.html.mako.json +257 -275
- data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
- data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
- data/grammars/text.html.mediawiki.json +318 -344
- data/grammars/text.html.php.blade.json +2134 -2140
- data/grammars/text.html.php.json +980 -1013
- data/grammars/text.html.slash.json +101 -107
- data/grammars/text.html.smarty.json +75 -83
- data/grammars/text.html.soy.json +250 -253
- data/grammars/text.html.ssp.json +18 -24
- data/grammars/text.html.tcl.json +17 -24
- data/grammars/text.html.twig.json +712 -718
- data/grammars/text.idl-idldoc.json +5 -9
- data/grammars/text.jade.json +213 -235
- data/grammars/text.junit-test-report.json +25 -28
- data/grammars/text.log.latex.json +44 -46
- data/grammars/text.marko.json +370 -401
- data/grammars/text.python.console.json +3 -7
- data/grammars/text.python.traceback.json +2 -5
- data/grammars/text.rdoc.json +15 -19
- data/grammars/text.restructuredtext.clean.json +8 -11
- data/grammars/text.restructuredtext.json +886 -873
- data/grammars/text.robot.json +26 -36
- data/grammars/text.roff.json +2852 -2915
- data/grammars/text.runoff.json +56 -69
- data/grammars/text.sfd.json +151 -155
- data/grammars/text.shell-session.json +5 -8
- data/grammars/text.slim.json +184 -210
- data/grammars/text.srt.json +54 -57
- data/grammars/text.tex.json +98 -105
- data/grammars/text.tex.latex.beamer.json +14 -20
- data/grammars/text.tex.latex.haskell.json +883 -782
- data/grammars/text.tex.latex.json +281 -291
- data/grammars/text.tex.latex.memoir.json +39 -46
- data/grammars/text.tex.latex.rd.json +32 -38
- data/grammars/text.xml.ant.json +62 -69
- data/grammars/text.xml.flex-config.json +1009 -1013
- data/grammars/text.xml.genshi.json +10 -16
- data/grammars/text.xml.json +117 -130
- data/grammars/text.xml.pom.json +235 -240
- data/grammars/text.xml.xsl.json +31 -37
- data/grammars/text.zone_file.json +24 -29
- data/lib/linguist/blob.rb +10 -1
- data/lib/linguist/blob_helper.rb +4 -1
- data/lib/linguist/file_blob.rb +5 -0
- data/lib/linguist/generated.rb +16 -0
- data/lib/linguist/heuristics.rb +23 -11
- data/lib/linguist/language.rb +3 -6
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +74 -12
- data/lib/linguist/lazy_blob.rb +15 -1
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1666 -3381
- data/lib/linguist/shebang.rb +2 -0
- data/lib/linguist/strategy/modeline.rb +2 -0
- data/lib/linguist/vendor.yml +5 -6
- data/lib/linguist/version.rb +1 -1
- metadata +12 -11
- data/grammars/source.elm.json +0 -381
- data/grammars/source.nant-build.json +0 -86
- data/grammars/source.octave.json +0 -451
- data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
- data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
- data/grammars/text.html.vue.json +0 -936
data/grammars/source.shen.json
CHANGED
@@ -1,162 +1,143 @@
|
|
1
1
|
{
|
2
2
|
"name": "Shen",
|
3
3
|
"scopeName": "source.shen",
|
4
|
-
"fileTypes": [
|
5
|
-
"shen"
|
6
|
-
],
|
7
|
-
"uuid": "4f20d927-cddd-4fd7-a7a6-9739f008439d",
|
8
4
|
"patterns": [
|
9
5
|
{
|
10
6
|
"include": "#expressions"
|
11
7
|
}
|
12
8
|
],
|
13
9
|
"repository": {
|
14
|
-
"expressions": {
|
15
|
-
"patterns": [
|
16
|
-
{
|
17
|
-
"include": "#comments"
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"include": "#atoms"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"include": "#parens"
|
24
|
-
},
|
25
|
-
{
|
26
|
-
"include": "#squares"
|
27
|
-
}
|
28
|
-
]
|
29
|
-
},
|
30
|
-
"comments": {
|
31
|
-
"patterns": [
|
32
|
-
{
|
33
|
-
"name": "comment.line",
|
34
|
-
"match": "(\\\\\\\\.*$)"
|
35
|
-
},
|
36
|
-
{
|
37
|
-
"name": "comment.block",
|
38
|
-
"begin": "(\\\\\\*)",
|
39
|
-
"end": "(\\*\\\\)"
|
40
|
-
}
|
41
|
-
]
|
42
|
-
},
|
43
|
-
"parens": {
|
44
|
-
"patterns": [
|
45
|
-
{
|
46
|
-
"name": "meta.group",
|
47
|
-
"begin": "(\\()",
|
48
|
-
"end": "(\\))",
|
49
|
-
"patterns": [
|
50
|
-
{
|
51
|
-
"include": "#expressions"
|
52
|
-
}
|
53
|
-
]
|
54
|
-
}
|
55
|
-
]
|
56
|
-
},
|
57
|
-
"squares": {
|
58
|
-
"patterns": [
|
59
|
-
{
|
60
|
-
"name": "meta.group",
|
61
|
-
"begin": "(\\[)",
|
62
|
-
"end": "(\\])",
|
63
|
-
"patterns": [
|
64
|
-
{
|
65
|
-
"include": "#expressions"
|
66
|
-
}
|
67
|
-
]
|
68
|
-
}
|
69
|
-
]
|
70
|
-
},
|
71
10
|
"atoms": {
|
72
11
|
"patterns": [
|
73
12
|
{
|
74
|
-
"comment": "Multiline Strings",
|
75
13
|
"name": "string.quoted.double",
|
76
14
|
"begin": "(\\\")",
|
77
15
|
"end": "(\\\")",
|
78
16
|
"patterns": [
|
79
17
|
{
|
80
|
-
"
|
81
|
-
"
|
18
|
+
"name": "constant.character.escape",
|
19
|
+
"match": "(~A|~R|~S|~%|c#\\d+;)"
|
82
20
|
},
|
83
21
|
{
|
84
|
-
"
|
85
|
-
"
|
22
|
+
"name": "invalid.illegal",
|
23
|
+
"match": "(c#[^;]*;)"
|
86
24
|
}
|
87
25
|
]
|
88
26
|
},
|
89
27
|
{
|
90
|
-
"comment": "Numbers",
|
91
28
|
"name": "constant.numeric",
|
92
|
-
"match": "(
|
29
|
+
"match": "(?\u003c=^|[\\s()\\[\\]])[+-]*\\d+\\.?\\d*(?=$|[\\s;()\\[\\]])"
|
93
30
|
},
|
94
31
|
{
|
95
|
-
"comment": "Malformed Numbers",
|
96
32
|
"name": "invalid.illegal",
|
97
|
-
"match": "(
|
33
|
+
"match": "(?\u003c=^|[\\s()\\[\\]])[+-]*\\d+\\.?\\d*[^\\s;()\\[\\]]+(?=$|[\\s;()\\[\\]])"
|
98
34
|
},
|
99
35
|
{
|
100
|
-
"comment": "Special Forms",
|
101
36
|
"name": "keyword.control",
|
102
|
-
"match": "(
|
37
|
+
"match": "(?\u003c=\\()(and|or|if|do|lambda|freeze|let|cond|cases|trap-error|where|package|defun|/.|define|defmacro|defcc|defprolog|datatype)(?=$|[\\s;()\\[\\]{}])"
|
103
38
|
},
|
104
39
|
{
|
105
|
-
"comment": "Special Operators",
|
106
40
|
"name": "keyword.control",
|
107
|
-
"match": "(
|
41
|
+
"match": "(?\u003c=^|[\\s()\\[\\]{}])(-\u003e|\u003c-|--\u003e|\u003c--|==\u003e|\u003c==|:=|__+)(?=$|[\\s;()\\[\\]{}])"
|
108
42
|
},
|
109
43
|
{
|
110
|
-
"comment": "Standard Operators",
|
111
44
|
"name": "keyword.operator",
|
112
|
-
"match": "(
|
45
|
+
"match": "(?\u003c=^|[\\s()\\[\\]{}])(=|==|\u003c|\u003e|\u003c=|\u003e=|\\+|-|\\*|/)(?=$|[\\s;()\\[\\]{}])"
|
113
46
|
},
|
114
47
|
{
|
115
|
-
"comment": "Definition Names",
|
116
48
|
"name": "entity.name.function",
|
117
|
-
"match": "(
|
49
|
+
"match": "(?\u003c=\\(define\\s)([^\\s()\\[\\]{}]*)(?=$|[\\s;()\\[\\]{}])"
|
118
50
|
},
|
119
51
|
{
|
120
|
-
"comment": "Macro Names",
|
121
52
|
"name": "entity.name.function",
|
122
|
-
"match": "(
|
53
|
+
"match": "(?\u003c=\\(defmacro\\s)([^\\s()\\[\\]{}]*)(?=$|[\\s;()\\[\\]{}])"
|
123
54
|
},
|
124
55
|
{
|
125
|
-
"comment": "Prolog Names",
|
126
56
|
"name": "entity.name.function",
|
127
|
-
"match": "(
|
57
|
+
"match": "(?\u003c=\\(defprolog\\s)([^\\s()\\[\\]{}]*)(?=$|[\\s;()\\[\\]{}])"
|
128
58
|
},
|
129
59
|
{
|
130
|
-
"comment": "Package Names",
|
131
60
|
"name": "entity.name.section",
|
132
|
-
"match": "(
|
61
|
+
"match": "(?\u003c=\\(package\\s)([^\\s()\\[\\]{}]*)(?=$|[\\s;()\\[\\]{}])"
|
133
62
|
},
|
134
63
|
{
|
135
|
-
"comment": "Data Types",
|
136
64
|
"name": "entity.name.type",
|
137
|
-
"match": "(
|
65
|
+
"match": "(?\u003c=\\(datatype\\s)([^\\s()\\[\\]{}]*)(?=$|[\\s;()\\[\\]{}])"
|
138
66
|
},
|
139
67
|
{
|
140
|
-
"comment": "Local Variables",
|
141
68
|
"name": "variable.language",
|
142
|
-
"match": "(
|
69
|
+
"match": "(?\u003c=^|[\\s()\\[\\]{}])([A-Z][^\\s()\\[\\];{}]*)(?=$|[\\s;()\\[\\]{}])"
|
143
70
|
},
|
144
71
|
{
|
145
|
-
"comment": "Yacc Rule",
|
146
72
|
"name": "entity.name.tag",
|
147
|
-
"match": "(
|
73
|
+
"match": "(?\u003c=^|[\\s()\\[\\]])(\u003c[^\\s()\\[\\]]*\u003e)(?=$|[\\s;()\\[\\]])"
|
148
74
|
},
|
149
75
|
{
|
150
|
-
"comment": "Idle Symbols",
|
151
76
|
"name": "constant.language",
|
152
|
-
"match": "(
|
77
|
+
"match": "(?\u003c=^|[\\s)\\[\\]{}])([^A-Z\\s()\\[\\]:;\\|{}][^\\s()\\[\\];{}]*)(?=$|[\\s;()\\[\\]{}])"
|
153
78
|
},
|
154
79
|
{
|
155
|
-
"comment": "Empty Lists",
|
156
80
|
"name": "constant.language",
|
157
81
|
"match": "(\\(\\)|\\[\\])"
|
158
82
|
}
|
159
83
|
]
|
84
|
+
},
|
85
|
+
"comments": {
|
86
|
+
"patterns": [
|
87
|
+
{
|
88
|
+
"name": "comment.line",
|
89
|
+
"match": "(\\\\\\\\.*$)"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"name": "comment.block",
|
93
|
+
"begin": "(\\\\\\*)",
|
94
|
+
"end": "(\\*\\\\)"
|
95
|
+
}
|
96
|
+
]
|
97
|
+
},
|
98
|
+
"expressions": {
|
99
|
+
"patterns": [
|
100
|
+
{
|
101
|
+
"include": "#comments"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"include": "#atoms"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"include": "#parens"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"include": "#squares"
|
111
|
+
}
|
112
|
+
]
|
113
|
+
},
|
114
|
+
"parens": {
|
115
|
+
"patterns": [
|
116
|
+
{
|
117
|
+
"name": "meta.group",
|
118
|
+
"begin": "(\\()",
|
119
|
+
"end": "(\\))",
|
120
|
+
"patterns": [
|
121
|
+
{
|
122
|
+
"include": "#expressions"
|
123
|
+
}
|
124
|
+
]
|
125
|
+
}
|
126
|
+
]
|
127
|
+
},
|
128
|
+
"squares": {
|
129
|
+
"patterns": [
|
130
|
+
{
|
131
|
+
"name": "meta.group",
|
132
|
+
"begin": "(\\[)",
|
133
|
+
"end": "(\\])",
|
134
|
+
"patterns": [
|
135
|
+
{
|
136
|
+
"include": "#expressions"
|
137
|
+
}
|
138
|
+
]
|
139
|
+
}
|
140
|
+
]
|
160
141
|
}
|
161
142
|
}
|
162
|
-
}
|
143
|
+
}
|
data/grammars/source.smali.json
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
"Smali"
|
4
|
-
],
|
5
|
-
"foldingStartMarker": "[\\s\\t]*\\.method",
|
6
|
-
"foldingStopMarker": "[\\s\\t]*\\.end method",
|
7
2
|
"name": "Smali",
|
3
|
+
"scopeName": "source.smali",
|
8
4
|
"patterns": [
|
9
5
|
{
|
10
6
|
"include": "#annotation"
|
@@ -37,6 +33,7 @@
|
|
37
33
|
"include": "#field-end"
|
38
34
|
},
|
39
35
|
{
|
36
|
+
"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]*(#.*)?$)",
|
40
37
|
"captures": {
|
41
38
|
"1": {
|
42
39
|
"name": "constant.language.smali"
|
@@ -53,11 +50,10 @@
|
|
53
50
|
"5": {
|
54
51
|
"name": "entity.name.tag.smali"
|
55
52
|
}
|
56
|
-
}
|
57
|
-
"comment": "Class name",
|
58
|
-
"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]*(#.*)?$)"
|
53
|
+
}
|
59
54
|
},
|
60
55
|
{
|
56
|
+
"match": "^[\\s\\t]*(\\.(?:super|implements))[\\s\\t]+(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)(?=[\\s\\t]*(#.*)?$)",
|
61
57
|
"captures": {
|
62
58
|
"1": {
|
63
59
|
"name": "constant.language.smali"
|
@@ -71,11 +67,10 @@
|
|
71
67
|
"4": {
|
72
68
|
"name": "entity.name.tag.smali"
|
73
69
|
}
|
74
|
-
}
|
75
|
-
"comment": "Super / implements class name",
|
76
|
-
"match": "^[\\s\\t]*(\\.(?:super|implements))[\\s\\t]+(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)(?=[\\s\\t]*(#.*)?$)"
|
70
|
+
}
|
77
71
|
},
|
78
72
|
{
|
73
|
+
"match": "^[\\s\\t]*(\\.source)[\\s\\t]+(\")(.*?)((?\u003c!\\\\)\")(?=[\\s\\t]*(#.*)?$)(?=[\\s\\t]*(#.*)?$)",
|
79
74
|
"captures": {
|
80
75
|
"1": {
|
81
76
|
"name": "constant.language.smali"
|
@@ -89,67 +84,21 @@
|
|
89
84
|
"4": {
|
90
85
|
"name": "entity.name.tag.smali"
|
91
86
|
}
|
92
|
-
}
|
93
|
-
"comment": "Source file",
|
94
|
-
"match": "^[\\s\\t]*(\\.source)[\\s\\t]+(\")(.*?)((?<!\\\\)\")(?=[\\s\\t]*(#.*)?$)(?=[\\s\\t]*(#.*)?$)"
|
87
|
+
}
|
95
88
|
},
|
96
89
|
{
|
97
|
-
"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 )?(
|
98
|
-
"beginCaptures": {
|
99
|
-
"1": {
|
100
|
-
"name": "constant.language.smali"
|
101
|
-
},
|
102
|
-
"10": {
|
103
|
-
"name": "entity.name.tag.smali"
|
104
|
-
},
|
105
|
-
"11": {
|
106
|
-
"name": "constant.numeric.smali"
|
107
|
-
},
|
108
|
-
"12": {
|
109
|
-
"name": "entity.name.tag.smali"
|
110
|
-
},
|
111
|
-
"2": {
|
112
|
-
"name": "variable.parameter.smali"
|
113
|
-
},
|
114
|
-
"3": {
|
115
|
-
"name": "variable.parameter.smali"
|
116
|
-
},
|
117
|
-
"4": {
|
118
|
-
"name": "entity.name.function.smali"
|
119
|
-
},
|
120
|
-
"5": {
|
121
|
-
"name": "constant.numeric.smali"
|
122
|
-
},
|
123
|
-
"6": {
|
124
|
-
"name": "constant.numeric.smali"
|
125
|
-
},
|
126
|
-
"7": {
|
127
|
-
"name": "constant.numeric.smali"
|
128
|
-
},
|
129
|
-
"8": {
|
130
|
-
"name": "entity.name.tag.smali"
|
131
|
-
},
|
132
|
-
"9": {
|
133
|
-
"name": "constant.numeric.smali"
|
134
|
-
}
|
135
|
-
},
|
136
|
-
"comment": "Method signature and body",
|
90
|
+
"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 )?(\u003cinit\u003e|\u003cclinit\u003e|(?:[\\$\\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]*(#.*)?$)",
|
137
91
|
"end": "^[\\s\\t]*(\\.end method)(?=[\\s\\t]*(#.*)?$)",
|
138
|
-
"endCaptures": {
|
139
|
-
"1": {
|
140
|
-
"name": "constant.language.smali"
|
141
|
-
}
|
142
|
-
},
|
143
92
|
"patterns": [
|
144
93
|
{
|
145
94
|
"include": "#comment-inline"
|
146
95
|
},
|
147
96
|
{
|
148
|
-
"
|
149
|
-
"match": "^[\\s\\t]*(\\.prologue)(?=[\\s\\t]*(#.*)?$)"
|
150
|
-
"name": "constant.language.smali"
|
97
|
+
"name": "constant.language.smali",
|
98
|
+
"match": "^[\\s\\t]*(\\.prologue)(?=[\\s\\t]*(#.*)?$)"
|
151
99
|
},
|
152
100
|
{
|
101
|
+
"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_\\$]*)*)(;))))(?:,(\")(.*?)((?\u003c!\\\\)\"))?(?:,[\\s\\t]*(\")(.*?)((?\u003c!\\\\)\"))?(?=[\\s\\t]*(#.*)?$)",
|
153
102
|
"captures": {
|
154
103
|
"1": {
|
155
104
|
"name": "constant.language.smali"
|
@@ -190,11 +139,10 @@
|
|
190
139
|
"9": {
|
191
140
|
"name": "string.interpolated.smali"
|
192
141
|
}
|
193
|
-
}
|
194
|
-
"comment": "Local",
|
195
|
-
"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]*(#.*)?$)"
|
142
|
+
}
|
196
143
|
},
|
197
144
|
{
|
145
|
+
"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]*(#.*)?$)",
|
198
146
|
"captures": {
|
199
147
|
"1": {
|
200
148
|
"name": "constant.language.smali"
|
@@ -217,11 +165,10 @@
|
|
217
165
|
"7": {
|
218
166
|
"name": "keyword.control.smali"
|
219
167
|
}
|
220
|
-
}
|
221
|
-
"comment": "Catch exceptions",
|
222
|
-
"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]*(#.*)?$)"
|
168
|
+
}
|
223
169
|
},
|
224
170
|
{
|
171
|
+
"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]*(#.*)?$)",
|
225
172
|
"captures": {
|
226
173
|
"1": {
|
227
174
|
"name": "constant.language.smali"
|
@@ -235,34 +182,21 @@
|
|
235
182
|
"4": {
|
236
183
|
"name": "keyword.control.smali"
|
237
184
|
}
|
238
|
-
}
|
239
|
-
"comment": "Gotta catch 'em all!",
|
240
|
-
"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]*(#.*)?$)"
|
185
|
+
}
|
241
186
|
},
|
242
187
|
{
|
243
|
-
"
|
244
|
-
"match": "^[\\s\\t]*(\\.(?:end|restart)[\\s\\t]+local)[\\s\\t]+[vp]\\d+(?=[\\s\\t]*(#.*)?$)"
|
245
|
-
"name": "constant.language.smali"
|
188
|
+
"name": "constant.language.smali",
|
189
|
+
"match": "^[\\s\\t]*(\\.(?:end|restart)[\\s\\t]+local)[\\s\\t]+[vp]\\d+(?=[\\s\\t]*(#.*)?$)"
|
246
190
|
},
|
247
191
|
{
|
248
192
|
"begin": "^[\\s\\t]*(\\.sparse-switch)(?=[\\s\\t]*(#.*)?$)",
|
249
|
-
"beginCaptures": {
|
250
|
-
"1": {
|
251
|
-
"name": "constant.language.smali"
|
252
|
-
}
|
253
|
-
},
|
254
|
-
"comment": "Sparse Switch",
|
255
193
|
"end": "^[\\s\\t]*(\\.end sparse-switch)(?=[\\s\\t]*(#.*)?$)",
|
256
|
-
"endCaptures": {
|
257
|
-
"1": {
|
258
|
-
"name": "constant.language.smali"
|
259
|
-
}
|
260
|
-
},
|
261
194
|
"patterns": [
|
262
195
|
{
|
263
196
|
"include": "#comment-inline"
|
264
197
|
},
|
265
198
|
{
|
199
|
+
"match": "^[\\s\\t]*(-?0x(?i:0|[1-9a-f][\\da-f]*))[\\s\\t]+-\u003e[\\s\\t]+(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
|
266
200
|
"captures": {
|
267
201
|
"1": {
|
268
202
|
"name": "variable.parameter.smali"
|
@@ -270,12 +204,22 @@
|
|
270
204
|
"2": {
|
271
205
|
"name": "keyword.control.smali"
|
272
206
|
}
|
273
|
-
}
|
274
|
-
"match": "^[\\s\\t]*(-?0x(?i:0|[1-9a-f][\\da-f]*))[\\s\\t]+->[\\s\\t]+(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)"
|
207
|
+
}
|
275
208
|
}
|
276
|
-
]
|
209
|
+
],
|
210
|
+
"beginCaptures": {
|
211
|
+
"1": {
|
212
|
+
"name": "constant.language.smali"
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"endCaptures": {
|
216
|
+
"1": {
|
217
|
+
"name": "constant.language.smali"
|
218
|
+
}
|
219
|
+
}
|
277
220
|
},
|
278
221
|
{
|
222
|
+
"match": "^[\\s\\t]*(\\.packed-switch)[\\s\\t]+(-0x1|0x(?i:0|[1-9a-f][\\da-f]*))(?=[\\s\\t]*(#.*)?$)",
|
279
223
|
"captures": {
|
280
224
|
"1": {
|
281
225
|
"name": "constant.language.smali"
|
@@ -283,17 +227,28 @@
|
|
283
227
|
"2": {
|
284
228
|
"name": "variable.parameter.smali"
|
285
229
|
}
|
286
|
-
}
|
287
|
-
"comment": "Begin Packed Switch, no idea what literal limit is for these. Have seen up to 0x7f090005",
|
288
|
-
"match": "^[\\s\\t]*(\\.packed-switch)[\\s\\t]+(-0x1|0x(?i:0|[1-9a-f][\\da-f]*))(?=[\\s\\t]*(#.*)?$)"
|
230
|
+
}
|
289
231
|
},
|
290
232
|
{
|
291
|
-
"
|
292
|
-
"match": "^[\\s\\t]*(\\.end packed-switch)(?=[\\s\\t]*(#.*)?$)"
|
293
|
-
"name": "constant.language.smali"
|
233
|
+
"name": "constant.language.smali",
|
234
|
+
"match": "^[\\s\\t]*(\\.end packed-switch)(?=[\\s\\t]*(#.*)?$)"
|
294
235
|
},
|
295
236
|
{
|
296
237
|
"begin": "^[\\s\\t]*(\\.array-data)[\\s\\t]+(1|2|4|8)(?=[\\s\\t]*(#.*)?$)",
|
238
|
+
"end": "^[\\s\\t]*(\\.end array-data)(?=[\\s\\t]*(#.*)?$)",
|
239
|
+
"patterns": [
|
240
|
+
{
|
241
|
+
"include": "#comment-inline"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"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]*(#.*)?$)",
|
245
|
+
"captures": {
|
246
|
+
"1": {
|
247
|
+
"name": "variable.parameter.smali"
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|
251
|
+
],
|
297
252
|
"beginCaptures": {
|
298
253
|
"1": {
|
299
254
|
"name": "constant.language.smali"
|
@@ -302,26 +257,11 @@
|
|
302
257
|
"name": "variable.parameter.smali"
|
303
258
|
}
|
304
259
|
},
|
305
|
-
"comment": "Array data",
|
306
|
-
"end": "^[\\s\\t]*(\\.end array-data)(?=[\\s\\t]*(#.*)?$)",
|
307
260
|
"endCaptures": {
|
308
261
|
"1": {
|
309
262
|
"name": "constant.language.smali"
|
310
263
|
}
|
311
|
-
}
|
312
|
-
"patterns": [
|
313
|
-
{
|
314
|
-
"include": "#comment-inline"
|
315
|
-
},
|
316
|
-
{
|
317
|
-
"captures": {
|
318
|
-
"1": {
|
319
|
-
"name": "variable.parameter.smali"
|
320
|
-
}
|
321
|
-
},
|
322
|
-
"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]*(#.*)?$)"
|
323
|
-
}
|
324
|
-
]
|
264
|
+
}
|
325
265
|
},
|
326
266
|
{
|
327
267
|
"include": "#field"
|
@@ -512,20 +452,63 @@
|
|
512
452
|
{
|
513
453
|
"include": "#opcode-format-10t-20t-30t-relaxed"
|
514
454
|
}
|
515
|
-
]
|
455
|
+
],
|
456
|
+
"beginCaptures": {
|
457
|
+
"1": {
|
458
|
+
"name": "constant.language.smali"
|
459
|
+
},
|
460
|
+
"10": {
|
461
|
+
"name": "entity.name.tag.smali"
|
462
|
+
},
|
463
|
+
"11": {
|
464
|
+
"name": "constant.numeric.smali"
|
465
|
+
},
|
466
|
+
"12": {
|
467
|
+
"name": "entity.name.tag.smali"
|
468
|
+
},
|
469
|
+
"2": {
|
470
|
+
"name": "variable.parameter.smali"
|
471
|
+
},
|
472
|
+
"3": {
|
473
|
+
"name": "variable.parameter.smali"
|
474
|
+
},
|
475
|
+
"4": {
|
476
|
+
"name": "entity.name.function.smali"
|
477
|
+
},
|
478
|
+
"5": {
|
479
|
+
"name": "constant.numeric.smali"
|
480
|
+
},
|
481
|
+
"6": {
|
482
|
+
"name": "constant.numeric.smali"
|
483
|
+
},
|
484
|
+
"7": {
|
485
|
+
"name": "constant.numeric.smali"
|
486
|
+
},
|
487
|
+
"8": {
|
488
|
+
"name": "entity.name.tag.smali"
|
489
|
+
},
|
490
|
+
"9": {
|
491
|
+
"name": "constant.numeric.smali"
|
492
|
+
}
|
493
|
+
},
|
494
|
+
"endCaptures": {
|
495
|
+
"1": {
|
496
|
+
"name": "constant.language.smali"
|
497
|
+
}
|
498
|
+
}
|
516
499
|
},
|
517
500
|
{
|
501
|
+
"match": "^[\\s\\t]*(\\.(?:class|super|implements|method|(end )?(?:method|annotation|field)))",
|
518
502
|
"captures": {
|
519
503
|
"1": {
|
520
504
|
"name": "invalid.illegal.smali"
|
521
505
|
}
|
522
|
-
}
|
523
|
-
"comment": "Method directives - relaxed",
|
524
|
-
"match": "^[\\s\\t]*(\\.(?:class|super|implements|method|(end )?(?:method|annotation|field)))"
|
506
|
+
}
|
525
507
|
}
|
526
508
|
],
|
527
509
|
"repository": {
|
528
510
|
"annotation": {
|
511
|
+
"match": "^[\\s\\t]*(\\.annotation)[\\s\\t]+(build|runtime|system)[\\s\\t]+(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)",
|
529
512
|
"captures": {
|
530
513
|
"1": {
|
531
514
|
"name": "constant.language.smali"
|
@@ -542,10 +525,10 @@
|
|
542
525
|
"5": {
|
543
526
|
"name": "entity.name.tag.smali"
|
544
527
|
}
|
545
|
-
}
|
546
|
-
"match": "^[\\s\\t]*(\\.annotation)[\\s\\t]+(build|runtime|system)[\\s\\t]+(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)"
|
528
|
+
}
|
547
529
|
},
|
548
530
|
"annotation-access": {
|
531
|
+
"match": "^[\\s\\t]*(accessFlags)[\\s\\t]*=[\\s\\t]*(0x(?:0|[1-9a-f][\\da-f]{0,3}))(?=[\\s\\t]*(#.*)?$)",
|
549
532
|
"captures": {
|
550
533
|
"1": {
|
551
534
|
"name": "support.function.smali"
|
@@ -553,20 +536,18 @@
|
|
553
536
|
"2": {
|
554
537
|
"name": "constant.numeric.smali"
|
555
538
|
}
|
556
|
-
}
|
557
|
-
"comment": "accessFlags property in annotation. Haven't seen any of these go over 0x4019.",
|
558
|
-
"match": "^[\\s\\t]*(accessFlags)[\\s\\t]*=[\\s\\t]*(0x(?:0|[1-9a-f][\\da-f]{0,3}))(?=[\\s\\t]*(#.*)?$)"
|
539
|
+
}
|
559
540
|
},
|
560
541
|
"annotation-end": {
|
542
|
+
"match": "^[\\s\\t]*(\\.end annotation)(?=[\\s\\t]*(#.*)?$)",
|
561
543
|
"captures": {
|
562
544
|
"1": {
|
563
545
|
"name": "constant.language.smali"
|
564
546
|
}
|
565
|
-
}
|
566
|
-
"comment": "Parsing this is hard to do right. This is Good Enough™.",
|
567
|
-
"match": "^[\\s\\t]*(\\.end annotation)(?=[\\s\\t]*(#.*)?$)"
|
547
|
+
}
|
568
548
|
},
|
569
549
|
"annotation-name": {
|
550
|
+
"match": "^[\\s\\t]*(name)[\\s\\t]*=[\\s\\t]*(?:(null)|(\")(.*?)((?\u003c!\\\\)\")?)(?=[\\s\\t]*(#.*)?$)",
|
570
551
|
"captures": {
|
571
552
|
"1": {
|
572
553
|
"name": "support.function.smali"
|
@@ -583,11 +564,10 @@
|
|
583
564
|
"5": {
|
584
565
|
"name": "entity.name.tag.smali"
|
585
566
|
}
|
586
|
-
}
|
587
|
-
"comment": "Name property in annotation",
|
588
|
-
"match": "^[\\s\\t]*(name)[\\s\\t]*=[\\s\\t]*(?:(null)|(\")(.*?)((?<!\\\\)\")?)(?=[\\s\\t]*(#.*)?$)"
|
567
|
+
}
|
589
568
|
},
|
590
569
|
"annotation-value": {
|
570
|
+
"match": "^[\\s\\t]*(value)[\\s\\t]*=[\\s\\t]*(?:(\")(.*?)((?\u003c!\\\\)\")?|(?:\\.(enum|subannotation)[\\s\\t]+)?(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?:-\u003e(?:([\\p{L}_\\$][\\w\\$]*):[\\[]*(?:(?:(Z|B|S|C|I|J|F|D)|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))|(\u003cinit\u003e|\u003cclinit\u003e|(?:[\\$\\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]*(#.*)?$)",
|
591
571
|
"captures": {
|
592
572
|
"1": {
|
593
573
|
"name": "support.function.smali"
|
@@ -655,24 +635,17 @@
|
|
655
635
|
"9": {
|
656
636
|
"name": "string.interpolated.smali"
|
657
637
|
}
|
658
|
-
}
|
659
|
-
"comment": "This is another hack because sublime can't handle multi-line regex, particulaly for 'end'.",
|
660
|
-
"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]*(#.*)?$)"
|
638
|
+
}
|
661
639
|
},
|
662
640
|
"annotation-value_list": {
|
663
641
|
"begin": "^[\\s\\t]*(value)[\\s\\t]*=[\\s\\t]*{(?=[\\s\\t]*(#.*)?$)",
|
664
|
-
"beginCaptures": {
|
665
|
-
"1": {
|
666
|
-
"name": "support.function.smali"
|
667
|
-
}
|
668
|
-
},
|
669
|
-
"comment": "This is another hack. Deals.",
|
670
642
|
"end": "^[\\s\\t]*}(?=[\\s\\t]*(#.*)?$)",
|
671
643
|
"patterns": [
|
672
644
|
{
|
673
645
|
"include": "#comment-inline"
|
674
646
|
},
|
675
647
|
{
|
648
|
+
"match": "(?:(\")(.*?)((?\u003c!\\\\)\")?|(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?:,)?(?=[\\s\\t]*(#.*)?$)",
|
676
649
|
"captures": {
|
677
650
|
"1": {
|
678
651
|
"name": "entity.name.tag.smali"
|
@@ -692,39 +665,41 @@
|
|
692
665
|
"6": {
|
693
666
|
"name": "entity.name.tag.smali"
|
694
667
|
}
|
695
|
-
}
|
696
|
-
|
668
|
+
}
|
669
|
+
}
|
670
|
+
],
|
671
|
+
"beginCaptures": {
|
672
|
+
"1": {
|
673
|
+
"name": "support.function.smali"
|
697
674
|
}
|
698
|
-
|
675
|
+
}
|
699
676
|
},
|
700
677
|
"comment-alone": {
|
678
|
+
"match": "^[\\s\\t]*(#.*)$",
|
701
679
|
"captures": {
|
702
680
|
"1": {
|
703
681
|
"name": "comment.line.number-sign.smali"
|
704
682
|
}
|
705
|
-
}
|
706
|
-
"comment": "Single line, stand alone comment",
|
707
|
-
"match": "^[\\s\\t]*(#.*)$"
|
683
|
+
}
|
708
684
|
},
|
709
685
|
"comment-inline": {
|
686
|
+
"match": "(#.*)$",
|
710
687
|
"captures": {
|
711
688
|
"1": {
|
712
689
|
"name": "comment.line.number-sign.smali"
|
713
690
|
}
|
714
|
-
}
|
715
|
-
"comment": "In-line comment",
|
716
|
-
"match": "(#.*)$"
|
691
|
+
}
|
717
692
|
},
|
718
693
|
"directive-method-label": {
|
694
|
+
"match": "^[\\s\\t]*(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
|
719
695
|
"captures": {
|
720
696
|
"1": {
|
721
697
|
"name": "keyword.control.smali"
|
722
698
|
}
|
723
|
-
}
|
724
|
-
"comment": "Label",
|
725
|
-
"match": "^[\\s\\t]*(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)"
|
699
|
+
}
|
726
700
|
},
|
727
701
|
"directive-method-line": {
|
702
|
+
"match": "[\\s\\t]*(\\.line)[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)",
|
728
703
|
"captures": {
|
729
704
|
"1": {
|
730
705
|
"name": "constant.language.smali"
|
@@ -732,11 +707,10 @@
|
|
732
707
|
"2": {
|
733
708
|
"name": "variable.parameter.smali"
|
734
709
|
}
|
735
|
-
}
|
736
|
-
"comment": "Line",
|
737
|
-
"match": "[\\s\\t]*(\\.line)[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)"
|
710
|
+
}
|
738
711
|
},
|
739
712
|
"directive-method-parameter": {
|
713
|
+
"match": "[\\s\\t]*(\\.param(?:eter)?)[\\s\\t]+(p(?:0|[1-9][\\d]?|[1-4][\\d]{2}|50[\\d]|51[0-2])\\b)(?:,[\\s\\t]*(\")(.*?)((?\u003c!\\\\)\"))?(?=[\\s\\t]*(#.*)?$)",
|
740
714
|
"captures": {
|
741
715
|
"1": {
|
742
716
|
"name": "support.function.smali"
|
@@ -753,20 +727,18 @@
|
|
753
727
|
"5": {
|
754
728
|
"name": "entity.name.tag.smali"
|
755
729
|
}
|
756
|
-
}
|
757
|
-
"comment": "Parameter",
|
758
|
-
"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]*(#.*)?$)"
|
730
|
+
}
|
759
731
|
},
|
760
732
|
"directive-method-parameter-end": {
|
733
|
+
"match": "^[\\s\\t]*(\\.end param)(?=[\\s\\t]*(#.*)?$)",
|
761
734
|
"captures": {
|
762
735
|
"1": {
|
763
736
|
"name": "constant.language.smali"
|
764
737
|
}
|
765
|
-
}
|
766
|
-
"comment": "Parsing this is hard to do right. This is Good Enough™.",
|
767
|
-
"match": "^[\\s\\t]*(\\.end param)(?=[\\s\\t]*(#.*)?$)"
|
738
|
+
}
|
768
739
|
},
|
769
740
|
"directive-method-registers_locals": {
|
741
|
+
"match": "[\\s\\t]*(\\.(?:registers|locals))[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)",
|
770
742
|
"captures": {
|
771
743
|
"1": {
|
772
744
|
"name": "constant.language.smali"
|
@@ -774,19 +746,18 @@
|
|
774
746
|
"2": {
|
775
747
|
"name": "variable.parameter.smali"
|
776
748
|
}
|
777
|
-
}
|
778
|
-
"comment": "Registers / Locals",
|
779
|
-
"match": "[\\s\\t]*(\\.(?:registers|locals))[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)"
|
749
|
+
}
|
780
750
|
},
|
781
751
|
"directives-method-relaxed": {
|
752
|
+
"match": "^[\\s\\t]*(:|\\.(?:parameter|line|registers|locals|(?:restart )?local|prologue|(?:end )?(annotation|(sparse|packed)-switch|local)|catch(?:all)?))",
|
782
753
|
"captures": {
|
783
754
|
"1": {
|
784
755
|
"name": "invalid.illegal.smali"
|
785
756
|
}
|
786
|
-
}
|
787
|
-
"match": "^[\\s\\t]*(:|\\.(?:parameter|line|registers|locals|(?:restart )?local|prologue|(?:end )?(annotation|(sparse|packed)-switch|local)|catch(?:all)?))"
|
757
|
+
}
|
788
758
|
},
|
789
759
|
"field": {
|
760
|
+
"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)|([\"'])(.*?)((?\u003c!\\\\)[\"'])))?(?=[\\s\\t]*(#.*)?$)",
|
790
761
|
"captures": {
|
791
762
|
"1": {
|
792
763
|
"name": "constant.language.smali"
|
@@ -827,20 +798,18 @@
|
|
827
798
|
"9": {
|
828
799
|
"name": "constant.numeric.smali"
|
829
800
|
}
|
830
|
-
}
|
831
|
-
"comment": "Field",
|
832
|
-
"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]*(#.*)?$)"
|
801
|
+
}
|
833
802
|
},
|
834
803
|
"field-end": {
|
804
|
+
"match": "^[\\s\\t]*(\\.end field)(?=[\\s\\t]*(#.*)?$)",
|
835
805
|
"captures": {
|
836
806
|
"1": {
|
837
807
|
"name": "constant.language.smali"
|
838
808
|
}
|
839
|
-
}
|
840
|
-
"comment": "Parsing this is hard to do right. This is Good Enough™.",
|
841
|
-
"match": "^[\\s\\t]*(\\.end field)(?=[\\s\\t]*(#.*)?$)"
|
809
|
+
}
|
842
810
|
},
|
843
811
|
"opcode-format-10t-20t-30t": {
|
812
|
+
"match": "^[\\s\\t]*(goto(?:/16|/32)?) (:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)",
|
844
813
|
"captures": {
|
845
814
|
"1": {
|
846
815
|
"name": "support.function.smali"
|
@@ -848,36 +817,34 @@
|
|
848
817
|
"2": {
|
849
818
|
"name": "keyword.control"
|
850
819
|
}
|
851
|
-
}
|
852
|
-
"comment": "Format: op +AA(AA(AAAA))",
|
853
|
-
"match": "^[\\s\\t]*(goto(?:/16|/32)?) (:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)"
|
820
|
+
}
|
854
821
|
},
|
855
822
|
"opcode-format-10t-20t-30t-relaxed": {
|
823
|
+
"match": "^[\\s\\t]*(goto(?:/16|/32)?)",
|
856
824
|
"captures": {
|
857
825
|
"1": {
|
858
826
|
"name": "invalid.illegal.smali"
|
859
827
|
}
|
860
|
-
}
|
861
|
-
"match": "^[\\s\\t]*(goto(?:/16|/32)?)"
|
828
|
+
}
|
862
829
|
},
|
863
830
|
"opcode-format-10x": {
|
831
|
+
"match": "^[\\s\\t]*(nop|return-void)(?=[\\s\\t]*(#.*)?$)",
|
864
832
|
"captures": {
|
865
833
|
"1": {
|
866
834
|
"name": "support.function.smali"
|
867
835
|
}
|
868
|
-
}
|
869
|
-
"comment": "Format: op",
|
870
|
-
"match": "^[\\s\\t]*(nop|return-void)(?=[\\s\\t]*(#.*)?$)"
|
836
|
+
}
|
871
837
|
},
|
872
838
|
"opcode-format-10x-relaxed": {
|
839
|
+
"match": "^[\\s\\t]*(nop|return-void)",
|
873
840
|
"captures": {
|
874
841
|
"1": {
|
875
842
|
"name": "invalid.illegal.smali"
|
876
843
|
}
|
877
|
-
}
|
878
|
-
"match": "^[\\s\\t]*(nop|return-void)"
|
844
|
+
}
|
879
845
|
},
|
880
846
|
"opcode-format-11n": {
|
847
|
+
"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]*(#.*)?$)",
|
881
848
|
"captures": {
|
882
849
|
"1": {
|
883
850
|
"name": "support.function.smali"
|
@@ -888,19 +855,18 @@
|
|
888
855
|
"3": {
|
889
856
|
"name": "constant.numeric.smali"
|
890
857
|
}
|
891
|
-
}
|
892
|
-
"comment": "Format: op vA, #+B",
|
893
|
-
"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]*(#.*)?$)"
|
858
|
+
}
|
894
859
|
},
|
895
860
|
"opcode-format-11n-relaxed": {
|
861
|
+
"match": "^[\\s\\t]*(const/4)",
|
896
862
|
"captures": {
|
897
863
|
"1": {
|
898
864
|
"name": "invalid.illegal.smali"
|
899
865
|
}
|
900
|
-
}
|
901
|
-
"match": "^[\\s\\t]*(const/4)"
|
866
|
+
}
|
902
867
|
},
|
903
868
|
"opcode-format-11x": {
|
869
|
+
"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]*(#.*)?$)",
|
904
870
|
"captures": {
|
905
871
|
"1": {
|
906
872
|
"name": "support.function.smali"
|
@@ -908,19 +874,18 @@
|
|
908
874
|
"2": {
|
909
875
|
"name": "variable.parameter.smali"
|
910
876
|
}
|
911
|
-
}
|
912
|
-
"comment": "Format: op vAA",
|
913
|
-
"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]*(#.*)?$)"
|
877
|
+
}
|
914
878
|
},
|
915
879
|
"opcode-format-11x-relaxed": {
|
880
|
+
"match": "^[\\s\\t]*(move-(?:result(?:-wide|-object)?|exception)|return(?:-wide|-object)?|monitor-(?:enter|exit)|throw)",
|
916
881
|
"captures": {
|
917
882
|
"1": {
|
918
883
|
"name": "invalid.illegal.smali"
|
919
884
|
}
|
920
|
-
}
|
921
|
-
"match": "^[\\s\\t]*(move-(?:result(?:-wide|-object)?|exception)|return(?:-wide|-object)?|monitor-(?:enter|exit)|throw)"
|
885
|
+
}
|
922
886
|
},
|
923
887
|
"opcode-format-12x": {
|
888
|
+
"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]*(#.*)?$)",
|
924
889
|
"captures": {
|
925
890
|
"1": {
|
926
891
|
"name": "support.function.smali"
|
@@ -931,19 +896,18 @@
|
|
931
896
|
"3": {
|
932
897
|
"name": "variable.parameter.smali"
|
933
898
|
}
|
934
|
-
}
|
935
|
-
"comment": "Format: op vA, vB",
|
936
|
-
"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]*(#.*)?$)"
|
899
|
+
}
|
937
900
|
},
|
938
901
|
"opcode-format-12x-relaxed": {
|
902
|
+
"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)",
|
939
903
|
"captures": {
|
940
904
|
"1": {
|
941
905
|
"name": "invalid.illegal.smali"
|
942
906
|
}
|
943
|
-
}
|
944
|
-
"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)"
|
907
|
+
}
|
945
908
|
},
|
946
909
|
"opcode-format-21c-field": {
|
910
|
+
"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_\\$]*)*)(;)-\u003e([\\p{L}_\\$][\\w\\$]*):[\\[]*(?:(?:(Z|B|S|C|I|J|F|D)|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))(?=[\\s\\t]*(#.*)?$)",
|
947
911
|
"captures": {
|
948
912
|
"1": {
|
949
913
|
"name": "support.function.smali"
|
@@ -975,19 +939,18 @@
|
|
975
939
|
"9": {
|
976
940
|
"name": "constant.numeric.smali"
|
977
941
|
}
|
978
|
-
}
|
979
|
-
"comment": "Format: op vAA, field@BBBB",
|
980
|
-
"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]*(#.*)?$)"
|
942
|
+
}
|
981
943
|
},
|
982
944
|
"opcode-format-21c-relaxed": {
|
945
|
+
"match": "^[\\s\\t]*(const-string|const-class|check-cast|new-instance|(?:sget|sput)(?:-wide|-object|-boolean|-byte|-char|-short)?)",
|
983
946
|
"captures": {
|
984
947
|
"1": {
|
985
948
|
"name": "invalid.illegal.smali"
|
986
949
|
}
|
987
|
-
}
|
988
|
-
"match": "^[\\s\\t]*(const-string|const-class|check-cast|new-instance|(?:sget|sput)(?:-wide|-object|-boolean|-byte|-char|-short)?)"
|
950
|
+
}
|
989
951
|
},
|
990
952
|
"opcode-format-21c-string": {
|
953
|
+
"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]*(\")(.*?)((?\u003c!\\\\)\")(?=[\\s\\t]*(#.*)?$)",
|
991
954
|
"captures": {
|
992
955
|
"1": {
|
993
956
|
"name": "support.function.smali"
|
@@ -1004,11 +967,10 @@
|
|
1004
967
|
"5": {
|
1005
968
|
"name": "entity.name.tag.smali"
|
1006
969
|
}
|
1007
|
-
}
|
1008
|
-
"comment": "Format: op vAA, string@BBBB",
|
1009
|
-
"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]*(#.*)?$)"
|
970
|
+
}
|
1010
971
|
},
|
1011
972
|
"opcode-format-21c-type": {
|
973
|
+
"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]*(#.*)?$)",
|
1012
974
|
"captures": {
|
1013
975
|
"1": {
|
1014
976
|
"name": "support.function.smali"
|
@@ -1028,11 +990,10 @@
|
|
1028
990
|
"6": {
|
1029
991
|
"name": "entity.name.tag.smali"
|
1030
992
|
}
|
1031
|
-
}
|
1032
|
-
"comment": "Format: op vAA, type@BBBB",
|
1033
|
-
"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]*(#.*)?$)"
|
993
|
+
}
|
1034
994
|
},
|
1035
995
|
"opcode-format-21h": {
|
996
|
+
"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]*(#.*)?$)",
|
1036
997
|
"captures": {
|
1037
998
|
"1": {
|
1038
999
|
"name": "support.function.smali"
|
@@ -1043,19 +1004,18 @@
|
|
1043
1004
|
"3": {
|
1044
1005
|
"name": "constant.numeric.smali"
|
1045
1006
|
}
|
1046
|
-
}
|
1047
|
-
"comment": "Format: op vAA, #+BBBB0000(00000000)",
|
1048
|
-
"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]*(#.*)?$)"
|
1007
|
+
}
|
1049
1008
|
},
|
1050
1009
|
"opcode-format-21h-relaxed": {
|
1010
|
+
"match": "^[\\s\\t]*(const(?:-wide)?/high16)",
|
1051
1011
|
"captures": {
|
1052
1012
|
"1": {
|
1053
1013
|
"name": "invalid.illegal.smali"
|
1054
1014
|
}
|
1055
|
-
}
|
1056
|
-
"match": "^[\\s\\t]*(const(?:-wide)?/high16)"
|
1015
|
+
}
|
1057
1016
|
},
|
1058
1017
|
"opcode-format-21s": {
|
1018
|
+
"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]*(#.*)?$)",
|
1059
1019
|
"captures": {
|
1060
1020
|
"1": {
|
1061
1021
|
"name": "support.function.smali"
|
@@ -1066,19 +1026,18 @@
|
|
1066
1026
|
"3": {
|
1067
1027
|
"name": "constant.numeric.smali"
|
1068
1028
|
}
|
1069
|
-
}
|
1070
|
-
"comment": "Format: op vAA, #+BBBB",
|
1071
|
-
"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]*(#.*)?$)"
|
1029
|
+
}
|
1072
1030
|
},
|
1073
1031
|
"opcode-format-21s-relaxed": {
|
1032
|
+
"match": "^[\\s\\t]*(const(?:-wide)?/16)",
|
1074
1033
|
"captures": {
|
1075
1034
|
"1": {
|
1076
1035
|
"name": "invalid.illegal.smali"
|
1077
1036
|
}
|
1078
|
-
}
|
1079
|
-
"match": "^[\\s\\t]*(const(?:-wide)?/16)"
|
1037
|
+
}
|
1080
1038
|
},
|
1081
1039
|
"opcode-format-21t": {
|
1040
|
+
"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]*(#.*)?$)",
|
1082
1041
|
"captures": {
|
1083
1042
|
"1": {
|
1084
1043
|
"name": "support.function.smali"
|
@@ -1089,19 +1048,18 @@
|
|
1089
1048
|
"3": {
|
1090
1049
|
"name": "keyword.control.smali"
|
1091
1050
|
}
|
1092
|
-
}
|
1093
|
-
"comment": "Format: op vAA, +BBBB",
|
1094
|
-
"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]*(#.*)?$)"
|
1051
|
+
}
|
1095
1052
|
},
|
1096
1053
|
"opcode-format-21t-relaxed": {
|
1054
|
+
"match": "^[\\s\\t]*(if-(?:eq|ne|lt|ge|gt|le)z)",
|
1097
1055
|
"captures": {
|
1098
1056
|
"1": {
|
1099
1057
|
"name": "invalid.illegal.smali"
|
1100
1058
|
}
|
1101
|
-
}
|
1102
|
-
"match": "^[\\s\\t]*(if-(?:eq|ne|lt|ge|gt|le)z)"
|
1059
|
+
}
|
1103
1060
|
},
|
1104
1061
|
"opcode-format-22b": {
|
1062
|
+
"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]*(#.*)?$)",
|
1105
1063
|
"captures": {
|
1106
1064
|
"1": {
|
1107
1065
|
"name": "support.function.smali"
|
@@ -1115,19 +1073,18 @@
|
|
1115
1073
|
"4": {
|
1116
1074
|
"name": "constant.numeric.smali"
|
1117
1075
|
}
|
1118
|
-
}
|
1119
|
-
"comment": "Format: op vAA, vBB, #+CC",
|
1120
|
-
"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]*(#.*)?$)"
|
1076
|
+
}
|
1121
1077
|
},
|
1122
1078
|
"opcode-format-22b-relaxed": {
|
1079
|
+
"match": "^[\\s\\t]*((?:add|rsub|mul|div|rem|and|or|xor|shl|shr|ushr)-int/lit8)",
|
1123
1080
|
"captures": {
|
1124
1081
|
"1": {
|
1125
1082
|
"name": "invalid.illegal.smali"
|
1126
1083
|
}
|
1127
|
-
}
|
1128
|
-
"match": "^[\\s\\t]*((?:add|rsub|mul|div|rem|and|or|xor|shl|shr|ushr)-int/lit8)"
|
1084
|
+
}
|
1129
1085
|
},
|
1130
1086
|
"opcode-format-22c-field": {
|
1087
|
+
"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_\\$]*)*)(;)-\u003e([\\p{L}_\\$][\\w\\$]*):[\\[]*(?:(Z|B|S|C|I|J|F|D|(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))))(?=[\\s\\t]*(#.*)?$)",
|
1131
1088
|
"captures": {
|
1132
1089
|
"1": {
|
1133
1090
|
"name": "support.function.smali"
|
@@ -1162,19 +1119,18 @@
|
|
1162
1119
|
"9": {
|
1163
1120
|
"name": "entity.name.tag.smali"
|
1164
1121
|
}
|
1165
|
-
}
|
1166
|
-
"comment": "Format: op vA, vB, field@CCCC",
|
1167
|
-
"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]*(#.*)?$)"
|
1122
|
+
}
|
1168
1123
|
},
|
1169
1124
|
"opcode-format-22c-relaxed": {
|
1125
|
+
"match": "^[\\s\\t]*(instance-of|new-array|(?:iget|iput)(?:-wide|-object|-boolean|-byte|-char|-short)?)",
|
1170
1126
|
"captures": {
|
1171
1127
|
"1": {
|
1172
1128
|
"name": "invalid.illegal.smali"
|
1173
1129
|
}
|
1174
|
-
}
|
1175
|
-
"match": "^[\\s\\t]*(instance-of|new-array|(?:iget|iput)(?:-wide|-object|-boolean|-byte|-char|-short)?)"
|
1130
|
+
}
|
1176
1131
|
},
|
1177
1132
|
"opcode-format-22c-type": {
|
1133
|
+
"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]*(#.*)?$)",
|
1178
1134
|
"captures": {
|
1179
1135
|
"1": {
|
1180
1136
|
"name": "support.function.smali"
|
@@ -1197,11 +1153,10 @@
|
|
1197
1153
|
"7": {
|
1198
1154
|
"name": "entity.name.tag.smali"
|
1199
1155
|
}
|
1200
|
-
}
|
1201
|
-
"comment": "Format: op vA, vB, type@CCCC",
|
1202
|
-
"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]*(#.*)?$)"
|
1156
|
+
}
|
1203
1157
|
},
|
1204
1158
|
"opcode-format-22c-type_array": {
|
1159
|
+
"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]*(#.*)?$)",
|
1205
1160
|
"captures": {
|
1206
1161
|
"1": {
|
1207
1162
|
"name": "support.function.smali"
|
@@ -1224,11 +1179,10 @@
|
|
1224
1179
|
"7": {
|
1225
1180
|
"name": "entity.name.tag.smali"
|
1226
1181
|
}
|
1227
|
-
}
|
1228
|
-
"comment": "Format: op vA, vB, [type@CCCC",
|
1229
|
-
"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]*(#.*)?$)"
|
1182
|
+
}
|
1230
1183
|
},
|
1231
1184
|
"opcode-format-22s": {
|
1185
|
+
"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]*(#.*)?$)",
|
1232
1186
|
"captures": {
|
1233
1187
|
"1": {
|
1234
1188
|
"name": "support.function.smali"
|
@@ -1242,19 +1196,18 @@
|
|
1242
1196
|
"4": {
|
1243
1197
|
"name": "constant.numeric.smali"
|
1244
1198
|
}
|
1245
|
-
}
|
1246
|
-
"comment": "Format: op vA, vB, #+CCCC",
|
1247
|
-
"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]*(#.*)?$)"
|
1199
|
+
}
|
1248
1200
|
},
|
1249
1201
|
"opcode-format-22s-relaxed": {
|
1202
|
+
"match": "^[\\s\\t]*((?:(?:add|mul|div|rem|and|or|xor)-int/lit16)|rsub-int)",
|
1250
1203
|
"captures": {
|
1251
1204
|
"1": {
|
1252
1205
|
"name": "invalid.illegal.smali"
|
1253
1206
|
}
|
1254
|
-
}
|
1255
|
-
"match": "^[\\s\\t]*((?:(?:add|mul|div|rem|and|or|xor)-int/lit16)|rsub-int)"
|
1207
|
+
}
|
1256
1208
|
},
|
1257
1209
|
"opcode-format-22t": {
|
1210
|
+
"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]*(#.*)?$)",
|
1258
1211
|
"captures": {
|
1259
1212
|
"1": {
|
1260
1213
|
"name": "support.function.smali"
|
@@ -1268,19 +1221,18 @@
|
|
1268
1221
|
"4": {
|
1269
1222
|
"name": "keyword.control"
|
1270
1223
|
}
|
1271
|
-
}
|
1272
|
-
"comment": "*Format: op vA, vB, +CCCC",
|
1273
|
-
"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]*(#.*)?$)"
|
1224
|
+
}
|
1274
1225
|
},
|
1275
1226
|
"opcode-format-22t-relaxed": {
|
1227
|
+
"match": "(if-(?:eq|ne|lt|ge|gt|le))",
|
1276
1228
|
"captures": {
|
1277
1229
|
"1": {
|
1278
1230
|
"name": "invalid.illegal.smali"
|
1279
1231
|
}
|
1280
|
-
}
|
1281
|
-
"match": "(if-(?:eq|ne|lt|ge|gt|le))"
|
1232
|
+
}
|
1282
1233
|
},
|
1283
1234
|
"opcode-format-22x": {
|
1235
|
+
"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]*(#.*)?$)",
|
1284
1236
|
"captures": {
|
1285
1237
|
"1": {
|
1286
1238
|
"name": "support.function.smali"
|
@@ -1291,19 +1243,18 @@
|
|
1291
1243
|
"3": {
|
1292
1244
|
"name": "variable.parameter.smali"
|
1293
1245
|
}
|
1294
|
-
}
|
1295
|
-
"comment": "Format: op vAA, vBBBB",
|
1296
|
-
"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]*(#.*)?$)"
|
1246
|
+
}
|
1297
1247
|
},
|
1298
1248
|
"opcode-format-22x-relaxed": {
|
1249
|
+
"match": "^[\\s\\t]*(move(?:-wide|-object)?/from16)",
|
1299
1250
|
"captures": {
|
1300
1251
|
"1": {
|
1301
1252
|
"name": "invalid.illegal.smali"
|
1302
1253
|
}
|
1303
|
-
}
|
1304
|
-
"match": "^[\\s\\t]*(move(?:-wide|-object)?/from16)"
|
1254
|
+
}
|
1305
1255
|
},
|
1306
1256
|
"opcode-format-23x": {
|
1257
|
+
"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]*(#.*)?$)",
|
1307
1258
|
"captures": {
|
1308
1259
|
"1": {
|
1309
1260
|
"name": "support.function.smali"
|
@@ -1317,19 +1268,18 @@
|
|
1317
1268
|
"4": {
|
1318
1269
|
"name": "variable.parameter.smali"
|
1319
1270
|
}
|
1320
|
-
}
|
1321
|
-
"comment": "Format: op vAA, vBB, vCC",
|
1322
|
-
"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]*(#.*)?$)"
|
1271
|
+
}
|
1323
1272
|
},
|
1324
1273
|
"opcode-format-23x-relaxed": {
|
1274
|
+
"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))",
|
1325
1275
|
"captures": {
|
1326
1276
|
"1": {
|
1327
1277
|
"name": "invalid.illegal.smali"
|
1328
1278
|
}
|
1329
|
-
}
|
1330
|
-
"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))"
|
1279
|
+
}
|
1331
1280
|
},
|
1332
1281
|
"opcode-format-31i": {
|
1282
|
+
"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]*(#.*)?$)",
|
1333
1283
|
"captures": {
|
1334
1284
|
"1": {
|
1335
1285
|
"name": "support.function.smali"
|
@@ -1340,19 +1290,18 @@
|
|
1340
1290
|
"3": {
|
1341
1291
|
"name": "constant.numeric.smali"
|
1342
1292
|
}
|
1343
|
-
}
|
1344
|
-
"comment": "Format: op vAA, #+BBBBBBBB",
|
1345
|
-
"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]*(#.*)?$)"
|
1293
|
+
}
|
1346
1294
|
},
|
1347
1295
|
"opcode-format-31i-relaxed": {
|
1296
|
+
"match": "^[\\s\\t]*(const(?:-wide/32)?)",
|
1348
1297
|
"captures": {
|
1349
1298
|
"1": {
|
1350
1299
|
"name": "invalid.illegal.smali"
|
1351
1300
|
}
|
1352
|
-
}
|
1353
|
-
"match": "^[\\s\\t]*(const(?:-wide/32)?)"
|
1301
|
+
}
|
1354
1302
|
},
|
1355
1303
|
"opcode-format-31t": {
|
1304
|
+
"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]*(#.*)?$)",
|
1356
1305
|
"captures": {
|
1357
1306
|
"1": {
|
1358
1307
|
"name": "support.function.smali"
|
@@ -1363,19 +1312,18 @@
|
|
1363
1312
|
"3": {
|
1364
1313
|
"name": "keyword.control"
|
1365
1314
|
}
|
1366
|
-
}
|
1367
|
-
"comment": "Format: op vAA, +BBBBBBBB",
|
1368
|
-
"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]*(#.*)?$)"
|
1315
|
+
}
|
1369
1316
|
},
|
1370
1317
|
"opcode-format-31t-relaxed": {
|
1318
|
+
"match": "^[\\s\\t]*(fill-array-data|(?:packed|sparse)-switch)",
|
1371
1319
|
"captures": {
|
1372
1320
|
"1": {
|
1373
1321
|
"name": "invalid.illegal.smali"
|
1374
1322
|
}
|
1375
|
-
}
|
1376
|
-
"match": "^[\\s\\t]*(fill-array-data|(?:packed|sparse)-switch)"
|
1323
|
+
}
|
1377
1324
|
},
|
1378
1325
|
"opcode-format-32x": {
|
1326
|
+
"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]*(#.*)?$)",
|
1379
1327
|
"captures": {
|
1380
1328
|
"1": {
|
1381
1329
|
"name": "support.function.smali"
|
@@ -1386,19 +1334,18 @@
|
|
1386
1334
|
"3": {
|
1387
1335
|
"name": "variable.parameter.smali"
|
1388
1336
|
}
|
1389
|
-
}
|
1390
|
-
"comment": "Format: op vAAAA, vBBBB",
|
1391
|
-
"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]*(#.*)?$)"
|
1337
|
+
}
|
1392
1338
|
},
|
1393
1339
|
"opcode-format-32x-relaxed": {
|
1340
|
+
"match": "^[\\s\\t]*(move(?:-wide|-object)?/16)",
|
1394
1341
|
"captures": {
|
1395
1342
|
"1": {
|
1396
1343
|
"name": "invalid.illegal.smali"
|
1397
1344
|
}
|
1398
|
-
}
|
1399
|
-
"match": "^[\\s\\t]*(move(?:-wide|-object)?/16)"
|
1345
|
+
}
|
1400
1346
|
},
|
1401
1347
|
"opcode-format-35c-meth": {
|
1348
|
+
"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_\\$]*)*)(;)-\u003e(\u003cinit\u003e|\u003cclinit\u003e|(?:[\\$\\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]*(#.*)?$)",
|
1402
1349
|
"captures": {
|
1403
1350
|
"1": {
|
1404
1351
|
"name": "support.function.smali"
|
@@ -1505,19 +1452,18 @@
|
|
1505
1452
|
"9": {
|
1506
1453
|
"name": "entity.name.tag.smali"
|
1507
1454
|
}
|
1508
|
-
}
|
1509
|
-
"comment": "Format: op {vC, vD, vE, vF, vG}, meth@BBBB",
|
1510
|
-
"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]*(#.*)?$)"
|
1455
|
+
}
|
1511
1456
|
},
|
1512
1457
|
"opcode-format-35c-relaxed": {
|
1458
|
+
"match": "^[\\s\\t]*(filled-new-array|invoke-(?:virtual|super|direct|static|interface))",
|
1513
1459
|
"captures": {
|
1514
1460
|
"1": {
|
1515
1461
|
"name": "invalid.illegal.smali"
|
1516
1462
|
}
|
1517
|
-
}
|
1518
|
-
"match": "^[\\s\\t]*(filled-new-array|invoke-(?:virtual|super|direct|static|interface))"
|
1463
|
+
}
|
1519
1464
|
},
|
1520
1465
|
"opcode-format-35c-type": {
|
1466
|
+
"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]*(#.*)?$)",
|
1521
1467
|
"captures": {
|
1522
1468
|
"1": {
|
1523
1469
|
"name": "support.function.smali"
|
@@ -1552,11 +1498,10 @@
|
|
1552
1498
|
"9": {
|
1553
1499
|
"name": "constant.numeric.smali"
|
1554
1500
|
}
|
1555
|
-
}
|
1556
|
-
"comment": "Format: op {vC, vD, vE, vF, vG}, type@BBBB",
|
1557
|
-
"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]*(#.*)?$)"
|
1501
|
+
}
|
1558
1502
|
},
|
1559
1503
|
"opcode-format-3rc-meth": {
|
1504
|
+
"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_\\$]*)*)(;)-\u003e(\u003cinit\u003e|\u003cclinit\u003e|(?:[\\$\\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]*(#.*)?$)",
|
1560
1505
|
"captures": {
|
1561
1506
|
"1": {
|
1562
1507
|
"name": "support.function.smali"
|
@@ -1603,19 +1548,18 @@
|
|
1603
1548
|
"9": {
|
1604
1549
|
"name": "constant.numeric.smali"
|
1605
1550
|
}
|
1606
|
-
}
|
1607
|
-
"comment": "Format: op {vCCCC .. vNNNN}, meth@BBBB",
|
1608
|
-
"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]*(#.*)?$)"
|
1551
|
+
}
|
1609
1552
|
},
|
1610
1553
|
"opcode-format-3rc-relaxed": {
|
1554
|
+
"match": "^[\\s\\t]*((?:filled-new-array|invoke-(?:virtual|super|direct|static|interface))/range)",
|
1611
1555
|
"captures": {
|
1612
1556
|
"1": {
|
1613
1557
|
"name": "invalid.illegal.smali"
|
1614
1558
|
}
|
1615
|
-
}
|
1616
|
-
"match": "^[\\s\\t]*((?:filled-new-array|invoke-(?:virtual|super|direct|static|interface))/range)"
|
1559
|
+
}
|
1617
1560
|
},
|
1618
1561
|
"opcode-format-3rc-type": {
|
1562
|
+
"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]*(#.*)?$)",
|
1619
1563
|
"captures": {
|
1620
1564
|
"1": {
|
1621
1565
|
"name": "support.function.smali"
|
@@ -1638,11 +1582,10 @@
|
|
1638
1582
|
"7": {
|
1639
1583
|
"name": "entity.name.tag.smali"
|
1640
1584
|
}
|
1641
|
-
}
|
1642
|
-
"comment": "Format: op {vCCCC .. vNNNN}, type@BBBB",
|
1643
|
-
"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]*(#.*)?$)"
|
1585
|
+
}
|
1644
1586
|
},
|
1645
1587
|
"opcode-format-51l": {
|
1588
|
+
"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]*(#.*)?$)",
|
1646
1589
|
"captures": {
|
1647
1590
|
"1": {
|
1648
1591
|
"name": "support.function.smali"
|
@@ -1653,19 +1596,15 @@
|
|
1653
1596
|
"3": {
|
1654
1597
|
"name": "constant.numeric.smali"
|
1655
1598
|
}
|
1656
|
-
}
|
1657
|
-
"comment": "Format: op vAA, #+BBBBBBBBBBBBBBBB",
|
1658
|
-
"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]*(#.*)?$)"
|
1599
|
+
}
|
1659
1600
|
},
|
1660
1601
|
"opcode-format-51l-relaxed": {
|
1602
|
+
"match": "^[\\s\\t]*(const-wide)(?!\\/32)",
|
1661
1603
|
"captures": {
|
1662
1604
|
"1": {
|
1663
1605
|
"name": "invalid.illegal.smali"
|
1664
1606
|
}
|
1665
|
-
}
|
1666
|
-
"match": "^[\\s\\t]*(const-wide)(?!\\/32)"
|
1607
|
+
}
|
1667
1608
|
}
|
1668
|
-
}
|
1669
|
-
|
1670
|
-
"uuid": "d6fe4632-f21a-4533-8908-723df0b58ac0"
|
1671
|
-
}
|
1609
|
+
}
|
1610
|
+
}
|