github-linguist-grammars 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (335) hide show
  1. checksums.yaml +7 -0
  2. data/grammars/file.lasso.json +713 -0
  3. data/grammars/module.ceylon.json +54 -0
  4. data/grammars/objdump.x86asm.json +73 -0
  5. data/grammars/source.Inform7.json +45 -0
  6. data/grammars/source.Kotlin.json +774 -0
  7. data/grammars/source.LS.json +104 -0
  8. data/grammars/source.MCPOST.json +68 -0
  9. data/grammars/source.MOD.json +70 -0
  10. data/grammars/source.abap.json +176 -0
  11. data/grammars/source.abl.json +138 -0
  12. data/grammars/source.actionscript.3.json +1571 -0
  13. data/grammars/source.acucobol.json +16 -0
  14. data/grammars/source.ada.json +140 -0
  15. data/grammars/source.agda.json +254 -0
  16. data/grammars/source.ahk.json +171 -0
  17. data/grammars/source.alloy.json +44 -0
  18. data/grammars/source.ampl.json +157 -0
  19. data/grammars/source.antlr.json +300 -0
  20. data/grammars/source.apache-config.json +352 -0
  21. data/grammars/source.apache-config.mod_perl.json +70 -0
  22. data/grammars/source.apl.json +442 -0
  23. data/grammars/source.applescript.json +1385 -0
  24. data/grammars/source.apt.json +25 -0
  25. data/grammars/source.asm.x86.json +182 -0
  26. data/grammars/source.asp.json +157 -0
  27. data/grammars/source.aspectj.json +963 -0
  28. data/grammars/source.ats.json +170 -0
  29. data/grammars/source.autoit.3.json +132 -0
  30. data/grammars/source.awk.json +388 -0
  31. data/grammars/source.befunge.json +38 -0
  32. data/grammars/source.bf.json +36 -0
  33. data/grammars/source.bison.json +59 -0
  34. data/grammars/source.blitzmax.json +912 -0
  35. data/grammars/source.boo.json +452 -0
  36. data/grammars/source.brightauthorproject.json +29 -0
  37. data/grammars/source.brightscript.json +158 -0
  38. data/grammars/source.bro.json +409 -0
  39. data/grammars/source.bsv.json +283 -0
  40. data/grammars/source.c++.json +364 -0
  41. data/grammars/source.c++.qt.json +37 -0
  42. data/grammars/source.c.ec.json +39 -0
  43. data/grammars/source.c.json +727 -0
  44. data/grammars/source.c.platform.json +154 -0
  45. data/grammars/source.cache.cmake.json +75 -0
  46. data/grammars/source.cake.json +16 -0
  47. data/grammars/source.camlp4.ocaml.json +63 -0
  48. data/grammars/source.capnp.json +93 -0
  49. data/grammars/source.ceylon.json +77 -0
  50. data/grammars/source.cfscript.cfc.json +170 -0
  51. data/grammars/source.cfscript.json +744 -0
  52. data/grammars/source.chapel.json +240 -0
  53. data/grammars/source.cirru.json +66 -0
  54. data/grammars/source.clarion.json +159 -0
  55. data/grammars/source.clips.json +80 -0
  56. data/grammars/source.clojure.json +397 -0
  57. data/grammars/source.cm.json +54 -0
  58. data/grammars/source.cmake.json +181 -0
  59. data/grammars/source.cobol.json +528 -0
  60. data/grammars/source.coffee.json +678 -0
  61. data/grammars/source.compiled-papyrus.json +11 -0
  62. data/grammars/source.cool.json +103 -0
  63. data/grammars/source.coq.json +62 -0
  64. data/grammars/source.crystal.json +2760 -0
  65. data/grammars/source.cs.json +556 -0
  66. data/grammars/source.css.json +630 -0
  67. data/grammars/source.css.less.json +276 -0
  68. data/grammars/source.css.mss.json +256 -0
  69. data/grammars/source.csx.json +16 -0
  70. data/grammars/source.cuda-c++.json +137 -0
  71. data/grammars/source.cython.json +2108 -0
  72. data/grammars/source.d.json +722 -0
  73. data/grammars/source.dart.json +763 -0
  74. data/grammars/source.desktop.json +90 -0
  75. data/grammars/source.diff.json +162 -0
  76. data/grammars/source.dockerfile.json +89 -0
  77. data/grammars/source.dosbatch.json +70 -0
  78. data/grammars/source.dot.json +126 -0
  79. data/grammars/source.dylan.json +217 -0
  80. data/grammars/source.eiffel.json +138 -0
  81. data/grammars/source.elixir.json +737 -0
  82. data/grammars/source.elm.json +355 -0
  83. data/grammars/source.erazor.json +126 -0
  84. data/grammars/source.erlang.json +1674 -0
  85. data/grammars/source.essl.json +50 -0
  86. data/grammars/source.factor.json +260 -0
  87. data/grammars/source.fan.json +188 -0
  88. data/grammars/source.fancy.json +270 -0
  89. data/grammars/source.fish.json +214 -0
  90. data/grammars/source.forth.json +101 -0
  91. data/grammars/source.fortran.json +499 -0
  92. data/grammars/source.fortran.modern.json +226 -0
  93. data/grammars/source.fsharp.json +403 -0
  94. data/grammars/source.gap.json +167 -0
  95. data/grammars/source.gcode.json +25 -0
  96. data/grammars/source.gdscript.json +154 -0
  97. data/grammars/source.gfm.json +1270 -0
  98. data/grammars/source.glsl.json +71 -0
  99. data/grammars/source.gnuplot.json +276 -0
  100. data/grammars/source.go.json +552 -0
  101. data/grammars/source.golo.json +182 -0
  102. data/grammars/source.gosu.2.json +163 -0
  103. data/grammars/source.grace.json +679 -0
  104. data/grammars/source.groovy.gradle.json +73 -0
  105. data/grammars/source.groovy.json +1385 -0
  106. data/grammars/source.harbour.json +450 -0
  107. data/grammars/source.haskell.json +449 -0
  108. data/grammars/source.haxe.2.json +1243 -0
  109. data/grammars/source.hss.1.json +464 -0
  110. data/grammars/source.httpspec.json +287 -0
  111. data/grammars/source.hxml.json +26 -0
  112. data/grammars/source.hy.json +270 -0
  113. data/grammars/source.idl-dlm.json +112 -0
  114. data/grammars/source.idl.json +267 -0
  115. data/grammars/source.idris.json +537 -0
  116. data/grammars/source.ini.json +113 -0
  117. data/grammars/source.inno.json +65 -0
  118. data/grammars/source.io.json +164 -0
  119. data/grammars/source.ioke.json +272 -0
  120. data/grammars/source.isabelle.root.json +68 -0
  121. data/grammars/source.isabelle.theory.json +106 -0
  122. data/grammars/source.j.json +49 -0
  123. data/grammars/source.jade.json +1009 -0
  124. data/grammars/source.jasmin.json +299 -0
  125. data/grammars/source.java-properties.json +97 -0
  126. data/grammars/source.java.json +1026 -0
  127. data/grammars/source.jcl.json +49 -0
  128. data/grammars/source.jflex.json +490 -0
  129. data/grammars/source.jq.json +218 -0
  130. data/grammars/source.js.json +948 -0
  131. data/grammars/source.js.jsx.json +2937 -0
  132. data/grammars/source.js.objj.json +424 -0
  133. data/grammars/source.js.regexp.json +150 -0
  134. data/grammars/source.js.regexp.replacement.json +30 -0
  135. data/grammars/source.json.json +149 -0
  136. data/grammars/source.julia.json +407 -0
  137. data/grammars/source.lean.json +145 -0
  138. data/grammars/source.lid.json +23 -0
  139. data/grammars/source.lilypond.json +623 -0
  140. data/grammars/source.lisp.json +111 -0
  141. data/grammars/source.litcoffee.json +669 -0
  142. data/grammars/source.livescript.json +616 -0
  143. data/grammars/source.llvm.json +71 -0
  144. data/grammars/source.logos.json +31 -0
  145. data/grammars/source.logtalk.json +315 -0
  146. data/grammars/source.loomscript.json +214 -0
  147. data/grammars/source.lsl.json +216 -0
  148. data/grammars/source.lua.json +191 -0
  149. data/grammars/source.makefile.json +474 -0
  150. data/grammars/source.makegen.json +13 -0
  151. data/grammars/source.man.json +53 -0
  152. data/grammars/source.mask.json +701 -0
  153. data/grammars/source.mata.json +133 -0
  154. data/grammars/source.mathematica.json +429 -0
  155. data/grammars/source.matlab.json +776 -0
  156. data/grammars/source.mercury.json +251 -0
  157. data/grammars/source.ml.json +291 -0
  158. data/grammars/source.modelica.json +142 -0
  159. data/grammars/source.modula2.json +103 -0
  160. data/grammars/source.monkey.json +701 -0
  161. data/grammars/source.moonscript.json +149 -0
  162. data/grammars/source.mupad.json +149 -0
  163. data/grammars/source.nant-build.json +86 -0
  164. data/grammars/source.ncl.json +66 -0
  165. data/grammars/source.nemerle.json +137 -0
  166. data/grammars/source.nesc.json +27 -0
  167. data/grammars/source.netlinx.erb.json +47 -0
  168. data/grammars/source.netlinx.json +768 -0
  169. data/grammars/source.nginx.json +797 -0
  170. data/grammars/source.nim.json +1150 -0
  171. data/grammars/source.nim_filter.json +133 -0
  172. data/grammars/source.nimcfg.json +116 -0
  173. data/grammars/source.ninja.json +66 -0
  174. data/grammars/source.nit.json +238 -0
  175. data/grammars/source.nix.json +1200 -0
  176. data/grammars/source.nmml.json +87 -0
  177. data/grammars/source.nsis.json +150 -0
  178. data/grammars/source.objc++.json +19 -0
  179. data/grammars/source.objc.json +918 -0
  180. data/grammars/source.objc.platform.json +277 -0
  181. data/grammars/source.ocaml.json +1426 -0
  182. data/grammars/source.ocamllex.json +305 -0
  183. data/grammars/source.ocamlyacc.json +346 -0
  184. data/grammars/source.octave.json +451 -0
  185. data/grammars/source.ooc.json +692 -0
  186. data/grammars/source.opa.json +206 -0
  187. data/grammars/source.opal.json +415 -0
  188. data/grammars/source.opalsysdefs.json +70 -0
  189. data/grammars/source.opencobol.json +65 -0
  190. data/grammars/source.ox.json +97 -0
  191. data/grammars/source.oz.json +84 -0
  192. data/grammars/source.papyrus-assembly.json +266 -0
  193. data/grammars/source.papyrus.json +231 -0
  194. data/grammars/source.parrot.pir.json +117 -0
  195. data/grammars/source.pascal.json +150 -0
  196. data/grammars/source.perl.6.json +310 -0
  197. data/grammars/source.perl.json +2413 -0
  198. data/grammars/source.php.zephir.json +362 -0
  199. data/grammars/source.pig_latin.json +172 -0
  200. data/grammars/source.pike.json +62 -0
  201. data/grammars/source.plsql.oracle.json +642 -0
  202. data/grammars/source.po.json +232 -0
  203. data/grammars/source.pogoscript.json +85 -0
  204. data/grammars/source.postscript.json +231 -0
  205. data/grammars/source.powershell.json +755 -0
  206. data/grammars/source.processing.json +885 -0
  207. data/grammars/source.prolog.eclipse.json +206 -0
  208. data/grammars/source.prolog.json +292 -0
  209. data/grammars/source.protobuf.json +395 -0
  210. data/grammars/source.pubspec.json +13 -0
  211. data/grammars/source.puppet.json +494 -0
  212. data/grammars/source.purescript.json +818 -0
  213. data/grammars/source.pyjade.json +1010 -0
  214. data/grammars/source.python.django.json +34 -0
  215. data/grammars/source.python.json +1960 -0
  216. data/grammars/source.python.salt.json +13 -0
  217. data/grammars/source.qmake.json +217 -0
  218. data/grammars/source.qml.json +195 -0
  219. data/grammars/source.r.json +203 -0
  220. data/grammars/source.racket.json +119 -0
  221. data/grammars/source.rebol.json +647 -0
  222. data/grammars/source.red.json +652 -0
  223. data/grammars/source.regexp.babel.json +190 -0
  224. data/grammars/source.regexp.python.json +187 -0
  225. data/grammars/source.regexp.spin.json +188 -0
  226. data/grammars/source.ruby.json +1956 -0
  227. data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
  228. data/grammars/source.rust.json +269 -0
  229. data/grammars/source.sas.json +322 -0
  230. data/grammars/source.sas_log.json +26 -0
  231. data/grammars/source.sass.json +248 -0
  232. data/grammars/source.sbt.json +36 -0
  233. data/grammars/source.scad.json +152 -0
  234. data/grammars/source.scala.json +739 -0
  235. data/grammars/source.scaml.json +466 -0
  236. data/grammars/source.scheme.json +370 -0
  237. data/grammars/source.scilab.json +103 -0
  238. data/grammars/source.scss.json +1321 -0
  239. data/grammars/source.shell.json +1212 -0
  240. data/grammars/source.smali.json +1668 -0
  241. data/grammars/source.smalltalk.json +135 -0
  242. data/grammars/source.smt.json +173 -0
  243. data/grammars/source.sp.json +118 -0
  244. data/grammars/source.sparql.json +23 -0
  245. data/grammars/source.spin.json +936 -0
  246. data/grammars/source.sqf.json +112 -0
  247. data/grammars/source.sql.json +473 -0
  248. data/grammars/source.stata.json +208 -0
  249. data/grammars/source.strings.json +53 -0
  250. data/grammars/source.stylus.json +1021 -0
  251. data/grammars/source.swift.json +965 -0
  252. data/grammars/source.systemverilog.json +1050 -0
  253. data/grammars/source.tcl.json +277 -0
  254. data/grammars/source.tea.json +180 -0
  255. data/grammars/source.thrift.json +704 -0
  256. data/grammars/source.toml.json +327 -0
  257. data/grammars/source.ts.json +1094 -0
  258. data/grammars/source.tsx.json +1324 -0
  259. data/grammars/source.turtle.json +505 -0
  260. data/grammars/source.txl.json +62 -0
  261. data/grammars/source.ucfconstraints.json +72 -0
  262. data/grammars/source.vala.json +814 -0
  263. data/grammars/source.varnish.vcl.json +343 -0
  264. data/grammars/source.vbnet.json +338 -0
  265. data/grammars/source.verilog.json +302 -0
  266. data/grammars/source.vhdl.json +1349 -0
  267. data/grammars/source.viml.json +224 -0
  268. data/grammars/source.webidl.json +814 -0
  269. data/grammars/source.x10.json +68 -0
  270. data/grammars/source.x86asm.json +47 -0
  271. data/grammars/source.xc.json +379 -0
  272. data/grammars/source.xq.json +241 -0
  273. data/grammars/source.xquery.json +193 -0
  274. data/grammars/source.xtend.json +733 -0
  275. data/grammars/source.yaml.json +334 -0
  276. data/grammars/source.yaml.salt.json +348 -0
  277. data/grammars/text.bibtex.json +251 -0
  278. data/grammars/text.cfml.basic.json +736 -0
  279. data/grammars/text.dart-analysis-output.json +162 -0
  280. data/grammars/text.dart-doccomments.json +19 -0
  281. data/grammars/text.elixir.json +45 -0
  282. data/grammars/text.gherkin.feature.json +135 -0
  283. data/grammars/text.groff.json +113 -0
  284. data/grammars/text.haml.json +299 -0
  285. data/grammars/text.html.abl.json +24 -0
  286. data/grammars/text.html.asciidoc.json +492 -0
  287. data/grammars/text.html.asdoc.json +541 -0
  288. data/grammars/text.html.asp.json +58 -0
  289. data/grammars/text.html.basic.json +552 -0
  290. data/grammars/text.html.cfm.json +811 -0
  291. data/grammars/text.html.creole.json +329 -0
  292. data/grammars/text.html.django.json +69 -0
  293. data/grammars/text.html.elixir.json +18 -0
  294. data/grammars/text.html.erb.json +157 -0
  295. data/grammars/text.html.erlang.yaws.json +72 -0
  296. data/grammars/text.html.factor.json +27 -0
  297. data/grammars/text.html.handlebars.json +783 -0
  298. data/grammars/text.html.jsp.json +1203 -0
  299. data/grammars/text.html.liquid.json +35 -0
  300. data/grammars/text.html.mako.json +729 -0
  301. data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
  302. data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
  303. data/grammars/text.html.mediawiki.json +972 -0
  304. data/grammars/text.html.php.json +2607 -0
  305. data/grammars/text.html.slash.json +313 -0
  306. data/grammars/text.html.smarty.json +216 -0
  307. data/grammars/text.html.ssp.json +49 -0
  308. data/grammars/text.html.tcl.json +44 -0
  309. data/grammars/text.html.twig.json +1353 -0
  310. data/grammars/text.html.vue.json +642 -0
  311. data/grammars/text.idl-idldoc.json +14 -0
  312. data/grammars/text.junit-test-report.json +92 -0
  313. data/grammars/text.log.latex.json +86 -0
  314. data/grammars/text.python.console.json +25 -0
  315. data/grammars/text.python.traceback.json +46 -0
  316. data/grammars/text.rdoc.json +48 -0
  317. data/grammars/text.restructuredtext.json +561 -0
  318. data/grammars/text.robot.json +73 -0
  319. data/grammars/text.shell-session.json +48 -0
  320. data/grammars/text.slim.json +527 -0
  321. data/grammars/text.tex.json +271 -0
  322. data/grammars/text.tex.latex.beamer.json +63 -0
  323. data/grammars/text.tex.latex.haskell.json +56 -0
  324. data/grammars/text.tex.latex.json +1013 -0
  325. data/grammars/text.tex.latex.memoir.json +99 -0
  326. data/grammars/text.tex.latex.rd.json +117 -0
  327. data/grammars/text.xml.ant.json +202 -0
  328. data/grammars/text.xml.flex-config.json +2634 -0
  329. data/grammars/text.xml.genshi.json +34 -0
  330. data/grammars/text.xml.json +364 -0
  331. data/grammars/text.xml.pom.json +774 -0
  332. data/grammars/text.xml.xsl.json +94 -0
  333. data/grammars/text.zone_file.json +72 -0
  334. data/lib/linguist/grammars.rb +13 -0
  335. metadata +389 -0
@@ -0,0 +1,1668 @@
1
+ {
2
+ "fileTypes": [
3
+ "Smali"
4
+ ],
5
+ "foldingStartMarker": "[\\s\\t]*\\.method",
6
+ "foldingStopMarker": "[\\s\\t]*\\.end method",
7
+ "name": "Smali",
8
+ "patterns": [
9
+ {
10
+ "include": "#annotation"
11
+ },
12
+ {
13
+ "include": "#annotation-end"
14
+ },
15
+ {
16
+ "include": "#annotation-value_list"
17
+ },
18
+ {
19
+ "include": "#annotation-value"
20
+ },
21
+ {
22
+ "include": "#annotation-name"
23
+ },
24
+ {
25
+ "include": "#annotation-access"
26
+ },
27
+ {
28
+ "include": "#comment-alone"
29
+ },
30
+ {
31
+ "include": "#field"
32
+ },
33
+ {
34
+ "include": "#field-end"
35
+ },
36
+ {
37
+ "captures": {
38
+ "1": {
39
+ "name": "constant.language.smali"
40
+ },
41
+ "2": {
42
+ "name": "variable.parameter.smali"
43
+ },
44
+ "3": {
45
+ "name": "entity.name.tag.smali"
46
+ },
47
+ "4": {
48
+ "name": "string.quoted.double.smali"
49
+ },
50
+ "5": {
51
+ "name": "entity.name.tag.smali"
52
+ }
53
+ },
54
+ "comment": "Class name",
55
+ "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]*(#.*)?$)"
56
+ },
57
+ {
58
+ "captures": {
59
+ "1": {
60
+ "name": "constant.language.smali"
61
+ },
62
+ "2": {
63
+ "name": "entity.name.tag.smali"
64
+ },
65
+ "3": {
66
+ "name": "string.quoted.double.smali"
67
+ },
68
+ "4": {
69
+ "name": "entity.name.tag.smali"
70
+ }
71
+ },
72
+ "comment": "Super / implements class name",
73
+ "match": "^[\\s\\t]*(\\.(?:super|implements))[\\s\\t]+(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;)(?=[\\s\\t]*(#.*)?$)"
74
+ },
75
+ {
76
+ "captures": {
77
+ "1": {
78
+ "name": "constant.language.smali"
79
+ },
80
+ "2": {
81
+ "name": "entity.name.tag.smali"
82
+ },
83
+ "3": {
84
+ "name": "string.quoted.double.smali"
85
+ },
86
+ "4": {
87
+ "name": "entity.name.tag.smali"
88
+ }
89
+ },
90
+ "comment": "Source file",
91
+ "match": "^[\\s\\t]*(\\.source)[\\s\\t]+(\")(.*?)((?<!\\\\)\")(?=[\\s\\t]*(#.*)?$)(?=[\\s\\t]*(#.*)?$)"
92
+ },
93
+ {
94
+ "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]*(#.*)?$)",
95
+ "beginCaptures": {
96
+ "1": {
97
+ "name": "constant.language.smali"
98
+ },
99
+ "10": {
100
+ "name": "entity.name.tag.smali"
101
+ },
102
+ "11": {
103
+ "name": "constant.numeric.smali"
104
+ },
105
+ "12": {
106
+ "name": "entity.name.tag.smali"
107
+ },
108
+ "2": {
109
+ "name": "variable.parameter.smali"
110
+ },
111
+ "3": {
112
+ "name": "variable.parameter.smali"
113
+ },
114
+ "4": {
115
+ "name": "entity.name.function.smali"
116
+ },
117
+ "5": {
118
+ "name": "constant.numeric.smali"
119
+ },
120
+ "6": {
121
+ "name": "constant.numeric.smali"
122
+ },
123
+ "7": {
124
+ "name": "constant.numeric.smali"
125
+ },
126
+ "8": {
127
+ "name": "entity.name.tag.smali"
128
+ },
129
+ "9": {
130
+ "name": "constant.numeric.smali"
131
+ }
132
+ },
133
+ "comment": "Method signature and body",
134
+ "end": "^[\\s\\t]*(\\.end method)(?=[\\s\\t]*(#.*)?$)",
135
+ "endCaptures": {
136
+ "1": {
137
+ "name": "constant.language.smali"
138
+ }
139
+ },
140
+ "patterns": [
141
+ {
142
+ "include": "#comment-inline"
143
+ },
144
+ {
145
+ "comment": "Prologue",
146
+ "match": "^[\\s\\t]*(\\.prologue)(?=[\\s\\t]*(#.*)?$)",
147
+ "name": "constant.language.smali"
148
+ },
149
+ {
150
+ "captures": {
151
+ "1": {
152
+ "name": "constant.language.smali"
153
+ },
154
+ "10": {
155
+ "name": "entity.name.tag.smali"
156
+ },
157
+ "11": {
158
+ "name": "entity.name.tag.smali"
159
+ },
160
+ "12": {
161
+ "name": "string.interpolated.smali"
162
+ },
163
+ "13": {
164
+ "name": "entity.name.tag.smali"
165
+ },
166
+ "2": {
167
+ "name": "variable.parameter.smali"
168
+ },
169
+ "3": {
170
+ "name": "string.interpolated.smali"
171
+ },
172
+ "4": {
173
+ "name": "constant.numeric.smali"
174
+ },
175
+ "5": {
176
+ "name": "entity.name.tag.smali"
177
+ },
178
+ "6": {
179
+ "name": "constant.numeric.smali"
180
+ },
181
+ "7": {
182
+ "name": "entity.name.tag.smali"
183
+ },
184
+ "8": {
185
+ "name": "entity.name.tag.smali"
186
+ },
187
+ "9": {
188
+ "name": "string.interpolated.smali"
189
+ }
190
+ },
191
+ "comment": "Local",
192
+ "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]*(#.*)?$)"
193
+ },
194
+ {
195
+ "captures": {
196
+ "1": {
197
+ "name": "constant.language.smali"
198
+ },
199
+ "2": {
200
+ "name": "entity.name.tag.smali"
201
+ },
202
+ "3": {
203
+ "name": "constant.numeric.smali"
204
+ },
205
+ "4": {
206
+ "name": "entity.name.tag.smali"
207
+ },
208
+ "5": {
209
+ "name": "keyword.control.smali"
210
+ },
211
+ "6": {
212
+ "name": "keyword.control.smali"
213
+ },
214
+ "7": {
215
+ "name": "keyword.control.smali"
216
+ }
217
+ },
218
+ "comment": "Catch exceptions",
219
+ "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]*(#.*)?$)"
220
+ },
221
+ {
222
+ "captures": {
223
+ "1": {
224
+ "name": "constant.language.smali"
225
+ },
226
+ "2": {
227
+ "name": "keyword.control.smali"
228
+ },
229
+ "3": {
230
+ "name": "keyword.control.smali"
231
+ },
232
+ "4": {
233
+ "name": "keyword.control.smali"
234
+ }
235
+ },
236
+ "comment": "Gotta catch 'em all!",
237
+ "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]*(#.*)?$)"
238
+ },
239
+ {
240
+ "comment": "End / Restart Local",
241
+ "match": "^[\\s\\t]*(\\.(?:end|restart)[\\s\\t]+local)[\\s\\t]+[vp]\\d+(?=[\\s\\t]*(#.*)?$)",
242
+ "name": "constant.language.smali"
243
+ },
244
+ {
245
+ "begin": "^[\\s\\t]*(\\.sparse-switch)(?=[\\s\\t]*(#.*)?$)",
246
+ "beginCaptures": {
247
+ "1": {
248
+ "name": "constant.language.smali"
249
+ }
250
+ },
251
+ "comment": "Sparse Switch",
252
+ "end": "^[\\s\\t]*(\\.end sparse-switch)(?=[\\s\\t]*(#.*)?$)",
253
+ "endCaptures": {
254
+ "1": {
255
+ "name": "constant.language.smali"
256
+ }
257
+ },
258
+ "patterns": [
259
+ {
260
+ "include": "#comment-inline"
261
+ },
262
+ {
263
+ "captures": {
264
+ "1": {
265
+ "name": "variable.parameter.smali"
266
+ },
267
+ "2": {
268
+ "name": "keyword.control.smali"
269
+ }
270
+ },
271
+ "match": "^[\\s\\t]*(-?0x(?i:0|[1-9a-f][\\da-f]*))[\\s\\t]+->[\\s\\t]+(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)"
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "captures": {
277
+ "1": {
278
+ "name": "constant.language.smali"
279
+ },
280
+ "2": {
281
+ "name": "variable.parameter.smali"
282
+ }
283
+ },
284
+ "comment": "Begin Packed Switch, no idea what literal limit is for these. Have seen up to 0x7f090005",
285
+ "match": "^[\\s\\t]*(\\.packed-switch)[\\s\\t]+(-0x1|0x(?i:0|[1-9a-f][\\da-f]*))(?=[\\s\\t]*(#.*)?$)"
286
+ },
287
+ {
288
+ "comment": "End Packed Switch",
289
+ "match": "^[\\s\\t]*(\\.end packed-switch)(?=[\\s\\t]*(#.*)?$)",
290
+ "name": "constant.language.smali"
291
+ },
292
+ {
293
+ "begin": "^[\\s\\t]*(\\.array-data)[\\s\\t]+(1|2|4|8)(?=[\\s\\t]*(#.*)?$)",
294
+ "beginCaptures": {
295
+ "1": {
296
+ "name": "constant.language.smali"
297
+ },
298
+ "2": {
299
+ "name": "variable.parameter.smali"
300
+ }
301
+ },
302
+ "comment": "Array data",
303
+ "end": "^[\\s\\t]*(\\.end array-data)(?=[\\s\\t]*(#.*)?$)",
304
+ "endCaptures": {
305
+ "1": {
306
+ "name": "constant.language.smali"
307
+ }
308
+ },
309
+ "patterns": [
310
+ {
311
+ "include": "#comment-inline"
312
+ },
313
+ {
314
+ "captures": {
315
+ "1": {
316
+ "name": "variable.parameter.smali"
317
+ }
318
+ },
319
+ "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]*(#.*)?$)"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "include": "#field"
325
+ },
326
+ {
327
+ "include": "#field-end"
328
+ },
329
+ {
330
+ "include": "#annotation"
331
+ },
332
+ {
333
+ "include": "#annotation-end"
334
+ },
335
+ {
336
+ "include": "#annotation-value_list"
337
+ },
338
+ {
339
+ "include": "#annotation-value"
340
+ },
341
+ {
342
+ "include": "#annotation-name"
343
+ },
344
+ {
345
+ "include": "#annotation-access"
346
+ },
347
+ {
348
+ "include": "#comment-alone"
349
+ },
350
+ {
351
+ "include": "#directive-method-line"
352
+ },
353
+ {
354
+ "include": "#directive-method-registers_locals"
355
+ },
356
+ {
357
+ "include": "#directive-method-label"
358
+ },
359
+ {
360
+ "include": "#directive-method-parameter"
361
+ },
362
+ {
363
+ "include": "#directive-method-parameter-end"
364
+ },
365
+ {
366
+ "include": "#directives-method-relaxed"
367
+ },
368
+ {
369
+ "include": "#opcode-format-10x"
370
+ },
371
+ {
372
+ "include": "#opcode-format-10x-relaxed"
373
+ },
374
+ {
375
+ "include": "#opcode-format-11n"
376
+ },
377
+ {
378
+ "include": "#opcode-format-11n-relaxed"
379
+ },
380
+ {
381
+ "include": "#opcode-format-11x"
382
+ },
383
+ {
384
+ "include": "#opcode-format-11x-relaxed"
385
+ },
386
+ {
387
+ "include": "#opcode-format-22x"
388
+ },
389
+ {
390
+ "include": "#opcode-format-22x-relaxed"
391
+ },
392
+ {
393
+ "include": "#opcode-format-32x"
394
+ },
395
+ {
396
+ "include": "#opcode-format-32x-relaxed"
397
+ },
398
+ {
399
+ "include": "#opcode-format-12x"
400
+ },
401
+ {
402
+ "include": "#opcode-format-12x-relaxed"
403
+ },
404
+ {
405
+ "include": "#opcode-format-21c-string"
406
+ },
407
+ {
408
+ "include": "#opcode-format-21c-type"
409
+ },
410
+ {
411
+ "include": "#opcode-format-21c-field"
412
+ },
413
+ {
414
+ "include": "#opcode-format-21c-relaxed"
415
+ },
416
+ {
417
+ "include": "#opcode-format-21h"
418
+ },
419
+ {
420
+ "include": "#opcode-format-21h-relaxed"
421
+ },
422
+ {
423
+ "include": "#opcode-format-21s"
424
+ },
425
+ {
426
+ "include": "#opcode-format-21s-relaxed"
427
+ },
428
+ {
429
+ "include": "#opcode-format-21t"
430
+ },
431
+ {
432
+ "include": "#opcode-format-21t-relaxed"
433
+ },
434
+ {
435
+ "include": "#opcode-format-31t"
436
+ },
437
+ {
438
+ "include": "#opcode-format-31t-relaxed"
439
+ },
440
+ {
441
+ "include": "#opcode-format-22b"
442
+ },
443
+ {
444
+ "include": "#opcode-format-22b-relaxed"
445
+ },
446
+ {
447
+ "include": "#opcode-format-22c-type"
448
+ },
449
+ {
450
+ "include": "#opcode-format-22c-type_array"
451
+ },
452
+ {
453
+ "include": "#opcode-format-22c-field"
454
+ },
455
+ {
456
+ "include": "#opcode-format-22c-relaxed"
457
+ },
458
+ {
459
+ "include": "#opcode-format-22s"
460
+ },
461
+ {
462
+ "include": "#opcode-format-22s-relaxed"
463
+ },
464
+ {
465
+ "include": "#opcode-format-22t"
466
+ },
467
+ {
468
+ "include": "#opcode-format-22t-relaxed"
469
+ },
470
+ {
471
+ "include": "#opcode-format-23x"
472
+ },
473
+ {
474
+ "include": "#opcode-format-23x-relaxed"
475
+ },
476
+ {
477
+ "include": "#opcode-format-3rc-type"
478
+ },
479
+ {
480
+ "include": "#opcode-format-3rc-meth"
481
+ },
482
+ {
483
+ "include": "#opcode-format-3rc-relaxed"
484
+ },
485
+ {
486
+ "include": "#opcode-format-35c-type"
487
+ },
488
+ {
489
+ "include": "#opcode-format-35c-meth"
490
+ },
491
+ {
492
+ "include": "#opcode-format-35c-relaxed"
493
+ },
494
+ {
495
+ "include": "#opcode-format-51l"
496
+ },
497
+ {
498
+ "include": "#opcode-format-51l-relaxed"
499
+ },
500
+ {
501
+ "include": "#opcode-format-31i"
502
+ },
503
+ {
504
+ "include": "#opcode-format-31i-relaxed"
505
+ },
506
+ {
507
+ "include": "#opcode-format-10t-20t-30t"
508
+ },
509
+ {
510
+ "include": "#opcode-format-10t-20t-30t-relaxed"
511
+ }
512
+ ]
513
+ },
514
+ {
515
+ "captures": {
516
+ "1": {
517
+ "name": "invalid.illegal.smali"
518
+ }
519
+ },
520
+ "comment": "Method directives - relaxed",
521
+ "match": "^[\\s\\t]*(\\.(?:class|super|implements|method|(end )?(?:method|annotation|field)))"
522
+ }
523
+ ],
524
+ "repository": {
525
+ "annotation": {
526
+ "captures": {
527
+ "1": {
528
+ "name": "constant.language.smali"
529
+ },
530
+ "2": {
531
+ "name": "storage.modifier.smali"
532
+ },
533
+ "3": {
534
+ "name": "entity.name.tag.smali"
535
+ },
536
+ "4": {
537
+ "name": "constant.numeric.smali"
538
+ },
539
+ "5": {
540
+ "name": "entity.name.tag.smali"
541
+ }
542
+ },
543
+ "match": "^[\\s\\t]*(\\.annotation)[\\s\\t]+(build|runtime|system)[\\s\\t]+(?:(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?=[\\s\\t]*(#.*)?$)"
544
+ },
545
+ "annotation-access": {
546
+ "captures": {
547
+ "1": {
548
+ "name": "support.function.smali"
549
+ },
550
+ "2": {
551
+ "name": "constant.numeric.smali"
552
+ }
553
+ },
554
+ "comment": "accessFlags property in annotation. Haven't seen any of these go over 0x4019.",
555
+ "match": "^[\\s\\t]*(accessFlags)[\\s\\t]*=[\\s\\t]*(0x(?:0|[1-9a-f][\\da-f]{0,3}))(?=[\\s\\t]*(#.*)?$)"
556
+ },
557
+ "annotation-end": {
558
+ "captures": {
559
+ "1": {
560
+ "name": "constant.language.smali"
561
+ }
562
+ },
563
+ "comment": "Parsing this is hard to do right. This is Good Enough™.",
564
+ "match": "^[\\s\\t]*(\\.end annotation)(?=[\\s\\t]*(#.*)?$)"
565
+ },
566
+ "annotation-name": {
567
+ "captures": {
568
+ "1": {
569
+ "name": "support.function.smali"
570
+ },
571
+ "2": {
572
+ "name": "constant.language.smali"
573
+ },
574
+ "3": {
575
+ "name": "entity.name.tag.smali"
576
+ },
577
+ "4": {
578
+ "name": "string.quoted.double.smali"
579
+ },
580
+ "5": {
581
+ "name": "entity.name.tag.smali"
582
+ }
583
+ },
584
+ "comment": "Name property in annotation",
585
+ "match": "^[\\s\\t]*(name)[\\s\\t]*=[\\s\\t]*(?:(null)|(\")(.*?)((?<!\\\\)\")?)(?=[\\s\\t]*(#.*)?$)"
586
+ },
587
+ "annotation-value": {
588
+ "captures": {
589
+ "1": {
590
+ "name": "support.function.smali"
591
+ },
592
+ "10": {
593
+ "name": "constant.numeric.smali"
594
+ },
595
+ "11": {
596
+ "name": "entity.name.tag.smali"
597
+ },
598
+ "12": {
599
+ "name": "constant.numeric.smali"
600
+ },
601
+ "13": {
602
+ "name": "entity.name.tag.smali"
603
+ },
604
+ "14": {
605
+ "name": "entity.name.function.smali"
606
+ },
607
+ "15": {
608
+ "name": "constant.numeric.smali"
609
+ },
610
+ "16": {
611
+ "name": "constant.numeric.smali"
612
+ },
613
+ "17": {
614
+ "name": "constant.numeric.smali"
615
+ },
616
+ "18": {
617
+ "name": "entity.name.tag.smali"
618
+ },
619
+ "19": {
620
+ "name": "constant.numeric.smali"
621
+ },
622
+ "2": {
623
+ "name": "entity.name.tag.smali"
624
+ },
625
+ "20": {
626
+ "name": "entity.name.tag.smali"
627
+ },
628
+ "21": {
629
+ "name": "constant.numeric.smali"
630
+ },
631
+ "22": {
632
+ "name": "entity.name.tag.smali"
633
+ },
634
+ "3": {
635
+ "name": "string.quoted.double.smali"
636
+ },
637
+ "4": {
638
+ "name": "entity.name.tag.smali"
639
+ },
640
+ "5": {
641
+ "name": "entity.name.tag.smali"
642
+ },
643
+ "6": {
644
+ "name": "entity.name.tag.smali"
645
+ },
646
+ "7": {
647
+ "name": "constant.numeric.smali"
648
+ },
649
+ "8": {
650
+ "name": "entity.name.tag.smali"
651
+ },
652
+ "9": {
653
+ "name": "string.interpolated.smali"
654
+ }
655
+ },
656
+ "comment": "This is another hack because sublime can't handle multi-line regex, particulaly for 'end'.",
657
+ "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]*(#.*)?$)"
658
+ },
659
+ "annotation-value_list": {
660
+ "begin": "^[\\s\\t]*(value)[\\s\\t]*=[\\s\\t]*{(?=[\\s\\t]*(#.*)?$)",
661
+ "beginCaptures": {
662
+ "1": {
663
+ "name": "support.function.smali"
664
+ }
665
+ },
666
+ "comment": "This is another hack. Deals.",
667
+ "end": "^[\\s\\t]*}(?=[\\s\\t]*(#.*)?$)",
668
+ "patterns": [
669
+ {
670
+ "include": "#comment-inline"
671
+ },
672
+ {
673
+ "captures": {
674
+ "1": {
675
+ "name": "entity.name.tag.smali"
676
+ },
677
+ "2": {
678
+ "name": "string.quoted.double.smali"
679
+ },
680
+ "3": {
681
+ "name": "entity.name.tag.smali"
682
+ },
683
+ "4": {
684
+ "name": "entity.name.tag.smali"
685
+ },
686
+ "5": {
687
+ "name": "constant.numeric.smali"
688
+ },
689
+ "6": {
690
+ "name": "entity.name.tag.smali"
691
+ }
692
+ },
693
+ "match": "(?:(\")(.*?)((?<!\\\\)\")?|(L)([\\p{L}_\\$][\\p{L}\\d_\\$]*(?:/[\\p{L}_\\$][\\p{L}\\d_\\$]*)*)(;))(?:,)?(?=[\\s\\t]*(#.*)?$)"
694
+ }
695
+ ]
696
+ },
697
+ "comment-alone": {
698
+ "captures": {
699
+ "1": {
700
+ "name": "comment.line.number-sign.smali"
701
+ }
702
+ },
703
+ "comment": "Single line, stand alone comment",
704
+ "match": "^[\\s\\t]*(#.*)$"
705
+ },
706
+ "comment-inline": {
707
+ "captures": {
708
+ "1": {
709
+ "name": "comment.line.number-sign.smali"
710
+ }
711
+ },
712
+ "comment": "In-line comment",
713
+ "match": "(#.*)$"
714
+ },
715
+ "directive-method-label": {
716
+ "captures": {
717
+ "1": {
718
+ "name": "keyword.control.smali"
719
+ }
720
+ },
721
+ "comment": "Label",
722
+ "match": "^[\\s\\t]*(:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)"
723
+ },
724
+ "directive-method-line": {
725
+ "captures": {
726
+ "1": {
727
+ "name": "constant.language.smali"
728
+ },
729
+ "2": {
730
+ "name": "variable.parameter.smali"
731
+ }
732
+ },
733
+ "comment": "Line",
734
+ "match": "[\\s\\t]*(\\.line)[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)"
735
+ },
736
+ "directive-method-parameter": {
737
+ "captures": {
738
+ "1": {
739
+ "name": "support.function.smali"
740
+ },
741
+ "2": {
742
+ "name": "variable.parameter.smali"
743
+ },
744
+ "3": {
745
+ "name": "entity.name.tag.smali"
746
+ },
747
+ "4": {
748
+ "name": "string.quoted.double.smali"
749
+ },
750
+ "5": {
751
+ "name": "entity.name.tag.smali"
752
+ }
753
+ },
754
+ "comment": "Parameter",
755
+ "match": "[\\s\\t]*(\\.param)[\\s\\t]+(p(?:0|[1-9][\\d]?|[1-4][\\d]{2}|50[\\d]|51[0-2])\\b)(?:,[\\s\\t]*(\")(.*?)((?<!\\\\)\"))?(?=[\\s\\t]*(#.*)?$)"
756
+ },
757
+ "directive-method-parameter-end": {
758
+ "captures": {
759
+ "1": {
760
+ "name": "constant.language.smali"
761
+ }
762
+ },
763
+ "comment": "Parsing this is hard to do right. This is Good Enough™.",
764
+ "match": "^[\\s\\t]*(\\.end param)(?=[\\s\\t]*(#.*)?$)"
765
+ },
766
+ "directive-method-registers_locals": {
767
+ "captures": {
768
+ "1": {
769
+ "name": "constant.language.smali"
770
+ },
771
+ "2": {
772
+ "name": "variable.parameter.smali"
773
+ }
774
+ },
775
+ "comment": "Registers / Locals",
776
+ "match": "[\\s\\t]*(\\.(?:registers|locals))[\\s\\t]+(\\d+)(?=[\\s\\t]*(#.*)?$)"
777
+ },
778
+ "directives-method-relaxed": {
779
+ "captures": {
780
+ "1": {
781
+ "name": "invalid.illegal.smali"
782
+ }
783
+ },
784
+ "match": "^[\\s\\t]*(:|\\.(?:parameter|line|registers|locals|(?:restart )?local|prologue|(?:end )?(annotation|(sparse|packed)-switch|local)|catch(?:all)?))"
785
+ },
786
+ "field": {
787
+ "captures": {
788
+ "1": {
789
+ "name": "constant.language.smali"
790
+ },
791
+ "10": {
792
+ "name": "constant.numeric.smali"
793
+ },
794
+ "11": {
795
+ "name": "entity.name.tag.smali"
796
+ },
797
+ "12": {
798
+ "name": "string.quoted.double.smali"
799
+ },
800
+ "13": {
801
+ "name": "entity.name.tag.smali"
802
+ },
803
+ "2": {
804
+ "name": "variable.parameter.smali"
805
+ },
806
+ "3": {
807
+ "name": "string.interpolated.smali"
808
+ },
809
+ "4": {
810
+ "name": "constant.numeric.smali"
811
+ },
812
+ "5": {
813
+ "name": "entity.name.tag.smali"
814
+ },
815
+ "6": {
816
+ "name": "constant.numeric.smali"
817
+ },
818
+ "7": {
819
+ "name": "entity.name.tag.smali"
820
+ },
821
+ "8": {
822
+ "name": "constant.language.smali"
823
+ },
824
+ "9": {
825
+ "name": "constant.numeric.smali"
826
+ }
827
+ },
828
+ "comment": "Field",
829
+ "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+)?[fld]?))|(?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}))[Lt]?))\\b)|([\"'])(.*?)((?<!\\\\)[\"'])))?(?=[\\s\\t]*(#.*)?$)"
830
+ },
831
+ "field-end": {
832
+ "captures": {
833
+ "1": {
834
+ "name": "constant.language.smali"
835
+ }
836
+ },
837
+ "comment": "Parsing this is hard to do right. This is Good Enough™.",
838
+ "match": "^[\\s\\t]*(\\.end field)(?=[\\s\\t]*(#.*)?$)"
839
+ },
840
+ "opcode-format-10t-20t-30t": {
841
+ "captures": {
842
+ "1": {
843
+ "name": "support.function.smali"
844
+ },
845
+ "2": {
846
+ "name": "keyword.control"
847
+ }
848
+ },
849
+ "comment": "Format: op +AA(AA(AAAA))",
850
+ "match": "^[\\s\\t]*(goto(?:/16|/32)?) (:[A-Za-z_\\d]+)(?=[\\s\\t]*(#.*)?$)"
851
+ },
852
+ "opcode-format-10t-20t-30t-relaxed": {
853
+ "captures": {
854
+ "1": {
855
+ "name": "invalid.illegal.smali"
856
+ }
857
+ },
858
+ "match": "^[\\s\\t]*(goto(?:/16|/32)?)"
859
+ },
860
+ "opcode-format-10x": {
861
+ "captures": {
862
+ "1": {
863
+ "name": "support.function.smali"
864
+ }
865
+ },
866
+ "comment": "Format: op",
867
+ "match": "^[\\s\\t]*(nop|return-void)(?=[\\s\\t]*(#.*)?$)"
868
+ },
869
+ "opcode-format-10x-relaxed": {
870
+ "captures": {
871
+ "1": {
872
+ "name": "invalid.illegal.smali"
873
+ }
874
+ },
875
+ "match": "^[\\s\\t]*(nop|return-void)"
876
+ },
877
+ "opcode-format-11n": {
878
+ "captures": {
879
+ "1": {
880
+ "name": "support.function.smali"
881
+ },
882
+ "2": {
883
+ "name": "variable.parameter.smali"
884
+ },
885
+ "3": {
886
+ "name": "constant.numeric.smali"
887
+ }
888
+ },
889
+ "comment": "Format: op vA, #+B",
890
+ "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]*(#.*)?$)"
891
+ },
892
+ "opcode-format-11n-relaxed": {
893
+ "captures": {
894
+ "1": {
895
+ "name": "invalid.illegal.smali"
896
+ }
897
+ },
898
+ "match": "^[\\s\\t]*(const/4)"
899
+ },
900
+ "opcode-format-11x": {
901
+ "captures": {
902
+ "1": {
903
+ "name": "support.function.smali"
904
+ },
905
+ "2": {
906
+ "name": "variable.parameter.smali"
907
+ }
908
+ },
909
+ "comment": "Format: op vAA",
910
+ "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]*(#.*)?$)"
911
+ },
912
+ "opcode-format-11x-relaxed": {
913
+ "captures": {
914
+ "1": {
915
+ "name": "invalid.illegal.smali"
916
+ }
917
+ },
918
+ "match": "^[\\s\\t]*(move-(?:result(?:-wide|-object)?|exception)|return(?:-wide|-object)?|monitor-(?:enter|exit)|throw)"
919
+ },
920
+ "opcode-format-12x": {
921
+ "captures": {
922
+ "1": {
923
+ "name": "support.function.smali"
924
+ },
925
+ "2": {
926
+ "name": "variable.parameter.smali"
927
+ },
928
+ "3": {
929
+ "name": "variable.parameter.smali"
930
+ }
931
+ },
932
+ "comment": "Format: op vA, vB",
933
+ "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]*(#.*)?$)"
934
+ },
935
+ "opcode-format-12x-relaxed": {
936
+ "captures": {
937
+ "1": {
938
+ "name": "invalid.illegal.smali"
939
+ }
940
+ },
941
+ "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)"
942
+ },
943
+ "opcode-format-21c-field": {
944
+ "captures": {
945
+ "1": {
946
+ "name": "support.function.smali"
947
+ },
948
+ "10": {
949
+ "name": "entity.name.tag.smali"
950
+ },
951
+ "2": {
952
+ "name": "variable.parameter.smali"
953
+ },
954
+ "3": {
955
+ "name": "entity.name.tag.smali"
956
+ },
957
+ "4": {
958
+ "name": "constant.numeric.smali"
959
+ },
960
+ "5": {
961
+ "name": "entity.name.tag.smali"
962
+ },
963
+ "6": {
964
+ "name": "string.interpolated.smali"
965
+ },
966
+ "7": {
967
+ "name": "constant.numeric.smali"
968
+ },
969
+ "8": {
970
+ "name": "entity.name.tag.smali"
971
+ },
972
+ "9": {
973
+ "name": "constant.numeric.smali"
974
+ }
975
+ },
976
+ "comment": "Format: op vAA, field@BBBB",
977
+ "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]*(#.*)?$)"
978
+ },
979
+ "opcode-format-21c-relaxed": {
980
+ "captures": {
981
+ "1": {
982
+ "name": "invalid.illegal.smali"
983
+ }
984
+ },
985
+ "match": "^[\\s\\t]*(const-string|const-class|check-cast|new-instance|(?:sget|sput)(?:-wide|-object|-boolean|-byte|-char|-short)?)"
986
+ },
987
+ "opcode-format-21c-string": {
988
+ "captures": {
989
+ "1": {
990
+ "name": "support.function.smali"
991
+ },
992
+ "2": {
993
+ "name": "variable.parameter.smali"
994
+ },
995
+ "3": {
996
+ "name": "entity.name.tag.smali"
997
+ },
998
+ "4": {
999
+ "name": "string.quoted.double.smali"
1000
+ },
1001
+ "5": {
1002
+ "name": "entity.name.tag.smali"
1003
+ }
1004
+ },
1005
+ "comment": "Format: op vAA, string@BBBB",
1006
+ "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]*(#.*)?$)"
1007
+ },
1008
+ "opcode-format-21c-type": {
1009
+ "captures": {
1010
+ "1": {
1011
+ "name": "support.function.smali"
1012
+ },
1013
+ "2": {
1014
+ "name": "variable.parameter.smali"
1015
+ },
1016
+ "3": {
1017
+ "name": "constant.numeric.smali"
1018
+ },
1019
+ "4": {
1020
+ "name": "entity.name.tag.smali"
1021
+ },
1022
+ "5": {
1023
+ "name": "constant.numeric.smali"
1024
+ },
1025
+ "6": {
1026
+ "name": "entity.name.tag.smali"
1027
+ }
1028
+ },
1029
+ "comment": "Format: op vAA, type@BBBB",
1030
+ "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]*(#.*)?$)"
1031
+ },
1032
+ "opcode-format-21h": {
1033
+ "captures": {
1034
+ "1": {
1035
+ "name": "support.function.smali"
1036
+ },
1037
+ "2": {
1038
+ "name": "variable.parameter.smali"
1039
+ },
1040
+ "3": {
1041
+ "name": "constant.numeric.smali"
1042
+ }
1043
+ },
1044
+ "comment": "Format: op vAA, #+BBBB0000(00000000)",
1045
+ "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]*(#.*)?$)"
1046
+ },
1047
+ "opcode-format-21h-relaxed": {
1048
+ "captures": {
1049
+ "1": {
1050
+ "name": "invalid.illegal.smali"
1051
+ }
1052
+ },
1053
+ "match": "^[\\s\\t]*(const(?:-wide)?/high16)"
1054
+ },
1055
+ "opcode-format-21s": {
1056
+ "captures": {
1057
+ "1": {
1058
+ "name": "support.function.smali"
1059
+ },
1060
+ "2": {
1061
+ "name": "variable.parameter.smali"
1062
+ },
1063
+ "3": {
1064
+ "name": "constant.numeric.smali"
1065
+ }
1066
+ },
1067
+ "comment": "Format: op vAA, #+BBBB",
1068
+ "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]*(#.*)?$)"
1069
+ },
1070
+ "opcode-format-21s-relaxed": {
1071
+ "captures": {
1072
+ "1": {
1073
+ "name": "invalid.illegal.smali"
1074
+ }
1075
+ },
1076
+ "match": "^[\\s\\t]*(const(?:-wide)?/16)"
1077
+ },
1078
+ "opcode-format-21t": {
1079
+ "captures": {
1080
+ "1": {
1081
+ "name": "support.function.smali"
1082
+ },
1083
+ "2": {
1084
+ "name": "variable.parameter.smali"
1085
+ },
1086
+ "3": {
1087
+ "name": "keyword.control.smali"
1088
+ }
1089
+ },
1090
+ "comment": "Format: op vAA, +BBBB",
1091
+ "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]*(#.*)?$)"
1092
+ },
1093
+ "opcode-format-21t-relaxed": {
1094
+ "captures": {
1095
+ "1": {
1096
+ "name": "invalid.illegal.smali"
1097
+ }
1098
+ },
1099
+ "match": "^[\\s\\t]*(if-(?:eq|ne|lt|ge|gt|le)z)"
1100
+ },
1101
+ "opcode-format-22b": {
1102
+ "captures": {
1103
+ "1": {
1104
+ "name": "support.function.smali"
1105
+ },
1106
+ "2": {
1107
+ "name": "variable.parameter.smali"
1108
+ },
1109
+ "3": {
1110
+ "name": "variable.parameter.smali"
1111
+ },
1112
+ "4": {
1113
+ "name": "constant.numeric.smali"
1114
+ }
1115
+ },
1116
+ "comment": "Format: op vAA, vBB, #+CC",
1117
+ "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]*(#.*)?$)"
1118
+ },
1119
+ "opcode-format-22b-relaxed": {
1120
+ "captures": {
1121
+ "1": {
1122
+ "name": "invalid.illegal.smali"
1123
+ }
1124
+ },
1125
+ "match": "^[\\s\\t]*((?:add|rsub|mul|div|rem|and|or|xor|shl|shr|ushr)-int/lit8)"
1126
+ },
1127
+ "opcode-format-22c-field": {
1128
+ "captures": {
1129
+ "1": {
1130
+ "name": "support.function.smali"
1131
+ },
1132
+ "10": {
1133
+ "name": "constant.numeric.smali"
1134
+ },
1135
+ "11": {
1136
+ "name": "entity.name.tag.smali"
1137
+ },
1138
+ "2": {
1139
+ "name": "variable.parameter.smali"
1140
+ },
1141
+ "3": {
1142
+ "name": "variable.parameter.smali"
1143
+ },
1144
+ "4": {
1145
+ "name": "entity.name.tag.smali"
1146
+ },
1147
+ "5": {
1148
+ "name": "constant.numeric.smali"
1149
+ },
1150
+ "6": {
1151
+ "name": "entity.name.tag.smali"
1152
+ },
1153
+ "7": {
1154
+ "name": "string.interpolated.smali"
1155
+ },
1156
+ "8": {
1157
+ "name": "constant.numeric.smali"
1158
+ },
1159
+ "9": {
1160
+ "name": "entity.name.tag.smali"
1161
+ }
1162
+ },
1163
+ "comment": "Format: op vA, vB, field@CCCC",
1164
+ "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]*(#.*)?$)"
1165
+ },
1166
+ "opcode-format-22c-relaxed": {
1167
+ "captures": {
1168
+ "1": {
1169
+ "name": "invalid.illegal.smali"
1170
+ }
1171
+ },
1172
+ "match": "^[\\s\\t]*(instance-of|new-array|(?:iget|iput)(?:-wide|-object|-boolean|-byte|-char|-short)?)"
1173
+ },
1174
+ "opcode-format-22c-type": {
1175
+ "captures": {
1176
+ "1": {
1177
+ "name": "support.function.smali"
1178
+ },
1179
+ "2": {
1180
+ "name": "variable.parameter.smali"
1181
+ },
1182
+ "3": {
1183
+ "name": "variable.parameter.smali"
1184
+ },
1185
+ "4": {
1186
+ "name": "constant.numeric.smali"
1187
+ },
1188
+ "5": {
1189
+ "name": "entity.name.tag.smali"
1190
+ },
1191
+ "6": {
1192
+ "name": "constant.numeric.smali"
1193
+ },
1194
+ "7": {
1195
+ "name": "entity.name.tag.smali"
1196
+ }
1197
+ },
1198
+ "comment": "Format: op vA, vB, type@CCCC",
1199
+ "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]*(#.*)?$)"
1200
+ },
1201
+ "opcode-format-22c-type_array": {
1202
+ "captures": {
1203
+ "1": {
1204
+ "name": "support.function.smali"
1205
+ },
1206
+ "2": {
1207
+ "name": "variable.parameter.smali"
1208
+ },
1209
+ "3": {
1210
+ "name": "variable.parameter.smali"
1211
+ },
1212
+ "4": {
1213
+ "name": "constant.numeric.smali"
1214
+ },
1215
+ "5": {
1216
+ "name": "entity.name.tag.smali"
1217
+ },
1218
+ "6": {
1219
+ "name": "constant.numeric.smali"
1220
+ },
1221
+ "7": {
1222
+ "name": "entity.name.tag.smali"
1223
+ }
1224
+ },
1225
+ "comment": "Format: op vA, vB, [type@CCCC",
1226
+ "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]*(#.*)?$)"
1227
+ },
1228
+ "opcode-format-22s": {
1229
+ "captures": {
1230
+ "1": {
1231
+ "name": "support.function.smali"
1232
+ },
1233
+ "2": {
1234
+ "name": "variable.parameter.smali"
1235
+ },
1236
+ "3": {
1237
+ "name": "variable.parameter.smali"
1238
+ },
1239
+ "4": {
1240
+ "name": "constant.numeric.smali"
1241
+ }
1242
+ },
1243
+ "comment": "Format: op vA, vB, #+CCCC",
1244
+ "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]*(#.*)?$)"
1245
+ },
1246
+ "opcode-format-22s-relaxed": {
1247
+ "captures": {
1248
+ "1": {
1249
+ "name": "invalid.illegal.smali"
1250
+ }
1251
+ },
1252
+ "match": "^[\\s\\t]*((?:(?:add|mul|div|rem|and|or|xor)-int/lit16)|rsub-int)"
1253
+ },
1254
+ "opcode-format-22t": {
1255
+ "captures": {
1256
+ "1": {
1257
+ "name": "support.function.smali"
1258
+ },
1259
+ "2": {
1260
+ "name": "variable.parameter.smali"
1261
+ },
1262
+ "3": {
1263
+ "name": "variable.parameter.smali"
1264
+ },
1265
+ "4": {
1266
+ "name": "keyword.control"
1267
+ }
1268
+ },
1269
+ "comment": "*Format: op vA, vB, +CCCC",
1270
+ "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]*(#.*)?$)"
1271
+ },
1272
+ "opcode-format-22t-relaxed": {
1273
+ "captures": {
1274
+ "1": {
1275
+ "name": "invalid.illegal.smali"
1276
+ }
1277
+ },
1278
+ "match": "(if-(?:eq|ne|lt|ge|gt|le))"
1279
+ },
1280
+ "opcode-format-22x": {
1281
+ "captures": {
1282
+ "1": {
1283
+ "name": "support.function.smali"
1284
+ },
1285
+ "2": {
1286
+ "name": "variable.parameter.smali"
1287
+ },
1288
+ "3": {
1289
+ "name": "variable.parameter.smali"
1290
+ }
1291
+ },
1292
+ "comment": "Format: op vAA, vBBBB",
1293
+ "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]*(#.*)?$)"
1294
+ },
1295
+ "opcode-format-22x-relaxed": {
1296
+ "captures": {
1297
+ "1": {
1298
+ "name": "invalid.illegal.smali"
1299
+ }
1300
+ },
1301
+ "match": "^[\\s\\t]*(move(?:-wide|-object)?/from16)"
1302
+ },
1303
+ "opcode-format-23x": {
1304
+ "captures": {
1305
+ "1": {
1306
+ "name": "support.function.smali"
1307
+ },
1308
+ "2": {
1309
+ "name": "variable.parameter.smali"
1310
+ },
1311
+ "3": {
1312
+ "name": "variable.parameter.smali"
1313
+ },
1314
+ "4": {
1315
+ "name": "variable.parameter.smali"
1316
+ }
1317
+ },
1318
+ "comment": "Format: op vAA, vBB, vCC",
1319
+ "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]*(#.*)?$)"
1320
+ },
1321
+ "opcode-format-23x-relaxed": {
1322
+ "captures": {
1323
+ "1": {
1324
+ "name": "invalid.illegal.smali"
1325
+ }
1326
+ },
1327
+ "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))"
1328
+ },
1329
+ "opcode-format-31i": {
1330
+ "captures": {
1331
+ "1": {
1332
+ "name": "support.function.smali"
1333
+ },
1334
+ "2": {
1335
+ "name": "variable.parameter.smali"
1336
+ },
1337
+ "3": {
1338
+ "name": "constant.numeric.smali"
1339
+ }
1340
+ },
1341
+ "comment": "Format: op vAA, #+BBBBBBBB",
1342
+ "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]*(#.*)?$)"
1343
+ },
1344
+ "opcode-format-31i-relaxed": {
1345
+ "captures": {
1346
+ "1": {
1347
+ "name": "invalid.illegal.smali"
1348
+ }
1349
+ },
1350
+ "match": "^[\\s\\t]*(const(?:-wide/32)?)"
1351
+ },
1352
+ "opcode-format-31t": {
1353
+ "captures": {
1354
+ "1": {
1355
+ "name": "support.function.smali"
1356
+ },
1357
+ "2": {
1358
+ "name": "variable.parameter.smali"
1359
+ },
1360
+ "3": {
1361
+ "name": "keyword.control"
1362
+ }
1363
+ },
1364
+ "comment": "Format: op vAA, +BBBBBBBB",
1365
+ "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]*(#.*)?$)"
1366
+ },
1367
+ "opcode-format-31t-relaxed": {
1368
+ "captures": {
1369
+ "1": {
1370
+ "name": "invalid.illegal.smali"
1371
+ }
1372
+ },
1373
+ "match": "^[\\s\\t]*(fill-array-data|(?:packed|sparse)-switch)"
1374
+ },
1375
+ "opcode-format-32x": {
1376
+ "captures": {
1377
+ "1": {
1378
+ "name": "support.function.smali"
1379
+ },
1380
+ "2": {
1381
+ "name": "variable.parameter.smali"
1382
+ },
1383
+ "3": {
1384
+ "name": "variable.parameter.smali"
1385
+ }
1386
+ },
1387
+ "comment": "Format: op vAAAA, vBBBB",
1388
+ "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]*(#.*)?$)"
1389
+ },
1390
+ "opcode-format-32x-relaxed": {
1391
+ "captures": {
1392
+ "1": {
1393
+ "name": "invalid.illegal.smali"
1394
+ }
1395
+ },
1396
+ "match": "^[\\s\\t]*(move(?:-wide|-object)?/16)"
1397
+ },
1398
+ "opcode-format-35c-meth": {
1399
+ "captures": {
1400
+ "1": {
1401
+ "name": "support.function.smali"
1402
+ },
1403
+ "10": {
1404
+ "name": "entity.name.function.smali"
1405
+ },
1406
+ "11": {
1407
+ "name": "constant.numeric.smali"
1408
+ },
1409
+ "12": {
1410
+ "name": "entity.name.tag.smali"
1411
+ },
1412
+ "13": {
1413
+ "name": "constant.numeric.smali"
1414
+ },
1415
+ "14": {
1416
+ "name": "entity.name.tag.smali"
1417
+ },
1418
+ "15": {
1419
+ "name": "constant.numeric.smali"
1420
+ },
1421
+ "16": {
1422
+ "name": "entity.name.tag.smali"
1423
+ },
1424
+ "17": {
1425
+ "name": "constant.numeric.smali"
1426
+ },
1427
+ "18": {
1428
+ "name": "entity.name.tag.smali"
1429
+ },
1430
+ "19": {
1431
+ "name": "constant.numeric.smali"
1432
+ },
1433
+ "2": {
1434
+ "name": "variable.parameter.smali"
1435
+ },
1436
+ "20": {
1437
+ "name": "entity.name.tag.smali"
1438
+ },
1439
+ "21": {
1440
+ "name": "constant.numeric.smali"
1441
+ },
1442
+ "22": {
1443
+ "name": "entity.name.tag.smali"
1444
+ },
1445
+ "23": {
1446
+ "name": "constant.numeric.smali"
1447
+ },
1448
+ "24": {
1449
+ "name": "entity.name.tag.smali"
1450
+ },
1451
+ "25": {
1452
+ "name": "constant.numeric.smali"
1453
+ },
1454
+ "26": {
1455
+ "name": "entity.name.tag.smali"
1456
+ },
1457
+ "27": {
1458
+ "name": "constant.numeric.smali"
1459
+ },
1460
+ "28": {
1461
+ "name": "entity.name.tag.smali"
1462
+ },
1463
+ "29": {
1464
+ "name": "constant.numeric.smali"
1465
+ },
1466
+ "3": {
1467
+ "name": "variable.parameter.smali"
1468
+ },
1469
+ "30": {
1470
+ "name": "entity.name.tag.smali"
1471
+ },
1472
+ "31": {
1473
+ "name": "constant.numeric.smali"
1474
+ },
1475
+ "32": {
1476
+ "name": "constant.numeric.smali"
1477
+ },
1478
+ "33": {
1479
+ "name": "entity.name.tag.smali"
1480
+ },
1481
+ "34": {
1482
+ "name": "constant.numeric.smali"
1483
+ },
1484
+ "35": {
1485
+ "name": "entity.name.tag.smali"
1486
+ },
1487
+ "4": {
1488
+ "name": "variable.parameter.smali"
1489
+ },
1490
+ "5": {
1491
+ "name": "variable.parameter.smali"
1492
+ },
1493
+ "6": {
1494
+ "name": "variable.parameter.smali"
1495
+ },
1496
+ "7": {
1497
+ "name": "entity.name.tag.smali"
1498
+ },
1499
+ "8": {
1500
+ "name": "constant.numeric.smali"
1501
+ },
1502
+ "9": {
1503
+ "name": "entity.name.tag.smali"
1504
+ }
1505
+ },
1506
+ "comment": "Format: op {vC, vD, vE, vF, vG}, meth@BBBB",
1507
+ "match": "^[\\s\\t]*(invoke-(?:virtual|super|direct|static|interface)) {([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]*(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]*(#.*)?$)"
1508
+ },
1509
+ "opcode-format-35c-relaxed": {
1510
+ "captures": {
1511
+ "1": {
1512
+ "name": "invalid.illegal.smali"
1513
+ }
1514
+ },
1515
+ "match": "^[\\s\\t]*(filled-new-array|invoke-(?:virtual|super|direct|static|interface))"
1516
+ },
1517
+ "opcode-format-35c-type": {
1518
+ "captures": {
1519
+ "1": {
1520
+ "name": "support.function.smali"
1521
+ },
1522
+ "10": {
1523
+ "name": "entity.name.tag.smali"
1524
+ },
1525
+ "11": {
1526
+ "name": "constant.numeric.smali"
1527
+ },
1528
+ "2": {
1529
+ "name": "variable.parameter.smali"
1530
+ },
1531
+ "3": {
1532
+ "name": "variable.parameter.smali"
1533
+ },
1534
+ "4": {
1535
+ "name": "variable.parameter.smali"
1536
+ },
1537
+ "5": {
1538
+ "name": "variable.parameter.smali"
1539
+ },
1540
+ "6": {
1541
+ "name": "variable.parameter.smali"
1542
+ },
1543
+ "7": {
1544
+ "name": "constant.numeric.smali"
1545
+ },
1546
+ "8": {
1547
+ "name": "entity.name.tag.smali"
1548
+ },
1549
+ "9": {
1550
+ "name": "constant.numeric.smali"
1551
+ }
1552
+ },
1553
+ "comment": "Format: op {vC, vD, vE, vF, vG}, type@BBBB",
1554
+ "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]*(#.*)?$)"
1555
+ },
1556
+ "opcode-format-3rc-meth": {
1557
+ "captures": {
1558
+ "1": {
1559
+ "name": "support.function.smali"
1560
+ },
1561
+ "10": {
1562
+ "name": "constant.numeric.smali"
1563
+ },
1564
+ "11": {
1565
+ "name": "entity.name.tag.smali"
1566
+ },
1567
+ "12": {
1568
+ "name": "constant.numeric.smali"
1569
+ },
1570
+ "13": {
1571
+ "name": "entity.name.tag.smali"
1572
+ },
1573
+ "14": {
1574
+ "name": "constant.numeric.smali"
1575
+ },
1576
+ "15": {
1577
+ "name": "entity.name.tag.smali"
1578
+ },
1579
+ "2": {
1580
+ "name": "variable.parameter.smali"
1581
+ },
1582
+ "3": {
1583
+ "name": "variable.parameter.smali"
1584
+ },
1585
+ "4": {
1586
+ "name": "entity.name.tag.smali"
1587
+ },
1588
+ "5": {
1589
+ "name": "constant.numeric.smali"
1590
+ },
1591
+ "6": {
1592
+ "name": "entity.name.tag.smali"
1593
+ },
1594
+ "7": {
1595
+ "name": "entity.name.function.smali"
1596
+ },
1597
+ "8": {
1598
+ "name": "constant.numeric.smali"
1599
+ },
1600
+ "9": {
1601
+ "name": "constant.numeric.smali"
1602
+ }
1603
+ },
1604
+ "comment": "Format: op {vCCCC .. vNNNN}, meth@BBBB",
1605
+ "match": "^[\\s\\t]*(invoke-(?:virtual|super|direct|static|interface)/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]*(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]*(#.*)?$)"
1606
+ },
1607
+ "opcode-format-3rc-relaxed": {
1608
+ "captures": {
1609
+ "1": {
1610
+ "name": "invalid.illegal.smali"
1611
+ }
1612
+ },
1613
+ "match": "^[\\s\\t]*((?:filled-new-array|invoke-(?:virtual|super|direct|static|interface))/range)"
1614
+ },
1615
+ "opcode-format-3rc-type": {
1616
+ "captures": {
1617
+ "1": {
1618
+ "name": "support.function.smali"
1619
+ },
1620
+ "2": {
1621
+ "name": "variable.parameter.smali"
1622
+ },
1623
+ "3": {
1624
+ "name": "variable.parameter.smali"
1625
+ },
1626
+ "4": {
1627
+ "name": "constant.numeric.smali"
1628
+ },
1629
+ "5": {
1630
+ "name": "entity.name.tag.smali"
1631
+ },
1632
+ "6": {
1633
+ "name": "constant.numeric.smali"
1634
+ },
1635
+ "7": {
1636
+ "name": "entity.name.tag.smali"
1637
+ }
1638
+ },
1639
+ "comment": "Format: op {vCCCC .. vNNNN}, type@BBBB",
1640
+ "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]*(#.*)?$)"
1641
+ },
1642
+ "opcode-format-51l": {
1643
+ "captures": {
1644
+ "1": {
1645
+ "name": "support.function.smali"
1646
+ },
1647
+ "2": {
1648
+ "name": "variable.parameter.smali"
1649
+ },
1650
+ "3": {
1651
+ "name": "constant.numeric.smali"
1652
+ }
1653
+ },
1654
+ "comment": "Format: op vAA, #+BBBBBBBBBBBBBBBB",
1655
+ "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]*(#.*)?$)"
1656
+ },
1657
+ "opcode-format-51l-relaxed": {
1658
+ "captures": {
1659
+ "1": {
1660
+ "name": "invalid.illegal.smali"
1661
+ }
1662
+ },
1663
+ "match": "^[\\s\\t]*(const-wide)(?!\\/32)"
1664
+ }
1665
+ },
1666
+ "scopeName": "source.smali",
1667
+ "uuid": "d6fe4632-f21a-4533-8908-723df0b58ac0"
1668
+ }