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,36 +1,16 @@
1
1
  {
2
- "fileTypes": [
3
- "cfc"
4
- ],
5
- "firstLineMatch": "",
6
- "foldingStartMarker": "",
7
- "foldingStopMarker": "",
8
- "keyEquivalent": "",
9
2
  "name": "ColdFusion Component",
3
+ "scopeName": "source.cfscript.cfc",
10
4
  "patterns": [
11
5
  {
12
- "begin": "(?:^\\s+)?(<)((?i:cfcomponent))(?![^>]*/>)",
13
- "captures": {
14
- "0": {
15
- "name": "meta.tag.block.cf.component.cfml"
16
- },
17
- "1": {
18
- "name": "punctuation.definition.tag.cf.begin.cfml"
19
- },
20
- "2": {
21
- "name": "entity.name.tag.cf.component.cfml"
22
- },
23
- "3": {
24
- "name": "punctuation.definition.tag.cf.end.cfml"
25
- }
26
- },
27
- "end": "(</)((?i:cfcomponent))(>)(?:\\s*\\n)?",
28
6
  "contentName": "text.html.cfm.embedded.cfml",
7
+ "begin": "(?:^\\s+)?(\u003c)((?i:cfcomponent))(?![^\u003e]*/\u003e)",
8
+ "end": "(\u003c/)((?i:cfcomponent))(\u003e)(?:\\s*\\n)?",
29
9
  "patterns": [
30
10
  {
31
- "begin": "(?<=cfcomponent)\\s",
32
- "end": "(?=>)",
33
11
  "name": "meta.tag.block.cf.component.cfml",
12
+ "begin": "(?\u003c=cfcomponent)\\s",
13
+ "end": "(?=\u003e)",
34
14
  "patterns": [
35
15
  {
36
16
  "include": "#tag-stuff"
@@ -38,7 +18,13 @@
38
18
  ]
39
19
  },
40
20
  {
41
- "begin": "(>)",
21
+ "begin": "(\u003e)",
22
+ "end": "(?=\u003c/(?i:cfcomponent))",
23
+ "patterns": [
24
+ {
25
+ "include": "text.html.cfm"
26
+ }
27
+ ],
42
28
  "beginCaptures": {
43
29
  "0": {
44
30
  "name": "meta.tag.block.cf.component.cfml"
@@ -46,15 +32,23 @@
46
32
  "1": {
47
33
  "name": "punctuation.definition.tag.cf.end.cfml"
48
34
  }
49
- },
50
- "end": "(?=</(?i:cfcomponent))",
51
- "patterns": [
52
- {
53
- "include": "text.html.cfm"
54
- }
55
- ]
35
+ }
56
36
  }
57
- ]
37
+ ],
38
+ "captures": {
39
+ "0": {
40
+ "name": "meta.tag.block.cf.component.cfml"
41
+ },
42
+ "1": {
43
+ "name": "punctuation.definition.tag.cf.begin.cfml"
44
+ },
45
+ "2": {
46
+ "name": "entity.name.tag.cf.component.cfml"
47
+ },
48
+ "3": {
49
+ "name": "punctuation.definition.tag.cf.end.cfml"
50
+ }
51
+ }
58
52
  },
59
53
  {
60
54
  "include": "#cfcomments"
@@ -67,104 +61,102 @@
67
61
  "cfcomments": {
68
62
  "patterns": [
69
63
  {
70
- "match": "<!---.*--->",
71
- "name": "comment.line.cfml"
64
+ "name": "comment.line.cfml",
65
+ "match": "\u003c!---.*---\u003e"
72
66
  },
73
67
  {
74
- "begin": "<!---",
75
- "captures": {
76
- "0": {
77
- "name": "punctuation.definition.comment.cfml"
78
- }
79
- },
80
- "end": "--->",
81
68
  "name": "comment.block.cfml",
69
+ "begin": "\u003c!---",
70
+ "end": "---\u003e",
82
71
  "patterns": [
83
72
  {
84
73
  "include": "#cfcomments"
85
74
  }
86
- ]
75
+ ],
76
+ "captures": {
77
+ "0": {
78
+ "name": "punctuation.definition.comment.cfml"
79
+ }
80
+ }
87
81
  }
88
82
  ]
89
83
  },
90
- "tag-stuff": {
84
+ "entities": {
91
85
  "patterns": [
92
86
  {
93
- "include": "#tag-generic-attribute"
94
- },
95
- {
96
- "include": "#string-double-quoted"
87
+ "name": "constant.character.entity.html",
88
+ "match": "(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
89
+ "captures": {
90
+ "1": {
91
+ "name": "punctuation.definition.entity.html"
92
+ },
93
+ "3": {
94
+ "name": "punctuation.definition.entity.html"
95
+ }
96
+ }
97
97
  },
98
98
  {
99
- "include": "#string-single-quoted"
99
+ "name": "invalid.illegal.bad-ampersand.html",
100
+ "match": "\u0026"
100
101
  }
101
102
  ]
102
103
  },
103
- "tag-generic-attribute": {
104
- "match": "\\b([a-zA-Z\\-:]+)",
105
- "name": "entity.other.attribute-name.html"
106
- },
107
104
  "string-double-quoted": {
105
+ "name": "string.quoted.double.html",
108
106
  "begin": "\"",
107
+ "end": "\"",
108
+ "patterns": [
109
+ {
110
+ "include": "#entities"
111
+ }
112
+ ],
109
113
  "beginCaptures": {
110
114
  "0": {
111
115
  "name": "punctuation.definition.string.begin.html"
112
116
  }
113
117
  },
114
- "end": "\"",
115
118
  "endCaptures": {
116
119
  "0": {
117
120
  "name": "punctuation.definition.string.end.html"
118
121
  }
119
- },
120
- "name": "string.quoted.double.html",
122
+ }
123
+ },
124
+ "string-single-quoted": {
125
+ "name": "string.quoted.single.html",
126
+ "begin": "'",
127
+ "end": "'",
121
128
  "patterns": [
122
129
  {
123
130
  "include": "#entities"
124
131
  }
125
- ]
126
- },
127
- "string-single-quoted": {
128
- "begin": "'",
132
+ ],
129
133
  "beginCaptures": {
130
134
  "0": {
131
135
  "name": "punctuation.definition.string.begin.html"
132
136
  }
133
137
  },
134
- "end": "'",
135
138
  "endCaptures": {
136
139
  "0": {
137
140
  "name": "punctuation.definition.string.end.html"
138
141
  }
139
- },
140
- "name": "string.quoted.single.html",
141
- "patterns": [
142
- {
143
- "include": "#entities"
144
- }
145
- ]
142
+ }
146
143
  },
147
- "entities": {
144
+ "tag-generic-attribute": {
145
+ "name": "entity.other.attribute-name.html",
146
+ "match": "\\b([a-zA-Z\\-:]+)"
147
+ },
148
+ "tag-stuff": {
148
149
  "patterns": [
149
150
  {
150
- "captures": {
151
- "1": {
152
- "name": "punctuation.definition.entity.html"
153
- },
154
- "3": {
155
- "name": "punctuation.definition.entity.html"
156
- }
157
- },
158
- "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
159
- "name": "constant.character.entity.html"
151
+ "include": "#tag-generic-attribute"
152
+ },
153
+ {
154
+ "include": "#string-double-quoted"
160
155
  },
161
156
  {
162
- "match": "&",
163
- "name": "invalid.illegal.bad-ampersand.html"
157
+ "include": "#string-single-quoted"
164
158
  }
165
159
  ]
166
160
  }
167
- },
168
- "scopeName": "source.cfscript.cfc",
169
- "uuid": "B7AC5320-4226-11E1-B86C-0800200C9A66"
170
- }
161
+ }
162
+ }
@@ -1,11 +1,6 @@
1
1
  {
2
- "comment": "This tmLanguage file is used internally by ColdFusion and Component tmLanguage files",
3
- "fileTypes": [
4
-
5
- ],
6
- "foldingStartMarker": "^.*\\bfunction\\s*([\\w\\$]+\\s*)?\\([^\\)]*\\)(\\s*\\{[^\\}]*)?\\s*$",
7
- "foldingStopMarker": "^\\s*\\}",
8
2
  "name": "CFScript (do not use)",
3
+ "scopeName": "source.cfscript",
9
4
  "patterns": [
10
5
  {
11
6
  "include": "#comments"
@@ -27,6 +22,70 @@
27
22
  }
28
23
  ],
29
24
  "repository": {
25
+ "braces": {
26
+ "patterns": [
27
+ {
28
+ "name": "meta.brace.curly.cfscript",
29
+ "match": "{|}"
30
+ },
31
+ {
32
+ "name": "meta.brace.round.cfscript",
33
+ "match": "\\(|\\)"
34
+ },
35
+ {
36
+ "begin": "([\\w]+)?\\s*(\\[)",
37
+ "end": "\\]",
38
+ "patterns": [
39
+ {
40
+ "include": "#strings"
41
+ },
42
+ {
43
+ "name": "punctuation.definition.set.seperator.cfscript",
44
+ "match": ","
45
+ },
46
+ {
47
+ "include": "$self"
48
+ }
49
+ ],
50
+ "beginCaptures": {
51
+ "1": {
52
+ "name": "variable.other.set.cfscript"
53
+ },
54
+ "2": {
55
+ "name": "punctuation.definition.set.begin.cfscript"
56
+ }
57
+ },
58
+ "endCaptures": {
59
+ "0": {
60
+ "name": "punctuation.definition.set.end.cfscript"
61
+ }
62
+ }
63
+ }
64
+ ]
65
+ },
66
+ "cfcomments": {
67
+ "patterns": [
68
+ {
69
+ "name": "comment.line.cfml",
70
+ "match": "\u003c!---.*---\u003e"
71
+ },
72
+ {
73
+ "name": "comment.block.cfml",
74
+ "begin": "\u003c!---",
75
+ "end": "---\u003e",
76
+ "patterns": [
77
+ {
78
+ "include": "#cfcomments"
79
+ }
80
+ ],
81
+ "captures": {
82
+ "0": {
83
+ "name": "punctuation.definition.comment.cfml"
84
+ }
85
+ }
86
+ }
87
+ ]
88
+ },
30
89
  "cfscript-code": {
31
90
  "patterns": [
32
91
  {
@@ -56,621 +115,610 @@
56
115
  ]
57
116
  },
58
117
  "closures": {
118
+ "name": "meta.closure.cfscript",
59
119
  "begin": "(?i:\\b(function))\\b",
60
- "beginCaptures": {
61
- "1": {
62
- "name": "storage.closure.cfscript"
63
- }
64
- },
65
120
  "end": "(?={)",
66
- "name": "meta.closure.cfscript",
67
121
  "patterns": [
68
122
  {
69
123
  "include": "#parameters"
70
124
  }
71
- ]
72
- },
73
- "functions": {
74
- "begin": "(?x)^\\s*\n (?:\n (?: # optional access-control modifier and return-type\n (?i:\\b(private|package|public|remote)\\s+)? # access-control.modifier\n (?i:\\b\n (void)\n |\n (any|array|binary|boolean|component|date|guid|numeric|query|string|struct|xml|uuid) # return-type.primitive\n |\n ([A-Za-z0-9_\\.$]+) #return-type component/object (may need additional tokens)\n )?\n )\n )\n \\s*\n (?i:(function)) # storage.function\n \\s+\n (?:\n (init) # entity.name.function.contructor\n |\n ([\\w\\$]+) # entity.name.function\n )\\b\n ",
125
+ ],
75
126
  "beginCaptures": {
76
127
  "1": {
77
- "name": "storage.modifier.access-control.cfscript"
78
- },
79
- "2": {
80
- "name": "storage.type.return-type.void.cfscript"
81
- },
82
- "3": {
83
- "name": "storage.type.return-type.primitive.cfscript"
84
- },
85
- "4": {
86
- "name": "storage.type.return-type.object.cfscript"
87
- },
88
- "5": {
89
- "name": "storage.type.function.cfscript"
90
- },
91
- "6": {
92
- "name": "entity.name.function.constructor.cfscript"
93
- },
94
- "7": {
95
- "name": "entity.name.function.cfscript"
128
+ "name": "storage.closure.cfscript"
96
129
  }
97
- },
98
- "end": "(?={)",
99
- "name": "meta.function.cfscript",
130
+ }
131
+ },
132
+ "comment-block": {
133
+ "name": "comment.block.cfscript",
134
+ "begin": "/\\*",
135
+ "end": "\\*/",
136
+ "captures": {
137
+ "0": {
138
+ "name": "punctuation.definition.comment.cfscript"
139
+ }
140
+ }
141
+ },
142
+ "comments": {
100
143
  "patterns": [
101
144
  {
102
- "include": "#parameters"
145
+ "name": "comment.block.empty.cfscript",
146
+ "match": "/\\*\\*/",
147
+ "captures": {
148
+ "0": {
149
+ "name": "punctuation.definition.comment.cfscript"
150
+ }
151
+ }
103
152
  },
104
153
  {
105
- "include": "#comments"
154
+ "include": "text.html.javadoc"
106
155
  },
107
156
  {
108
- "include": "#function-properties"
157
+ "include": "#comment-block"
109
158
  },
110
159
  {
111
- "include": "#cfscript-code"
160
+ "match": "((//).*?[^\\s])\\s*$\\n?",
161
+ "captures": {
162
+ "1": {
163
+ "name": "comment.line.double-slash.cfscript"
164
+ },
165
+ "2": {
166
+ "name": "punctuation.definition.comment.cfscript"
167
+ }
168
+ }
112
169
  }
113
170
  ]
114
171
  },
115
- "parameters": {
172
+ "component-extends-attribute": {
173
+ "name": "meta.component.attribute-with-value.extends.cfml",
174
+ "begin": "\\b(extends)\\b\\s*(=)\\s*(?=\")",
175
+ "end": "(?=[\\s{])",
116
176
  "patterns": [
117
177
  {
118
- "begin": "(\\()",
178
+ "name": "string.quoted.double.cfml",
179
+ "contentName": "meta.component-operator.extends.value.cfscript",
180
+ "begin": "\"",
181
+ "end": "\"",
119
182
  "beginCaptures": {
120
- "1": {
121
- "name": "punctuation.definition.parameters.begin.cfscript"
183
+ "0": {
184
+ "name": "punctuation.definition.string.begin.cfscript"
122
185
  }
123
186
  },
124
- "end": "(\\))",
125
187
  "endCaptures": {
126
- "1": {
127
- "name": "punctuation.definition.parameters.end.cfscript"
188
+ "0": {
189
+ "name": "punctuation.definition.string.end.cfscript"
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "name": "string.quoted.single.cfscript",
195
+ "contentName": "meta.component-operator.extends.value.cfscript",
196
+ "begin": "'",
197
+ "end": "'",
198
+ "beginCaptures": {
199
+ "0": {
200
+ "name": "punctuation.definition.string.begin.cfscript"
128
201
  }
129
202
  },
130
- "name": "meta.function.parameters.cfscript",
203
+ "endCaptures": {
204
+ "0": {
205
+ "name": "punctuation.definition.string.end.cfscript"
206
+ }
207
+ }
208
+ }
209
+ ],
210
+ "captures": {
211
+ "1": {
212
+ "name": "entity.name.tag.operator-attribute.extends.cfml"
213
+ },
214
+ "2": {
215
+ "name": "keyword.operator.assignment.cfscript"
216
+ }
217
+ }
218
+ },
219
+ "component-operators": {
220
+ "patterns": [
221
+ {
222
+ "name": "meta.operator.cfscript meta.class.component.cfscript",
223
+ "begin": "(?x)\n \\b\n (?i:\n (component)\n )\n \\b\n \\s+\n (?![\\.\\/\u003e=,#\\)])\n ",
224
+ "end": "(?=[;{\\(])",
131
225
  "patterns": [
132
226
  {
133
- "match": "(?i:required)",
134
- "name": "keyword.other.required.argument.cfscript"
135
- },
136
- {
137
- "include": "#storage-types"
138
- },
139
- {
140
- "match": "(=)",
141
- "name": "keyword.operator.argument-assignment.cfscript"
142
- },
143
- {
144
- "match": "(?i:false|true|no|yes)",
145
- "name": "constant.language.boolean.argument.cfscript"
146
- },
147
- {
148
- "match": "(?i:\\w)",
149
- "name": "variable.parameter.cfscript"
227
+ "include": "#component-extends-attribute"
150
228
  },
151
229
  {
152
- "match": ",",
153
- "name": "punctuation.definition.seperator.parameter.cfscript"
230
+ "name": "entity.other.attribute-name.cfscript",
231
+ "match": "(?i:(\\w+)\\s*(?=\\=))"
154
232
  },
155
233
  {
156
- "include": "#strings"
234
+ "include": "#cfscript-code"
235
+ }
236
+ ],
237
+ "beginCaptures": {
238
+ "1": {
239
+ "name": "entity.name.tag.operator.component.cfscript"
157
240
  }
158
- ]
241
+ }
159
242
  }
160
243
  ]
161
244
  },
162
- "function-properties": {
245
+ "constants": {
163
246
  "patterns": [
164
247
  {
165
- "match": "\\b(?i:output)",
166
- "name": "entity.other.attribute-name.output.cfscript"
248
+ "name": "constant.numeric.cfscript",
249
+ "match": "(?x)(\n (\\b[0-9]+)\n |\n (\\.[0-9]+[0-9\\.]*) # decimals\n |\n (0(x|X)[0-9a-fA-F]+) # hex\n # matches really large double/floats\n |(\\.[0-9]+)((e|E)(\\+|-)?[0-9]+)?([LlFfUuDd]|UL|ul)?\n )\\b\n "
250
+ },
251
+ {
252
+ "name": "constant.language.cfscript",
253
+ "match": "\\b(?i:(true|false|null))\\b"
167
254
  },
168
255
  {
169
- "match": "\\b([\\w]+)",
170
- "name": "entity.other.attribute-name.any.cfscript"
256
+ "name": "constant.other.cfscript",
257
+ "match": "\\b_?([A-Z][A-Z0-9_]+)\\b"
171
258
  }
172
259
  ]
173
260
  },
174
- "braces": {
261
+ "function-call": {
262
+ "name": "meta.function-call.cfscript",
263
+ "begin": "(?x)\n (?i:\n (abs|acos|addsoaprequestheader|addsoapresponseheader|ajaxlink|ajaxonload|applicationstop\n |arrayappend|arrayavg|arrayclear|arraycontains|arraydelete|arraydeleteat\n |arrayfind|arrayfindnocase|arrayinsertat|arrayisdefined|arrayisempty|arraylen\n |arraymax|arraymin|arraynew|arrayprepend|arrayresize|arrayset|arraysort|arraysum\n |arrayswap|arraytolist|asc|asin|atn|authenticatedcontext|authenticateduser|binarydecode\n |binaryencode|bitand|bitmaskclear|bitmaskread|bitmaskset|bitnot|bitor|bitshln|bitshrn\n |bitxor|cacheget|cachegetallids|cachegetmetadata|cachegetproperties|cachegetsession\n |cacheput|cacheremove|cachesetproperties|ceiling|charsetdecode|charsetencode|chr\n |cjustify|compare|comparenocase|cos|createdate|createdatetime|createobject|createodbcdate\n |createodbcdatetime|createodbctime|createtime|createtimespan|createuuid|dateadd|datecompare\n |dateconvert|datediff|dateformat|datepart|day|dayofweek|dayofweekasstring|dayofyear\n |daysinmonth|daysinyear|decimalformat|decrementvalue|decrypt|decryptbinary\n |deleteclientvariable|deserializejson|de|directorycreate|directorydelete|directoryexists\n |directorylist|directoryrename|dollarformat|dotnettocftype|duplicate|encrypt|encryptbinary\n |entitydelete|entityload|entityloadbyexample|entityloadbypk|entitymerge|entitynew\n |entityreload|entitysave|entitytoquery|evaluate|exp|expandpath|fileclose|filecopy\n |filedelete|fileexists|fileiseof|filemove|fileopen|fileread|filereadbinary|filereadline\n |fileseek|filesetaccessmode|filesetattribute|filesetlastmodified|fileskipbytes|fileupload\n |fileuploadall|filewrite|filewriteline|find|findnocase|findoneof|firstdayofmonth|fix\n |formatbasen|generatesecretkey|getauthuser|getbasetagdata|getbasetaglist|getbasetemplatepath\n |getclientvariableslist|getcomponentmetadata|getcontextroot|getcurrenttemplatepath\n |getdirectoryfrompath|getencoding|getexception|getfilefrompath|getfileinfo\n |getfunctioncalledname|getfunctionlist|getgatewayhelper|gethttprequestdata|gethttptimestring\n |getk2serverdoccount|getk2serverdoccountlimit|getlocale|getlocaledisplayname|getlocalhostip\n |getmetadata|getmetricdata|getpagecontext|getrequest|getrequesturi|getprinterinfo|getprinterlist|getprofilesections\n |getprofilestring|getreadableimageformats|getsoaprequest|getsoaprequestheader|getsoapresponse\n |getsoapresponseheader|gettempdirectory|gettempfile|gettemplatepath|gettickcount\n |gettimezoneinfo|gettoken|getuserroles|getvfsmetadata|getwriteableimageformats|hash|hour\n |htmlcodeformat|htmleditformat|iif|imageaddborder|imageblur|imageclearrect|imagecopy\n |imagecrop|imagedrawarc|imagedrawbeveledrect|imagedrawcubiccurve|imagedrawline|imagedrawlines\n |imagedrawoval|imagedrawpoint|imagedrawquadraticcurve|imagedrawrect|imagedrawroundrect\n |imagedrawtext|imageflip|imagegetblob|imagegetbufferedimage|imagegetexifmetadata|imagegetexiftag\n |imagegetheight|imagegetiptcmetadata|imagegetiptctag|imagegetwidth|imagegrayscale|imageinfo\n |imagenegative|imagenew|imageoverlay|imagepaste|imageread|imagereadbase64|imageresize\n |imagerotate|imagerotatedrawingaxis|imagescaletofit|imagesetantialiasing|imagesetbackgroundcolor\n |imagesetdrawingcolor|imagesetdrawingstroke|imagesetdrawingtransparency|imagesharpen|imageshear\n |imagesheardrawingaxis|imagetranslate|imagetranslatedrawingaxis|imagewrite|imagewritebase64\n |imagexordrawingmode|incrementvalue|inputbasen|insert|int|isarray|isauthenticated|isauthorized\n |isbinary|isboolean|iscustomfunction|isdate|isddx|isdebugmode|isdefined|isimage|isimagefile\n |isinstanceof|isipv6|isjson|isk2serverabroker|isk2serverdoccountexceeded|isk2serveronline|isleapyear\n |islocalhost|isnull|isnumeric|isnumericdate|isobject|ispdffile|ispdfobject|isprotected|isquery\n |issimplevalue|issoaprequest|isspreadsheetfile|isspreadsheetobject|isstruct|isuserinanyrole\n |isuserinrole|isuserloggedin|isvalid|iswddx|isxml|isxmlattribute|isxmldoc|isxmlelem|isxmlnode\n |isxmlroot|javacast|jsstringformat|lcase|left|len|listappend|listchangedelims|listcontains\n |listcontainsnocase|listdeleteat|listfind|listfindnocase|listfirst|listgetat|listinsertat\n |listlast|listlen|listprepend|listqualify|listrest|listsetat|listsort|listtoarray|listvaluecount\n |listvaluecountnocase|ljustify|location|log|log10|lscurrencyformat|lsdateformat|lseurocurrencyformat\n |lsiscurrency|lsisdate|lsisnumeric|lsnumberformat|lsparsecurrency|lsparsedatetime|lsparseeurocurrency\n |lsparsenumber|lstimeformat|ltrim|max|mid|min|minute|month|monthasstring|now|numberformat|objectequals\n |objectload|objectsave|ormclearsession|ormclosesession|ormcloseallsessions|ormevictcollection\n |ormevictentity|ormevictqueries|ormexecutequery|ormflush|ormflushall|ormgetsession|ormgetsessionfactory\n |ormreload|paragraphformat|parameterexists|parsedatetime|pi|precisionevaluate|preservesinglequotes\n |quarter|queryaddcolumn|queryaddrow|queryconvertforgrid|querynew|querysetcell|quotedvaluelist\n |rand|randomize|randrange|refind|refindnocase|rematch|rematchnocase|releasecomobject|removechars\n |repeatstring|replace|replacelist|replacenocase|rereplace|rereplacenocase|reverse|right|rjustify\n |round|rtrim|second|sendgatewaymessage|serializejson|setencoding|setlocale|setprofilestring\n |setvariable|sgn|sin|sleep|spanexcluding|spanincluding|spreadsheetaddcolumn|spreadsheetaddimage\n |spreadsheetaddfreezepane|spreadsheetaddinfo|spreadsheetaddrow|spreadsheetaddrows|spreadsheetaddsplitpane\n |spreadsheetcreatesheet|spreadsheetdeletecolumn|spreadsheetdeletecolumns|spreadsheetdeleterow\n |spreadsheetdeleterows|spreadsheetformatcell|spreadsheetformatcolumn|spreadsheetformatcellrange\n |spreadsheetformatcolumns|spreadsheetformatrow|spreadsheetformatrows|spreadsheetgetcellcomment\n |spreadsheetgetcellformula|spreadsheetgetcellvalue|spreadsheetinfo|spreadsheetmergecells\n |spreadsheetnew|spreadsheetread|spreadsheetreadbinary|spreadsheetremovesheet|spreadsheetsetactivesheet\n |spreadsheetsetactivesheetnumber|spreadsheetsetcellcomment|spreadsheetsetcellformula|spreadsheetsetcellvalue\n |spreadsheetsetcolumnwidth|spreadsheetsetfooter|spreadsheetsetheader|spreadsheetsetrowheight\n |spreadsheetshiftcolumnsspreadsheetshiftrows|spreadsheetwrite|sqr|stripcr|structappend|structclear\n |structcopy|structcount|structdelete|structfind|structfindkey|structfindvalue|structget|structinsert\n |structisempty|structkeyarray|structkeyexists|structkeylist|structnew|structsort|structupdate|tan\n |threadjoin|threadterminate|throw|timeformat|tobase64|tobinary|toscript|tostring|trace|transactioncommit\n |transactionrollback|transactionsetsavepoint|trim|ucase|urldecode|urlencodedformat|urlsessionformat\n |val|valuelist|verifyclient|week|wrap|writedump|writelog|writeoutput|xmlchildpos|xmlelemnew\n |xmlformat|xmlgetnodetype|xmlnew|xmlparse|xmlsearch|xmltransform|xmlvalidate|year|yesnoformat)\n |\n (\\w+)\n )\n \\s*\n (\\()\n ",
264
+ "end": "(\\))",
175
265
  "patterns": [
176
266
  {
177
- "name": "meta.brace.curly.cfscript",
178
- "match": "{|}"
267
+ "name": "punctuation.definition.seperator.arguments.cfscript",
268
+ "match": ","
179
269
  },
180
270
  {
181
- "name": "meta.brace.round.cfscript",
182
- "match": "\\(|\\)"
271
+ "name": "entity.other.method-parameter.cfscript",
272
+ "match": "(?i:(\\w+)\\s*(?=\\=))"
183
273
  },
184
274
  {
185
- "begin": "([\\w]+)?\\s*(\\[)",
186
- "beginCaptures": {
187
- "1": {
188
- "name": "variable.other.set.cfscript"
189
- },
190
- "2": {
191
- "name": "punctuation.definition.set.begin.cfscript"
192
- }
193
- },
194
- "end": "\\]",
195
- "endCaptures": {
196
- "0": {
197
- "name": "punctuation.definition.set.end.cfscript"
198
- }
199
- },
200
- "patterns": [
201
- {
202
- "include": "#strings"
203
- },
204
- {
205
- "match": ",",
206
- "name": "punctuation.definition.set.seperator.cfscript"
207
- },
208
- {
209
- "include": "$self"
210
- }
211
- ]
275
+ "include": "#cfcomments"
276
+ },
277
+ {
278
+ "include": "#comments"
279
+ },
280
+ {
281
+ "include": "#tag-operators"
282
+ },
283
+ {
284
+ "include": "#cfscript-code"
212
285
  }
213
- ]
286
+ ],
287
+ "beginCaptures": {
288
+ "1": {
289
+ "name": "support.function.cfscript"
290
+ },
291
+ "2": {
292
+ "name": "entity.name.function-call.cfscript"
293
+ },
294
+ "3": {
295
+ "name": "punctuation.definition.arguments.begin.cfscript"
296
+ }
297
+ },
298
+ "endCaptures": {
299
+ "1": {
300
+ "name": "punctuation.definition.arguments.end.cfscript"
301
+ }
302
+ }
214
303
  },
215
- "tag-operators": {
304
+ "function-properties": {
216
305
  "patterns": [
217
306
  {
218
- "match": "\\b(else\\s+if|else|if)\\b",
219
- "name": "keyword.control.operator.conditional.cfscript"
307
+ "name": "entity.other.attribute-name.output.cfscript",
308
+ "match": "\\b(?i:output)"
220
309
  },
221
310
  {
222
- "match": "\\b(switch|case|default)\\b",
223
- "name": "keyword.control.operator.switch.cfscript"
224
- },
225
- {
226
- "begin": "(?x)^[\\s}]*\n (?i:\n (lock)|(transaction)|(thread)|(abort)\n |(exit)|(include)|(param)|(thread)|(import)\n |(rethrow|throw)|(property)|(interface)|(location)\n |(break)|(pageencoding)|(schedule)|(return)|(try|catch|finally)\n |(for|in|do|while|break|continue)\n |(trace)|(savecontent)|(http|httpparam)\n )\n \\b\n \\s*\n (?![^\\w|\"|'|\\(|{|;])\n ",
227
- "beginCaptures": {
311
+ "name": "entity.other.attribute-name.any.cfscript",
312
+ "match": "\\b([\\w]+)"
313
+ }
314
+ ]
315
+ },
316
+ "functions": {
317
+ "name": "meta.function.cfscript",
318
+ "begin": "(?x)^\\s*\n (?:\n (?: # optional access-control modifier and return-type\n (?i:\\b(private|package|public|remote)\\s+)? # access-control.modifier\n (?i:\\b\n (void)\n |\n (any|array|binary|boolean|component|date|guid|numeric|query|string|struct|xml|uuid) # return-type.primitive\n |\n ([A-Za-z0-9_\\.$]+) #return-type component/object (may need additional tokens)\n )?\n )\n )\n \\s*\n (?i:(function)) # storage.function\n \\s+\n (?:\n (init) # entity.name.function.contructor\n |\n ([\\w\\$]+) # entity.name.function\n )\\b\n ",
319
+ "end": "(?={)",
320
+ "patterns": [
321
+ {
322
+ "include": "#parameters"
323
+ },
324
+ {
325
+ "include": "#comments"
326
+ },
327
+ {
328
+ "include": "#function-properties"
329
+ },
330
+ {
331
+ "include": "#cfscript-code"
332
+ }
333
+ ],
334
+ "beginCaptures": {
335
+ "1": {
336
+ "name": "storage.modifier.access-control.cfscript"
337
+ },
338
+ "2": {
339
+ "name": "storage.type.return-type.void.cfscript"
340
+ },
341
+ "3": {
342
+ "name": "storage.type.return-type.primitive.cfscript"
343
+ },
344
+ "4": {
345
+ "name": "storage.type.return-type.object.cfscript"
346
+ },
347
+ "5": {
348
+ "name": "storage.type.function.cfscript"
349
+ },
350
+ "6": {
351
+ "name": "entity.name.function.constructor.cfscript"
352
+ },
353
+ "7": {
354
+ "name": "entity.name.function.cfscript"
355
+ }
356
+ }
357
+ },
358
+ "keywords": {
359
+ "patterns": [
360
+ {
361
+ "name": "keyword.other.new.cfscript",
362
+ "match": "\\b(?i:new)\\b"
363
+ },
364
+ {
365
+ "name": "keyword.operator.comparison.cfscript",
366
+ "match": "(===?|!|!=|\u003c=|\u003e=|\u003c|\u003e)"
367
+ },
368
+ {
369
+ "name": "keyword.operator.decision.cfscript",
370
+ "match": "\\b(?i:(GREATER|LESS|THAN|EQUAL\\s+TO|DOES|CONTAINS|EQUAL|EQ|NEQ|LT|LTE|LE|GT|GTE|GE|AND|IS))\\b"
371
+ },
372
+ {
373
+ "name": "keyword.operator.increment-decrement.cfscript",
374
+ "match": "(\\-\\-|\\+\\+)"
375
+ },
376
+ {
377
+ "name": "keyword.operator.arithmetic.cfscript",
378
+ "match": "(?i:(\\^|\\-|\\+|\\*|\\/|\\\\|%|\\-=|\\+=|\\*=|\\/=|%=|\\bMOD\\b))"
379
+ },
380
+ {
381
+ "name": "keyword.operator.concat.cfscript",
382
+ "match": "(\u0026|\u0026=)"
383
+ },
384
+ {
385
+ "name": "keyword.operator.assignment.cfscript",
386
+ "match": "(=)"
387
+ },
388
+ {
389
+ "name": "keyword.operator.logical.cfscript",
390
+ "match": "\\b(?i:(NOT|!|AND|\u0026\u0026|OR|\\|\\||XOR|EQV|IMP))\\b"
391
+ },
392
+ {
393
+ "name": "keyword.operator.ternary.cfscript",
394
+ "match": "(\\?|:)"
395
+ },
396
+ {
397
+ "name": "punctuation.terminator.cfscript",
398
+ "match": ";"
399
+ }
400
+ ]
401
+ },
402
+ "nest_hash": {
403
+ "patterns": [
404
+ {
405
+ "name": "string.escaped.hash.cfscript",
406
+ "match": "##"
407
+ },
408
+ {
409
+ "name": "meta.inline.hash.cfscript",
410
+ "contentName": "source.cfscript.embedded.cfscript",
411
+ "begin": "(#)(?=.*#)",
412
+ "end": "(#)",
413
+ "patterns": [
414
+ {
415
+ "include": "#cfscript-code"
416
+ }
417
+ ],
418
+ "beginCaptures": {
228
419
  "1": {
229
- "name": "entity.name.tag.operator.lock.cfscript"
230
- },
231
- "2": {
232
- "name": "entity.name.tag.operator.transaction.cfscript"
233
- },
234
- "3": {
235
- "name": "entity.name.tag.operator.thread.cfscript"
236
- },
237
- "4": {
238
- "name": "keyword.control.operator.abort.cfscript"
239
- },
240
- "5": {
241
- "name": "keyword.control.operator.exit.cfscript"
242
- },
243
- "6": {
244
- "name": "entity.name.tag.operator.include.cfscript"
245
- },
246
- "7": {
247
- "name": "entity.name.tag.operator.param.cfscript"
248
- },
249
- "8": {
250
- "name": "entity.name.tag.operator.thread.cfscript"
251
- },
252
- "9": {
253
- "name": "entity.name.tag.operator.import.cfscript"
254
- },
255
- "10": {
256
- "name": "keyword.control.operator.catch-exception.cfscript"
257
- },
258
- "11": {
259
- "name": "entity.name.tag.operator.property.cfscript"
260
- },
261
- "12": {
262
- "name": "entity.name.tag.operator.interface.cfscript"
263
- },
264
- "13": {
265
- "name": "entity.name.tag.operator.location.cfscript"
266
- },
267
- "14": {
268
- "name": "keyword.control.operator.break.cfscript"
269
- },
270
- "15": {
271
- "name": "entity.name.tag.operator.pageencoding.cfscript"
272
- },
273
- "16": {
274
- "name": "entity.name.tag.operator.schedule.cfscript"
275
- },
276
- "17": {
277
- "name": "keyword.control.operator.return.cfscript"
278
- },
279
- "18": {
280
- "name": "keyword.control.operator.catch-exception.cfscript"
281
- },
282
- "19": {
283
- "name": "keyword.control.operator.loop.cfscript"
284
- },
285
- "20": {
286
- "name": "entity.name.tag.operator.trace.cfscript"
287
- },
288
- "21": {
289
- "name": "entity.name.tag.operator.savecontent.cfscript"
290
- },
291
- "22": {
292
- "name": "entity.name.tag.operator.http.cfscript"
420
+ "name": "punctuation.definition.hash.begin.cfscript"
293
421
  }
294
422
  },
295
- "end": "(;)|({)",
296
423
  "endCaptures": {
297
424
  "1": {
298
- "name": "punctuation.terminator.cfscript"
299
- },
300
- "3": {
301
- "name": "meta.brace.curly.cfscript"
425
+ "name": "punctuation.definition.hash.end.cfscript"
302
426
  }
303
- },
304
- "name": "meta.operator.cfscript",
427
+ }
428
+ }
429
+ ]
430
+ },
431
+ "parameters": {
432
+ "patterns": [
433
+ {
434
+ "name": "meta.function.parameters.cfscript",
435
+ "begin": "(\\()",
436
+ "end": "(\\))",
305
437
  "patterns": [
306
438
  {
307
- "begin": "\\(",
308
- "beginCaptures": {
309
- "0": {
310
- "name": "meta.brace.curly.cfscript"
311
- }
312
- },
313
- "end": "\\)",
314
- "endCaptures": {
315
- "0": {
316
- "name": "meta.brace.curly.cfscript"
317
- }
318
- },
319
- "patterns": [
320
- {
321
- "match": ",",
322
- "name": "punctuation.definition.seperator.arguments.cfscript"
323
- },
324
- {
325
- "match": "(?i:(\\w+)\\s*(?=\\=))",
326
- "name": "entity.other.operator-parameter.cfscript"
327
- },
328
- {
329
- "include": "#cfscript-code"
330
- }
331
- ]
439
+ "name": "keyword.other.required.argument.cfscript",
440
+ "match": "(?i:required)"
332
441
  },
333
442
  {
334
- "match": "(?i:(\\w+)\\s*(?=\\=))",
335
- "name": "entity.other.attribute-name.cfscript"
443
+ "include": "#storage-types"
336
444
  },
337
445
  {
338
- "include": "#cfcomments"
446
+ "name": "keyword.operator.argument-assignment.cfscript",
447
+ "match": "(=)"
339
448
  },
340
449
  {
341
- "include": "#comments"
450
+ "name": "constant.language.boolean.argument.cfscript",
451
+ "match": "(?i:false|true|no|yes)"
342
452
  },
343
453
  {
344
- "include": "#cfscript-code"
345
- }
346
- ]
347
- }
348
- ]
349
- },
350
- "component-operators": {
351
- "patterns": [
352
- {
353
- "begin": "(?x)\n \\b\n (?i:\n (component)\n )\n \\b\n \\s+\n (?![\\.\\/>=,#\\)])\n ",
354
- "beginCaptures": {
355
- "1": {
356
- "name": "entity.name.tag.operator.component.cfscript"
357
- }
358
- },
359
- "name": "meta.operator.cfscript meta.class.component.cfscript",
360
- "end": "(?=[;{\\(])",
361
- "patterns": [
362
- {
363
- "include": "#component-extends-attribute"
454
+ "name": "variable.parameter.cfscript",
455
+ "match": "(?i:\\w)"
364
456
  },
365
457
  {
366
- "match": "(?i:(\\w+)\\s*(?=\\=))",
367
- "name": "entity.other.attribute-name.cfscript"
458
+ "name": "punctuation.definition.seperator.parameter.cfscript",
459
+ "match": ","
368
460
  },
369
461
  {
370
- "include": "#cfscript-code"
462
+ "include": "#strings"
371
463
  }
372
- ]
373
- }
374
- ]
375
- },
376
- "component-extends-attribute": {
377
- "begin": "\\b(extends)\\b\\s*(=)\\s*(?=\")",
378
- "captures": {
379
- "1": {
380
- "name": "entity.name.tag.operator-attribute.extends.cfml"
381
- },
382
- "2": {
383
- "name": "keyword.operator.assignment.cfscript"
384
- }
385
- },
386
- "end": "(?=[\\s{])",
387
- "name": "meta.component.attribute-with-value.extends.cfml",
388
- "patterns": [
389
- {
390
- "begin": "\"",
464
+ ],
391
465
  "beginCaptures": {
392
- "0": {
393
- "name": "punctuation.definition.string.begin.cfscript"
394
- }
395
- },
396
- "contentName": "meta.component-operator.extends.value.cfscript",
397
- "end": "\"",
398
- "endCaptures": {
399
- "0": {
400
- "name": "punctuation.definition.string.end.cfscript"
401
- }
402
- },
403
- "name": "string.quoted.double.cfml"
404
- },
405
- {
406
- "begin": "'",
407
- "beginCaptures": {
408
- "0": {
409
- "name": "punctuation.definition.string.begin.cfscript"
466
+ "1": {
467
+ "name": "punctuation.definition.parameters.begin.cfscript"
410
468
  }
411
469
  },
412
- "contentName": "meta.component-operator.extends.value.cfscript",
413
- "end": "'",
414
470
  "endCaptures": {
415
- "0": {
416
- "name": "punctuation.definition.string.end.cfscript"
471
+ "1": {
472
+ "name": "punctuation.definition.parameters.end.cfscript"
417
473
  }
418
- },
419
- "name": "string.quoted.single.cfscript"
420
- }
421
- ]
422
- },
423
- "storage-types": {
424
- "patterns": [
425
- {
426
- "match": "\\b(?i:(function|string|date|struct|array|void|binary|numeric|boolean|query|xml|uuid|any))\\b",
427
- "name": "storage.type.primitive.cfscript"
428
- }
429
- ]
430
- },
431
- "constants": {
432
- "patterns": [
433
- {
434
- "match": "(?x)(\n (\\b[0-9]+)\n |\n (\\.[0-9]+[0-9\\.]*) # decimals\n |\n (0(x|X)[0-9a-fA-F]+) # hex\n # matches really large double/floats\n |(\\.[0-9]+)((e|E)(\\+|-)?[0-9]+)?([LlFfUuDd]|UL|ul)?\n )\\b\n ",
435
- "name": "constant.numeric.cfscript"
436
- },
437
- {
438
- "match": "\\b(?i:(true|false|null))\\b",
439
- "name": "constant.language.cfscript"
440
- },
441
- {
442
- "match": "\\b_?([A-Z][A-Z0-9_]+)\\b",
443
- "name": "constant.other.cfscript"
474
+ }
444
475
  }
445
476
  ]
446
477
  },
447
- "comments": {
478
+ "sql-code": {
448
479
  "patterns": [
449
480
  {
450
- "captures": {
451
- "0": {
452
- "name": "punctuation.definition.comment.cfscript"
453
- }
454
- },
455
- "match": "/\\*\\*/",
456
- "name": "comment.block.empty.cfscript"
457
- },
458
- {
459
- "include": "text.html.javadoc"
460
- },
461
- {
462
- "include": "#comment-block"
463
- },
464
- {
465
- "captures": {
466
- "2": {
467
- "name": "punctuation.definition.comment.cfscript"
481
+ "name": "source.sql.embedded.cfscript",
482
+ "begin": "([\\w+\\.]+)\\.((?i:setsql))\\(\\s*[\"|']",
483
+ "end": "([\"|']\\s*\\))",
484
+ "patterns": [
485
+ {
486
+ "include": "#nest_hash"
468
487
  },
488
+ {
489
+ "include": "source.sql"
490
+ }
491
+ ],
492
+ "beginCaptures": {
469
493
  "1": {
470
- "name": "comment.line.double-slash.cfscript"
494
+ "name": "entity.name.function.query.cfscript, meta.toc-list.query.cfscript"
495
+ },
496
+ "2": {
497
+ "name": "support.function.cfscript"
471
498
  }
472
499
  },
473
- "match": "((//).*?[^\\s])\\s*$\\n?"
500
+ "endCaptures": {
501
+ "1": {
502
+ "name": "punctuation.parenthesis.end.cfscript"
503
+ }
504
+ }
474
505
  }
475
506
  ]
476
507
  },
477
- "comment-block": {
478
- "begin": "/\\*",
479
- "captures": {
480
- "0": {
481
- "name": "punctuation.definition.comment.cfscript"
482
- }
483
- },
484
- "end": "\\*/",
485
- "name": "comment.block.cfscript"
486
- },
487
- "strings": {
508
+ "storage-types": {
488
509
  "patterns": [
489
510
  {
490
- "include": "#string-quoted-double"
491
- },
492
- {
493
- "include": "#string-quoted-single"
511
+ "name": "storage.type.primitive.cfscript",
512
+ "match": "\\b(?i:(function|string|date|struct|array|void|binary|numeric|boolean|query|xml|uuid|any))\\b"
494
513
  }
495
514
  ]
496
515
  },
497
516
  "string-quoted-double": {
517
+ "name": "string.quoted.double.cfscript",
498
518
  "begin": "\"",
499
- "beginCaptures": {
500
- "0": {
501
- "name": "punctuation.definition.string.begin.cfscript"
502
- }
503
- },
504
519
  "end": "\"(?!\")",
505
- "endCaptures": {
506
- "0": {
507
- "name": "punctuation.definition.string.end.cfscript"
508
- }
509
- },
510
- "name": "string.quoted.double.cfscript",
511
520
  "patterns": [
512
521
  {
513
- "match": "(\"\")",
514
- "name": "constant.character.escape.quoted.double.cfscript"
522
+ "name": "constant.character.escape.quoted.double.cfscript",
523
+ "match": "(\"\")"
515
524
  },
516
525
  {
517
526
  "include": "#nest_hash"
518
527
  }
519
- ]
520
- },
521
- "string-quoted-single": {
522
- "begin": "'",
528
+ ],
523
529
  "beginCaptures": {
524
530
  "0": {
525
531
  "name": "punctuation.definition.string.begin.cfscript"
526
532
  }
527
533
  },
528
- "end": "'(?!')",
529
534
  "endCaptures": {
530
535
  "0": {
531
536
  "name": "punctuation.definition.string.end.cfscript"
532
537
  }
533
- },
538
+ }
539
+ },
540
+ "string-quoted-single": {
534
541
  "name": "string.quoted.single.cfscript",
542
+ "begin": "'",
543
+ "end": "'(?!')",
535
544
  "patterns": [
536
545
  {
537
- "match": "('')",
538
- "name": "constant.character.escape.quoted.single.cfscript"
546
+ "name": "constant.character.escape.quoted.single.cfscript",
547
+ "match": "('')"
539
548
  },
540
549
  {
541
550
  "include": "#nest_hash"
542
551
  }
543
- ]
544
- },
545
- "keywords": {
546
- "patterns": [
547
- {
548
- "match": "\\b(?i:new)\\b",
549
- "name": "keyword.other.new.cfscript"
550
- },
551
- {
552
- "match": "(===?|!|!=|<=|>=|<|>)",
553
- "name": "keyword.operator.comparison.cfscript"
554
- },
555
- {
556
- "match": "\\b(?i:(GREATER|LESS|THAN|EQUAL\\s+TO|DOES|CONTAINS|EQUAL|EQ|NEQ|LT|LTE|LE|GT|GTE|GE|AND|IS))\\b",
557
- "name": "keyword.operator.decision.cfscript"
558
- },
559
- {
560
- "match": "(\\-\\-|\\+\\+)",
561
- "name": "keyword.operator.increment-decrement.cfscript"
562
- },
563
- {
564
- "match": "(?i:(\\^|\\-|\\+|\\*|\\/|\\\\|%|\\-=|\\+=|\\*=|\\/=|%=|\\bMOD\\b))",
565
- "name": "keyword.operator.arithmetic.cfscript"
566
- },
567
- {
568
- "match": "(&|&=)",
569
- "name": "keyword.operator.concat.cfscript"
570
- },
571
- {
572
- "match": "(=)",
573
- "name": "keyword.operator.assignment.cfscript"
574
- },
575
- {
576
- "match": "\\b(?i:(NOT|!|AND|&&|OR|\\|\\||XOR|EQV|IMP))\\b",
577
- "name": "keyword.operator.logical.cfscript"
578
- },
579
- {
580
- "match": "(\\?|:)",
581
- "name": "keyword.operator.ternary.cfscript"
582
- },
583
- {
584
- "match": ";",
585
- "name": "punctuation.terminator.cfscript"
586
- }
587
- ]
588
- },
589
- "function-call": {
590
- "begin": "(?x)\n (?i:\n (abs|acos|addsoaprequestheader|addsoapresponseheader|ajaxlink|ajaxonload|applicationstop\n |arrayappend|arrayavg|arrayclear|arraycontains|arraydelete|arraydeleteat\n |arrayfind|arrayfindnocase|arrayinsertat|arrayisdefined|arrayisempty|arraylen\n |arraymax|arraymin|arraynew|arrayprepend|arrayresize|arrayset|arraysort|arraysum\n |arrayswap|arraytolist|asc|asin|atn|authenticatedcontext|authenticateduser|binarydecode\n |binaryencode|bitand|bitmaskclear|bitmaskread|bitmaskset|bitnot|bitor|bitshln|bitshrn\n |bitxor|cacheget|cachegetallids|cachegetmetadata|cachegetproperties|cachegetsession\n |cacheput|cacheremove|cachesetproperties|ceiling|charsetdecode|charsetencode|chr\n |cjustify|compare|comparenocase|cos|createdate|createdatetime|createobject|createodbcdate\n |createodbcdatetime|createodbctime|createtime|createtimespan|createuuid|dateadd|datecompare\n |dateconvert|datediff|dateformat|datepart|day|dayofweek|dayofweekasstring|dayofyear\n |daysinmonth|daysinyear|decimalformat|decrementvalue|decrypt|decryptbinary\n |deleteclientvariable|deserializejson|de|directorycreate|directorydelete|directoryexists\n |directorylist|directoryrename|dollarformat|dotnettocftype|duplicate|encrypt|encryptbinary\n |entitydelete|entityload|entityloadbyexample|entityloadbypk|entitymerge|entitynew\n |entityreload|entitysave|entitytoquery|evaluate|exp|expandpath|fileclose|filecopy\n |filedelete|fileexists|fileiseof|filemove|fileopen|fileread|filereadbinary|filereadline\n |fileseek|filesetaccessmode|filesetattribute|filesetlastmodified|fileskipbytes|fileupload\n |fileuploadall|filewrite|filewriteline|find|findnocase|findoneof|firstdayofmonth|fix\n |formatbasen|generatesecretkey|getauthuser|getbasetagdata|getbasetaglist|getbasetemplatepath\n |getclientvariableslist|getcomponentmetadata|getcontextroot|getcurrenttemplatepath\n |getdirectoryfrompath|getencoding|getexception|getfilefrompath|getfileinfo\n |getfunctioncalledname|getfunctionlist|getgatewayhelper|gethttprequestdata|gethttptimestring\n |getk2serverdoccount|getk2serverdoccountlimit|getlocale|getlocaledisplayname|getlocalhostip\n |getmetadata|getmetricdata|getpagecontext|getrequest|getrequesturi|getprinterinfo|getprinterlist|getprofilesections\n |getprofilestring|getreadableimageformats|getsoaprequest|getsoaprequestheader|getsoapresponse\n |getsoapresponseheader|gettempdirectory|gettempfile|gettemplatepath|gettickcount\n |gettimezoneinfo|gettoken|getuserroles|getvfsmetadata|getwriteableimageformats|hash|hour\n |htmlcodeformat|htmleditformat|iif|imageaddborder|imageblur|imageclearrect|imagecopy\n |imagecrop|imagedrawarc|imagedrawbeveledrect|imagedrawcubiccurve|imagedrawline|imagedrawlines\n |imagedrawoval|imagedrawpoint|imagedrawquadraticcurve|imagedrawrect|imagedrawroundrect\n |imagedrawtext|imageflip|imagegetblob|imagegetbufferedimage|imagegetexifmetadata|imagegetexiftag\n |imagegetheight|imagegetiptcmetadata|imagegetiptctag|imagegetwidth|imagegrayscale|imageinfo\n |imagenegative|imagenew|imageoverlay|imagepaste|imageread|imagereadbase64|imageresize\n |imagerotate|imagerotatedrawingaxis|imagescaletofit|imagesetantialiasing|imagesetbackgroundcolor\n |imagesetdrawingcolor|imagesetdrawingstroke|imagesetdrawingtransparency|imagesharpen|imageshear\n |imagesheardrawingaxis|imagetranslate|imagetranslatedrawingaxis|imagewrite|imagewritebase64\n |imagexordrawingmode|incrementvalue|inputbasen|insert|int|isarray|isauthenticated|isauthorized\n |isbinary|isboolean|iscustomfunction|isdate|isddx|isdebugmode|isdefined|isimage|isimagefile\n |isinstanceof|isipv6|isjson|isk2serverabroker|isk2serverdoccountexceeded|isk2serveronline|isleapyear\n |islocalhost|isnull|isnumeric|isnumericdate|isobject|ispdffile|ispdfobject|isprotected|isquery\n |issimplevalue|issoaprequest|isspreadsheetfile|isspreadsheetobject|isstruct|isuserinanyrole\n |isuserinrole|isuserloggedin|isvalid|iswddx|isxml|isxmlattribute|isxmldoc|isxmlelem|isxmlnode\n |isxmlroot|javacast|jsstringformat|lcase|left|len|listappend|listchangedelims|listcontains\n |listcontainsnocase|listdeleteat|listfind|listfindnocase|listfirst|listgetat|listinsertat\n |listlast|listlen|listprepend|listqualify|listrest|listsetat|listsort|listtoarray|listvaluecount\n |listvaluecountnocase|ljustify|location|log|log10|lscurrencyformat|lsdateformat|lseurocurrencyformat\n |lsiscurrency|lsisdate|lsisnumeric|lsnumberformat|lsparsecurrency|lsparsedatetime|lsparseeurocurrency\n |lsparsenumber|lstimeformat|ltrim|max|mid|min|minute|month|monthasstring|now|numberformat|objectequals\n |objectload|objectsave|ormclearsession|ormclosesession|ormcloseallsessions|ormevictcollection\n |ormevictentity|ormevictqueries|ormexecutequery|ormflush|ormflushall|ormgetsession|ormgetsessionfactory\n |ormreload|paragraphformat|parameterexists|parsedatetime|pi|precisionevaluate|preservesinglequotes\n |quarter|queryaddcolumn|queryaddrow|queryconvertforgrid|querynew|querysetcell|quotedvaluelist\n |rand|randomize|randrange|refind|refindnocase|rematch|rematchnocase|releasecomobject|removechars\n |repeatstring|replace|replacelist|replacenocase|rereplace|rereplacenocase|reverse|right|rjustify\n |round|rtrim|second|sendgatewaymessage|serializejson|setencoding|setlocale|setprofilestring\n |setvariable|sgn|sin|sleep|spanexcluding|spanincluding|spreadsheetaddcolumn|spreadsheetaddimage\n |spreadsheetaddfreezepane|spreadsheetaddinfo|spreadsheetaddrow|spreadsheetaddrows|spreadsheetaddsplitpane\n |spreadsheetcreatesheet|spreadsheetdeletecolumn|spreadsheetdeletecolumns|spreadsheetdeleterow\n |spreadsheetdeleterows|spreadsheetformatcell|spreadsheetformatcolumn|spreadsheetformatcellrange\n |spreadsheetformatcolumns|spreadsheetformatrow|spreadsheetformatrows|spreadsheetgetcellcomment\n |spreadsheetgetcellformula|spreadsheetgetcellvalue|spreadsheetinfo|spreadsheetmergecells\n |spreadsheetnew|spreadsheetread|spreadsheetreadbinary|spreadsheetremovesheet|spreadsheetsetactivesheet\n |spreadsheetsetactivesheetnumber|spreadsheetsetcellcomment|spreadsheetsetcellformula|spreadsheetsetcellvalue\n |spreadsheetsetcolumnwidth|spreadsheetsetfooter|spreadsheetsetheader|spreadsheetsetrowheight\n |spreadsheetshiftcolumnsspreadsheetshiftrows|spreadsheetwrite|sqr|stripcr|structappend|structclear\n |structcopy|structcount|structdelete|structfind|structfindkey|structfindvalue|structget|structinsert\n |structisempty|structkeyarray|structkeyexists|structkeylist|structnew|structsort|structupdate|tan\n |threadjoin|threadterminate|throw|timeformat|tobase64|tobinary|toscript|tostring|trace|transactioncommit\n |transactionrollback|transactionsetsavepoint|trim|ucase|urldecode|urlencodedformat|urlsessionformat\n |val|valuelist|verifyclient|week|wrap|writedump|writelog|writeoutput|xmlchildpos|xmlelemnew\n |xmlformat|xmlgetnodetype|xmlnew|xmlparse|xmlsearch|xmltransform|xmlvalidate|year|yesnoformat)\n |\n (\\w+)\n )\n \\s*\n (\\()\n ",
552
+ ],
591
553
  "beginCaptures": {
592
- "1": {
593
- "name": "support.function.cfscript"
594
- },
595
- "2": {
596
- "name": "entity.name.function-call.cfscript"
597
- },
598
- "3": {
599
- "name": "punctuation.definition.arguments.begin.cfscript"
554
+ "0": {
555
+ "name": "punctuation.definition.string.begin.cfscript"
600
556
  }
601
557
  },
602
- "end": "(\\))",
603
558
  "endCaptures": {
604
- "1": {
605
- "name": "punctuation.definition.arguments.end.cfscript"
559
+ "0": {
560
+ "name": "punctuation.definition.string.end.cfscript"
606
561
  }
607
- },
608
- "name": "meta.function-call.cfscript",
562
+ }
563
+ },
564
+ "strings": {
609
565
  "patterns": [
610
566
  {
611
- "match": ",",
612
- "name": "punctuation.definition.seperator.arguments.cfscript"
613
- },
614
- {
615
- "match": "(?i:(\\w+)\\s*(?=\\=))",
616
- "name": "entity.other.method-parameter.cfscript"
617
- },
618
- {
619
- "include": "#cfcomments"
620
- },
621
- {
622
- "include": "#comments"
623
- },
624
- {
625
- "include": "#tag-operators"
567
+ "include": "#string-quoted-double"
626
568
  },
627
569
  {
628
- "include": "#cfscript-code"
570
+ "include": "#string-quoted-single"
629
571
  }
630
572
  ]
631
573
  },
632
- "nest_hash": {
574
+ "tag-operators": {
633
575
  "patterns": [
634
576
  {
635
- "match": "##",
636
- "name": "string.escaped.hash.cfscript"
577
+ "name": "keyword.control.operator.conditional.cfscript",
578
+ "match": "\\b(else\\s+if|else|if)\\b"
637
579
  },
638
580
  {
639
- "begin": "(#)(?=.*#)",
581
+ "name": "keyword.control.operator.switch.cfscript",
582
+ "match": "\\b(switch|case|default)\\b"
583
+ },
584
+ {
585
+ "name": "meta.operator.cfscript",
586
+ "begin": "(?x)^[\\s}]*\n (?i:\n (lock)|(transaction)|(thread)|(abort)\n |(exit)|(include)|(param)|(thread)|(import)\n |(rethrow|throw)|(property)|(interface)|(location)\n |(break)|(pageencoding)|(schedule)|(return)|(try|catch|finally)\n |(for|in|do|while|break|continue)\n |(trace)|(savecontent)|(http|httpparam)\n )\n \\b\n \\s*\n (?![^\\w|\"|'|\\(|{|;])\n ",
587
+ "end": "(;)|({)",
588
+ "patterns": [
589
+ {
590
+ "begin": "\\(",
591
+ "end": "\\)",
592
+ "patterns": [
593
+ {
594
+ "name": "punctuation.definition.seperator.arguments.cfscript",
595
+ "match": ","
596
+ },
597
+ {
598
+ "name": "entity.other.operator-parameter.cfscript",
599
+ "match": "(?i:(\\w+)\\s*(?=\\=))"
600
+ },
601
+ {
602
+ "include": "#cfscript-code"
603
+ }
604
+ ],
605
+ "beginCaptures": {
606
+ "0": {
607
+ "name": "meta.brace.curly.cfscript"
608
+ }
609
+ },
610
+ "endCaptures": {
611
+ "0": {
612
+ "name": "meta.brace.curly.cfscript"
613
+ }
614
+ }
615
+ },
616
+ {
617
+ "name": "entity.other.attribute-name.cfscript",
618
+ "match": "(?i:(\\w+)\\s*(?=\\=))"
619
+ },
620
+ {
621
+ "include": "#cfcomments"
622
+ },
623
+ {
624
+ "include": "#comments"
625
+ },
626
+ {
627
+ "include": "#cfscript-code"
628
+ }
629
+ ],
640
630
  "beginCaptures": {
641
631
  "1": {
642
- "name": "punctuation.definition.hash.begin.cfscript"
632
+ "name": "entity.name.tag.operator.lock.cfscript"
633
+ },
634
+ "10": {
635
+ "name": "keyword.control.operator.catch-exception.cfscript"
636
+ },
637
+ "11": {
638
+ "name": "entity.name.tag.operator.property.cfscript"
639
+ },
640
+ "12": {
641
+ "name": "entity.name.tag.operator.interface.cfscript"
642
+ },
643
+ "13": {
644
+ "name": "entity.name.tag.operator.location.cfscript"
645
+ },
646
+ "14": {
647
+ "name": "keyword.control.operator.break.cfscript"
648
+ },
649
+ "15": {
650
+ "name": "entity.name.tag.operator.pageencoding.cfscript"
651
+ },
652
+ "16": {
653
+ "name": "entity.name.tag.operator.schedule.cfscript"
654
+ },
655
+ "17": {
656
+ "name": "keyword.control.operator.return.cfscript"
657
+ },
658
+ "18": {
659
+ "name": "keyword.control.operator.catch-exception.cfscript"
660
+ },
661
+ "19": {
662
+ "name": "keyword.control.operator.loop.cfscript"
663
+ },
664
+ "2": {
665
+ "name": "entity.name.tag.operator.transaction.cfscript"
666
+ },
667
+ "20": {
668
+ "name": "entity.name.tag.operator.trace.cfscript"
669
+ },
670
+ "21": {
671
+ "name": "entity.name.tag.operator.savecontent.cfscript"
672
+ },
673
+ "22": {
674
+ "name": "entity.name.tag.operator.http.cfscript"
675
+ },
676
+ "3": {
677
+ "name": "entity.name.tag.operator.thread.cfscript"
678
+ },
679
+ "4": {
680
+ "name": "keyword.control.operator.abort.cfscript"
681
+ },
682
+ "5": {
683
+ "name": "keyword.control.operator.exit.cfscript"
684
+ },
685
+ "6": {
686
+ "name": "entity.name.tag.operator.include.cfscript"
687
+ },
688
+ "7": {
689
+ "name": "entity.name.tag.operator.param.cfscript"
690
+ },
691
+ "8": {
692
+ "name": "entity.name.tag.operator.thread.cfscript"
693
+ },
694
+ "9": {
695
+ "name": "entity.name.tag.operator.import.cfscript"
643
696
  }
644
697
  },
645
- "end": "(#)",
646
698
  "endCaptures": {
647
699
  "1": {
648
- "name": "punctuation.definition.hash.end.cfscript"
649
- }
650
- },
651
- "name": "meta.inline.hash.cfscript",
652
- "contentName": "source.cfscript.embedded.cfscript",
653
- "patterns": [
654
- {
655
- "include": "#cfscript-code"
700
+ "name": "punctuation.terminator.cfscript"
701
+ },
702
+ "3": {
703
+ "name": "meta.brace.curly.cfscript"
656
704
  }
657
- ]
705
+ }
658
706
  }
659
707
  ]
660
708
  },
661
709
  "variables": {
662
710
  "patterns": [
663
711
  {
664
- "match": "\\b(?i:var)\\b",
665
- "name": "storage.modifier.var.cfscript"
712
+ "name": "storage.modifier.var.cfscript",
713
+ "match": "\\b(?i:var)\\b"
666
714
  },
667
715
  {
668
- "match": "\\b(?i:(this|key))(?!\\.)",
669
- "name": "variable.language.cfscript"
716
+ "name": "variable.language.cfscript",
717
+ "match": "\\b(?i:(this|key))(?!\\.)"
670
718
  },
671
719
  {
672
- "match": "(\\.)",
673
- "name": "punctuation.definition.seperator.variable.cfscript"
720
+ "name": "punctuation.definition.seperator.variable.cfscript",
721
+ "match": "(\\.)"
674
722
  },
675
723
  {
676
724
  "match": "(?x)\n (?i:\n \\b\n (application|arguments|attributes|caller|cgi|client|\n cookie|flash|form|local|request|server|session|\n this|thistag|thread|thread local|url|variables|\n super|self|argumentcollection)\n \\b\n |\n (\\w+)\n )",
@@ -684,61 +732,6 @@
684
732
  }
685
733
  }
686
734
  ]
687
- },
688
- "sql-code": {
689
- "patterns": [
690
- {
691
- "begin": "([\\w+\\.]+)\\.((?i:setsql))\\(\\s*[\"|']",
692
- "beginCaptures": {
693
- "1": {
694
- "name": "entity.name.function.query.cfscript, meta.toc-list.query.cfscript"
695
- },
696
- "2": {
697
- "name": "support.function.cfscript"
698
- }
699
- },
700
- "end": "([\"|']\\s*\\))",
701
- "endCaptures": {
702
- "1": {
703
- "name": "punctuation.parenthesis.end.cfscript"
704
- }
705
- },
706
- "name": "source.sql.embedded.cfscript",
707
- "patterns": [
708
- {
709
- "include": "#nest_hash"
710
- },
711
- {
712
- "include": "source.sql"
713
- }
714
- ]
715
- }
716
- ]
717
- },
718
- "cfcomments": {
719
- "patterns": [
720
- {
721
- "match": "<!---.*--->",
722
- "name": "comment.line.cfml"
723
- },
724
- {
725
- "begin": "<!---",
726
- "captures": {
727
- "0": {
728
- "name": "punctuation.definition.comment.cfml"
729
- }
730
- },
731
- "end": "--->",
732
- "name": "comment.block.cfml",
733
- "patterns": [
734
- {
735
- "include": "#cfcomments"
736
- }
737
- ]
738
- }
739
- ]
740
735
  }
741
- },
742
- "scopeName": "source.cfscript",
743
- "uuid": "D5324EE0-4226-11E1-B86C-0800200C9A66"
744
- }
736
+ }
737
+ }