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.
Files changed (460) hide show
  1. checksums.yaml +4 -4
  2. data/bin/git-linguist +5 -2
  3. data/ext/linguist/linguist.c +18 -7
  4. data/grammars/annotation.liquidhaskell.haskell.json +969 -862
  5. data/grammars/config.xcompose.json +22 -25
  6. data/grammars/file.lasso.json +296 -309
  7. data/grammars/hint.haskell.json +867 -766
  8. data/grammars/hint.message.haskell.json +867 -766
  9. data/grammars/hint.type.haskell.json +867 -766
  10. data/grammars/objdump.x86asm.json +20 -24
  11. data/grammars/source.Kotlin.json +220 -225
  12. data/grammars/source.LS.json +36 -55
  13. data/grammars/source.MCPOST.json +24 -38
  14. data/grammars/source.MOD.json +26 -41
  15. data/grammars/source.SASLog.json +9 -16
  16. data/grammars/source.abap.json +48 -56
  17. data/grammars/source.abl.json +8 -14
  18. data/grammars/source.abnf.json +88 -98
  19. data/grammars/source.actionscript.3.json +398 -429
  20. data/grammars/source.acucobol.json +5 -8
  21. data/grammars/source.ada.json +46 -53
  22. data/grammars/source.afm.json +548 -554
  23. data/grammars/source.agc.json +34 -37
  24. data/grammars/source.agda.json +79 -91
  25. data/grammars/source.ahk.json +62 -66
  26. data/grammars/source.alloy.json +16 -20
  27. data/grammars/source.ampl.json +41 -47
  28. data/grammars/source.angelscript.json +71 -80
  29. data/grammars/source.antlr.json +131 -136
  30. data/grammars/source.apache-config.json +93 -99
  31. data/grammars/source.apache-config.mod_perl.json +19 -24
  32. data/grammars/source.apl.json +1038 -1029
  33. data/grammars/source.applescript.json +501 -523
  34. data/grammars/source.apt.json +9 -16
  35. data/grammars/source.asn.json +27 -31
  36. data/grammars/source.asp.json +61 -67
  37. data/grammars/source.aspectj.json +385 -391
  38. data/grammars/source.assembly.json +49 -55
  39. data/grammars/source.ats.json +45 -121
  40. data/grammars/source.autoit.json +64 -69
  41. data/grammars/source.awk.json +172 -176
  42. data/grammars/source.ballerina.json +48 -395
  43. data/grammars/source.batchfile.json +269 -269
  44. data/grammars/source.befunge.json +17 -21
  45. data/grammars/source.bf.json +5 -11
  46. data/grammars/source.bison.json +10 -14
  47. data/grammars/source.blitzmax.json +300 -305
  48. data/grammars/source.boo.json +189 -193
  49. data/grammars/source.brightauthorproject.json +8 -13
  50. data/grammars/source.brightscript.json +37 -47
  51. data/grammars/source.bro.json +134 -140
  52. data/grammars/source.bsl.json +152 -193
  53. data/grammars/source.bsv.json +96 -102
  54. data/grammars/source.c++.json +176 -193
  55. data/grammars/source.c++.qt.json +13 -21
  56. data/grammars/source.c.ec.json +15 -21
  57. data/grammars/source.c.json +237 -251
  58. data/grammars/source.c.platform.json +153 -159
  59. data/grammars/source.c2hs.json +3 -6
  60. data/grammars/source.cabal.json +17 -20
  61. data/grammars/source.cache.cmake.json +18 -23
  62. data/grammars/source.cake.json +4 -7
  63. data/grammars/source.camlp4.ocaml.json +24 -27
  64. data/grammars/source.capnp.json +33 -38
  65. data/grammars/source.ceylon.json +44 -50
  66. data/grammars/source.cfscript.cfc.json +78 -86
  67. data/grammars/source.cfscript.json +513 -520
  68. data/grammars/source.changelogs.rpm-spec.json +8 -16
  69. data/grammars/source.chapel.json +109 -87
  70. data/grammars/source.cirru.json +25 -30
  71. data/grammars/source.clarion.json +41 -54
  72. data/grammars/source.clean.json +90 -95
  73. data/grammars/source.click.json +25 -28
  74. data/grammars/source.clips.json +10 -23
  75. data/grammars/source.clojure.json +151 -168
  76. data/grammars/source.cm.json +14 -19
  77. data/grammars/source.cmake.json +53 -61
  78. data/grammars/source.cobol.json +165 -180
  79. data/grammars/source.coffee.json +454 -462
  80. data/grammars/source.cool.json +36 -43
  81. data/grammars/source.coq.json +17 -21
  82. data/grammars/source.crystal.json +889 -983
  83. data/grammars/source.cs.json +739 -740
  84. data/grammars/source.csound-document.json +69 -73
  85. data/grammars/source.csound-score.json +52 -55
  86. data/grammars/source.csound.json +167 -171
  87. data/grammars/source.css.json +683 -688
  88. data/grammars/source.css.less.json +211 -511
  89. data/grammars/source.css.mss.json +94 -101
  90. data/grammars/source.css.postcss.sugarss.json +260 -0
  91. data/grammars/source.csx.json +4 -7
  92. data/grammars/source.cuda-c++.json +47 -81
  93. data/grammars/source.cwl.json +103 -0
  94. data/grammars/source.cython.json +536 -582
  95. data/grammars/source.d.json +243 -252
  96. data/grammars/source.dart.json +161 -166
  97. data/grammars/source.data-weave.json +901 -905
  98. data/grammars/source.desktop.json +29 -33
  99. data/grammars/source.diff.json +43 -52
  100. data/grammars/source.disasm.json +15 -16
  101. data/grammars/source.ditroff.desc.json +73 -84
  102. data/grammars/source.ditroff.json +60 -61
  103. data/grammars/source.dm.json +202 -213
  104. data/grammars/source.dmf.json +44 -47
  105. data/grammars/source.dockerfile.json +29 -34
  106. data/grammars/source.dot.json +46 -55
  107. data/grammars/source.dylan.json +63 -68
  108. data/grammars/source.ebnf.json +55 -62
  109. data/grammars/source.eiffel.json +57 -62
  110. data/grammars/source.elixir.json +321 -366
  111. data/grammars/source.emacs.lisp.json +458 -249
  112. data/grammars/source.erazor.json +49 -57
  113. data/grammars/source.erlang.json +508 -515
  114. data/grammars/source.essl.json +17 -30
  115. data/grammars/source.factor.json +85 -91
  116. data/grammars/source.fan.json +92 -96
  117. data/grammars/source.fancy.json +93 -118
  118. data/grammars/source.fish.json +74 -98
  119. data/grammars/source.fontforge.json +142 -146
  120. data/grammars/source.forth.json +42 -57
  121. data/grammars/source.fortran.json +193 -231
  122. data/grammars/source.fortran.modern.json +77 -103
  123. data/grammars/source.fsharp.fsi.json +1 -6
  124. data/grammars/source.fsharp.fsl.json +1 -6
  125. data/grammars/source.fsharp.fsx.json +1 -6
  126. data/grammars/source.fsharp.json +148 -153
  127. data/grammars/source.gap.json +60 -70
  128. data/grammars/source.gcode.json +9 -16
  129. data/grammars/source.gdb.json +63 -79
  130. data/grammars/source.gdb.session.json +27 -28
  131. data/grammars/source.gdbregs.json +7 -8
  132. data/grammars/source.gdscript.json +92 -96
  133. data/grammars/source.gerber.json +38 -56
  134. data/grammars/source.gfm.json +447 -462
  135. data/grammars/source.glsl.json +58 -83
  136. data/grammars/source.gn.json +188 -193
  137. data/grammars/source.gnuplot.json +104 -120
  138. data/grammars/source.go.json +169 -181
  139. data/grammars/source.golo.json +82 -87
  140. data/grammars/source.gosu.2.json +58 -68
  141. data/grammars/source.grace.json +266 -270
  142. data/grammars/source.graphql.json +586 -596
  143. data/grammars/source.groovy.gradle.json +18 -22
  144. data/grammars/source.groovy.json +422 -433
  145. data/grammars/source.harbour.json +129 -173
  146. data/grammars/source.haskell.json +871 -772
  147. data/grammars/source.haxe.2.json +402 -413
  148. data/grammars/source.hlsl.json +6 -16
  149. data/grammars/source.hsc2hs.json +1 -4
  150. data/grammars/source.hsig.json +871 -770
  151. data/grammars/source.hss.1.json +122 -144
  152. data/grammars/source.httpspec.json +119 -123
  153. data/grammars/source.hxml.json +8 -15
  154. data/grammars/source.ideal.json +125 -125
  155. data/grammars/source.idl-dlm.json +25 -32
  156. data/grammars/source.idl.json +59 -80
  157. data/grammars/source.idris.json +171 -185
  158. data/grammars/source.inform7.json +117 -121
  159. data/grammars/source.ini.json +37 -43
  160. data/grammars/source.io.json +65 -73
  161. data/grammars/source.ioke.json +72 -78
  162. data/grammars/source.isabelle.root.json +26 -30
  163. data/grammars/source.isabelle.theory.json +46 -50
  164. data/grammars/source.j.json +18 -21
  165. data/grammars/source.jasmin.json +45 -50
  166. data/grammars/source.java-properties.json +31 -41
  167. data/grammars/source.java.json +333 -342
  168. data/grammars/source.jcl.json +15 -18
  169. data/grammars/source.jflex.json +166 -172
  170. data/grammars/source.jison.json +331 -334
  171. data/grammars/source.jisonlex-injection.json +1 -2
  172. data/grammars/source.jisonlex.json +148 -151
  173. data/grammars/source.jolie.json +37 -43
  174. data/grammars/source.jq.json +80 -87
  175. data/grammars/source.js.json +798 -818
  176. data/grammars/source.js.jsx.json +2115 -2225
  177. data/grammars/source.js.objj.json +167 -172
  178. data/grammars/source.js.regexp.json +50 -50
  179. data/grammars/source.js.regexp.replacement.json +7 -7
  180. data/grammars/source.jsdoc.json +94 -94
  181. data/grammars/source.json.json +61 -71
  182. data/grammars/source.julia.console.json +5 -6
  183. data/grammars/source.julia.json +237 -234
  184. data/grammars/source.lean.json +55 -67
  185. data/grammars/source.lid.json +6 -10
  186. data/grammars/source.lilypond.json +181 -195
  187. data/grammars/source.lisp.json +40 -50
  188. data/grammars/source.litcoffee.json +169 -183
  189. data/grammars/source.livescript.json +207 -220
  190. data/grammars/source.llvm.json +28 -38
  191. data/grammars/source.logos.json +7 -14
  192. data/grammars/source.logtalk.json +136 -141
  193. data/grammars/source.loomscript.json +77 -83
  194. data/grammars/source.lsl.json +90 -106
  195. data/grammars/source.lua.json +100 -109
  196. data/grammars/source.makefile.json +181 -188
  197. data/grammars/source.makegen.json +3 -7
  198. data/grammars/source.mask.json +260 -265
  199. data/grammars/source.mata.json +38 -46
  200. data/grammars/source.mathematica.json +155 -167
  201. data/grammars/source.matlab.json +407 -684
  202. data/grammars/source.maxscript.json +293 -281
  203. data/grammars/source.mercury.json +179 -184
  204. data/grammars/source.meson.json +52 -58
  205. data/grammars/source.meta-info.json +64 -74
  206. data/grammars/source.ml.json +107 -113
  207. data/grammars/source.modelica.json +51 -59
  208. data/grammars/source.modula2.json +33 -42
  209. data/grammars/source.monkey.json +234 -241
  210. data/grammars/source.moonscript.json +51 -56
  211. data/grammars/source.mql5.json +74 -101
  212. data/grammars/source.mupad.json +30 -72
  213. data/grammars/source.ncl.json +1 -14
  214. data/grammars/source.ne.json +39 -42
  215. data/grammars/source.nemerle.json +58 -63
  216. data/grammars/source.nesc.json +9 -15
  217. data/grammars/source.netlinx.erb.json +13 -25
  218. data/grammars/source.netlinx.json +231 -292
  219. data/grammars/source.nextflow-groovy.json +1360 -0
  220. data/grammars/source.nextflow.json +74 -0
  221. data/grammars/source.nginx.json +274 -287
  222. data/grammars/source.nim.json +442 -483
  223. data/grammars/source.nim_filter.json +6 -26
  224. data/grammars/source.nimcfg.json +38 -51
  225. data/grammars/source.ninja.json +64 -70
  226. data/grammars/source.nit.json +60 -64
  227. data/grammars/source.nix.json +269 -273
  228. data/grammars/source.nmml.json +31 -37
  229. data/grammars/source.nsis.json +66 -72
  230. data/grammars/source.nu.json +129 -139
  231. data/grammars/source.nut.json +129 -133
  232. data/grammars/source.objc++.json +3 -10
  233. data/grammars/source.objc.json +303 -314
  234. data/grammars/source.objc.platform.json +145 -151
  235. data/grammars/source.ocaml.json +506 -514
  236. data/grammars/source.ocamllex.json +108 -115
  237. data/grammars/source.ocamlyacc.json +116 -123
  238. data/grammars/source.ooc.json +148 -155
  239. data/grammars/source.opa.json +39 -49
  240. data/grammars/source.opal.json +84 -89
  241. data/grammars/source.opalsysdefs.json +9 -13
  242. data/grammars/source.opencobol.json +22 -25
  243. data/grammars/source.opentype.json +148 -152
  244. data/grammars/source.ox.json +36 -44
  245. data/grammars/source.oz.json +31 -38
  246. data/grammars/source.p4.json +49 -59
  247. data/grammars/source.pan.json +273 -278
  248. data/grammars/source.papyrus.skyrim.json +705 -781
  249. data/grammars/source.parrot.pir.json +59 -65
  250. data/grammars/source.pascal.json +54 -61
  251. data/grammars/source.pawn.json +835 -849
  252. data/grammars/source.pcb.board.json +153 -158
  253. data/grammars/source.pcb.schematic.json +134 -138
  254. data/grammars/source.pcb.sexp.json +64 -74
  255. data/grammars/source.pep8.json +28 -32
  256. data/grammars/source.perl.6.json +83 -92
  257. data/grammars/source.perl.json +711 -737
  258. data/grammars/source.perl6fe.json +1204 -1218
  259. data/grammars/source.php.zephir.json +80 -89
  260. data/grammars/source.pic.json +137 -142
  261. data/grammars/source.pig_latin.json +76 -80
  262. data/grammars/source.pike.json +23 -36
  263. data/grammars/source.po.json +74 -84
  264. data/grammars/source.pogoscript.json +23 -29
  265. data/grammars/source.pony.json +98 -108
  266. data/grammars/source.postcss.json +370 -0
  267. data/grammars/source.postscript.json +88 -97
  268. data/grammars/source.pov-ray sdl.json +36 -42
  269. data/grammars/source.powershell.json +175 -197
  270. data/grammars/source.processing.json +236 -249
  271. data/grammars/source.prolog.eclipse.json +33 -38
  272. data/grammars/source.prolog.json +66 -72
  273. data/grammars/source.protobuf.json +88 -94
  274. data/grammars/source.puppet.json +144 -151
  275. data/grammars/source.purescript.json +268 -289
  276. data/grammars/source.pyjade.json +256 -281
  277. data/grammars/source.python.django.json +13 -18
  278. data/grammars/source.python.json +3319 -3367
  279. data/grammars/source.python.salt.json +3 -7
  280. data/grammars/source.qmake.json +83 -90
  281. data/grammars/source.qml.json +57 -78
  282. data/grammars/source.quoting.perl6fe.json +666 -669
  283. data/grammars/source.r.json +75 -84
  284. data/grammars/source.racket.json +17 -38
  285. data/grammars/source.rascal.json +77 -80
  286. data/grammars/source.reason.hover.type.json +1 -1
  287. data/grammars/source.reason.json +1025 -1080
  288. data/grammars/source.rebol.json +167 -177
  289. data/grammars/source.red.json +169 -177
  290. data/grammars/source.regexp.babel.json +74 -77
  291. data/grammars/source.regexp.extended.json +4 -5
  292. data/grammars/source.regexp.json +260 -264
  293. data/grammars/source.regexp.perl6fe.json +108 -111
  294. data/grammars/source.regexp.python.json +210 -215
  295. data/grammars/source.regexp.spin.json +63 -72
  296. data/grammars/source.renpy.json +617 -687
  297. data/grammars/source.rexx.json +25 -32
  298. data/grammars/source.ring.json +84 -114
  299. data/grammars/source.rpm-spec.json +392 -401
  300. data/grammars/source.ruby.gemfile.json +9 -12
  301. data/grammars/source.ruby.json +862 -952
  302. data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
  303. data/grammars/source.rust.json +223 -281
  304. data/grammars/source.sas.json +88 -105
  305. data/grammars/source.sass.json +100 -108
  306. data/grammars/source.sbt.json +16 -23
  307. data/grammars/source.scad.json +60 -67
  308. data/grammars/source.scala.json +215 -228
  309. data/grammars/source.scaml.json +120 -135
  310. data/grammars/source.scheme.json +119 -136
  311. data/grammars/source.scilab.json +40 -47
  312. data/grammars/source.scss.json +369 -403
  313. data/grammars/source.sdbl.json +14 -25
  314. data/grammars/source.shaderlab.json +24 -27
  315. data/grammars/source.shell.json +409 -440
  316. data/grammars/source.shen.json +75 -94
  317. data/grammars/source.smali.json +232 -293
  318. data/grammars/source.smalltalk.json +60 -75
  319. data/grammars/source.smt.json +67 -82
  320. data/grammars/source.solidity.json +35 -54
  321. data/grammars/source.sp.json +40 -45
  322. data/grammars/source.sparql.json +3 -8
  323. data/grammars/source.spin.json +277 -297
  324. data/grammars/source.sqf.json +34 -44
  325. data/grammars/source.sql.json +142 -156
  326. data/grammars/source.stan.json +201 -160
  327. data/grammars/source.stata.json +57 -68
  328. data/grammars/source.strings.json +26 -30
  329. data/grammars/source.stylus.json +558 -565
  330. data/grammars/source.supercollider.json +33 -40
  331. data/grammars/source.swift.json +999 -1077
  332. data/grammars/source.systemverilog.json +351 -365
  333. data/grammars/source.tcl.json +77 -94
  334. data/grammars/source.tea.json +61 -67
  335. data/grammars/source.terra.json +25 -32
  336. data/grammars/source.terraform.json +68 -88
  337. data/grammars/source.thrift.json +300 -306
  338. data/grammars/source.tl.json +112 -117
  339. data/grammars/source.tla.json +65 -69
  340. data/grammars/source.toc.json +21 -25
  341. data/grammars/source.toml.json +117 -122
  342. data/grammars/source.ts.json +2838 -2774
  343. data/grammars/source.tsx.json +180 -184
  344. data/grammars/source.turing.json +970 -974
  345. data/grammars/source.turtle.json +124 -140
  346. data/grammars/source.txl.json +23 -37
  347. data/grammars/source.ucfconstraints.json +16 -21
  348. data/grammars/source.ur.json +15 -27
  349. data/grammars/source.vala.json +221 -235
  350. data/grammars/source.varnish.vcl.json +117 -129
  351. data/grammars/source.vbnet.json +69 -106
  352. data/grammars/source.verilog.json +101 -107
  353. data/grammars/source.vhdl.json +437 -445
  354. data/grammars/source.viml.json +540 -550
  355. data/grammars/source.wavefront.mtl.json +274 -277
  356. data/grammars/source.wavefront.obj.json +781 -784
  357. data/grammars/source.wdl.json +66 -46
  358. data/grammars/source.webassembly.json +97 -102
  359. data/grammars/source.webidl.json +311 -326
  360. data/grammars/source.x10.json +28 -32
  361. data/grammars/source.x86asm.json +21 -26
  362. data/grammars/source.xc.json +164 -172
  363. data/grammars/source.xq.json +81 -92
  364. data/grammars/source.xtend.json +199 -208
  365. data/grammars/source.yaml-ext.json +118 -124
  366. data/grammars/source.yaml.json +155 -174
  367. data/grammars/source.yaml.salt.json +113 -116
  368. data/grammars/source.yang.json +10 -13
  369. data/grammars/source.yara.json +98 -0
  370. data/grammars/text.bibtex.json +95 -100
  371. data/grammars/text.cfml.basic.json +403 -404
  372. data/grammars/text.elixir.json +18 -23
  373. data/grammars/text.error-list.json +15 -16
  374. data/grammars/text.find-refs.json +487 -488
  375. data/grammars/text.gherkin.feature.json +45 -53
  376. data/grammars/text.haml.json +176 -189
  377. data/grammars/text.hamlc.json +82 -88
  378. data/grammars/text.html.abl.json +16 -21
  379. data/grammars/text.html.asciidoc.json +139 -153
  380. data/grammars/text.html.asdoc.json +145 -155
  381. data/grammars/text.html.asp.json +23 -28
  382. data/grammars/text.html.basic.json +323 -338
  383. data/grammars/text.html.cfm.json +316 -325
  384. data/grammars/text.html.creole.json +177 -189
  385. data/grammars/text.html.django.json +27 -33
  386. data/grammars/text.html.ecr.json +21 -25
  387. data/grammars/text.html.elixir.json +3 -9
  388. data/grammars/text.html.erb.json +81 -85
  389. data/grammars/text.html.erlang.yaws.json +24 -29
  390. data/grammars/text.html.factor.json +5 -11
  391. data/grammars/text.html.ftl.json +16 -25
  392. data/grammars/text.html.handlebars.json +579 -598
  393. data/grammars/text.html.javadoc.json +426 -0
  394. data/grammars/text.html.js.json +11 -17
  395. data/grammars/text.html.jsp.json +377 -384
  396. data/grammars/text.html.liquid.json +8 -18
  397. data/grammars/text.html.mako.json +257 -275
  398. data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
  399. data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
  400. data/grammars/text.html.mediawiki.json +318 -344
  401. data/grammars/text.html.php.blade.json +2134 -2140
  402. data/grammars/text.html.php.json +980 -1013
  403. data/grammars/text.html.slash.json +101 -107
  404. data/grammars/text.html.smarty.json +75 -83
  405. data/grammars/text.html.soy.json +250 -253
  406. data/grammars/text.html.ssp.json +18 -24
  407. data/grammars/text.html.tcl.json +17 -24
  408. data/grammars/text.html.twig.json +712 -718
  409. data/grammars/text.idl-idldoc.json +5 -9
  410. data/grammars/text.jade.json +213 -235
  411. data/grammars/text.junit-test-report.json +25 -28
  412. data/grammars/text.log.latex.json +44 -46
  413. data/grammars/text.marko.json +370 -401
  414. data/grammars/text.python.console.json +3 -7
  415. data/grammars/text.python.traceback.json +2 -5
  416. data/grammars/text.rdoc.json +15 -19
  417. data/grammars/text.restructuredtext.clean.json +8 -11
  418. data/grammars/text.restructuredtext.json +886 -873
  419. data/grammars/text.robot.json +26 -36
  420. data/grammars/text.roff.json +2852 -2915
  421. data/grammars/text.runoff.json +56 -69
  422. data/grammars/text.sfd.json +151 -155
  423. data/grammars/text.shell-session.json +5 -8
  424. data/grammars/text.slim.json +184 -210
  425. data/grammars/text.srt.json +54 -57
  426. data/grammars/text.tex.json +98 -105
  427. data/grammars/text.tex.latex.beamer.json +14 -20
  428. data/grammars/text.tex.latex.haskell.json +883 -782
  429. data/grammars/text.tex.latex.json +281 -291
  430. data/grammars/text.tex.latex.memoir.json +39 -46
  431. data/grammars/text.tex.latex.rd.json +32 -38
  432. data/grammars/text.xml.ant.json +62 -69
  433. data/grammars/text.xml.flex-config.json +1009 -1013
  434. data/grammars/text.xml.genshi.json +10 -16
  435. data/grammars/text.xml.json +117 -130
  436. data/grammars/text.xml.pom.json +235 -240
  437. data/grammars/text.xml.xsl.json +31 -37
  438. data/grammars/text.zone_file.json +24 -29
  439. data/lib/linguist/blob.rb +10 -1
  440. data/lib/linguist/blob_helper.rb +4 -1
  441. data/lib/linguist/file_blob.rb +5 -0
  442. data/lib/linguist/generated.rb +16 -0
  443. data/lib/linguist/heuristics.rb +23 -11
  444. data/lib/linguist/language.rb +3 -6
  445. data/lib/linguist/languages.json +1 -1
  446. data/lib/linguist/languages.yml +74 -12
  447. data/lib/linguist/lazy_blob.rb +15 -1
  448. data/lib/linguist/linguist.bundle +0 -0
  449. data/lib/linguist/samples.json +1666 -3381
  450. data/lib/linguist/shebang.rb +2 -0
  451. data/lib/linguist/strategy/modeline.rb +2 -0
  452. data/lib/linguist/vendor.yml +5 -6
  453. data/lib/linguist/version.rb +1 -1
  454. metadata +12 -11
  455. data/grammars/source.elm.json +0 -381
  456. data/grammars/source.nant-build.json +0 -86
  457. data/grammars/source.octave.json +0 -451
  458. data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
  459. data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
  460. data/grammars/text.html.vue.json +0 -936
@@ -1,86 +1,144 @@
1
1
  {
2
2
  "name": "Turing",
3
3
  "scopeName": "source.turing",
4
- "fileTypes": [
5
- "t",
6
- "tu"
7
- ],
8
4
  "patterns": [
9
5
  {
10
6
  "include": "#main"
11
7
  }
12
8
  ],
13
9
  "repository": {
14
- "main": {
10
+ "boolean": {
11
+ "name": "constant.language.boolean.$1.turing",
12
+ "match": "\\b(true|false)\\b"
13
+ },
14
+ "case": {
15
+ "name": "meta.scope.case-block.turing",
16
+ "begin": "\\b(case)\\s+(\\w+)\\s+(of)\\b",
17
+ "end": "\\b(end\\s+case)\\b",
15
18
  "patterns": [
16
19
  {
17
- "include": "#comments"
18
- },
19
- {
20
- "include": "#boolean"
21
- },
22
- {
23
- "include": "#strings"
24
- },
25
- {
26
- "include": "#numbers"
27
- },
28
- {
29
- "include": "#for"
30
- },
31
- {
32
- "include": "#cc"
33
- },
34
- {
35
- "include": "#case"
36
- },
37
- {
38
- "include": "#types"
39
- },
40
- {
41
- "include": "#function"
42
- },
43
- {
44
- "include": "#keywords"
45
- },
46
- {
47
- "include": "#modifiers"
48
- },
49
- {
50
- "include": "#variables"
51
- },
52
- {
53
- "include": "#punctuation"
54
- },
55
- {
56
- "include": "#forward"
20
+ "include": "#label"
57
21
  },
58
22
  {
59
- "include": "#procedure"
23
+ "include": "$self"
24
+ }
25
+ ],
26
+ "beginCaptures": {
27
+ "1": {
28
+ "name": "keyword.control.case.turing"
60
29
  },
61
- {
62
- "include": "#process"
30
+ "2": {
31
+ "name": "variable.parameter.turing"
63
32
  },
64
- {
65
- "include": "#handler"
33
+ "3": {
34
+ "name": "keyword.operator.of.turing"
35
+ }
36
+ },
37
+ "endCaptures": {
38
+ "1": {
39
+ "name": "keyword.control.end.case.turing"
40
+ }
41
+ }
42
+ },
43
+ "cc": {
44
+ "name": "meta.preprocessor.$3.turing",
45
+ "match": "^\\s*((#)((?:end\\s+)?if|elsif|else))",
46
+ "captures": {
47
+ "1": {
48
+ "name": "keyword.control.directive.conditional.turing"
66
49
  },
50
+ "2": {
51
+ "name": "punctuation.definition.directive.turing"
52
+ }
53
+ }
54
+ },
55
+ "class": {
56
+ "name": "meta.scope.$1-block.turing",
57
+ "begin": "^\\s*(class|module|monitor)\\s+(\\w+)",
58
+ "end": "\\b(end)\\s+(\\2)",
59
+ "patterns": [
67
60
  {
68
- "include": "#class"
61
+ "include": "#class-innards"
69
62
  },
70
63
  {
71
- "include": "#type"
64
+ "include": "$self"
65
+ }
66
+ ],
67
+ "beginCaptures": {
68
+ "1": {
69
+ "name": "storage.type.$1.turing"
72
70
  },
73
- {
74
- "include": "#record"
71
+ "2": {
72
+ "name": "entity.name.type.class.turing"
73
+ }
74
+ },
75
+ "endCaptures": {
76
+ "1": {
77
+ "name": "keyword.control.end.turing"
75
78
  },
79
+ "2": {
80
+ "name": "entity.name.type.class.turing"
81
+ }
82
+ }
83
+ },
84
+ "class-innards": {
85
+ "patterns": [
76
86
  {
77
- "include": "#union"
87
+ "begin": "\\b(import|export)\\b",
88
+ "end": "(?=$|%|/\\*)",
89
+ "patterns": [
90
+ {
91
+ "include": "#list"
92
+ },
93
+ {
94
+ "include": "$self"
95
+ }
96
+ ],
97
+ "beginCaptures": {
98
+ "1": {
99
+ "name": "keyword.control.$1.turing"
100
+ }
101
+ }
78
102
  },
79
103
  {
80
- "include": "#function-call"
104
+ "name": "meta.other.inherited-class.turing",
105
+ "begin": "\\b(inherit)\\b",
106
+ "end": "\\w+",
107
+ "patterns": [
108
+ {
109
+ "include": "$self"
110
+ }
111
+ ],
112
+ "beginCaptures": {
113
+ "1": {
114
+ "name": "storage.modifier.inherit.turing"
115
+ }
116
+ },
117
+ "endCaptures": {
118
+ "0": {
119
+ "name": "entity.other.inherited-class.turing"
120
+ }
121
+ }
81
122
  },
82
123
  {
83
- "include": "#stdlib"
124
+ "name": "meta.other.$1.turing",
125
+ "begin": "\\b(implement(?:\\s+by)?)\\b",
126
+ "end": "\\w+",
127
+ "patterns": [
128
+ {
129
+ "include": "$self"
130
+ }
131
+ ],
132
+ "beginCaptures": {
133
+ "1": {
134
+ "name": "storage.modifier.implements.turing"
135
+ }
136
+ },
137
+ "endCaptures": {
138
+ "0": {
139
+ "name": "entity.other.inherited-class.turing"
140
+ }
141
+ }
84
142
  }
85
143
  ]
86
144
  },
@@ -113,119 +171,63 @@
113
171
  }
114
172
  ]
115
173
  },
116
- "strings": {
117
- "patterns": [
118
- {
119
- "name": "string.quoted.double.turing",
120
- "begin": "\"",
121
- "end": "\"",
122
- "patterns": [
123
- {
124
- "include": "#escapes"
125
- }
126
- ]
127
- },
128
- {
129
- "name": "string.quoted.single.turing",
130
- "begin": "'",
131
- "end": "'",
132
- "patterns": [
133
- {
134
- "include": "#escapes"
135
- }
136
- ]
137
- }
138
- ]
139
- },
140
- "numbers": {
141
- "patterns": [
142
- {
143
- "name": "constant.numeric.base-16.hex.turing",
144
- "match": "16#[A-Fa-f0-9]+"
145
- },
146
- {
147
- "name": "constant.numeric.base-$1.turing",
148
- "match": "(\\d+)#\\d+"
149
- },
150
- {
151
- "name": "constant.numeric.float.turing",
152
- "match": "\\b\\d+\\.\\d+(?:[Ee][\\+\\-]?\\d+)?\\b"
153
- },
154
- {
155
- "name": "constant.numeric.int.turing",
156
- "match": "\\b\\d+\\b"
157
- }
158
- ]
159
- },
160
- "list": {
161
- "patterns": [
162
- {
163
- "match": "\\w+",
164
- "name": "variable.name.turing"
165
- },
166
- {
167
- "match": ",",
168
- "name": "meta.delimiter.object.comma.turing"
169
- }
170
- ]
171
- },
172
174
  "escapes": {
173
175
  "patterns": [
174
176
  {
175
- "match": "\\\\\"",
176
- "name": "constant.character.escape.double-quote.turing"
177
+ "name": "constant.character.escape.double-quote.turing",
178
+ "match": "\\\\\""
177
179
  },
178
180
  {
179
- "match": "\\\\'",
180
- "name": "constant.character.escape.single-quote.turing"
181
+ "name": "constant.character.escape.single-quote.turing",
182
+ "match": "\\\\'"
181
183
  },
182
184
  {
183
- "match": "\\\\[nN]",
184
- "name": "constant.character.escape.newline.turing"
185
+ "name": "constant.character.escape.newline.turing",
186
+ "match": "\\\\[nN]"
185
187
  },
186
188
  {
187
- "match": "\\\\[tT]",
188
- "name": "constant.character.escape.tab.turing"
189
+ "name": "constant.character.escape.tab.turing",
190
+ "match": "\\\\[tT]"
189
191
  },
190
192
  {
191
- "match": "\\\\[fF]",
192
- "name": "constant.character.escape.form-feed.turing"
193
+ "name": "constant.character.escape.form-feed.turing",
194
+ "match": "\\\\[fF]"
193
195
  },
194
196
  {
195
- "match": "\\\\[rR]",
196
- "name": "constant.character.escape.return.turing"
197
+ "name": "constant.character.escape.return.turing",
198
+ "match": "\\\\[rR]"
197
199
  },
198
200
  {
199
- "match": "\\\\[bB]",
200
- "name": "constant.character.escape.backspace.turing"
201
+ "name": "constant.character.escape.backspace.turing",
202
+ "match": "\\\\[bB]"
201
203
  },
202
204
  {
203
- "match": "\\\\[eE]",
204
- "name": "constant.character.escape.esc.turing"
205
+ "name": "constant.character.escape.esc.turing",
206
+ "match": "\\\\[eE]"
205
207
  },
206
208
  {
207
- "match": "\\\\\\\\",
208
- "name": "constant.character.escape.backslash.turing"
209
+ "name": "constant.character.escape.backslash.turing",
210
+ "match": "\\\\\\\\"
209
211
  }
210
212
  ]
211
213
  },
212
- "function": {
213
- "name": "meta.function.turing",
214
- "begin": "(?x)\n\\b\n(?:\n\t(body) # 1: storage.modifier.body.turing\n\t\\s+\n)?\n(function|fcn) # 2: storage.type.turing\n(?:\n\t\\s+\n\t(pervasive|\\*) # 3: storage.modifier.pervasive.turing\n)?\n\\s+\n(\\w+) # 4: entity.name.function.turing\n\\s*\n( # 5: meta.function.parameters.turing\n\t(\\() # 6: punctuation.definition.parameters.begin.turing\n\t(.*) # 7: include: “#param-declarations”\n\t(\\)) # 8: punctuation.definition.parameters.end.turing\n)\n\\s*\n(:) # 9: punctuation.separator.key-value.turing\n\\s*\n(\\w+) # 10: storage.type.type-spec.turing",
215
- "end": "\\b(end)\\s+(\\4)",
214
+ "for": {
215
+ "name": "meta.for-loop.turing",
216
+ "begin": "\\b(for)\\b(?:\\s+(decreasing)\\b)?",
217
+ "end": "\\b(end)\\s+(for)",
216
218
  "patterns": [
217
219
  {
218
- "name": "meta.$1-function.turing",
219
- "begin": "^\\s*(pre|init|post)(?=\\s|$)",
220
- "end": "$",
221
- "patterns": [
222
- {
223
- "include": "$self"
224
- }
225
- ],
226
- "beginCaptures": {
220
+ "match": "\\G(.*?)\\b(by)\\b",
221
+ "captures": {
227
222
  "1": {
228
- "name": "keyword.function.$1.turing"
223
+ "patterns": [
224
+ {
225
+ "include": "$self"
226
+ }
227
+ ]
228
+ },
229
+ "2": {
230
+ "name": "keyword.control.by.turing"
229
231
  }
230
232
  }
231
233
  },
@@ -235,14 +237,110 @@
235
237
  ],
236
238
  "beginCaptures": {
237
239
  "1": {
238
- "name": "storage.modifier.body.turing"
240
+ "name": "keyword.control.for.turing"
239
241
  },
240
242
  "2": {
241
- "name": "storage.type.turing"
242
- },
243
- "3": {
244
- "name": "storage.modifier.pervasive.turing"
245
- },
243
+ "name": "keyword.operator.decreasing.turing"
244
+ }
245
+ },
246
+ "endCaptures": {
247
+ "1": {
248
+ "name": "keyword.control.end.turing"
249
+ },
250
+ "2": {
251
+ "name": "keyword.control.for.turing"
252
+ }
253
+ }
254
+ },
255
+ "forward": {
256
+ "patterns": [
257
+ {
258
+ "name": "meta.$1.procedure.turing",
259
+ "begin": "\\b(deferred|forward)\\s+(procedure|proc)\\s+(\\w+)",
260
+ "end": "(?=$|%|/\\*)",
261
+ "patterns": [
262
+ {
263
+ "include": "#parameters"
264
+ },
265
+ {
266
+ "include": "$self"
267
+ }
268
+ ],
269
+ "beginCaptures": {
270
+ "1": {
271
+ "name": "storage.modifier.$1.turing"
272
+ },
273
+ "2": {
274
+ "name": "storage.type.function.turing"
275
+ },
276
+ "3": {
277
+ "name": "entity.name.function.turing"
278
+ }
279
+ }
280
+ },
281
+ {
282
+ "name": "meta.$1.function.turing",
283
+ "begin": "\\b(deferred|forward)\\s+(function|fcn)\\s+(\\w+)",
284
+ "end": "(?=$|%|/\\*)",
285
+ "patterns": [
286
+ {
287
+ "include": "#parameters"
288
+ },
289
+ {
290
+ "include": "$self"
291
+ }
292
+ ],
293
+ "beginCaptures": {
294
+ "1": {
295
+ "name": "storage.modifier.$1.turing"
296
+ },
297
+ "2": {
298
+ "name": "storage.type.function.turing"
299
+ },
300
+ "3": {
301
+ "name": "entity.name.function.turing"
302
+ }
303
+ }
304
+ }
305
+ ]
306
+ },
307
+ "function": {
308
+ "name": "meta.function.turing",
309
+ "begin": "(?x)\n\\b\n(?:\n\t(body) # 1: storage.modifier.body.turing\n\t\\s+\n)?\n(function|fcn) # 2: storage.type.turing\n(?:\n\t\\s+\n\t(pervasive|\\*) # 3: storage.modifier.pervasive.turing\n)?\n\\s+\n(\\w+) # 4: entity.name.function.turing\n\\s*\n( # 5: meta.function.parameters.turing\n\t(\\() # 6: punctuation.definition.parameters.begin.turing\n\t(.*) # 7: include: “#param-declarations”\n\t(\\)) # 8: punctuation.definition.parameters.end.turing\n)\n\\s*\n(:) # 9: punctuation.separator.key-value.turing\n\\s*\n(\\w+) # 10: storage.type.type-spec.turing",
310
+ "end": "\\b(end)\\s+(\\4)",
311
+ "patterns": [
312
+ {
313
+ "name": "meta.$1-function.turing",
314
+ "begin": "^\\s*(pre|init|post)(?=\\s|$)",
315
+ "end": "$",
316
+ "patterns": [
317
+ {
318
+ "include": "$self"
319
+ }
320
+ ],
321
+ "beginCaptures": {
322
+ "1": {
323
+ "name": "keyword.function.$1.turing"
324
+ }
325
+ }
326
+ },
327
+ {
328
+ "include": "$self"
329
+ }
330
+ ],
331
+ "beginCaptures": {
332
+ "1": {
333
+ "name": "storage.modifier.body.turing"
334
+ },
335
+ "10": {
336
+ "name": "storage.type.type-spec.turing"
337
+ },
338
+ "2": {
339
+ "name": "storage.type.turing"
340
+ },
341
+ "3": {
342
+ "name": "storage.modifier.pervasive.turing"
343
+ },
246
344
  "4": {
247
345
  "name": "entity.name.function.turing"
248
346
  },
@@ -264,9 +362,6 @@
264
362
  },
265
363
  "9": {
266
364
  "name": "punctuation.separator.key-value.turing"
267
- },
268
- "10": {
269
- "name": "storage.type.type-spec.turing"
270
365
  }
271
366
  },
272
367
  "endCaptures": {
@@ -278,31 +373,18 @@
278
373
  }
279
374
  }
280
375
  },
281
- "param-declarations": {
282
- "match": "\\b(\\w+)\\s+(:)\\s+((\\w+))",
283
- "captures": {
284
- "1": {
285
- "name": "variable.parameter.function.turing"
286
- },
287
- "2": {
288
- "name": "storage.type.turing"
289
- },
290
- "3": {
291
- "patterns": [
292
- {
293
- "include": "#types"
294
- }
295
- ]
296
- }
297
- }
298
- },
299
376
  "function-call": {
300
377
  "patterns": [
301
378
  {
302
379
  "name": "meta.function-call.turing",
380
+ "contentName": "meta.function-call.arguments.turing",
303
381
  "begin": "(([\\w.]+))\\s*(\\()",
304
382
  "end": "\\)",
305
- "contentName": "meta.function-call.arguments.turing",
383
+ "patterns": [
384
+ {
385
+ "include": "$self"
386
+ }
387
+ ],
306
388
  "beginCaptures": {
307
389
  "1": {
308
390
  "name": "entity.function.name.turing"
@@ -322,12 +404,7 @@
322
404
  "0": {
323
405
  "name": "punctuation.definition.arguments.end.turing"
324
406
  }
325
- },
326
- "patterns": [
327
- {
328
- "include": "$self"
329
- }
330
- ]
407
+ }
331
408
  },
332
409
  {
333
410
  "name": "meta.function-call.turing",
@@ -353,32 +430,68 @@
353
430
  "include": "#stdlib"
354
431
  },
355
432
  {
356
- "match": "\\.",
357
- "name": "punctuation.separator.method.turing"
433
+ "name": "punctuation.separator.method.turing",
434
+ "match": "\\."
358
435
  }
359
436
  ]
360
437
  },
438
+ "handler": {
439
+ "name": "meta.scope.handler.turing",
440
+ "begin": "\\b(handler)\\s*(\\()\\s*(\\w+)\\s*(\\))",
441
+ "end": "\\b(end)\\s+(handler)\\b",
442
+ "patterns": [
443
+ {
444
+ "include": "$self"
445
+ }
446
+ ],
447
+ "beginCaptures": {
448
+ "1": {
449
+ "name": "storage.type.handler.turing"
450
+ },
451
+ "2": {
452
+ "name": "punctuation.definition.arguments.begin.turing"
453
+ },
454
+ "3": {
455
+ "name": "variable.parameter.handler.turing"
456
+ },
457
+ "4": {
458
+ "name": "punctuation.definition.arguments.end.turing"
459
+ }
460
+ },
461
+ "endCaptures": {
462
+ "1": {
463
+ "name": "keyword.control.end.turing"
464
+ },
465
+ "2": {
466
+ "name": "storage.type.handler.turing"
467
+ }
468
+ }
469
+ },
470
+ "keyboard-constants": {
471
+ "name": "support.constant.keyboard.turing",
472
+ "match": "(?x)\\b(?:\n(?:KEY|ORD)_(?:\n\tF1[0-2]|F[1-9]|CTRL_[A-Z]|ALT_[A-Z0-9]|(?:CTRL|ALT|SHIFT)_(?:F1[0-2]|F[1-9])|\n\tALT(?:_EQUALS|_MINUS)?|BACK_TAB|BACKSPACE|CTRL|DELETE|END|ENTER|ESC|HOME|INSERT|KEYPAD_5|PGDN|PGUP|SHIFT|SHIFT_TAB|TAB|\n\tCTRL_(?:BACKSLASH|BACKSPACE|CARET|(?:UP|RIGHT|LEFT|DOWN)_ARROW|CLOSE_BRACKET|DELETE|END|HOME|INSERT|OPEN_BRACKET|PGDN|PGUP|UNDERSCORE)|\n\t(?:UP|RIGHT|LEFT|DOWN)_ARROW)\n|\nORD_(?:\n\tAMPERSAND|APOSTROPHE|ASTERISK|BACKSLASH|BAR|CARET|COLON|COMMA|DOT|EQUALS|(?:GREATER|LESS)_THAN|\n\t(?:CLOSE|OPEN)_(?:BRACE|BRACKET|PARENTHESIS)|(?:EXCALAMATION|HAS|QUESTION|QUOTATION)_MARK|MINUS|\n\t(?:AT|DOLLAR|PERCENT)_SIGN|PERIOD|PLUS|SEMICOLON|SINGLE_QUOTE|SLASH|SPACE|TILDE|UNDERSCORE|[A-Z0-9]|LOWER_[A-Z])\n)\\b"
473
+ },
361
474
  "keywords": {
362
475
  "patterns": [
363
476
  {
364
- "match": "\\b((?:end\\s+)?if|then|elsif|else|(?:end\\s+)?loop|exit|when|include|in)\\b",
365
- "name": "keyword.control.$1.turing"
477
+ "name": "keyword.control.$1.turing",
478
+ "match": "\\b((?:end\\s+)?if|then|elsif|else|(?:end\\s+)?loop|exit|when|include|in)\\b"
366
479
  },
367
480
  {
368
- "match": "\\b(and|not|x?or)\\b",
369
- "name": "keyword.operator.logical.$1.turing"
481
+ "name": "keyword.operator.logical.$1.turing",
482
+ "match": "\\b(and|not|x?or)\\b"
370
483
  },
371
484
  {
372
- "match": "\\b(all|bits|div|lower|mod|nil|rem|shl|shr|unit|upper)\\b",
373
- "name": "keyword.operator.$1.turing"
485
+ "name": "keyword.operator.$1.turing",
486
+ "match": "\\b(all|bits|div|lower|mod|nil|rem|shl|shr|unit|upper)\\b"
374
487
  },
375
488
  {
376
- "match": "\\b(assert|begin|break|close|exit|fork|free|get|init|invariant|new|objectclass|open|pause|put|quit|read|result|return|seek|signal|tag|tell|wait|write)\\b",
377
- "name": "keyword.other.statement.$1.turing"
489
+ "name": "keyword.other.statement.$1.turing",
490
+ "match": "\\b(assert|begin|break|close|exit|fork|free|get|init|invariant|new|objectclass|open|pause|put|quit|read|result|return|seek|signal|tag|tell|wait|write)\\b"
378
491
  },
379
492
  {
380
- "match": "\\b(char)\\s*(\\()(\\d+)(\\))",
381
493
  "name": "storage.type.$3-char.turing",
494
+ "match": "\\b(char)\\s*(\\()(\\d+)(\\))",
382
495
  "captures": {
383
496
  "2": {
384
497
  "name": "punctuation.definition.arguments.begin.turing"
@@ -389,723 +502,142 @@
389
502
  }
390
503
  },
391
504
  {
392
- "match": "(?x)\\b\n(black|blue|brightblue|brightcyan|brightgreen|brightmagenta|brightpurple|brightred\n|brightwhite|brown|colou?r[bf]g|cyan|darkgr[ae]y|gr[ae]y|green|magenta|purple|red\n|white|yellow)\\b",
393
- "name": "constant.other.colour.turing"
394
- },
395
- {
396
- "match": "\\b(skip|self)\\b",
397
- "name": "constant.language.$1.turing"
398
- }
399
- ]
400
- },
401
- "modifiers": {
402
- "patterns": [
403
- {
404
- "match": "\\b(unchecked|checked)\\b",
405
- "name": "storage.modifier.$1.compiler-directive.oot.turing"
406
- },
407
- {
408
- "match": "\\b(unqualified|~\\.)\\b",
409
- "name": "storage.modifier.unqualified.turing"
505
+ "name": "constant.other.colour.turing",
506
+ "match": "(?x)\\b\n(black|blue|brightblue|brightcyan|brightgreen|brightmagenta|brightpurple|brightred\n|brightwhite|brown|colou?r[bf]g|cyan|darkgr[ae]y|gr[ae]y|green|magenta|purple|red\n|white|yellow)\\b"
410
507
  },
411
508
  {
412
- "match": "\\b(external|flexible|opaque|register)\\b",
413
- "name": "storage.modifier.$1.turing"
509
+ "name": "constant.language.$1.turing",
510
+ "match": "\\b(skip|self)\\b"
414
511
  }
415
512
  ]
416
513
  },
417
- "types": {
418
- "match": "\\b(addressint|array|boolean|char|collection|enum|int[124]?|nat[124]?|real[48]?|pointer\\s+to|set\\s+of|string)\\b",
419
- "name": "storage.type.$1-type.turing"
420
- },
421
- "cc": {
422
- "name": "meta.preprocessor.$3.turing",
423
- "match": "^\\s*((#)((?:end\\s+)?if|elsif|else))",
424
- "captures": {
425
- "1": {
426
- "name": "keyword.control.directive.conditional.turing"
427
- },
428
- "2": {
429
- "name": "punctuation.definition.directive.turing"
430
- }
431
- }
432
- },
433
- "for": {
434
- "name": "meta.for-loop.turing",
435
- "begin": "\\b(for)\\b(?:\\s+(decreasing)\\b)?",
436
- "end": "\\b(end)\\s+(for)",
514
+ "label": {
515
+ "name": "meta.label.turing",
516
+ "begin": "\\b(label)\\b",
517
+ "end": ":",
437
518
  "patterns": [
438
519
  {
439
- "match": "\\G(.*?)\\b(by)\\b",
440
- "captures": {
441
- "1": {
442
- "patterns": [
443
- {
444
- "include": "$self"
445
- }
446
- ]
447
- },
448
- "2": {
449
- "name": "keyword.control.by.turing"
450
- }
451
- }
520
+ "include": "$self"
452
521
  },
453
522
  {
454
- "include": "$self"
523
+ "include": "#list"
455
524
  }
456
525
  ],
457
526
  "beginCaptures": {
458
527
  "1": {
459
- "name": "keyword.control.for.turing"
460
- },
461
- "2": {
462
- "name": "keyword.operator.decreasing.turing"
528
+ "name": "keyword.other.statement.label.turing"
463
529
  }
464
530
  },
465
531
  "endCaptures": {
466
- "1": {
467
- "name": "keyword.control.end.turing"
468
- },
469
- "2": {
470
- "name": "keyword.control.for.turing"
532
+ "0": {
533
+ "name": "punctuation.separator.key-value.turing"
471
534
  }
472
535
  }
473
536
  },
474
- "case": {
475
- "name": "meta.scope.case-block.turing",
476
- "begin": "\\b(case)\\s+(\\w+)\\s+(of)\\b",
477
- "end": "\\b(end\\s+case)\\b",
537
+ "list": {
478
538
  "patterns": [
479
539
  {
480
- "include": "#label"
540
+ "name": "variable.name.turing",
541
+ "match": "\\w+"
481
542
  },
482
543
  {
483
- "include": "$self"
544
+ "name": "meta.delimiter.object.comma.turing",
545
+ "match": ","
484
546
  }
485
- ],
486
- "beginCaptures": {
487
- "1": {
488
- "name": "keyword.control.case.turing"
547
+ ]
548
+ },
549
+ "main": {
550
+ "patterns": [
551
+ {
552
+ "include": "#comments"
489
553
  },
490
- "2": {
491
- "name": "variable.parameter.turing"
492
- },
493
- "3": {
494
- "name": "keyword.operator.of.turing"
495
- }
496
- },
497
- "endCaptures": {
498
- "1": {
499
- "name": "keyword.control.end.case.turing"
500
- }
501
- }
502
- },
503
- "label": {
504
- "name": "meta.label.turing",
505
- "begin": "\\b(label)\\b",
506
- "end": ":",
507
- "beginCaptures": {
508
- "1": {
509
- "name": "keyword.other.statement.label.turing"
510
- }
511
- },
512
- "endCaptures": {
513
- "0": {
514
- "name": "punctuation.separator.key-value.turing"
515
- }
516
- },
517
- "patterns": [
518
- {
519
- "include": "$self"
520
- },
521
- {
522
- "include": "#list"
523
- }
524
- ]
525
- },
526
- "forward": {
527
- "patterns": [
528
- {
529
- "name": "meta.$1.procedure.turing",
530
- "begin": "\\b(deferred|forward)\\s+(procedure|proc)\\s+(\\w+)",
531
- "end": "(?=$|%|/\\*)",
532
- "beginCaptures": {
533
- "1": {
534
- "name": "storage.modifier.$1.turing"
535
- },
536
- "2": {
537
- "name": "storage.type.function.turing"
538
- },
539
- "3": {
540
- "name": "entity.name.function.turing"
541
- }
542
- },
543
- "patterns": [
544
- {
545
- "include": "#parameters"
546
- },
547
- {
548
- "include": "$self"
549
- }
550
- ]
551
- },
552
- {
553
- "name": "meta.$1.function.turing",
554
- "begin": "\\b(deferred|forward)\\s+(function|fcn)\\s+(\\w+)",
555
- "end": "(?=$|%|/\\*)",
556
- "beginCaptures": {
557
- "1": {
558
- "name": "storage.modifier.$1.turing"
559
- },
560
- "2": {
561
- "name": "storage.type.function.turing"
562
- },
563
- "3": {
564
- "name": "entity.name.function.turing"
565
- }
566
- },
567
- "patterns": [
568
- {
569
- "include": "#parameters"
570
- },
571
- {
572
- "include": "$self"
573
- }
574
- ]
575
- }
576
- ]
577
- },
578
- "procedure": {
579
- "name": "meta.scope.procedure.turing",
580
- "begin": "\\b(?:(body)\\s+)?(procedure|proc)\\s+(\\w+)",
581
- "end": "\\b(end)\\s+(\\3)",
582
- "patterns": [
583
- {
584
- "include": "#parameters"
585
- },
586
- {
587
- "include": "$self"
588
- }
589
- ],
590
- "beginCaptures": {
591
- "1": {
592
- "name": "storage.modifier.$1.turing"
593
- },
594
- "2": {
595
- "name": "storage.type.function.turing"
596
- },
597
- "3": {
598
- "name": "entity.name.function.turing"
599
- }
600
- },
601
- "endCaptures": {
602
- "1": {
603
- "name": "keyword.control.end.turing"
604
- },
605
- "2": {
606
- "name": "entity.name.function.turing"
607
- }
608
- }
609
- },
610
- "process": {
611
- "name": "meta.scope.process.turing",
612
- "begin": "\\b(process)(?:\\s+(pervasive|\\*)(?=\\s))?\\s+(\\w+)",
613
- "end": "\\b(end)\\s+(\\3)",
614
- "patterns": [
615
- {
616
- "include": "#parameters"
617
- },
618
- {
619
- "include": "$self"
620
- }
621
- ],
622
- "beginCaptures": {
623
- "1": {
624
- "name": "storage.type.function.turing"
625
- },
626
- "2": {
627
- "name": "storage.modifier.pervasive.turing"
628
- },
629
- "3": {
630
- "name": "entity.name.function.turing"
631
- }
632
- },
633
- "endCaptures": {
634
- "1": {
635
- "name": "keyword.control.end.turing"
636
- },
637
- "2": {
638
- "name": "entity.name.function.turing"
639
- }
640
- }
641
- },
642
- "parameters": {
643
- "name": "meta.function.parameters.turing",
644
- "begin": "\\G\\s*(\\()",
645
- "end": "\\)",
646
- "beginCaptures": {
647
- "1": {
648
- "name": "punctuation.definition.arguments.begin.turing"
649
- }
650
- },
651
- "endCaptures": {
652
- "0": {
653
- "name": "punctuation.definition.arguments.end.turing"
654
- }
655
- },
656
- "patterns": [
657
- {
658
- "include": "$self"
659
- },
660
- {
661
- "match": "\\w+",
662
- "name": "variable.parameter.function.turing"
663
- }
664
- ]
665
- },
666
- "handler": {
667
- "name": "meta.scope.handler.turing",
668
- "begin": "\\b(handler)\\s*(\\()\\s*(\\w+)\\s*(\\))",
669
- "end": "\\b(end)\\s+(handler)\\b",
670
- "patterns": [
671
- {
672
- "include": "$self"
673
- }
674
- ],
675
- "beginCaptures": {
676
- "1": {
677
- "name": "storage.type.handler.turing"
678
- },
679
- "2": {
680
- "name": "punctuation.definition.arguments.begin.turing"
681
- },
682
- "3": {
683
- "name": "variable.parameter.handler.turing"
684
- },
685
- "4": {
686
- "name": "punctuation.definition.arguments.end.turing"
687
- }
688
- },
689
- "endCaptures": {
690
- "1": {
691
- "name": "keyword.control.end.turing"
692
- },
693
- "2": {
694
- "name": "storage.type.handler.turing"
695
- }
696
- }
697
- },
698
- "class": {
699
- "name": "meta.scope.$1-block.turing",
700
- "begin": "^\\s*(class|module|monitor)\\s+(\\w+)",
701
- "end": "\\b(end)\\s+(\\2)",
702
- "patterns": [
703
- {
704
- "include": "#class-innards"
705
- },
706
- {
707
- "include": "$self"
708
- }
709
- ],
710
- "beginCaptures": {
711
- "1": {
712
- "name": "storage.type.$1.turing"
713
- },
714
- "2": {
715
- "name": "entity.name.type.class.turing"
716
- }
717
- },
718
- "endCaptures": {
719
- "1": {
720
- "name": "keyword.control.end.turing"
721
- },
722
- "2": {
723
- "name": "entity.name.type.class.turing"
724
- }
725
- }
726
- },
727
- "class-innards": {
728
- "patterns": [
729
- {
730
- "begin": "\\b(import|export)\\b",
731
- "end": "(?=$|%|/\\*)",
732
- "beginCaptures": {
733
- "1": {
734
- "name": "keyword.control.$1.turing"
735
- }
736
- },
737
- "patterns": [
738
- {
739
- "include": "#list"
740
- },
741
- {
742
- "include": "$self"
743
- }
744
- ]
745
- },
746
- {
747
- "name": "meta.other.inherited-class.turing",
748
- "begin": "\\b(inherit)\\b",
749
- "end": "\\w+",
750
- "beginCaptures": {
751
- "1": {
752
- "name": "storage.modifier.inherit.turing"
753
- }
754
- },
755
- "endCaptures": {
756
- "0": {
757
- "name": "entity.other.inherited-class.turing"
758
- }
759
- },
760
- "patterns": [
761
- {
762
- "include": "$self"
763
- }
764
- ]
765
- },
766
- {
767
- "name": "meta.other.$1.turing",
768
- "begin": "\\b(implement(?:\\s+by)?)\\b",
769
- "end": "\\w+",
770
- "beginCaptures": {
771
- "1": {
772
- "name": "storage.modifier.implements.turing"
773
- }
774
- },
775
- "endCaptures": {
776
- "0": {
777
- "name": "entity.other.inherited-class.turing"
778
- }
779
- },
780
- "patterns": [
781
- {
782
- "include": "$self"
783
- }
784
- ]
785
- }
786
- ]
787
- },
788
- "variables": {
789
- "patterns": [
790
- {
791
- "name": "meta.variable-declaration.turing",
792
- "begin": "\\b(var|const)\\s+",
793
- "end": "(:=?)\\s*((?!\\d)((?:\\w+(?:\\s+to)?)(?:\\s*\\(\\s*\\d+\\s*\\))?))?\\s*(:=)?",
794
- "beginCaptures": {
795
- "1": {
796
- "name": "storage.type.$1.turing"
797
- }
798
- },
799
- "endCaptures": {
800
- "1": {
801
- "name": "punctuation.separator.key-value.turing"
802
- },
803
- "2": {
804
- "name": "storage.type.type-spec.turing"
805
- },
806
- "3": {
807
- "patterns": [
808
- {
809
- "include": "#types"
810
- }
811
- ]
812
- },
813
- "4": {
814
- "name": "punctuation.separator.key-value.turing"
815
- }
816
- },
817
- "patterns": [
818
- {
819
- "match": "\\G(?:\\s*(pervasive|\\*)(?=\\s))?\\s*(register)(?=\\s)",
820
- "captures": {
821
- "1": {
822
- "name": "storage.modifier.pervasive.oot.turing"
823
- },
824
- "2": {
825
- "name": "storage.modifier.register.oot.turing"
826
- }
827
- }
828
- },
829
- {
830
- "include": "#types"
831
- },
832
- {
833
- "include": "#list"
834
- }
835
- ]
836
- },
837
- {
838
- "name": "meta.variable-assignment.turing",
839
- "begin": "(\\w+)\\s*(:=)",
840
- "end": "(?=\\S)",
841
- "beginCaptures": {
842
- "1": {
843
- "name": "variable.name.turing"
844
- },
845
- "2": {
846
- "name": "punctuation.separator.key-value.turing"
847
- }
848
- }
849
- },
850
- {
851
- "name": "meta.binding.turing",
852
- "begin": "\\b(bind)\\b",
853
- "end": "(?=$|%|/\\*)",
854
- "beginCaptures": {
855
- "1": {
856
- "name": "keyword.operator.bind.turing"
857
- }
858
- },
859
- "patterns": [
860
- {
861
- "begin": "\\b(var)\\b",
862
- "end": "\\b(to)\\b",
863
- "patterns": [
864
- {
865
- "include": "#list"
866
- }
867
- ],
868
- "beginCaptures": {
869
- "1": {
870
- "name": "storage.type.$1.turing"
871
- }
872
- },
873
- "endCaptures": {
874
- "1": {
875
- "name": "keyword.operator.to.turing"
876
- }
877
- }
878
- },
879
- {
880
- "include": "#list"
881
- }
882
- ]
883
- }
884
- ]
885
- },
886
- "boolean": {
887
- "name": "constant.language.boolean.$1.turing",
888
- "match": "\\b(true|false)\\b"
889
- },
890
- "punctuation": {
891
- "patterns": [
892
- {
893
- "match": "\\.\\.",
894
- "name": "punctuation.definition.range.turing"
554
+ {
555
+ "include": "#boolean"
895
556
  },
896
557
  {
897
- "match": ":=",
898
- "name": "punctuation.separator.key-value.assignment.turing"
899
- },
900
- {
901
- "match": "->",
902
- "name": "punctuation.separator.class.accessor.turing"
903
- },
904
- {
905
- "match": "\\+",
906
- "name": "keyword.operator.arithmetic.add.turing"
907
- },
908
- {
909
- "match": "-",
910
- "name": "keyword.operator.arithmetic.subtract.turing"
911
- },
912
- {
913
- "match": "\\*",
914
- "name": "keyword.operator.arithmetic.multiply.turing"
915
- },
916
- {
917
- "match": "\\/",
918
- "name": "keyword.operator.arithmetic.divide.turing"
919
- },
920
- {
921
- "match": "<=",
922
- "name": "keyword.operator.logical.equal-or-less.subset.turing"
923
- },
924
- {
925
- "match": ">=",
926
- "name": "keyword.operator.logical.equal-or-greater.superset.turing"
927
- },
928
- {
929
- "match": "<",
930
- "name": "keyword.operator.logical.less.turing"
931
- },
932
- {
933
- "match": ">",
934
- "name": "keyword.operator.logical.greater.turing"
935
- },
936
- {
937
- "match": "=",
938
- "name": "keyword.operator.logical.equal.turing"
939
- },
940
- {
941
- "match": "not=|~=",
942
- "name": "keyword.operator.logical.not.turing"
943
- },
944
- {
945
- "match": "\\^",
946
- "name": "keyword.operator.pointer-following.turing"
947
- },
948
- {
949
- "match": "#",
950
- "name": "keyword.operator.type-cheat.turing"
951
- },
952
- {
953
- "match": "@",
954
- "name": "keyword.operator.indirection.turing"
558
+ "include": "#strings"
955
559
  },
956
560
  {
957
- "match": ":",
958
- "name": "punctuation.separator.key-value.turing"
561
+ "include": "#numbers"
959
562
  },
960
563
  {
961
- "match": "\\(",
962
- "name": "punctuation.definition.arguments.begin.turing"
564
+ "include": "#for"
963
565
  },
964
566
  {
965
- "match": "\\)",
966
- "name": "punctuation.definition.arguments.end.turing"
967
- }
968
- ]
969
- },
970
- "type": {
971
- "match": "\\b(type)(?:\\s+(pervasive|\\*)(?=\\s))?\\s+(\\w+)",
972
- "captures": {
973
- "1": {
974
- "name": "storage.type.turing"
975
- },
976
- "2": {
977
- "name": "storage.modifier.pervasive.turing"
567
+ "include": "#cc"
978
568
  },
979
- "3": {
980
- "name": "entity.name.type.turing"
981
- }
982
- }
983
- },
984
- "record": {
985
- "name": "meta.scope.record-block.turing",
986
- "begin": "(?:^|\\s+)(record)(?:$|\\s+)",
987
- "end": "\\b(end)\\s+(record)\\b",
988
- "patterns": [
989
569
  {
990
- "match": "((\\s*\\w+\\s*,?)+)(:)",
991
- "captures": {
992
- "1": {
993
- "patterns": [
994
- {
995
- "include": "#list"
996
- }
997
- ]
998
- },
999
- "3": {
1000
- "name": "punctuation.separator.record.key-value.turing"
1001
- }
1002
- }
570
+ "include": "#case"
1003
571
  },
1004
572
  {
1005
- "include": "$self"
1006
- }
1007
- ],
1008
- "beginCaptures": {
1009
- "1": {
1010
- "name": "storage.type.record.turing"
1011
- }
1012
- },
1013
- "endCaptures": {
1014
- "1": {
1015
- "name": "keyword.control.end.turing"
573
+ "include": "#types"
1016
574
  },
1017
- "2": {
1018
- "name": "storage.type.record.turing"
1019
- }
1020
- }
1021
- },
1022
- "union": {
1023
- "name": "meta.scope.union.turing",
1024
- "begin": "\\b(union)\\s+(\\w+)\\s*(:)(.*)\\b(of)\\b",
1025
- "end": "\\b(end)\\s+(union)\\b",
1026
- "patterns": [
1027
575
  {
1028
- "include": "#label"
576
+ "include": "#function"
1029
577
  },
1030
578
  {
1031
- "include": "$self"
1032
- }
1033
- ],
1034
- "beginCaptures": {
1035
- "1": {
1036
- "name": "storage.type.union.turing"
579
+ "include": "#keywords"
1037
580
  },
1038
- "2": {
1039
- "name": "entity.name.union.turing"
581
+ {
582
+ "include": "#modifiers"
1040
583
  },
1041
- "3": {
1042
- "name": "punctuation.separator.key-value.turing"
584
+ {
585
+ "include": "#variables"
1043
586
  },
1044
- "4": {
1045
- "patterns": [
1046
- {
1047
- "include": "$self"
1048
- }
1049
- ]
587
+ {
588
+ "include": "#punctuation"
1050
589
  },
1051
- "5": {
1052
- "name": "keyword.operator.of.turing"
1053
- }
1054
- },
1055
- "endCaptures": {
1056
- "1": {
1057
- "name": "keyword.control.end.turing"
590
+ {
591
+ "include": "#forward"
1058
592
  },
1059
- "2": {
1060
- "name": "storage.type.union.turing"
1061
- }
1062
- }
1063
- },
1064
- "stdlib": {
1065
- "patterns": [
1066
593
  {
1067
- "include": "#modules"
594
+ "include": "#procedure"
1068
595
  },
1069
596
  {
1070
- "include": "#stdproc"
597
+ "include": "#process"
1071
598
  },
1072
599
  {
1073
- "match": "\\b(anyclass)\\b",
1074
- "name": "support.class.anyclass.turing"
600
+ "include": "#handler"
1075
601
  },
1076
602
  {
1077
- "include": "#keyboard-constants"
603
+ "include": "#class"
1078
604
  },
1079
605
  {
1080
- "include": "#math-routines"
606
+ "include": "#type"
1081
607
  },
1082
608
  {
1083
- "include": "#str-routines"
609
+ "include": "#record"
1084
610
  },
1085
611
  {
1086
- "include": "#typeconv-routines"
612
+ "include": "#union"
613
+ },
614
+ {
615
+ "include": "#function-call"
616
+ },
617
+ {
618
+ "include": "#stdlib"
1087
619
  }
1088
620
  ]
1089
621
  },
1090
- "stdproc": {
1091
- "name": "support.function.${1:/downcase}.turing",
1092
- "match": "(?x)\\b\n(addr|buttonchoose|buttonmoved|buttonwait|clock|cls|colou?r|colou?rback|date|delay|drawarc|drawbox|drawdot\n|drawfill|drawfillarc|drawfillbox|drawfillmapleleaf|drawfilloval|drawfillpolygon|drawfillstar|drawline\n|drawmapleleaf|drawoval|drawpic|drawpolygon|drawstar|empty|eof|fetcharg|getch|getchar|getenv|getpid\n|getpriority|hasch|locate|locatexy|maxcol|maxcolou?r|maxint|maxnat|maxrow|maxx|maxy|minint|minnat\n|mousewhere|nargs|parallelget|parallelput|play|playdone|pred|rand|randint|randnext|randomize\n|randseed|setpriority|setscreen|simutime|sizeof|sizepic|sound|succ|sysclock|takepic|time|wallclock\n|whatcol|whatcolou?r|whatcolou?rback|whatdotcolou?r|whatrow)\\b"
1093
- },
1094
- "keyboard-constants": {
1095
- "name": "support.constant.keyboard.turing",
1096
- "match": "(?x)\\b(?:\n(?:KEY|ORD)_(?:\n\tF1[0-2]|F[1-9]|CTRL_[A-Z]|ALT_[A-Z0-9]|(?:CTRL|ALT|SHIFT)_(?:F1[0-2]|F[1-9])|\n\tALT(?:_EQUALS|_MINUS)?|BACK_TAB|BACKSPACE|CTRL|DELETE|END|ENTER|ESC|HOME|INSERT|KEYPAD_5|PGDN|PGUP|SHIFT|SHIFT_TAB|TAB|\n\tCTRL_(?:BACKSLASH|BACKSPACE|CARET|(?:UP|RIGHT|LEFT|DOWN)_ARROW|CLOSE_BRACKET|DELETE|END|HOME|INSERT|OPEN_BRACKET|PGDN|PGUP|UNDERSCORE)|\n\t(?:UP|RIGHT|LEFT|DOWN)_ARROW)\n|\nORD_(?:\n\tAMPERSAND|APOSTROPHE|ASTERISK|BACKSLASH|BAR|CARET|COLON|COMMA|DOT|EQUALS|(?:GREATER|LESS)_THAN|\n\t(?:CLOSE|OPEN)_(?:BRACE|BRACKET|PARENTHESIS)|(?:EXCALAMATION|HAS|QUESTION|QUOTATION)_MARK|MINUS|\n\t(?:AT|DOLLAR|PERCENT)_SIGN|PERIOD|PLUS|SEMICOLON|SINGLE_QUOTE|SLASH|SPACE|TILDE|UNDERSCORE|[A-Z0-9]|LOWER_[A-Z])\n)\\b"
1097
- },
1098
622
  "math-routines": {
1099
623
  "name": "support.function.${1:/downcase}.turing",
1100
624
  "match": "\\b(abs|arccos|arccosd|arcsin|arcsind|arctan|arctand|cos|cosd|exp|ln|max|min|sign|sin|sind|tan|tand|sqrt)\\b"
1101
625
  },
1102
- "str-routines": {
1103
- "name": "support.function.${1:/downcase}.turing",
1104
- "match": "\\b(Lower|Upper|Trim|index|length|repeat)\\b"
1105
- },
1106
- "typeconv-routines": {
1107
- "name": "support.function.${1:/downcase}.turing",
1108
- "match": "\\b(ceil|chr|erealstr|floor|frealstr|intreal|intstr|natreal|natstr|ord|realstr|round|strint|strintok|strnat|strnatok|strreal|strrealok)\\b"
626
+ "modifiers": {
627
+ "patterns": [
628
+ {
629
+ "name": "storage.modifier.$1.compiler-directive.oot.turing",
630
+ "match": "\\b(unchecked|checked)\\b"
631
+ },
632
+ {
633
+ "name": "storage.modifier.unqualified.turing",
634
+ "match": "\\b(unqualified|~\\.)\\b"
635
+ },
636
+ {
637
+ "name": "storage.modifier.$1.turing",
638
+ "match": "\\b(external|flexible|opaque|register)\\b"
639
+ }
640
+ ]
1109
641
  },
1110
642
  "modules": {
1111
643
  "patterns": [
@@ -1320,7 +852,179 @@
1320
852
  }
1321
853
  },
1322
854
  {
1323
- "match": "\\b(Mouse)\\b(?:(\\.)(ButtonChoose|ButtonMoved|ButtonWait|Where)?\\b)?",
855
+ "match": "\\b(Mouse)\\b(?:(\\.)(ButtonChoose|ButtonMoved|ButtonWait|Where)?\\b)?",
856
+ "captures": {
857
+ "1": {
858
+ "name": "support.class.${1:/downcase}.turing"
859
+ },
860
+ "2": {
861
+ "name": "meta.delimiter.property.period.turing"
862
+ },
863
+ "3": {
864
+ "name": "support.function.${3:/downcase}.turing"
865
+ }
866
+ }
867
+ },
868
+ {
869
+ "match": "\\b(Music)\\b(?:(\\.)(Play|PlayFile|PlayFileStop|Sound|SoundOff)?\\b)?",
870
+ "captures": {
871
+ "1": {
872
+ "name": "support.class.${1:/downcase}.turing"
873
+ },
874
+ "2": {
875
+ "name": "meta.delimiter.property.period.turing"
876
+ },
877
+ "3": {
878
+ "name": "support.function.${3:/downcase}.turing"
879
+ }
880
+ }
881
+ },
882
+ {
883
+ "match": "(?x)\n\\b(Net)\\b(?:(\\.)\n(BytesAvailable|CharAvailable|CloseConnection|HostAddressFromName|HostNameFromAddress\n|LineAvailable|LocalAddress|LocalName|OpenConnection|OpenURLConnection|TokenAvailable\n|WaitForConnection)?\\b)?",
884
+ "captures": {
885
+ "1": {
886
+ "name": "support.class.${1:/downcase}.turing"
887
+ },
888
+ "2": {
889
+ "name": "meta.delimiter.property.period.turing"
890
+ },
891
+ "3": {
892
+ "name": "support.function.${3:/downcase}.turing"
893
+ }
894
+ }
895
+ },
896
+ {
897
+ "match": "\\b(PC)\\b(?:(\\.)(ParallelGet|ParallelPut)?\\b)?",
898
+ "captures": {
899
+ "1": {
900
+ "name": "support.class.${1:/downcase}.turing"
901
+ },
902
+ "2": {
903
+ "name": "meta.delimiter.property.period.turing"
904
+ },
905
+ "3": {
906
+ "name": "support.function.${3:/downcase}.turing"
907
+ }
908
+ }
909
+ },
910
+ {
911
+ "match": "(?x)\n\\b(Pic)\\b(?:(\\.)\n(Blend|Blur|Draw|DrawFrames|DrawFramesBack|DrawSpecial|DrawSpecialBack|FileNew\n|FileNewFrames|Flip|Frames|Free|Height|Mirror|New|Rotate|Save|Scale|ScreenLoad\n|ScreenSave|SetTransparentColou?r|Width)?\n\\b)?",
912
+ "captures": {
913
+ "1": {
914
+ "name": "support.class.${1:/downcase}.turing"
915
+ },
916
+ "2": {
917
+ "name": "meta.delimiter.property.period.turing"
918
+ },
919
+ "3": {
920
+ "name": "support.function.${3:/downcase}.turing"
921
+ }
922
+ }
923
+ },
924
+ {
925
+ "match": "\\b(Rand)\\b(?:(\\.)(Int|Next|Real|Reset|Seed|Set)?\\b)?",
926
+ "captures": {
927
+ "1": {
928
+ "name": "support.class.${1:/downcase}.turing"
929
+ },
930
+ "2": {
931
+ "name": "meta.delimiter.property.period.turing"
932
+ },
933
+ "3": {
934
+ "name": "support.function.${3:/downcase}.turing"
935
+ }
936
+ }
937
+ },
938
+ {
939
+ "match": "\\b(RGB)\\b(?:(\\.)(AddColou?r|[GS]etColou?r|maxcolou?r)?\\b)?",
940
+ "captures": {
941
+ "1": {
942
+ "name": "support.class.${1:/downcase}.turing"
943
+ },
944
+ "2": {
945
+ "name": "meta.delimiter.property.period.turing"
946
+ },
947
+ "3": {
948
+ "name": "support.function.${3:/downcase}.turing"
949
+ }
950
+ }
951
+ },
952
+ {
953
+ "match": "\\b(Sprite)\\b(?:(\\.)(Animate|ChangePic|Free|Hide|New|SetFrameRate|SetHeight|SetPosition|Show)?\\b)?",
954
+ "captures": {
955
+ "1": {
956
+ "name": "support.class.${1:/downcase}.turing"
957
+ },
958
+ "2": {
959
+ "name": "meta.delimiter.property.period.turing"
960
+ },
961
+ "3": {
962
+ "name": "support.function.${3:/downcase}.turing"
963
+ }
964
+ }
965
+ },
966
+ {
967
+ "match": "\\b(Stream)\\b(?:(\\.)(eof|Flush|FlushAll)?\\b)?",
968
+ "captures": {
969
+ "1": {
970
+ "name": "support.class.${1:/downcase}.turing"
971
+ },
972
+ "2": {
973
+ "name": "meta.delimiter.property.period.turing"
974
+ },
975
+ "3": {
976
+ "name": "support.function.${3:/downcase}.turing"
977
+ }
978
+ }
979
+ },
980
+ {
981
+ "match": "\\b(Str)\\b(?:(\\.)(\\w+)?\\b)?",
982
+ "captures": {
983
+ "1": {
984
+ "name": "support.class.${1:/downcase}.turing"
985
+ },
986
+ "2": {
987
+ "name": "meta.delimiter.property.period.turing"
988
+ },
989
+ "3": {
990
+ "patterns": [
991
+ {
992
+ "include": "#str-routines"
993
+ }
994
+ ]
995
+ }
996
+ }
997
+ },
998
+ {
999
+ "match": "\\b(Sys)\\b(?:(\\.)(Exec|FetchArg|GetComputerName|GetEnv|GetPid|GetUserName|Nargs)?\\b)?",
1000
+ "captures": {
1001
+ "1": {
1002
+ "name": "support.class.${1:/downcase}.turing"
1003
+ },
1004
+ "2": {
1005
+ "name": "meta.delimiter.property.period.turing"
1006
+ },
1007
+ "3": {
1008
+ "name": "support.function.${3:/downcase}.turing"
1009
+ }
1010
+ }
1011
+ },
1012
+ {
1013
+ "match": "\\b(Text)\\b(?:(\\.)(Cls|Colou?r|Colou?rBack|Locate|LocateXY|maxcol|maxrow|WhatCol|WhatColou?r|WhatColou?rBack|WhatRow)?\\b)?",
1014
+ "captures": {
1015
+ "1": {
1016
+ "name": "support.class.${1:/downcase}.turing"
1017
+ },
1018
+ "2": {
1019
+ "name": "meta.delimiter.property.period.turing"
1020
+ },
1021
+ "3": {
1022
+ "name": "support.function.${3:/downcase}.turing"
1023
+ }
1024
+ }
1025
+ },
1026
+ {
1027
+ "match": "\\b(Time)\\b(?:(\\.)(Date|DateSec|Delay|Elapsed|ElapsedCPU|PartsSec|Sec|SecDate|SecParts)?\\b)?",
1324
1028
  "captures": {
1325
1029
  "1": {
1326
1030
  "name": "support.class.${1:/downcase}.turing"
@@ -1334,7 +1038,7 @@
1334
1038
  }
1335
1039
  },
1336
1040
  {
1337
- "match": "\\b(Music)\\b(?:(\\.)(Play|PlayFile|PlayFileStop|Sound|SoundOff)?\\b)?",
1041
+ "match": "\\b(TypeConv)\\b(?:(\\.)(\\w+)?\\b)?",
1338
1042
  "captures": {
1339
1043
  "1": {
1340
1044
  "name": "support.class.${1:/downcase}.turing"
@@ -1343,12 +1047,16 @@
1343
1047
  "name": "meta.delimiter.property.period.turing"
1344
1048
  },
1345
1049
  "3": {
1346
- "name": "support.function.${3:/downcase}.turing"
1050
+ "patterns": [
1051
+ {
1052
+ "include": "#typeconv-routines"
1053
+ }
1054
+ ]
1347
1055
  }
1348
1056
  }
1349
1057
  },
1350
1058
  {
1351
- "match": "(?x)\n\\b(Net)\\b(?:(\\.)\n(BytesAvailable|CharAvailable|CloseConnection|HostAddressFromName|HostNameFromAddress\n|LineAvailable|LocalAddress|LocalName|OpenConnection|OpenURLConnection|TokenAvailable\n|WaitForConnection)?\\b)?",
1059
+ "match": "\\b(View)\\b(?:(\\.)(ClipAdd|ClipOff|ClipSet|maxcolou?r|maxx|maxy|Set|Update|WhatDotColou?r)?\\b)?",
1352
1060
  "captures": {
1353
1061
  "1": {
1354
1062
  "name": "support.class.${1:/downcase}.turing"
@@ -1362,7 +1070,7 @@
1362
1070
  }
1363
1071
  },
1364
1072
  {
1365
- "match": "\\b(PC)\\b(?:(\\.)(ParallelGet|ParallelPut)?\\b)?",
1073
+ "match": "\\b(Window)\\b(?:(\\.)(Close|GetActive|GetPosition|GetSelect|Hide|Open|Select|Set|SetActive|SetPosition|Show|Update)?\\b)?",
1366
1074
  "captures": {
1367
1075
  "1": {
1368
1076
  "name": "support.class.${1:/downcase}.turing"
@@ -1374,184 +1082,472 @@
1374
1082
  "name": "support.function.${3:/downcase}.turing"
1375
1083
  }
1376
1084
  }
1085
+ }
1086
+ ]
1087
+ },
1088
+ "numbers": {
1089
+ "patterns": [
1090
+ {
1091
+ "name": "constant.numeric.base-16.hex.turing",
1092
+ "match": "16#[A-Fa-f0-9]+"
1377
1093
  },
1378
1094
  {
1379
- "match": "(?x)\n\\b(Pic)\\b(?:(\\.)\n(Blend|Blur|Draw|DrawFrames|DrawFramesBack|DrawSpecial|DrawSpecialBack|FileNew\n|FileNewFrames|Flip|Frames|Free|Height|Mirror|New|Rotate|Save|Scale|ScreenLoad\n|ScreenSave|SetTransparentColou?r|Width)?\n\\b)?",
1095
+ "name": "constant.numeric.base-$1.turing",
1096
+ "match": "(\\d+)#\\d+"
1097
+ },
1098
+ {
1099
+ "name": "constant.numeric.float.turing",
1100
+ "match": "\\b\\d+\\.\\d+(?:[Ee][\\+\\-]?\\d+)?\\b"
1101
+ },
1102
+ {
1103
+ "name": "constant.numeric.int.turing",
1104
+ "match": "\\b\\d+\\b"
1105
+ }
1106
+ ]
1107
+ },
1108
+ "param-declarations": {
1109
+ "match": "\\b(\\w+)\\s+(:)\\s+((\\w+))",
1110
+ "captures": {
1111
+ "1": {
1112
+ "name": "variable.parameter.function.turing"
1113
+ },
1114
+ "2": {
1115
+ "name": "storage.type.turing"
1116
+ },
1117
+ "3": {
1118
+ "patterns": [
1119
+ {
1120
+ "include": "#types"
1121
+ }
1122
+ ]
1123
+ }
1124
+ }
1125
+ },
1126
+ "parameters": {
1127
+ "name": "meta.function.parameters.turing",
1128
+ "begin": "\\G\\s*(\\()",
1129
+ "end": "\\)",
1130
+ "patterns": [
1131
+ {
1132
+ "include": "$self"
1133
+ },
1134
+ {
1135
+ "name": "variable.parameter.function.turing",
1136
+ "match": "\\w+"
1137
+ }
1138
+ ],
1139
+ "beginCaptures": {
1140
+ "1": {
1141
+ "name": "punctuation.definition.arguments.begin.turing"
1142
+ }
1143
+ },
1144
+ "endCaptures": {
1145
+ "0": {
1146
+ "name": "punctuation.definition.arguments.end.turing"
1147
+ }
1148
+ }
1149
+ },
1150
+ "procedure": {
1151
+ "name": "meta.scope.procedure.turing",
1152
+ "begin": "\\b(?:(body)\\s+)?(procedure|proc)\\s+(\\w+)",
1153
+ "end": "\\b(end)\\s+(\\3)",
1154
+ "patterns": [
1155
+ {
1156
+ "include": "#parameters"
1157
+ },
1158
+ {
1159
+ "include": "$self"
1160
+ }
1161
+ ],
1162
+ "beginCaptures": {
1163
+ "1": {
1164
+ "name": "storage.modifier.$1.turing"
1165
+ },
1166
+ "2": {
1167
+ "name": "storage.type.function.turing"
1168
+ },
1169
+ "3": {
1170
+ "name": "entity.name.function.turing"
1171
+ }
1172
+ },
1173
+ "endCaptures": {
1174
+ "1": {
1175
+ "name": "keyword.control.end.turing"
1176
+ },
1177
+ "2": {
1178
+ "name": "entity.name.function.turing"
1179
+ }
1180
+ }
1181
+ },
1182
+ "process": {
1183
+ "name": "meta.scope.process.turing",
1184
+ "begin": "\\b(process)(?:\\s+(pervasive|\\*)(?=\\s))?\\s+(\\w+)",
1185
+ "end": "\\b(end)\\s+(\\3)",
1186
+ "patterns": [
1187
+ {
1188
+ "include": "#parameters"
1189
+ },
1190
+ {
1191
+ "include": "$self"
1192
+ }
1193
+ ],
1194
+ "beginCaptures": {
1195
+ "1": {
1196
+ "name": "storage.type.function.turing"
1197
+ },
1198
+ "2": {
1199
+ "name": "storage.modifier.pervasive.turing"
1200
+ },
1201
+ "3": {
1202
+ "name": "entity.name.function.turing"
1203
+ }
1204
+ },
1205
+ "endCaptures": {
1206
+ "1": {
1207
+ "name": "keyword.control.end.turing"
1208
+ },
1209
+ "2": {
1210
+ "name": "entity.name.function.turing"
1211
+ }
1212
+ }
1213
+ },
1214
+ "punctuation": {
1215
+ "patterns": [
1216
+ {
1217
+ "name": "punctuation.definition.range.turing",
1218
+ "match": "\\.\\."
1219
+ },
1220
+ {
1221
+ "name": "punctuation.separator.key-value.assignment.turing",
1222
+ "match": ":="
1223
+ },
1224
+ {
1225
+ "name": "punctuation.separator.class.accessor.turing",
1226
+ "match": "-\u003e"
1227
+ },
1228
+ {
1229
+ "name": "keyword.operator.arithmetic.add.turing",
1230
+ "match": "\\+"
1231
+ },
1232
+ {
1233
+ "name": "keyword.operator.arithmetic.subtract.turing",
1234
+ "match": "-"
1235
+ },
1236
+ {
1237
+ "name": "keyword.operator.arithmetic.multiply.turing",
1238
+ "match": "\\*"
1239
+ },
1240
+ {
1241
+ "name": "keyword.operator.arithmetic.divide.turing",
1242
+ "match": "\\/"
1243
+ },
1244
+ {
1245
+ "name": "keyword.operator.logical.equal-or-less.subset.turing",
1246
+ "match": "\u003c="
1247
+ },
1248
+ {
1249
+ "name": "keyword.operator.logical.equal-or-greater.superset.turing",
1250
+ "match": "\u003e="
1251
+ },
1252
+ {
1253
+ "name": "keyword.operator.logical.less.turing",
1254
+ "match": "\u003c"
1255
+ },
1256
+ {
1257
+ "name": "keyword.operator.logical.greater.turing",
1258
+ "match": "\u003e"
1259
+ },
1260
+ {
1261
+ "name": "keyword.operator.logical.equal.turing",
1262
+ "match": "="
1263
+ },
1264
+ {
1265
+ "name": "keyword.operator.logical.not.turing",
1266
+ "match": "not=|~="
1267
+ },
1268
+ {
1269
+ "name": "keyword.operator.pointer-following.turing",
1270
+ "match": "\\^"
1271
+ },
1272
+ {
1273
+ "name": "keyword.operator.type-cheat.turing",
1274
+ "match": "#"
1275
+ },
1276
+ {
1277
+ "name": "keyword.operator.indirection.turing",
1278
+ "match": "@"
1279
+ },
1280
+ {
1281
+ "name": "punctuation.separator.key-value.turing",
1282
+ "match": ":"
1283
+ },
1284
+ {
1285
+ "name": "punctuation.definition.arguments.begin.turing",
1286
+ "match": "\\("
1287
+ },
1288
+ {
1289
+ "name": "punctuation.definition.arguments.end.turing",
1290
+ "match": "\\)"
1291
+ }
1292
+ ]
1293
+ },
1294
+ "record": {
1295
+ "name": "meta.scope.record-block.turing",
1296
+ "begin": "(?:^|\\s+)(record)(?:$|\\s+)",
1297
+ "end": "\\b(end)\\s+(record)\\b",
1298
+ "patterns": [
1299
+ {
1300
+ "match": "((\\s*\\w+\\s*,?)+)(:)",
1380
1301
  "captures": {
1381
1302
  "1": {
1382
- "name": "support.class.${1:/downcase}.turing"
1383
- },
1384
- "2": {
1385
- "name": "meta.delimiter.property.period.turing"
1303
+ "patterns": [
1304
+ {
1305
+ "include": "#list"
1306
+ }
1307
+ ]
1386
1308
  },
1387
1309
  "3": {
1388
- "name": "support.function.${3:/downcase}.turing"
1310
+ "name": "punctuation.separator.record.key-value.turing"
1311
+ }
1312
+ }
1313
+ },
1314
+ {
1315
+ "include": "$self"
1316
+ }
1317
+ ],
1318
+ "beginCaptures": {
1319
+ "1": {
1320
+ "name": "storage.type.record.turing"
1321
+ }
1322
+ },
1323
+ "endCaptures": {
1324
+ "1": {
1325
+ "name": "keyword.control.end.turing"
1326
+ },
1327
+ "2": {
1328
+ "name": "storage.type.record.turing"
1329
+ }
1330
+ }
1331
+ },
1332
+ "stdlib": {
1333
+ "patterns": [
1334
+ {
1335
+ "include": "#modules"
1336
+ },
1337
+ {
1338
+ "include": "#stdproc"
1339
+ },
1340
+ {
1341
+ "name": "support.class.anyclass.turing",
1342
+ "match": "\\b(anyclass)\\b"
1343
+ },
1344
+ {
1345
+ "include": "#keyboard-constants"
1346
+ },
1347
+ {
1348
+ "include": "#math-routines"
1349
+ },
1350
+ {
1351
+ "include": "#str-routines"
1352
+ },
1353
+ {
1354
+ "include": "#typeconv-routines"
1355
+ }
1356
+ ]
1357
+ },
1358
+ "stdproc": {
1359
+ "name": "support.function.${1:/downcase}.turing",
1360
+ "match": "(?x)\\b\n(addr|buttonchoose|buttonmoved|buttonwait|clock|cls|colou?r|colou?rback|date|delay|drawarc|drawbox|drawdot\n|drawfill|drawfillarc|drawfillbox|drawfillmapleleaf|drawfilloval|drawfillpolygon|drawfillstar|drawline\n|drawmapleleaf|drawoval|drawpic|drawpolygon|drawstar|empty|eof|fetcharg|getch|getchar|getenv|getpid\n|getpriority|hasch|locate|locatexy|maxcol|maxcolou?r|maxint|maxnat|maxrow|maxx|maxy|minint|minnat\n|mousewhere|nargs|parallelget|parallelput|play|playdone|pred|rand|randint|randnext|randomize\n|randseed|setpriority|setscreen|simutime|sizeof|sizepic|sound|succ|sysclock|takepic|time|wallclock\n|whatcol|whatcolou?r|whatcolou?rback|whatdotcolou?r|whatrow)\\b"
1361
+ },
1362
+ "str-routines": {
1363
+ "name": "support.function.${1:/downcase}.turing",
1364
+ "match": "\\b(Lower|Upper|Trim|index|length|repeat)\\b"
1365
+ },
1366
+ "strings": {
1367
+ "patterns": [
1368
+ {
1369
+ "name": "string.quoted.double.turing",
1370
+ "begin": "\"",
1371
+ "end": "\"",
1372
+ "patterns": [
1373
+ {
1374
+ "include": "#escapes"
1389
1375
  }
1390
- }
1376
+ ]
1391
1377
  },
1392
1378
  {
1393
- "match": "\\b(Rand)\\b(?:(\\.)(Int|Next|Real|Reset|Seed|Set)?\\b)?",
1394
- "captures": {
1395
- "1": {
1396
- "name": "support.class.${1:/downcase}.turing"
1397
- },
1398
- "2": {
1399
- "name": "meta.delimiter.property.period.turing"
1400
- },
1401
- "3": {
1402
- "name": "support.function.${3:/downcase}.turing"
1379
+ "name": "string.quoted.single.turing",
1380
+ "begin": "'",
1381
+ "end": "'",
1382
+ "patterns": [
1383
+ {
1384
+ "include": "#escapes"
1403
1385
  }
1404
- }
1386
+ ]
1387
+ }
1388
+ ]
1389
+ },
1390
+ "type": {
1391
+ "match": "\\b(type)(?:\\s+(pervasive|\\*)(?=\\s))?\\s+(\\w+)",
1392
+ "captures": {
1393
+ "1": {
1394
+ "name": "storage.type.turing"
1395
+ },
1396
+ "2": {
1397
+ "name": "storage.modifier.pervasive.turing"
1405
1398
  },
1399
+ "3": {
1400
+ "name": "entity.name.type.turing"
1401
+ }
1402
+ }
1403
+ },
1404
+ "typeconv-routines": {
1405
+ "name": "support.function.${1:/downcase}.turing",
1406
+ "match": "\\b(ceil|chr|erealstr|floor|frealstr|intreal|intstr|natreal|natstr|ord|realstr|round|strint|strintok|strnat|strnatok|strreal|strrealok)\\b"
1407
+ },
1408
+ "types": {
1409
+ "name": "storage.type.$1-type.turing",
1410
+ "match": "\\b(addressint|array|boolean|char|collection|enum|int[124]?|nat[124]?|real[48]?|pointer\\s+to|set\\s+of|string)\\b"
1411
+ },
1412
+ "union": {
1413
+ "name": "meta.scope.union.turing",
1414
+ "begin": "\\b(union)\\s+(\\w+)\\s*(:)(.*)\\b(of)\\b",
1415
+ "end": "\\b(end)\\s+(union)\\b",
1416
+ "patterns": [
1406
1417
  {
1407
- "match": "\\b(RGB)\\b(?:(\\.)(AddColou?r|[GS]etColou?r|maxcolou?r)?\\b)?",
1408
- "captures": {
1409
- "1": {
1410
- "name": "support.class.${1:/downcase}.turing"
1411
- },
1412
- "2": {
1413
- "name": "meta.delimiter.property.period.turing"
1414
- },
1415
- "3": {
1416
- "name": "support.function.${3:/downcase}.turing"
1417
- }
1418
- }
1418
+ "include": "#label"
1419
1419
  },
1420
1420
  {
1421
- "match": "\\b(Sprite)\\b(?:(\\.)(Animate|ChangePic|Free|Hide|New|SetFrameRate|SetHeight|SetPosition|Show)?\\b)?",
1422
- "captures": {
1423
- "1": {
1424
- "name": "support.class.${1:/downcase}.turing"
1425
- },
1426
- "2": {
1427
- "name": "meta.delimiter.property.period.turing"
1428
- },
1429
- "3": {
1430
- "name": "support.function.${3:/downcase}.turing"
1421
+ "include": "$self"
1422
+ }
1423
+ ],
1424
+ "beginCaptures": {
1425
+ "1": {
1426
+ "name": "storage.type.union.turing"
1427
+ },
1428
+ "2": {
1429
+ "name": "entity.name.union.turing"
1430
+ },
1431
+ "3": {
1432
+ "name": "punctuation.separator.key-value.turing"
1433
+ },
1434
+ "4": {
1435
+ "patterns": [
1436
+ {
1437
+ "include": "$self"
1431
1438
  }
1432
- }
1439
+ ]
1440
+ },
1441
+ "5": {
1442
+ "name": "keyword.operator.of.turing"
1443
+ }
1444
+ },
1445
+ "endCaptures": {
1446
+ "1": {
1447
+ "name": "keyword.control.end.turing"
1433
1448
  },
1449
+ "2": {
1450
+ "name": "storage.type.union.turing"
1451
+ }
1452
+ }
1453
+ },
1454
+ "variables": {
1455
+ "patterns": [
1434
1456
  {
1435
- "match": "\\b(Stream)\\b(?:(\\.)(eof|Flush|FlushAll)?\\b)?",
1436
- "captures": {
1437
- "1": {
1438
- "name": "support.class.${1:/downcase}.turing"
1457
+ "name": "meta.variable-declaration.turing",
1458
+ "begin": "\\b(var|const)\\s+",
1459
+ "end": "(:=?)\\s*((?!\\d)((?:\\w+(?:\\s+to)?)(?:\\s*\\(\\s*\\d+\\s*\\))?))?\\s*(:=)?",
1460
+ "patterns": [
1461
+ {
1462
+ "match": "\\G(?:\\s*(pervasive|\\*)(?=\\s))?\\s*(register)(?=\\s)",
1463
+ "captures": {
1464
+ "1": {
1465
+ "name": "storage.modifier.pervasive.oot.turing"
1466
+ },
1467
+ "2": {
1468
+ "name": "storage.modifier.register.oot.turing"
1469
+ }
1470
+ }
1439
1471
  },
1440
- "2": {
1441
- "name": "meta.delimiter.property.period.turing"
1472
+ {
1473
+ "include": "#types"
1442
1474
  },
1443
- "3": {
1444
- "name": "support.function.${3:/downcase}.turing"
1475
+ {
1476
+ "include": "#list"
1445
1477
  }
1446
- }
1447
- },
1448
- {
1449
- "match": "\\b(Str)\\b(?:(\\.)(\\w+)?\\b)?",
1450
- "captures": {
1478
+ ],
1479
+ "beginCaptures": {
1451
1480
  "1": {
1452
- "name": "support.class.${1:/downcase}.turing"
1481
+ "name": "storage.type.$1.turing"
1482
+ }
1483
+ },
1484
+ "endCaptures": {
1485
+ "1": {
1486
+ "name": "punctuation.separator.key-value.turing"
1453
1487
  },
1454
1488
  "2": {
1455
- "name": "meta.delimiter.property.period.turing"
1489
+ "name": "storage.type.type-spec.turing"
1456
1490
  },
1457
1491
  "3": {
1458
1492
  "patterns": [
1459
1493
  {
1460
- "include": "#str-routines"
1494
+ "include": "#types"
1461
1495
  }
1462
1496
  ]
1463
- }
1464
- }
1465
- },
1466
- {
1467
- "match": "\\b(Sys)\\b(?:(\\.)(Exec|FetchArg|GetComputerName|GetEnv|GetPid|GetUserName|Nargs)?\\b)?",
1468
- "captures": {
1469
- "1": {
1470
- "name": "support.class.${1:/downcase}.turing"
1471
- },
1472
- "2": {
1473
- "name": "meta.delimiter.property.period.turing"
1474
- },
1475
- "3": {
1476
- "name": "support.function.${3:/downcase}.turing"
1477
- }
1478
- }
1479
- },
1480
- {
1481
- "match": "\\b(Text)\\b(?:(\\.)(Cls|Colou?r|Colou?rBack|Locate|LocateXY|maxcol|maxrow|WhatCol|WhatColou?r|WhatColou?rBack|WhatRow)?\\b)?",
1482
- "captures": {
1483
- "1": {
1484
- "name": "support.class.${1:/downcase}.turing"
1485
1497
  },
1486
- "2": {
1487
- "name": "meta.delimiter.property.period.turing"
1488
- },
1489
- "3": {
1490
- "name": "support.function.${3:/downcase}.turing"
1498
+ "4": {
1499
+ "name": "punctuation.separator.key-value.turing"
1491
1500
  }
1492
1501
  }
1493
1502
  },
1494
1503
  {
1495
- "match": "\\b(Time)\\b(?:(\\.)(Date|DateSec|Delay|Elapsed|ElapsedCPU|PartsSec|Sec|SecDate|SecParts)?\\b)?",
1496
- "captures": {
1504
+ "name": "meta.variable-assignment.turing",
1505
+ "begin": "(\\w+)\\s*(:=)",
1506
+ "end": "(?=\\S)",
1507
+ "beginCaptures": {
1497
1508
  "1": {
1498
- "name": "support.class.${1:/downcase}.turing"
1509
+ "name": "variable.name.turing"
1499
1510
  },
1500
1511
  "2": {
1501
- "name": "meta.delimiter.property.period.turing"
1502
- },
1503
- "3": {
1504
- "name": "support.function.${3:/downcase}.turing"
1512
+ "name": "punctuation.separator.key-value.turing"
1505
1513
  }
1506
1514
  }
1507
1515
  },
1508
1516
  {
1509
- "match": "\\b(TypeConv)\\b(?:(\\.)(\\w+)?\\b)?",
1510
- "captures": {
1511
- "1": {
1512
- "name": "support.class.${1:/downcase}.turing"
1513
- },
1514
- "2": {
1515
- "name": "meta.delimiter.property.period.turing"
1516
- },
1517
- "3": {
1517
+ "name": "meta.binding.turing",
1518
+ "begin": "\\b(bind)\\b",
1519
+ "end": "(?=$|%|/\\*)",
1520
+ "patterns": [
1521
+ {
1522
+ "begin": "\\b(var)\\b",
1523
+ "end": "\\b(to)\\b",
1518
1524
  "patterns": [
1519
1525
  {
1520
- "include": "#typeconv-routines"
1526
+ "include": "#list"
1521
1527
  }
1522
- ]
1523
- }
1524
- }
1525
- },
1526
- {
1527
- "match": "\\b(View)\\b(?:(\\.)(ClipAdd|ClipOff|ClipSet|maxcolou?r|maxx|maxy|Set|Update|WhatDotColou?r)?\\b)?",
1528
- "captures": {
1529
- "1": {
1530
- "name": "support.class.${1:/downcase}.turing"
1531
- },
1532
- "2": {
1533
- "name": "meta.delimiter.property.period.turing"
1528
+ ],
1529
+ "beginCaptures": {
1530
+ "1": {
1531
+ "name": "storage.type.$1.turing"
1532
+ }
1533
+ },
1534
+ "endCaptures": {
1535
+ "1": {
1536
+ "name": "keyword.operator.to.turing"
1537
+ }
1538
+ }
1534
1539
  },
1535
- "3": {
1536
- "name": "support.function.${3:/downcase}.turing"
1540
+ {
1541
+ "include": "#list"
1537
1542
  }
1538
- }
1539
- },
1540
- {
1541
- "match": "\\b(Window)\\b(?:(\\.)(Close|GetActive|GetPosition|GetSelect|Hide|Open|Select|Set|SetActive|SetPosition|Show|Update)?\\b)?",
1542
- "captures": {
1543
+ ],
1544
+ "beginCaptures": {
1543
1545
  "1": {
1544
- "name": "support.class.${1:/downcase}.turing"
1545
- },
1546
- "2": {
1547
- "name": "meta.delimiter.property.period.turing"
1548
- },
1549
- "3": {
1550
- "name": "support.function.${3:/downcase}.turing"
1546
+ "name": "keyword.operator.bind.turing"
1551
1547
  }
1552
1548
  }
1553
1549
  }
1554
1550
  ]
1555
1551
  }
1556
1552
  }
1557
- }
1553
+ }