github-linguist 4.7.6 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (361) hide show
  1. checksums.yaml +4 -4
  2. data/bin/git-linguist +1 -1
  3. data/grammars/file.lasso.json +713 -0
  4. data/grammars/module.ceylon.json +54 -0
  5. data/grammars/objdump.x86asm.json +73 -0
  6. data/grammars/source.Kotlin.json +777 -0
  7. data/grammars/source.LS.json +104 -0
  8. data/grammars/source.MCPOST.json +68 -0
  9. data/grammars/source.MOD.json +70 -0
  10. data/grammars/source.abap.json +176 -0
  11. data/grammars/source.abl.json +138 -0
  12. data/grammars/source.actionscript.3.json +1571 -0
  13. data/grammars/source.acucobol.json +16 -0
  14. data/grammars/source.ada.json +140 -0
  15. data/grammars/source.agda.json +254 -0
  16. data/grammars/source.ahk.json +171 -0
  17. data/grammars/source.alloy.json +44 -0
  18. data/grammars/source.ampl.json +157 -0
  19. data/grammars/source.antlr.json +300 -0
  20. data/grammars/source.apache-config.json +352 -0
  21. data/grammars/source.apache-config.mod_perl.json +70 -0
  22. data/grammars/source.apl.json +442 -0
  23. data/grammars/source.applescript.json +1385 -0
  24. data/grammars/source.apt.json +25 -0
  25. data/grammars/source.asm.x86.json +182 -0
  26. data/grammars/source.asp.json +157 -0
  27. data/grammars/source.aspectj.json +966 -0
  28. data/grammars/source.ats.json +240 -0
  29. data/grammars/source.autoit.3.json +132 -0
  30. data/grammars/source.awk.json +388 -0
  31. data/grammars/source.befunge.json +38 -0
  32. data/grammars/source.bf.json +36 -0
  33. data/grammars/source.bison.json +59 -0
  34. data/grammars/source.blitzmax.json +912 -0
  35. data/grammars/source.boo.json +452 -0
  36. data/grammars/source.brightauthorproject.json +29 -0
  37. data/grammars/source.brightscript.json +158 -0
  38. data/grammars/source.bro.json +409 -0
  39. data/grammars/source.bsv.json +283 -0
  40. data/grammars/source.c++.json +364 -0
  41. data/grammars/source.c++.qt.json +37 -0
  42. data/grammars/source.c.ec.json +39 -0
  43. data/grammars/source.c.json +727 -0
  44. data/grammars/source.c.platform.json +154 -0
  45. data/grammars/source.cache.cmake.json +75 -0
  46. data/grammars/source.cake.json +16 -0
  47. data/grammars/source.camlp4.ocaml.json +63 -0
  48. data/grammars/source.capnp.json +93 -0
  49. data/grammars/source.ceylon.json +77 -0
  50. data/grammars/source.cfscript.cfc.json +170 -0
  51. data/grammars/source.cfscript.json +744 -0
  52. data/grammars/source.chapel.json +240 -0
  53. data/grammars/source.cirru.json +66 -0
  54. data/grammars/source.clarion.json +159 -0
  55. data/grammars/source.click.json +99 -0
  56. data/grammars/source.clips.json +80 -0
  57. data/grammars/source.clojure.json +414 -0
  58. data/grammars/source.cm.json +54 -0
  59. data/grammars/source.cmake.json +181 -0
  60. data/grammars/source.cobol.json +498 -0
  61. data/grammars/source.coffee.json +682 -0
  62. data/grammars/source.compiled-papyrus.json +11 -0
  63. data/grammars/source.cool.json +103 -0
  64. data/grammars/source.coq.json +62 -0
  65. data/grammars/source.crystal.json +2760 -0
  66. data/grammars/source.cs.json +566 -0
  67. data/grammars/source.css.json +630 -0
  68. data/grammars/source.css.less.json +614 -0
  69. data/grammars/source.css.mss.json +256 -0
  70. data/grammars/source.csx.json +16 -0
  71. data/grammars/source.cuda-c++.json +137 -0
  72. data/grammars/source.cython.json +2108 -0
  73. data/grammars/source.d.json +726 -0
  74. data/grammars/source.dart.json +763 -0
  75. data/grammars/source.desktop.json +90 -0
  76. data/grammars/source.diff.json +162 -0
  77. data/grammars/source.dockerfile.json +89 -0
  78. data/grammars/source.dosbatch.json +70 -0
  79. data/grammars/source.dot.json +126 -0
  80. data/grammars/source.dylan.json +217 -0
  81. data/grammars/source.eiffel.json +138 -0
  82. data/grammars/source.elixir.json +971 -0
  83. data/grammars/source.elm.json +356 -0
  84. data/grammars/source.erazor.json +126 -0
  85. data/grammars/source.erlang.json +1674 -0
  86. data/grammars/source.essl.json +50 -0
  87. data/grammars/source.factor.json +258 -0
  88. data/grammars/source.fan.json +188 -0
  89. data/grammars/source.fancy.json +270 -0
  90. data/grammars/source.fish.json +214 -0
  91. data/grammars/source.forth.json +101 -0
  92. data/grammars/source.fortran.json +499 -0
  93. data/grammars/source.fortran.modern.json +226 -0
  94. data/grammars/source.fsharp.fsi.json +14 -0
  95. data/grammars/source.fsharp.fsl.json +14 -0
  96. data/grammars/source.fsharp.fsx.json +18 -0
  97. data/grammars/source.fsharp.json +527 -0
  98. data/grammars/source.gap.json +167 -0
  99. data/grammars/source.gcode.json +25 -0
  100. data/grammars/source.gdscript.json +154 -0
  101. data/grammars/source.gfm.json +1392 -0
  102. data/grammars/source.glsl.json +74 -0
  103. data/grammars/source.gnuplot.json +276 -0
  104. data/grammars/source.go.json +552 -0
  105. data/grammars/source.golo.json +182 -0
  106. data/grammars/source.gosu.2.json +163 -0
  107. data/grammars/source.grace.json +679 -0
  108. data/grammars/source.groovy.gradle.json +73 -0
  109. data/grammars/source.groovy.json +1385 -0
  110. data/grammars/source.harbour.json +450 -0
  111. data/grammars/source.haskell.json +449 -0
  112. data/grammars/source.haxe.2.json +1278 -0
  113. data/grammars/source.hss.1.json +464 -0
  114. data/grammars/source.httpspec.json +287 -0
  115. data/grammars/source.hxml.json +26 -0
  116. data/grammars/source.hy.json +270 -0
  117. data/grammars/source.idl-dlm.json +112 -0
  118. data/grammars/source.idl.json +267 -0
  119. data/grammars/source.idris.json +537 -0
  120. data/grammars/source.inform7.json +187 -0
  121. data/grammars/source.ini.json +113 -0
  122. data/grammars/source.inno.json +69 -0
  123. data/grammars/source.io.json +164 -0
  124. data/grammars/source.ioke.json +272 -0
  125. data/grammars/source.isabelle.root.json +68 -0
  126. data/grammars/source.isabelle.theory.json +106 -0
  127. data/grammars/source.j.json +49 -0
  128. data/grammars/source.jasmin.json +299 -0
  129. data/grammars/source.java-properties.json +97 -0
  130. data/grammars/source.java.json +1026 -0
  131. data/grammars/source.jcl.json +49 -0
  132. data/grammars/source.jflex.json +490 -0
  133. data/grammars/source.jq.json +218 -0
  134. data/grammars/source.js.json +1646 -0
  135. data/grammars/source.js.jsx.json +3185 -0
  136. data/grammars/source.js.objj.json +424 -0
  137. data/grammars/source.js.regexp.json +150 -0
  138. data/grammars/source.js.regexp.replacement.json +30 -0
  139. data/grammars/source.json.json +149 -0
  140. data/grammars/source.julia.json +407 -0
  141. data/grammars/source.lean.json +145 -0
  142. data/grammars/source.lid.json +23 -0
  143. data/grammars/source.lilypond.json +623 -0
  144. data/grammars/source.lisp.json +111 -0
  145. data/grammars/source.litcoffee.json +667 -0
  146. data/grammars/source.livescript.json +616 -0
  147. data/grammars/source.llvm.json +71 -0
  148. data/grammars/source.logos.json +31 -0
  149. data/grammars/source.logtalk.json +315 -0
  150. data/grammars/source.loomscript.json +214 -0
  151. data/grammars/source.lsl.json +216 -0
  152. data/grammars/source.lua.json +191 -0
  153. data/grammars/source.makefile.json +474 -0
  154. data/grammars/source.makegen.json +13 -0
  155. data/grammars/source.man.json +53 -0
  156. data/grammars/source.mask.json +795 -0
  157. data/grammars/source.mata.json +133 -0
  158. data/grammars/source.mathematica.json +429 -0
  159. data/grammars/source.matlab.json +1109 -0
  160. data/grammars/source.maxscript.json +453 -0
  161. data/grammars/source.mercury.json +251 -0
  162. data/grammars/source.meta-info.json +156 -0
  163. data/grammars/source.ml.json +291 -0
  164. data/grammars/source.modelica.json +142 -0
  165. data/grammars/source.modula2.json +103 -0
  166. data/grammars/source.monkey.json +701 -0
  167. data/grammars/source.moonscript.json +149 -0
  168. data/grammars/source.mupad.json +149 -0
  169. data/grammars/source.nant-build.json +86 -0
  170. data/grammars/source.ncl.json +66 -0
  171. data/grammars/source.nemerle.json +137 -0
  172. data/grammars/source.nesc.json +27 -0
  173. data/grammars/source.netlinx.erb.json +47 -0
  174. data/grammars/source.netlinx.json +768 -0
  175. data/grammars/source.nginx.json +824 -0
  176. data/grammars/source.nim.json +1169 -0
  177. data/grammars/source.nim_filter.json +133 -0
  178. data/grammars/source.nimcfg.json +116 -0
  179. data/grammars/source.ninja.json +66 -0
  180. data/grammars/source.nit.json +238 -0
  181. data/grammars/source.nix.json +1200 -0
  182. data/grammars/source.nmml.json +87 -0
  183. data/grammars/source.nsis.json +158 -0
  184. data/grammars/source.objc++.json +19 -0
  185. data/grammars/source.objc.json +918 -0
  186. data/grammars/source.objc.platform.json +277 -0
  187. data/grammars/source.ocaml.json +1426 -0
  188. data/grammars/source.ocamllex.json +305 -0
  189. data/grammars/source.ocamlyacc.json +346 -0
  190. data/grammars/source.octave.json +451 -0
  191. data/grammars/source.ooc.json +692 -0
  192. data/grammars/source.opa.json +206 -0
  193. data/grammars/source.opal.json +415 -0
  194. data/grammars/source.opalsysdefs.json +70 -0
  195. data/grammars/source.opencobol.json +65 -0
  196. data/grammars/source.ox.json +97 -0
  197. data/grammars/source.oz.json +84 -0
  198. data/grammars/source.papyrus-assembly.json +266 -0
  199. data/grammars/source.papyrus.json +231 -0
  200. data/grammars/source.parrot.pir.json +117 -0
  201. data/grammars/source.pascal.json +150 -0
  202. data/grammars/source.perl.6.json +318 -0
  203. data/grammars/source.perl.json +2424 -0
  204. data/grammars/source.perl6fe.json +1755 -0
  205. data/grammars/source.php.zephir.json +362 -0
  206. data/grammars/source.pig_latin.json +172 -0
  207. data/grammars/source.pike.json +62 -0
  208. data/grammars/source.plsql.oracle.json +642 -0
  209. data/grammars/source.po.json +232 -0
  210. data/grammars/source.pogoscript.json +85 -0
  211. data/grammars/source.pony.json +255 -0
  212. data/grammars/source.postscript.json +231 -0
  213. data/grammars/source.pov-ray sdl.json +88 -0
  214. data/grammars/source.powershell.json +755 -0
  215. data/grammars/source.processing.json +885 -0
  216. data/grammars/source.prolog.eclipse.json +206 -0
  217. data/grammars/source.prolog.json +292 -0
  218. data/grammars/source.protobuf.json +395 -0
  219. data/grammars/source.pubspec.json +13 -0
  220. data/grammars/source.puppet.json +494 -0
  221. data/grammars/source.purescript.json +833 -0
  222. data/grammars/source.pyjade.json +1010 -0
  223. data/grammars/source.python.django.json +34 -0
  224. data/grammars/source.python.json +3435 -0
  225. data/grammars/source.python.salt.json +13 -0
  226. data/grammars/source.qmake.json +217 -0
  227. data/grammars/source.qml.json +195 -0
  228. data/grammars/source.r.json +203 -0
  229. data/grammars/source.racket.json +119 -0
  230. data/grammars/source.rebol.json +647 -0
  231. data/grammars/source.red.json +652 -0
  232. data/grammars/source.regexp.babel.json +190 -0
  233. data/grammars/source.regexp.perl6fe.json +220 -0
  234. data/grammars/source.regexp.python.json +434 -0
  235. data/grammars/source.regexp.spin.json +188 -0
  236. data/grammars/source.renpy.json +2181 -0
  237. data/grammars/source.ruby.json +1956 -0
  238. data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
  239. data/grammars/source.rust.json +212 -0
  240. data/grammars/source.sas.json +370 -0
  241. data/grammars/source.sas_log.json +26 -0
  242. data/grammars/source.sass.json +248 -0
  243. data/grammars/source.sbt.json +36 -0
  244. data/grammars/source.scad.json +152 -0
  245. data/grammars/source.scala.json +739 -0
  246. data/grammars/source.scaml.json +466 -0
  247. data/grammars/source.scheme.json +370 -0
  248. data/grammars/source.scilab.json +103 -0
  249. data/grammars/source.scss.json +1321 -0
  250. data/grammars/source.shell.json +1308 -0
  251. data/grammars/source.smali.json +1671 -0
  252. data/grammars/source.smalltalk.json +135 -0
  253. data/grammars/source.smt.json +173 -0
  254. data/grammars/source.sp.json +118 -0
  255. data/grammars/source.sparql.json +23 -0
  256. data/grammars/source.spin.json +936 -0
  257. data/grammars/source.sqf.json +112 -0
  258. data/grammars/source.sql.json +473 -0
  259. data/grammars/source.stan.json +312 -0
  260. data/grammars/source.stata.json +208 -0
  261. data/grammars/source.strings.json +53 -0
  262. data/grammars/source.stylus.json +1017 -0
  263. data/grammars/source.supercollider.json +100 -0
  264. data/grammars/source.swift.json +983 -0
  265. data/grammars/source.systemverilog.json +1050 -0
  266. data/grammars/source.tcl.json +277 -0
  267. data/grammars/source.tea.json +180 -0
  268. data/grammars/source.thrift.json +704 -0
  269. data/grammars/source.toml.json +327 -0
  270. data/grammars/source.ts.json +1188 -0
  271. data/grammars/source.tsx.json +1421 -0
  272. data/grammars/source.turtle.json +505 -0
  273. data/grammars/source.txl.json +62 -0
  274. data/grammars/source.ucfconstraints.json +72 -0
  275. data/grammars/source.ur.json +43 -0
  276. data/grammars/source.vala.json +814 -0
  277. data/grammars/source.varnish.vcl.json +343 -0
  278. data/grammars/source.vbnet.json +338 -0
  279. data/grammars/source.verilog.json +302 -0
  280. data/grammars/source.vhdl.json +1349 -0
  281. data/grammars/source.viml.json +224 -0
  282. data/grammars/source.webidl.json +814 -0
  283. data/grammars/source.x10.json +68 -0
  284. data/grammars/source.x86asm.json +47 -0
  285. data/grammars/source.xc.json +379 -0
  286. data/grammars/source.xq.json +241 -0
  287. data/grammars/source.xquery.json +193 -0
  288. data/grammars/source.xtend.json +733 -0
  289. data/grammars/source.yaml.json +341 -0
  290. data/grammars/source.yaml.salt.json +348 -0
  291. data/grammars/source.yang.json +81 -0
  292. data/grammars/text.bibtex.json +251 -0
  293. data/grammars/text.cfml.basic.json +736 -0
  294. data/grammars/text.dart-analysis-output.json +162 -0
  295. data/grammars/text.dart-doccomments.json +19 -0
  296. data/grammars/text.elixir.json +45 -0
  297. data/grammars/text.gherkin.feature.json +135 -0
  298. data/grammars/text.groff.json +113 -0
  299. data/grammars/text.haml.json +299 -0
  300. data/grammars/text.html.abl.json +75 -0
  301. data/grammars/text.html.asciidoc.json +492 -0
  302. data/grammars/text.html.asdoc.json +541 -0
  303. data/grammars/text.html.asp.json +58 -0
  304. data/grammars/text.html.basic.json +552 -0
  305. data/grammars/text.html.cfm.json +811 -0
  306. data/grammars/text.html.creole.json +329 -0
  307. data/grammars/text.html.django.json +69 -0
  308. data/grammars/text.html.elixir.json +18 -0
  309. data/grammars/text.html.erb.json +157 -0
  310. data/grammars/text.html.erlang.yaws.json +72 -0
  311. data/grammars/text.html.factor.json +25 -0
  312. data/grammars/text.html.ftl.json +85 -0
  313. data/grammars/text.html.handlebars.json +838 -0
  314. data/grammars/text.html.jsp.json +1203 -0
  315. data/grammars/text.html.liquid.json +35 -0
  316. data/grammars/text.html.mako.json +729 -0
  317. data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
  318. data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
  319. data/grammars/text.html.mediawiki.json +972 -0
  320. data/grammars/text.html.php.json +2615 -0
  321. data/grammars/text.html.slash.json +313 -0
  322. data/grammars/text.html.smarty.json +216 -0
  323. data/grammars/text.html.ssp.json +49 -0
  324. data/grammars/text.html.tcl.json +44 -0
  325. data/grammars/text.html.twig.json +1353 -0
  326. data/grammars/text.html.vue.json +642 -0
  327. data/grammars/text.idl-idldoc.json +14 -0
  328. data/grammars/text.jade.json +1024 -0
  329. data/grammars/text.junit-test-report.json +92 -0
  330. data/grammars/text.log.latex.json +86 -0
  331. data/grammars/text.python.console.json +25 -0
  332. data/grammars/text.python.traceback.json +46 -0
  333. data/grammars/text.rdoc.json +48 -0
  334. data/grammars/text.restructuredtext.json +561 -0
  335. data/grammars/text.robot.json +73 -0
  336. data/grammars/text.shell-session.json +32 -0
  337. data/grammars/text.slim.json +527 -0
  338. data/grammars/text.tex.json +271 -0
  339. data/grammars/text.tex.latex.beamer.json +63 -0
  340. data/grammars/text.tex.latex.haskell.json +56 -0
  341. data/grammars/text.tex.latex.json +1013 -0
  342. data/grammars/text.tex.latex.memoir.json +136 -0
  343. data/grammars/text.tex.latex.rd.json +117 -0
  344. data/grammars/text.xml.ant.json +202 -0
  345. data/grammars/text.xml.flex-config.json +2634 -0
  346. data/grammars/text.xml.genshi.json +34 -0
  347. data/grammars/text.xml.json +364 -0
  348. data/grammars/text.xml.pom.json +774 -0
  349. data/grammars/text.xml.xsl.json +94 -0
  350. data/grammars/text.zone_file.json +72 -0
  351. data/lib/linguist.rb +79 -0
  352. data/lib/linguist/blob_helper.rb +2 -2
  353. data/lib/linguist/grammars.rb +10 -0
  354. data/lib/linguist/heuristics.rb +17 -1
  355. data/lib/linguist/language.rb +2 -36
  356. data/lib/linguist/languages.json +1 -1
  357. data/lib/linguist/languages.yml +50 -2
  358. data/lib/linguist/samples.json +2580 -116
  359. data/lib/linguist/vendor.yml +11 -1
  360. data/lib/linguist/version.rb +1 -1
  361. metadata +365 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baca0fdbef284c70eee7b60478eb1be0e736f5a2
4
- data.tar.gz: ca9ff01ba2a38dd7c9dc7419a8ed04f2762915e8
3
+ metadata.gz: 0c3ed4975037b73a7046ebe87f7e364c73d3812f
4
+ data.tar.gz: d4cd16282213e36fa4d4f4b115ffa613ada41e74
5
5
  SHA512:
6
- metadata.gz: 7893c0021efb317b3dff38fab15dfea1324226e3d67c0b1966d7b880036743c3ba2cfd059b4a29cccaf4fc796a698710ad391d0ed1f122b77b9a8a62a69426fb
7
- data.tar.gz: f8e2745448ea47dee5d7f8e0ccd289c1a90607855371aa2a8bb92318b195c08b745c9484810f5ba19e910ced16b8b4fff2ca9e3ce854c22b37effcfd545315ce
6
+ metadata.gz: 971c1998a6ac1954cfbdbd416bd4a657f20047eef8eb5226702ec7112937d9d6f5fd49aaaa59e0979420ef863bb1691555b2fddee9710a51ba1c1ad9a2319b32
7
+ data.tar.gz: 3eb483a513e2dfdb438dd7cd5e92dbfb543e28ad1c17566cd4ba14bbc39434fdb4b0c7ed5d31e3403c8f247aac958607f96ef705cbabc0d2f9816647c3e55530
data/bin/git-linguist CHANGED
@@ -111,7 +111,7 @@ def git_linguist(args)
111
111
  parser.parse!(args)
112
112
 
113
113
  git_dir = `git rev-parse --git-dir`.strip
114
- raise "git-linguist must be ran in a Git repository" unless $?.success?
114
+ raise "git-linguist must be ran in a Git repository (#{Dir.pwd})" unless $?.success?
115
115
  wrapper = GitLinguist.new(git_dir, commit, incremental)
116
116
 
117
117
  case args.pop
@@ -0,0 +1,713 @@
1
+ {
2
+ "fileTypes": [
3
+ "lasso",
4
+ "las",
5
+ "inc"
6
+ ],
7
+ "firstLineMatch": "<\\?(?i:=|lasso(script)?)",
8
+ "foldingStartMarker": "(?x)(\n\t\t<\\?(?i:=|lasso(script)?)\\b\n\t\t|(?i:if|inline|iterate|loop|match|protect|records|resultset|rows|while)(\\(|:).*(;|$)\n\t\t|\\/\\*(?!.*\\*\\/)\n\t |\\{\\s*$\n\t |\\{\\^\\s*$\n\t\t)",
9
+ "foldingStopMarker": "(?x)(\n\t\t\\s*\\?>\n\t\t|/(?i:if|inline|iterate|loop|match|protect|records|resultset|rows|while)(;|$)\n\t\t|^(?!.*?\\/\\*).*?\\*\\/\n\t\t|^\\s*\\}\n\t\t|^\\s*\\^\\}\n\t\t)",
10
+ "name": "Lasso",
11
+ "patterns": [
12
+ {
13
+ "name": "text.html.basic",
14
+ "begin": "(?m)\\A\\s*(?=<|\\[)",
15
+ "end": "\\a",
16
+ "patterns": [
17
+ {
18
+ "include": "#lasso-html"
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "name": "source.lasso",
24
+ "begin": "\\A",
25
+ "end": "\\a",
26
+ "patterns": [
27
+ {
28
+ "include": "#lasso"
29
+ }
30
+ ]
31
+ }
32
+ ],
33
+ "repository": {
34
+ "lasso": {
35
+ "patterns": [
36
+ {
37
+ "name": "meta.definition.type_trait.start.lasso",
38
+ "begin": "(?i)\\b(define)\\s+(?=[_a-z][_0-9a-z]*\\s*=>\\s*(type|trait|thread)\\s*\\{)",
39
+ "beginCaptures": {
40
+ "1": {
41
+ "name": "keyword.definition.lasso"
42
+ }
43
+ },
44
+ "end": "(=>)\\s*(type|trait|thread)\\s*\\{",
45
+ "endCaptures": {
46
+ "1": {
47
+ "name": "keyword.operator.association.lasso"
48
+ },
49
+ "2": {
50
+ "name": "keyword.descriptors.lasso"
51
+ }
52
+ },
53
+ "patterns": [
54
+ {
55
+ "match": "[_a-z][_0-9a-z]*",
56
+ "name": "meta.name.type_trait.lasso"
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "name": "meta.definition.method.start.lasso",
62
+ "begin": "(?i)\\b(define)\\s+(?=[_a-z][_0-9a-z]*\\s*=>|\\()",
63
+ "beginCaptures": {
64
+ "1": {
65
+ "name": "keyword.definition.lasso"
66
+ }
67
+ },
68
+ "end": "\\(|(=>)",
69
+ "endCaptures": {
70
+ "1": {
71
+ "name": "keyword.operator.association.lasso"
72
+ }
73
+ },
74
+ "patterns": [
75
+ {
76
+ "match": "[_a-z][_0-9a-z]*",
77
+ "name": "meta.name.method.lasso"
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "match": "(?i)\\b(abort|case|define|else|if|inline|iterate|loop|loop_abort|loop_continue|loop_count|loop_key|loop_value|match|protect|records|resultset|return|rows|while)\\b",
83
+ "name": "keyword.control.lasso"
84
+ },
85
+ {
86
+ "match": "(?i)\\b(library|include)(_once)?\\b",
87
+ "name": "keyword.control.import.lasso"
88
+ },
89
+ {
90
+ "match": "(?i)\\b(public|private|protected|data|type|thread|trait|import|parent|provide|require)\\b",
91
+ "name": "keyword.descriptors.lasso"
92
+ },
93
+ {
94
+ "match": "(?i)\\b(array|action_params?|boolean|bytes|capture|curl|currency|database_registry|date|dateandtime|decimal|delve|dir|duration|eacher|file|generateForEachKeyed|generateForEachUnKeyed|generateSeries|inline_type|integer|list|list_node|literal|local|locale|map|map_node\n\t\t\t\t\t|net_tcp|net_tcpssl|net_udp|net_udppacket|object|pair|pairup|paramdesc|pdf_barcode|pdf_chunk|pdf_color|pdf_doc|pdf_font|pdf_hyphenator|pdf_image|pdf_list|pdf_paragraph|pdf_phrase|pdf_read|pdf_table|pdf_text|pdf_typebase\n\t\t\t\t\t|percent|queriable_select|queriable_groupBy|queriable_grouping|queriable_groupJoin|queriable_join|queriable_orderBy|queriable_orderByDescending|queriable_selectMany|queriable_skip|queriable_take|queriable_thenBy|queriable_thenByDescending|queriable_where\n\t\t\t\t\t|queue|repeat|serialization_element|serialization_object_identity_compare|serialization_reader|serialization_writer|serialization_writer_ref|serialization_writer_standin|set|scientific\n\t\t\t\t\t|sqlite_column|sqlite_columnScanner|sqlite_currentrow|sqlite_db|sqlite_expressionGenerator|sqlite_query_stat|sqlite_results|sqlite_table|stack|staticarray|string|tie|timeonly|tree_base|tree_node|tree_nullNode|user_registry|var(iable)?|web_request|web_response|xml_element|xml_namednodemap_attr|xml_node|xml_nodelist|zip|zip_file)\\b",
95
+ "name": "storage.type.lasso"
96
+ },
97
+ {
98
+ "comment": "This is for the ljapi types",
99
+ "match": "(?i)\\b(jchar|jchararray|jbyte|jbytearray|jfloat|jint|jshort)\\b",
100
+ "name": "storage.type.lasso"
101
+ },
102
+ {
103
+ "match": "\\b(?i:void|null|true|false)\\b",
104
+ "name": "constant.language.lasso"
105
+ },
106
+ {
107
+ "begin": "\"",
108
+ "end": "\"",
109
+ "name": "string.quoted.double.lasso",
110
+ "patterns": [
111
+ {
112
+ "match": "\\\\.",
113
+ "name": "constant.character.escape.lasso"
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "begin": "'",
119
+ "end": "'",
120
+ "name": "string.quoted.single.lasso",
121
+ "patterns": [
122
+ {
123
+ "match": "\\\\.",
124
+ "name": "constant.character.escape.lasso"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "begin": "`",
130
+ "end": "`",
131
+ "name": "string.quoted.backtick.lasso"
132
+ },
133
+ {
134
+ "begin": "/\\*\\*(\\!)?\\s*$",
135
+ "comment": "This now only highlights a docblock if the first line contains only /**\n\t\t\t\t\t\t\t\t- this is to stop highlighting everything as invalid when people do comment banners with /******** ...\n\t\t\t\t\t\t\t\t- Now matches /**! too - used for docblock templates",
136
+ "end": "\\*/",
137
+ "name": "comment.block.documentation.lasso"
138
+ },
139
+ {
140
+ "begin": "/\\*",
141
+ "end": "\\*/",
142
+ "name": "comment.block.lasso"
143
+ },
144
+ {
145
+ "match": "(//).*?($\\n?|(?=\\?>))",
146
+ "name": "comment.line.double-slash.lasso"
147
+ },
148
+ {
149
+ "match": "\\$[a-zA-Z_][a-zA-Z0-9_.]*",
150
+ "name": "variable.other.thread.lasso"
151
+ },
152
+ {
153
+ "match": "#[a-zA-Z_][a-zA-Z0-9_.]*",
154
+ "name": "variable.other.local.lasso"
155
+ },
156
+ {
157
+ "match": "(\\s#1\\s|\\b(?i:self)\\b)",
158
+ "name": "variable.language.lasso"
159
+ },
160
+ {
161
+ "match": "(\\-\\-|\\+\\+)",
162
+ "name": "keyword.operator.increment-decrement.lasso"
163
+ },
164
+ {
165
+ "match": "(\\-|\\+|\\*|/|%)",
166
+ "name": "keyword.operator.arithmetic.lasso"
167
+ },
168
+ {
169
+ "match": "(?i)(!|&&|\\|\\||\\?|\\bnot\\b|\\band\\b|\\bor\\b)",
170
+ "name": "keyword.operator.logical.lasso"
171
+ },
172
+ {
173
+ "match": "(=|:=|\\+=|\\-=|/=|%=)",
174
+ "name": "keyword.operator.assignment.lasso"
175
+ },
176
+ {
177
+ "match": "(===|==|!==|!=|<=|>=|<|>|>>|!>>)",
178
+ "name": "keyword.operator.comparison.lasso"
179
+ },
180
+ {
181
+ "match": "(->|&)",
182
+ "name": "keyword.operator.target.lasso"
183
+ },
184
+ {
185
+ "match": "(=>)",
186
+ "name": "keyword.operator.association.lasso"
187
+ }
188
+ ]
189
+ },
190
+ "lasso-html": {
191
+ "patterns": [
192
+ {
193
+ "begin": "(<)([a-zA-Z0-9:]++)(?=[^>]*></\\2>)",
194
+ "beginCaptures": {
195
+ "1": {
196
+ "name": "punctuation.definition.tag.html"
197
+ },
198
+ "2": {
199
+ "name": "entity.name.tag.html"
200
+ }
201
+ },
202
+ "end": "(>(<)/)(\\2)(>)",
203
+ "endCaptures": {
204
+ "1": {
205
+ "name": "punctuation.definition.tag.html"
206
+ },
207
+ "2": {
208
+ "name": "meta.scope.between-tag-pair.html"
209
+ },
210
+ "3": {
211
+ "name": "entity.name.tag.html"
212
+ },
213
+ "4": {
214
+ "name": "punctuation.definition.tag.html"
215
+ }
216
+ },
217
+ "name": "meta.tag.any.html",
218
+ "patterns": [
219
+ {
220
+ "include": "#tag-stuff"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "begin": "(<\\?)(xml)",
226
+ "captures": {
227
+ "1": {
228
+ "name": "punctuation.definition.tag.html"
229
+ },
230
+ "2": {
231
+ "name": "entity.name.tag.xml.html"
232
+ }
233
+ },
234
+ "end": "(\\?>)",
235
+ "name": "meta.tag.preprocessor.xml.html",
236
+ "patterns": [
237
+ {
238
+ "include": "#tag-generic-attribute"
239
+ },
240
+ {
241
+ "include": "#string-double-quoted"
242
+ },
243
+ {
244
+ "include": "#string-single-quoted"
245
+ }
246
+ ]
247
+ },
248
+ {
249
+ "begin": "<!--",
250
+ "captures": {
251
+ "0": {
252
+ "name": "punctuation.definition.comment.html"
253
+ }
254
+ },
255
+ "end": "--\\s*>",
256
+ "name": "comment.block.html",
257
+ "patterns": [
258
+ {
259
+ "match": "--",
260
+ "name": "invalid.illegal.bad-comments-or-CDATA.html"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "begin": "<!",
266
+ "captures": {
267
+ "0": {
268
+ "name": "punctuation.definition.tag.html"
269
+ }
270
+ },
271
+ "end": ">",
272
+ "name": "meta.tag.sgml.html",
273
+ "patterns": [
274
+ {
275
+ "begin": "(DOCTYPE)",
276
+ "captures": {
277
+ "1": {
278
+ "name": "entity.name.tag.doctype.html"
279
+ }
280
+ },
281
+ "end": "(?=>)",
282
+ "name": "meta.tag.sgml.doctype.html",
283
+ "patterns": [
284
+ {
285
+ "match": "\"[^\">]*\"",
286
+ "name": "string.quoted.double.doctype.identifiers-and-DTDs.html"
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "begin": "\\[CDATA\\[",
292
+ "end": "]](?=>)",
293
+ "name": "constant.other.inline-data.html"
294
+ },
295
+ {
296
+ "match": "(\\s*)(?!--|>)\\S(\\s*)",
297
+ "name": "invalid.illegal.bad-comments-or-CDATA.html"
298
+ }
299
+ ]
300
+ },
301
+ {
302
+ "include": "#embedded-code"
303
+ },
304
+ {
305
+ "begin": "(?:^\\s+)?(<)((?i:style))\\b(?![^>]*/>)",
306
+ "captures": {
307
+ "1": {
308
+ "name": "punctuation.definition.tag.html"
309
+ },
310
+ "2": {
311
+ "name": "entity.name.tag.style.html"
312
+ },
313
+ "3": {
314
+ "name": "punctuation.definition.tag.html"
315
+ }
316
+ },
317
+ "end": "(</)((?i:style))(>)(?:\\s*\\n)?",
318
+ "name": "source.css.embedded.html",
319
+ "patterns": [
320
+ {
321
+ "include": "#tag-stuff"
322
+ },
323
+ {
324
+ "begin": "(>)",
325
+ "beginCaptures": {
326
+ "1": {
327
+ "name": "punctuation.definition.tag.html"
328
+ }
329
+ },
330
+ "end": "(?=</(?i:style))",
331
+ "patterns": [
332
+ {
333
+ "include": "#embedded-code"
334
+ },
335
+ {
336
+ "include": "source.css"
337
+ }
338
+ ]
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ "begin": "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>)",
344
+ "beginCaptures": {
345
+ "1": {
346
+ "name": "punctuation.definition.tag.html"
347
+ },
348
+ "2": {
349
+ "name": "entity.name.tag.script.html"
350
+ }
351
+ },
352
+ "end": "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?",
353
+ "endCaptures": {
354
+ "2": {
355
+ "name": "punctuation.definition.tag.html"
356
+ }
357
+ },
358
+ "name": "source.js.embedded.html",
359
+ "patterns": [
360
+ {
361
+ "include": "#tag-stuff"
362
+ },
363
+ {
364
+ "begin": "(?<!</(?:script|SCRIPT))(>)",
365
+ "captures": {
366
+ "1": {
367
+ "name": "punctuation.definition.tag.html"
368
+ },
369
+ "2": {
370
+ "name": "entity.name.tag.script.html"
371
+ }
372
+ },
373
+ "end": "(</)((?i:script))",
374
+ "patterns": [
375
+ {
376
+ "captures": {
377
+ "1": {
378
+ "name": "punctuation.definition.comment.js"
379
+ }
380
+ },
381
+ "match": "(//).*?((?=</script)|$\\n?)",
382
+ "name": "comment.line.double-slash.js"
383
+ },
384
+ {
385
+ "begin": "/\\*",
386
+ "captures": {
387
+ "0": {
388
+ "name": "punctuation.definition.comment.js"
389
+ }
390
+ },
391
+ "end": "\\*/|(?=</script)",
392
+ "name": "comment.block.js"
393
+ },
394
+ {
395
+ "include": "source.js"
396
+ }
397
+ ]
398
+ }
399
+ ]
400
+ },
401
+ {
402
+ "begin": "(</?)((?i:body|head|html)\\b)",
403
+ "captures": {
404
+ "1": {
405
+ "name": "punctuation.definition.tag.html"
406
+ },
407
+ "2": {
408
+ "name": "entity.name.tag.structure.any.html"
409
+ }
410
+ },
411
+ "end": "(>)",
412
+ "name": "meta.tag.structure.any.html",
413
+ "patterns": [
414
+ {
415
+ "include": "#tag-stuff"
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ "begin": "(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)",
421
+ "beginCaptures": {
422
+ "1": {
423
+ "name": "punctuation.definition.tag.begin.html"
424
+ },
425
+ "2": {
426
+ "name": "entity.name.tag.block.any.html"
427
+ }
428
+ },
429
+ "end": "(>)",
430
+ "endCaptures": {
431
+ "1": {
432
+ "name": "punctuation.definition.tag.end.html"
433
+ }
434
+ },
435
+ "name": "meta.tag.block.any.html",
436
+ "patterns": [
437
+ {
438
+ "include": "#tag-stuff"
439
+ }
440
+ ]
441
+ },
442
+ {
443
+ "begin": "(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)",
444
+ "beginCaptures": {
445
+ "1": {
446
+ "name": "punctuation.definition.tag.begin.html"
447
+ },
448
+ "2": {
449
+ "name": "entity.name.tag.inline.any.html"
450
+ }
451
+ },
452
+ "end": "((?: ?/)?>)",
453
+ "endCaptures": {
454
+ "1": {
455
+ "name": "punctuation.definition.tag.end.html"
456
+ }
457
+ },
458
+ "name": "meta.tag.inline.any.html",
459
+ "patterns": [
460
+ {
461
+ "include": "#tag-stuff"
462
+ }
463
+ ]
464
+ },
465
+ {
466
+ "begin": "(</?)([a-zA-Z0-9:]+)",
467
+ "beginCaptures": {
468
+ "1": {
469
+ "name": "punctuation.definition.tag.begin.html"
470
+ },
471
+ "2": {
472
+ "name": "entity.name.tag.other.html"
473
+ }
474
+ },
475
+ "end": "(>)",
476
+ "endCaptures": {
477
+ "1": {
478
+ "name": "punctuation.definition.tag.end.html"
479
+ }
480
+ },
481
+ "name": "meta.tag.other.html",
482
+ "patterns": [
483
+ {
484
+ "include": "#tag-stuff"
485
+ }
486
+ ]
487
+ },
488
+ {
489
+ "include": "#entities"
490
+ },
491
+ {
492
+ "match": "<>",
493
+ "name": "invalid.illegal.incomplete.html"
494
+ },
495
+ {
496
+ "match": "<",
497
+ "name": "invalid.illegal.bad-angle-bracket.html"
498
+ }
499
+ ]
500
+ },
501
+ "embedded-code": {
502
+ "patterns": [
503
+ {
504
+ "include": "#lasso_script"
505
+ },
506
+ {
507
+ "include": "#lasso_brackets"
508
+ }
509
+ ]
510
+ },
511
+ "entities": {
512
+ "patterns": [
513
+ {
514
+ "captures": {
515
+ "1": {
516
+ "name": "punctuation.definition.entity.html"
517
+ },
518
+ "3": {
519
+ "name": "punctuation.definition.entity.html"
520
+ }
521
+ },
522
+ "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
523
+ "name": "constant.character.entity.html"
524
+ },
525
+ {
526
+ "match": "&",
527
+ "name": "invalid.illegal.bad-ampersand.html"
528
+ }
529
+ ]
530
+ },
531
+ "lasso_script": {
532
+ "begin": "(<\\?)(?i:=|lasso(script)?)",
533
+ "end": "(\\?>)",
534
+ "name": "source.lasso.embedded.html",
535
+ "patterns": [
536
+ {
537
+ "include": "#lasso"
538
+ }
539
+ ]
540
+ },
541
+ "lasso_brackets": {
542
+ "begin": "\\[",
543
+ "end": "\\]",
544
+ "name": "source.lasso.embedded.html",
545
+ "patterns": [
546
+ {
547
+ "include": "#lasso"
548
+ }
549
+ ]
550
+ },
551
+ "smarty": {
552
+ "patterns": [
553
+ {
554
+ "begin": "(\\{(literal)\\})",
555
+ "captures": {
556
+ "1": {
557
+ "name": "source.smarty.embedded.html"
558
+ },
559
+ "2": {
560
+ "name": "support.function.built-in.smarty"
561
+ }
562
+ },
563
+ "end": "(\\{/(literal)\\})"
564
+ },
565
+ {
566
+ "begin": "{{|{",
567
+ "disabled": 1,
568
+ "end": "}}|}",
569
+ "name": "source.smarty.embedded.html",
570
+ "patterns": [
571
+ {
572
+ "include": "source.smarty"
573
+ }
574
+ ]
575
+ }
576
+ ]
577
+ },
578
+ "string-double-quoted": {
579
+ "begin": "\"",
580
+ "beginCaptures": {
581
+ "0": {
582
+ "name": "punctuation.definition.string.begin.html"
583
+ }
584
+ },
585
+ "end": "\"",
586
+ "endCaptures": {
587
+ "0": {
588
+ "name": "punctuation.definition.string.end.html"
589
+ }
590
+ },
591
+ "name": "string.quoted.double.html",
592
+ "patterns": [
593
+ {
594
+ "include": "#embedded-code"
595
+ },
596
+ {
597
+ "include": "#entities"
598
+ }
599
+ ]
600
+ },
601
+ "string-single-quoted": {
602
+ "begin": "'",
603
+ "beginCaptures": {
604
+ "0": {
605
+ "name": "punctuation.definition.string.begin.html"
606
+ }
607
+ },
608
+ "end": "'",
609
+ "endCaptures": {
610
+ "0": {
611
+ "name": "punctuation.definition.string.end.html"
612
+ }
613
+ },
614
+ "name": "string.quoted.single.html",
615
+ "patterns": [
616
+ {
617
+ "include": "#embedded-code"
618
+ },
619
+ {
620
+ "include": "#entities"
621
+ }
622
+ ]
623
+ },
624
+ "tag-generic-attribute": {
625
+ "match": "\\b([a-zA-Z\\-:]+)",
626
+ "name": "entity.other.attribute-name.html"
627
+ },
628
+ "tag-id-attribute": {
629
+ "begin": "\\b(id)\\b\\s*(=)",
630
+ "captures": {
631
+ "1": {
632
+ "name": "entity.other.attribute-name.id.html"
633
+ },
634
+ "2": {
635
+ "name": "punctuation.separator.key-value.html"
636
+ }
637
+ },
638
+ "end": "(?<='|\")",
639
+ "name": "meta.attribute-with-value.id.html",
640
+ "patterns": [
641
+ {
642
+ "begin": "\"",
643
+ "beginCaptures": {
644
+ "0": {
645
+ "name": "punctuation.definition.string.begin.html"
646
+ }
647
+ },
648
+ "contentName": "meta.toc-list.id.html",
649
+ "end": "\"",
650
+ "endCaptures": {
651
+ "0": {
652
+ "name": "punctuation.definition.string.end.html"
653
+ }
654
+ },
655
+ "name": "string.quoted.double.html",
656
+ "patterns": [
657
+ {
658
+ "include": "#embedded-code"
659
+ },
660
+ {
661
+ "include": "#entities"
662
+ }
663
+ ]
664
+ },
665
+ {
666
+ "begin": "'",
667
+ "beginCaptures": {
668
+ "0": {
669
+ "name": "punctuation.definition.string.begin.html"
670
+ }
671
+ },
672
+ "contentName": "meta.toc-list.id.html",
673
+ "end": "'",
674
+ "endCaptures": {
675
+ "0": {
676
+ "name": "punctuation.definition.string.end.html"
677
+ }
678
+ },
679
+ "name": "string.quoted.single.html",
680
+ "patterns": [
681
+ {
682
+ "include": "#embedded-code"
683
+ },
684
+ {
685
+ "include": "#entities"
686
+ }
687
+ ]
688
+ }
689
+ ]
690
+ },
691
+ "tag-stuff": {
692
+ "patterns": [
693
+ {
694
+ "include": "#tag-id-attribute"
695
+ },
696
+ {
697
+ "include": "#tag-generic-attribute"
698
+ },
699
+ {
700
+ "include": "#string-double-quoted"
701
+ },
702
+ {
703
+ "include": "#string-single-quoted"
704
+ },
705
+ {
706
+ "include": "#embedded-code"
707
+ }
708
+ ]
709
+ }
710
+ },
711
+ "scopeName": "file.lasso",
712
+ "uuid": "ED5E138D-C4A8-4F7A-AAC6-74C315471D00"
713
+ }