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,11 +1,6 @@
1
1
  {
2
- "scopeName": "source.css",
3
2
  "name": "CSS",
4
- "fileTypes": [
5
- "css",
6
- "css.erb"
7
- ],
8
- "firstLineMatch": "(?xi)\n# Emacs modeline\n-\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)\n css\n(?=[\\s;]|(?<![-*])-\\*-).*?-\\*-\n|\n# Vim modeline\n(?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s*set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=\n css\n(?=\\s|:|$)",
3
+ "scopeName": "source.css",
9
4
  "patterns": [
10
5
  {
11
6
  "include": "#comment-block"
@@ -30,16 +25,12 @@
30
25
  "at-rules": {
31
26
  "patterns": [
32
27
  {
28
+ "name": "meta.at-rule.charset.css",
33
29
  "begin": "\\A(?:\\xEF\\xBB\\xBF)?(?i:(?=\\s*@charset\\b))",
34
30
  "end": ";|(?=$)",
35
- "endCaptures": {
36
- "0": {
37
- "name": "punctuation.terminator.rule.css"
38
- }
39
- },
40
- "name": "meta.at-rule.charset.css",
41
31
  "patterns": [
42
32
  {
33
+ "match": "(?x) # Possible errors:\n\\G\n((?!@charset)@\\w+) # Not lowercase (@charset is case-sensitive)\n|\n\\G(\\s+) # Preceding whitespace\n|\n(@charset\\S[^;]*) # No whitespace after @charset\n|\n(?\u003c=@charset) # Before quoted charset name\n(\\x20{2,}|\\t+) # More than one space used, or a tab\n|\n(?\u003c=@charset\\x20) # Beginning of charset name\n([^\";]+) # Not double-quoted\n|\n(\"[^\"]+$) # Unclosed quote\n|\n(?\u003c=\") # After charset name\n([^;]+) # Unexpected junk instead of semicolon",
43
34
  "captures": {
44
35
  "1": {
45
36
  "name": "invalid.illegal.not-lowercase.charset.css"
@@ -62,10 +53,10 @@
62
53
  "7": {
63
54
  "name": "invalid.illegal.unexpected-characters.charset.css"
64
55
  }
65
- },
66
- "match": "(?x) # Possible errors:\n\\G\n((?!@charset)@\\w+) # Not lowercase (@charset is case-sensitive)\n|\n\\G(\\s+) # Preceding whitespace\n|\n(@charset\\S[^;]*) # No whitespace after @charset\n|\n(?<=@charset) # Before quoted charset name\n(\\x20{2,}|\\t+) # More than one space used, or a tab\n|\n(?<=@charset\\x20) # Beginning of charset name\n([^\";]+) # Not double-quoted\n|\n(\"[^\"]+$) # Unclosed quote\n|\n(?<=\") # After charset name\n([^;]+) # Unexpected junk instead of semicolon"
56
+ }
67
57
  },
68
58
  {
59
+ "match": "((@)charset)(?=\\s)",
69
60
  "captures": {
70
61
  "1": {
71
62
  "name": "keyword.control.at-rule.charset.css"
@@ -73,54 +64,45 @@
73
64
  "2": {
74
65
  "name": "punctuation.definition.keyword.css"
75
66
  }
76
- },
77
- "match": "((@)charset)(?=\\s)"
67
+ }
78
68
  },
79
69
  {
70
+ "name": "string.quoted.double.css",
80
71
  "begin": "\"",
72
+ "end": "\"|$",
73
+ "patterns": [
74
+ {
75
+ "name": "invalid.illegal.unclosed.string.css",
76
+ "begin": "(?:\\G|^)(?=(?:[^\"])+$)",
77
+ "end": "$"
78
+ }
79
+ ],
81
80
  "beginCaptures": {
82
81
  "0": {
83
82
  "name": "punctuation.definition.string.begin.css"
84
83
  }
85
84
  },
86
- "end": "\"|$",
87
85
  "endCaptures": {
88
86
  "0": {
89
87
  "name": "punctuation.definition.string.end.css"
90
88
  }
91
- },
92
- "name": "string.quoted.double.css",
93
- "patterns": [
94
- {
95
- "begin": "(?:\\G|^)(?=(?:[^\"])+$)",
96
- "end": "$",
97
- "name": "invalid.illegal.unclosed.string.css"
98
- }
99
- ]
100
- }
101
- ]
102
- },
103
- {
104
- "begin": "(?i)((@)import)(?:\\s+|$|(?=['\"]|/\\*))",
105
- "beginCaptures": {
106
- "1": {
107
- "name": "keyword.control.at-rule.import.css"
108
- },
109
- "2": {
110
- "name": "punctuation.definition.keyword.css"
89
+ }
111
90
  }
112
- },
113
- "end": ";",
91
+ ],
114
92
  "endCaptures": {
115
93
  "0": {
116
94
  "name": "punctuation.terminator.rule.css"
117
95
  }
118
- },
96
+ }
97
+ },
98
+ {
119
99
  "name": "meta.at-rule.import.css",
100
+ "begin": "(?i)((@)import)(?:\\s+|$|(?=['\"]|/\\*))",
101
+ "end": ";",
120
102
  "patterns": [
121
103
  {
122
104
  "begin": "\\G\\s*(?=/\\*)",
123
- "end": "(?<=\\*/)\\s*",
105
+ "end": "(?\u003c=\\*/)\\s*",
124
106
  "patterns": [
125
107
  {
126
108
  "include": "#comment-block"
@@ -136,20 +118,25 @@
136
118
  {
137
119
  "include": "#media-query-list"
138
120
  }
139
- ]
140
- },
141
- {
142
- "begin": "(?i)((@)font-face)(?=\\s*|{|/\\*|$)",
121
+ ],
143
122
  "beginCaptures": {
144
123
  "1": {
145
- "name": "keyword.control.at-rule.font-face.css"
124
+ "name": "keyword.control.at-rule.import.css"
146
125
  },
147
126
  "2": {
148
127
  "name": "punctuation.definition.keyword.css"
149
128
  }
150
129
  },
151
- "end": "(?!\\G)",
130
+ "endCaptures": {
131
+ "0": {
132
+ "name": "punctuation.terminator.rule.css"
133
+ }
134
+ }
135
+ },
136
+ {
152
137
  "name": "meta.at-rule.font-face.css",
138
+ "begin": "(?i)((@)font-face)(?=\\s*|{|/\\*|$)",
139
+ "end": "(?!\\G)",
153
140
  "patterns": [
154
141
  {
155
142
  "include": "#comment-block"
@@ -160,10 +147,25 @@
160
147
  {
161
148
  "include": "#rule-list"
162
149
  }
163
- ]
150
+ ],
151
+ "beginCaptures": {
152
+ "1": {
153
+ "name": "keyword.control.at-rule.font-face.css"
154
+ },
155
+ "2": {
156
+ "name": "punctuation.definition.keyword.css"
157
+ }
158
+ }
164
159
  },
165
160
  {
161
+ "name": "meta.at-rule.page.css",
166
162
  "begin": "(?i)(@)page(?=[\\s:{]|/\\*|$)",
163
+ "end": "(?=\\s*($|[:{;]))",
164
+ "patterns": [
165
+ {
166
+ "include": "#rule-list"
167
+ }
168
+ ],
167
169
  "captures": {
168
170
  "0": {
169
171
  "name": "keyword.control.at-rule.page.css"
@@ -171,21 +173,21 @@
171
173
  "1": {
172
174
  "name": "punctuation.definition.keyword.css"
173
175
  }
174
- },
175
- "end": "(?=\\s*($|[:{;]))",
176
- "name": "meta.at-rule.page.css",
177
- "patterns": [
178
- {
179
- "include": "#rule-list"
180
- }
181
- ]
176
+ }
182
177
  },
183
178
  {
184
179
  "begin": "(?i)(?=@media(\\s|\\(|/\\*|$))",
185
- "end": "(?<=})(?!\\G)",
180
+ "end": "(?\u003c=})(?!\\G)",
186
181
  "patterns": [
187
182
  {
183
+ "name": "meta.at-rule.media.header.css",
188
184
  "begin": "(?i)\\G(@)media",
185
+ "end": "(?=\\s*[{;])",
186
+ "patterns": [
187
+ {
188
+ "include": "#media-query-list"
189
+ }
190
+ ],
189
191
  "beginCaptures": {
190
192
  "0": {
191
193
  "name": "keyword.control.at-rule.media.css"
@@ -193,53 +195,38 @@
193
195
  "1": {
194
196
  "name": "punctuation.definition.keyword.css"
195
197
  }
196
- },
197
- "end": "(?=\\s*[{;])",
198
- "name": "meta.at-rule.media.header.css",
199
- "patterns": [
200
- {
201
- "include": "#media-query-list"
202
- }
203
- ]
198
+ }
204
199
  },
205
200
  {
201
+ "name": "meta.at-rule.media.body.css",
206
202
  "begin": "{",
203
+ "end": "}",
204
+ "patterns": [
205
+ {
206
+ "include": "$self"
207
+ }
208
+ ],
207
209
  "beginCaptures": {
208
210
  "0": {
209
211
  "name": "punctuation.section.media.begin.bracket.curly.css"
210
212
  }
211
213
  },
212
- "end": "}",
213
214
  "endCaptures": {
214
215
  "0": {
215
216
  "name": "punctuation.section.media.end.bracket.curly.css"
216
217
  }
217
- },
218
- "name": "meta.at-rule.media.body.css",
219
- "patterns": [
220
- {
221
- "include": "$self"
222
- }
223
- ]
218
+ }
224
219
  }
225
220
  ]
226
221
  },
227
222
  {
228
223
  "begin": "(?i)(?=@counter-style([\\s'\"{;]|/\\*|$))",
229
- "end": "(?<=})(?!\\G)",
224
+ "end": "(?\u003c=})(?!\\G)",
230
225
  "patterns": [
231
226
  {
227
+ "name": "meta.at-rule.counter-style.header.css",
232
228
  "begin": "(?i)\\G(@)counter-style",
233
- "beginCaptures": {
234
- "0": {
235
- "name": "keyword.control.at-rule.counter-style.css"
236
- },
237
- "1": {
238
- "name": "punctuation.definition.keyword.css"
239
- }
240
- },
241
229
  "end": "(?=\\s*{)",
242
- "name": "meta.at-rule.counter-style.header.css",
243
230
  "patterns": [
244
231
  {
245
232
  "include": "#comment-block"
@@ -248,6 +235,8 @@
248
235
  "include": "#escapes"
249
236
  },
250
237
  {
238
+ "name": "variable.parameter.style-name.css",
239
+ "match": "(?x)\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
251
240
  "captures": {
252
241
  "0": {
253
242
  "patterns": [
@@ -256,26 +245,22 @@
256
245
  }
257
246
  ]
258
247
  }
259
- },
260
- "match": "(?x)\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
261
- "name": "variable.parameter.style-name.css"
248
+ }
262
249
  }
263
- ]
264
- },
265
- {
266
- "begin": "{",
250
+ ],
267
251
  "beginCaptures": {
268
252
  "0": {
269
- "name": "punctuation.section.property-list.begin.bracket.curly.css"
270
- }
271
- },
272
- "end": "}",
273
- "endCaptures": {
274
- "0": {
275
- "name": "punctuation.section.property-list.end.bracket.curly.css"
253
+ "name": "keyword.control.at-rule.counter-style.css"
254
+ },
255
+ "1": {
256
+ "name": "punctuation.definition.keyword.css"
276
257
  }
277
- },
258
+ }
259
+ },
260
+ {
278
261
  "name": "meta.at-rule.counter-style.body.css",
262
+ "begin": "{",
263
+ "end": "}",
279
264
  "patterns": [
280
265
  {
281
266
  "include": "#comment-block"
@@ -286,44 +271,33 @@
286
271
  {
287
272
  "include": "#rule-list-innards"
288
273
  }
289
- ]
274
+ ],
275
+ "beginCaptures": {
276
+ "0": {
277
+ "name": "punctuation.section.property-list.begin.bracket.curly.css"
278
+ }
279
+ },
280
+ "endCaptures": {
281
+ "0": {
282
+ "name": "punctuation.section.property-list.end.bracket.curly.css"
283
+ }
284
+ }
290
285
  }
291
286
  ]
292
287
  },
293
288
  {
294
289
  "begin": "(?i)(?=@document([\\s'\"{;]|/\\*|$))",
295
- "end": "(?<=})(?!\\G)",
290
+ "end": "(?\u003c=})(?!\\G)",
296
291
  "patterns": [
297
292
  {
293
+ "name": "meta.at-rule.document.header.css",
298
294
  "begin": "(?i)\\G(@)document",
299
- "beginCaptures": {
300
- "0": {
301
- "name": "keyword.control.at-rule.document.css"
302
- },
303
- "1": {
304
- "name": "punctuation.definition.keyword.css"
305
- }
306
- },
307
295
  "end": "(?=\\s*[{;])",
308
- "name": "meta.at-rule.document.header.css",
309
296
  "patterns": [
310
297
  {
311
- "begin": "(?i)(?<![\\w-])(url-prefix|domain|regexp)(\\()",
312
- "beginCaptures": {
313
- "1": {
314
- "name": "support.function.document-rule.css"
315
- },
316
- "2": {
317
- "name": "punctuation.section.function.begin.bracket.round.css"
318
- }
319
- },
320
- "end": "\\)",
321
- "endCaptures": {
322
- "0": {
323
- "name": "punctuation.section.function.end.bracket.round.css"
324
- }
325
- },
326
298
  "name": "meta.function.document-rule.css",
299
+ "begin": "(?i)(?\u003c![\\w-])(url-prefix|domain|regexp)(\\()",
300
+ "end": "\\)",
327
301
  "patterns": [
328
302
  {
329
303
  "include": "#string"
@@ -335,10 +309,23 @@
335
309
  "include": "#escapes"
336
310
  },
337
311
  {
338
- "match": "[^'\")\\s]+",
339
- "name": "variable.parameter.document-rule.css"
312
+ "name": "variable.parameter.document-rule.css",
313
+ "match": "[^'\")\\s]+"
340
314
  }
341
- ]
315
+ ],
316
+ "beginCaptures": {
317
+ "1": {
318
+ "name": "support.function.document-rule.css"
319
+ },
320
+ "2": {
321
+ "name": "punctuation.section.function.begin.bracket.round.css"
322
+ }
323
+ },
324
+ "endCaptures": {
325
+ "0": {
326
+ "name": "punctuation.section.function.end.bracket.round.css"
327
+ }
328
+ }
342
329
  },
343
330
  {
344
331
  "include": "#url"
@@ -352,46 +339,46 @@
352
339
  {
353
340
  "include": "#escapes"
354
341
  }
355
- ]
342
+ ],
343
+ "beginCaptures": {
344
+ "0": {
345
+ "name": "keyword.control.at-rule.document.css"
346
+ },
347
+ "1": {
348
+ "name": "punctuation.definition.keyword.css"
349
+ }
350
+ }
356
351
  },
357
352
  {
353
+ "name": "meta.at-rule.document.body.css",
358
354
  "begin": "{",
355
+ "end": "}",
356
+ "patterns": [
357
+ {
358
+ "include": "$self"
359
+ }
360
+ ],
359
361
  "beginCaptures": {
360
362
  "0": {
361
363
  "name": "punctuation.section.document.begin.bracket.curly.css"
362
364
  }
363
365
  },
364
- "end": "}",
365
366
  "endCaptures": {
366
367
  "0": {
367
368
  "name": "punctuation.section.document.end.bracket.curly.css"
368
369
  }
369
- },
370
- "name": "meta.at-rule.document.body.css",
371
- "patterns": [
372
- {
373
- "include": "$self"
374
- }
375
- ]
370
+ }
376
371
  }
377
372
  ]
378
373
  },
379
374
  {
380
375
  "begin": "(?i)(?=@(?:-(?:webkit|moz|o|ms)-)?keyframes([\\s'\"{;]|/\\*|$))",
381
- "end": "(?<=})(?!\\G)",
376
+ "end": "(?\u003c=})(?!\\G)",
382
377
  "patterns": [
383
378
  {
379
+ "name": "meta.at-rule.keyframes.header.css",
384
380
  "begin": "(?i)\\G(@)(?:-(?:webkit|moz|o|ms)-)?keyframes",
385
- "beginCaptures": {
386
- "0": {
387
- "name": "keyword.control.at-rule.keyframes.css"
388
- },
389
- "1": {
390
- "name": "punctuation.definition.keyword.css"
391
- }
392
- },
393
381
  "end": "(?=\\s*{)",
394
- "name": "meta.at-rule.keyframes.header.css",
395
382
  "patterns": [
396
383
  {
397
384
  "include": "#comment-block"
@@ -400,6 +387,8 @@
400
387
  "include": "#escapes"
401
388
  },
402
389
  {
390
+ "name": "variable.parameter.keyframe-list.css",
391
+ "match": "(?x)\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
403
392
  "captures": {
404
393
  "0": {
405
394
  "patterns": [
@@ -408,26 +397,22 @@
408
397
  }
409
398
  ]
410
399
  }
411
- },
412
- "match": "(?x)\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
413
- "name": "variable.parameter.keyframe-list.css"
400
+ }
414
401
  }
415
- ]
416
- },
417
- {
418
- "begin": "{",
402
+ ],
419
403
  "beginCaptures": {
420
404
  "0": {
421
- "name": "punctuation.section.keyframes.begin.bracket.curly.css"
422
- }
423
- },
424
- "end": "}",
425
- "endCaptures": {
426
- "0": {
427
- "name": "punctuation.section.keyframes.end.bracket.curly.css"
405
+ "name": "keyword.control.at-rule.keyframes.css"
406
+ },
407
+ "1": {
408
+ "name": "punctuation.definition.keyword.css"
428
409
  }
429
- },
410
+ }
411
+ },
412
+ {
430
413
  "name": "meta.at-rule.keyframes.body.css",
414
+ "begin": "{",
415
+ "end": "}",
431
416
  "patterns": [
432
417
  {
433
418
  "include": "#comment-block"
@@ -436,6 +421,7 @@
436
421
  "include": "#escapes"
437
422
  },
438
423
  {
424
+ "match": "(?xi)\n(?\u003c![\\w-]) (from|to) (?![\\w-]) # Keywords for 0% | 100%\n|\n([-+]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%) # Percentile value",
439
425
  "captures": {
440
426
  "1": {
441
427
  "name": "entity.other.keyframe-offset.css"
@@ -443,32 +429,33 @@
443
429
  "2": {
444
430
  "name": "entity.other.keyframe-offset.percentage.css"
445
431
  }
446
- },
447
- "match": "(?xi)\n(?<![\\w-]) (from|to) (?![\\w-]) # Keywords for 0% | 100%\n|\n([-+]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%) # Percentile value"
432
+ }
448
433
  },
449
434
  {
450
435
  "include": "#rule-list"
451
436
  }
452
- ]
437
+ ],
438
+ "beginCaptures": {
439
+ "0": {
440
+ "name": "punctuation.section.keyframes.begin.bracket.curly.css"
441
+ }
442
+ },
443
+ "endCaptures": {
444
+ "0": {
445
+ "name": "punctuation.section.keyframes.end.bracket.curly.css"
446
+ }
447
+ }
453
448
  }
454
449
  ]
455
450
  },
456
451
  {
457
452
  "begin": "(?i)(?=@supports(\\s|\\(|/\\*|$))",
458
- "end": "(?<=})(?!\\G)|(?=;)",
453
+ "end": "(?\u003c=})(?!\\G)|(?=;)",
459
454
  "patterns": [
460
455
  {
456
+ "name": "meta.at-rule.supports.header.css",
461
457
  "begin": "(?i)\\G(@)supports",
462
- "beginCaptures": {
463
- "0": {
464
- "name": "keyword.control.at-rule.supports.css"
465
- },
466
- "1": {
467
- "name": "punctuation.definition.keyword.css"
468
- }
469
- },
470
458
  "end": "(?=\\s*[{;])",
471
- "name": "meta.at-rule.supports.header.css",
472
459
  "patterns": [
473
460
  {
474
461
  "include": "#feature-query-operators"
@@ -482,42 +469,42 @@
482
469
  {
483
470
  "include": "#escapes"
484
471
  }
485
- ]
472
+ ],
473
+ "beginCaptures": {
474
+ "0": {
475
+ "name": "keyword.control.at-rule.supports.css"
476
+ },
477
+ "1": {
478
+ "name": "punctuation.definition.keyword.css"
479
+ }
480
+ }
486
481
  },
487
482
  {
483
+ "name": "meta.at-rule.supports.body.css",
488
484
  "begin": "{",
485
+ "end": "}",
486
+ "patterns": [
487
+ {
488
+ "include": "$self"
489
+ }
490
+ ],
489
491
  "beginCaptures": {
490
492
  "0": {
491
493
  "name": "punctuation.section.supports.begin.bracket.curly.css"
492
494
  }
493
495
  },
494
- "end": "}",
495
496
  "endCaptures": {
496
497
  "0": {
497
498
  "name": "punctuation.section.supports.end.bracket.curly.css"
498
499
  }
499
- },
500
- "name": "meta.at-rule.supports.body.css",
501
- "patterns": [
502
- {
503
- "include": "$self"
504
- }
505
- ]
500
+ }
506
501
  }
507
502
  ]
508
503
  },
509
504
  {
505
+ "name": "meta.at-rule.viewport.css",
510
506
  "begin": "(?i)((@)viewport)(?=[\\s'\"{;]|/\\*|$)",
511
- "beginCaptures": {
512
- "1": {
513
- "name": "keyword.control.at-rule.viewport.css"
514
- },
515
- "2": {
516
- "name": "punctuation.definition.keyword.css"
517
- }
518
- },
519
507
  "end": "(?=\\s*[@{;])",
520
- "name": "meta.at-rule.viewport.css",
521
508
  "patterns": [
522
509
  {
523
510
  "include": "#comment-block"
@@ -525,21 +512,21 @@
525
512
  {
526
513
  "include": "#escapes"
527
514
  }
528
- ]
529
- },
530
- {
531
- "begin": "(?i)((@)font-feature-values)(?=[\\s'\"{;]|/\\*|$)\\s*",
515
+ ],
532
516
  "beginCaptures": {
533
517
  "1": {
534
- "name": "keyword.control.at-rule.font-feature-values.css"
518
+ "name": "keyword.control.at-rule.viewport.css"
535
519
  },
536
520
  "2": {
537
521
  "name": "punctuation.definition.keyword.css"
538
522
  }
539
- },
523
+ }
524
+ },
525
+ {
526
+ "name": "meta.at-rule.font-features.css",
540
527
  "contentName": "variable.parameter.font-name.css",
528
+ "begin": "(?i)((@)font-feature-values)(?=[\\s'\"{;]|/\\*|$)\\s*",
541
529
  "end": "(?=\\s*[@{;])",
542
- "name": "meta.at-rule.font-features.css",
543
530
  "patterns": [
544
531
  {
545
532
  "include": "#comment-block"
@@ -547,33 +534,29 @@
547
534
  {
548
535
  "include": "#escapes"
549
536
  }
550
- ]
551
- },
552
- {
553
- "include": "#font-features"
554
- },
555
- {
556
- "begin": "(?i)((@)namespace)(?=[\\s'\";]|/\\*|$)",
537
+ ],
557
538
  "beginCaptures": {
558
539
  "1": {
559
- "name": "keyword.control.at-rule.namespace.css"
540
+ "name": "keyword.control.at-rule.font-feature-values.css"
560
541
  },
561
542
  "2": {
562
543
  "name": "punctuation.definition.keyword.css"
563
544
  }
564
- },
565
- "end": ";|(?=[@{])",
566
- "endCaptures": {
567
- "0": {
568
- "name": "punctuation.terminator.rule.css"
569
- }
570
- },
545
+ }
546
+ },
547
+ {
548
+ "include": "#font-features"
549
+ },
550
+ {
571
551
  "name": "meta.at-rule.namespace.css",
552
+ "begin": "(?i)((@)namespace)(?=[\\s'\";]|/\\*|$)",
553
+ "end": ";|(?=[@{])",
572
554
  "patterns": [
573
555
  {
574
556
  "include": "#url"
575
557
  },
576
558
  {
559
+ "match": "(?xi)\n(?:\\G|^|(?\u003c=\\s))\n(?=\n (?\u003c=\\s|^) # Starts with whitespace\n (?:[-a-zA-Z_]|[^\\x00-\\x7F]) # Then a valid identifier character\n |\n \\s* # Possible adjoining whitespace\n /\\*(?:[^*]|\\*[^/])*\\*/ # Injected comment\n)\n(.*?) # Grouped to embed #comment-block\n(\n (?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n (?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n )*\n)",
577
560
  "captures": {
578
561
  "1": {
579
562
  "patterns": [
@@ -590,8 +573,7 @@
590
573
  }
591
574
  ]
592
575
  }
593
- },
594
- "match": "(?xi)\n(?:\\G|^|(?<=\\s))\n(?=\n (?<=\\s|^) # Starts with whitespace\n (?:[-a-zA-Z_]|[^\\x00-\\x7F]) # Then a valid identifier character\n |\n \\s* # Possible adjoining whitespace\n /\\*(?:[^*]|\\*[^/])*\\*/ # Injected comment\n)\n(.*?) # Grouped to embed #comment-block\n(\n (?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n (?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n )*\n)"
576
+ }
595
577
  },
596
578
  {
597
579
  "include": "#comment-block"
@@ -602,106 +584,119 @@
602
584
  {
603
585
  "include": "#string"
604
586
  }
605
- ]
587
+ ],
588
+ "beginCaptures": {
589
+ "1": {
590
+ "name": "keyword.control.at-rule.namespace.css"
591
+ },
592
+ "2": {
593
+ "name": "punctuation.definition.keyword.css"
594
+ }
595
+ },
596
+ "endCaptures": {
597
+ "0": {
598
+ "name": "punctuation.terminator.rule.css"
599
+ }
600
+ }
606
601
  }
607
602
  ]
608
603
  },
609
604
  "color-keywords": {
610
605
  "patterns": [
611
606
  {
612
- "match": "(?i)(?<![\\w-])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![\\w-])",
613
- "name": "support.constant.color.w3c-standard-color-name.css"
607
+ "name": "support.constant.color.w3c-standard-color-name.css",
608
+ "match": "(?i)(?\u003c![\\w-])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![\\w-])"
614
609
  },
615
610
  {
616
- "match": "(?xi) (?<![\\w-])\n(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood\n|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan\n|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange\n|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise\n|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen\n|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki\n|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow\n|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray\n|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue\n|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise\n|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered\n|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum\n|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell\n|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato\n|transparent|turquoise|violet|wheat|whitesmoke|yellowgreen)\n(?![\\w-])",
617
- "name": "support.constant.color.w3c-extended-color-name.css"
611
+ "name": "support.constant.color.w3c-extended-color-name.css",
612
+ "match": "(?xi) (?\u003c![\\w-])\n(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood\n|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan\n|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange\n|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise\n|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen\n|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki\n|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow\n|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray\n|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue\n|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise\n|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered\n|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum\n|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell\n|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato\n|transparent|turquoise|violet|wheat|whitesmoke|yellowgreen)\n(?![\\w-])"
618
613
  },
619
614
  {
620
- "match": "(?i)(?<![\\w-])currentColor(?![\\w-])",
621
- "name": "support.constant.color.current.css"
615
+ "name": "support.constant.color.current.css",
616
+ "match": "(?i)(?\u003c![\\w-])currentColor(?![\\w-])"
622
617
  },
623
618
  {
624
- "match": "(?xi) (?<![\\w-])\n(ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow\n|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption\n|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow\n|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText)\n(?![\\w-])",
625
- "name": "invalid.deprecated.color.system.css"
619
+ "name": "invalid.deprecated.color.system.css",
620
+ "match": "(?xi) (?\u003c![\\w-])\n(ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow\n|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption\n|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow\n|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText)\n(?![\\w-])"
626
621
  }
627
622
  ]
628
623
  },
629
624
  "combinators": {
630
625
  "patterns": [
631
626
  {
632
- "match": "/deep/|>>>",
633
- "name": "invalid.deprecated.combinator.css"
627
+ "name": "invalid.deprecated.combinator.css",
628
+ "match": "/deep/|\u003e\u003e\u003e"
634
629
  },
635
630
  {
636
- "match": ">>|>|\\+|~",
637
- "name": "keyword.operator.combinator.css"
631
+ "name": "keyword.operator.combinator.css",
632
+ "match": "\u003e\u003e|\u003e|\\+|~"
638
633
  }
639
634
  ]
640
635
  },
641
636
  "commas": {
642
- "match": ",",
643
- "name": "punctuation.separator.list.comma.css"
637
+ "name": "punctuation.separator.list.comma.css",
638
+ "match": ","
644
639
  },
645
640
  "comment-block": {
641
+ "name": "comment.block.css",
646
642
  "begin": "/\\*",
643
+ "end": "\\*/",
647
644
  "beginCaptures": {
648
645
  "0": {
649
646
  "name": "punctuation.definition.comment.begin.css"
650
647
  }
651
648
  },
652
- "end": "\\*/",
653
649
  "endCaptures": {
654
650
  "0": {
655
651
  "name": "punctuation.definition.comment.end.css"
656
652
  }
657
- },
658
- "name": "comment.block.css"
653
+ }
659
654
  },
660
655
  "escapes": {
661
656
  "patterns": [
662
657
  {
663
- "match": "\\\\[0-9a-fA-F]{1,6}",
664
- "name": "constant.character.escape.codepoint.css"
658
+ "name": "constant.character.escape.codepoint.css",
659
+ "match": "\\\\[0-9a-fA-F]{1,6}"
665
660
  },
666
661
  {
662
+ "name": "constant.character.escape.newline.css",
667
663
  "begin": "\\\\$\\s*",
668
- "end": "^(?<!\\G)",
669
- "name": "constant.character.escape.newline.css"
664
+ "end": "^(?\u003c!\\G)"
670
665
  },
671
666
  {
672
- "match": "\\\\.",
673
- "name": "constant.character.escape.css"
667
+ "name": "constant.character.escape.css",
668
+ "match": "\\\\."
674
669
  }
675
670
  ]
676
671
  },
677
672
  "feature-query": {
673
+ "name": "meta.feature-query.css",
678
674
  "begin": "\\(",
675
+ "end": "\\)",
676
+ "patterns": [
677
+ {
678
+ "include": "#feature-query-operators"
679
+ },
680
+ {
681
+ "include": "#feature-query"
682
+ }
683
+ ],
679
684
  "beginCaptures": {
680
685
  "0": {
681
686
  "name": "punctuation.definition.condition.begin.bracket.round.css"
682
687
  }
683
688
  },
684
- "end": "\\)",
685
689
  "endCaptures": {
686
690
  "0": {
687
691
  "name": "punctuation.definition.condition.end.bracket.round.css"
688
692
  }
689
- },
690
- "name": "meta.feature-query.css",
691
- "patterns": [
692
- {
693
- "include": "#feature-query-operators"
694
- },
695
- {
696
- "include": "#feature-query"
697
- }
698
- ]
693
+ }
699
694
  },
700
695
  "feature-query-operators": {
701
696
  "patterns": [
702
697
  {
703
- "match": "(?i)(?<=[\\s()]|^|\\*/)(and|not|or)(?=[\\s()]|/\\*|$)",
704
- "name": "keyword.operator.logical.feature.$1.css"
698
+ "name": "keyword.operator.logical.feature.$1.css",
699
+ "match": "(?i)(?\u003c=[\\s()]|^|\\*/)(and|not|or)(?=[\\s()]|/\\*|$)"
705
700
  },
706
701
  {
707
702
  "include": "#rule-list-innards"
@@ -709,34 +704,18 @@
709
704
  ]
710
705
  },
711
706
  "font-features": {
712
- "begin": "(?xi)\n((@)(annotation|character-variant|ornaments|styleset|stylistic|swash))\n(?=[\\s@'\"{;]|/\\*|$)",
713
- "beginCaptures": {
714
- "1": {
715
- "name": "keyword.control.at-rule.${3:/downcase}.css"
716
- },
717
- "2": {
718
- "name": "punctuation.definition.keyword.css"
719
- }
720
- },
721
- "end": "(?<=})",
722
707
  "name": "meta.at-rule.${3:/downcase}.css",
708
+ "begin": "(?xi)\n((@)(annotation|character-variant|ornaments|styleset|stylistic|swash))\n(?=[\\s@'\"{;]|/\\*|$)",
709
+ "end": "(?\u003c=})",
723
710
  "patterns": [
724
711
  {
712
+ "name": "meta.property-list.font-feature.css",
725
713
  "begin": "{",
726
- "beginCaptures": {
727
- "0": {
728
- "name": "punctuation.section.property-list.begin.bracket.curly.css"
729
- }
730
- },
731
714
  "end": "}",
732
- "endCaptures": {
733
- "0": {
734
- "name": "punctuation.section.property-list.end.bracket.curly.css"
735
- }
736
- },
737
- "name": "meta.property-list.font-feature.css",
738
715
  "patterns": [
739
716
  {
717
+ "name": "variable.font-feature.css",
718
+ "match": "(?x)\n(?: [-a-zA-Z_] | [^\\x00-\\x7F] ) # First letter\n(?: [-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n | \\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
740
719
  "captures": {
741
720
  "0": {
742
721
  "patterns": [
@@ -745,253 +724,242 @@
745
724
  }
746
725
  ]
747
726
  }
748
- },
749
- "match": "(?x)\n(?: [-a-zA-Z_] | [^\\x00-\\x7F] ) # First letter\n(?: [-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n | \\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
750
- "name": "variable.font-feature.css"
727
+ }
751
728
  },
752
729
  {
753
730
  "include": "#rule-list-innards"
754
731
  }
755
- ]
756
- }
757
- ]
758
- },
759
- "functions": {
760
- "patterns": [
761
- {
762
- "begin": "(?i)(?<![\\w-])(calc)(\\()",
732
+ ],
763
733
  "beginCaptures": {
764
- "1": {
765
- "name": "support.function.calc.css"
766
- },
767
- "2": {
768
- "name": "punctuation.section.function.begin.bracket.round.css"
734
+ "0": {
735
+ "name": "punctuation.section.property-list.begin.bracket.curly.css"
769
736
  }
770
737
  },
771
- "end": "\\)",
772
738
  "endCaptures": {
773
739
  "0": {
774
- "name": "punctuation.section.function.end.bracket.round.css"
775
- }
776
- },
777
- "name": "meta.function.calc.css",
778
- "patterns": [
779
- {
780
- "match": "[*/]|(?<=\\s|^)[-+](?=\\s|$)",
781
- "name": "keyword.operator.arithmetic.css"
782
- },
783
- {
784
- "include": "#property-values"
740
+ "name": "punctuation.section.property-list.end.bracket.curly.css"
785
741
  }
786
- ]
742
+ }
743
+ }
744
+ ],
745
+ "beginCaptures": {
746
+ "1": {
747
+ "name": "keyword.control.at-rule.${3:/downcase}.css"
787
748
  },
749
+ "2": {
750
+ "name": "punctuation.definition.keyword.css"
751
+ }
752
+ }
753
+ },
754
+ "functional-pseudo-classes": {
755
+ "patterns": [
788
756
  {
789
- "begin": "(?i)(?<![\\w-])(rgba?|hsla?)(\\()",
790
- "beginCaptures": {
791
- "1": {
792
- "name": "support.function.misc.css"
793
- },
794
- "2": {
795
- "name": "punctuation.section.function.begin.bracket.round.css"
796
- }
797
- },
757
+ "begin": "(?i)((:)dir)(\\()",
798
758
  "end": "\\)",
799
- "endCaptures": {
800
- "0": {
801
- "name": "punctuation.section.function.end.bracket.round.css"
802
- }
803
- },
804
- "name": "meta.function.color.css",
805
759
  "patterns": [
806
760
  {
807
- "include": "#property-values"
808
- }
809
- ]
810
- },
811
- {
812
- "begin": "(?xi) (?<![\\w-])\n(\n (?:-webkit-|-moz-|-o-)? # Accept prefixed/historical variants\n (?:repeating-)? # \"Repeating\"-type gradient\n (?:linear|radial|conic) # Shape\n -gradient\n)\n(\\()",
813
- "beginCaptures": {
814
- "1": {
815
- "name": "support.function.gradient.css"
761
+ "include": "#comment-block"
762
+ },
763
+ {
764
+ "include": "#escapes"
816
765
  },
817
- "2": {
818
- "name": "punctuation.section.function.begin.bracket.round.css"
819
- }
820
- },
821
- "end": "\\)",
822
- "endCaptures": {
823
- "0": {
824
- "name": "punctuation.section.function.end.bracket.round.css"
825
- }
826
- },
827
- "name": "meta.function.gradient.css",
828
- "patterns": [
829
766
  {
830
- "match": "(?i)(?<![\\w-])(from|to|at)(?![\\w-])",
831
- "name": "keyword.operator.gradient.css"
767
+ "name": "support.constant.text-direction.css",
768
+ "match": "(?i)(?\u003c![\\w-])(ltr|rtl)(?![\\w-])"
832
769
  },
833
770
  {
834
771
  "include": "#property-values"
835
772
  }
836
- ]
837
- },
838
- {
839
- "begin": "(?i)(?<![\\w-])(-webkit-gradient)(\\()",
773
+ ],
840
774
  "beginCaptures": {
841
775
  "1": {
842
- "name": "invalid.deprecated.gradient.function.css"
776
+ "name": "entity.other.attribute-name.pseudo-class.css"
843
777
  },
844
778
  "2": {
779
+ "name": "punctuation.definition.entity.css"
780
+ },
781
+ "3": {
845
782
  "name": "punctuation.section.function.begin.bracket.round.css"
846
783
  }
847
784
  },
848
- "end": "\\)",
849
785
  "endCaptures": {
850
786
  "0": {
851
787
  "name": "punctuation.section.function.end.bracket.round.css"
852
788
  }
853
- },
854
- "name": "meta.function.gradient.invalid.deprecated.gradient.css",
789
+ }
790
+ },
791
+ {
792
+ "begin": "(?i)((:)lang)(\\()",
793
+ "end": "\\)",
855
794
  "patterns": [
856
795
  {
857
- "begin": "(?i)(?<![\\w-])(from|to|color-stop)(\\()",
858
- "beginCaptures": {
859
- "1": {
860
- "name": "invalid.deprecated.function.css"
796
+ "name": "support.constant.language-range.css",
797
+ "match": "(?\u003c=[(,\\s])[a-zA-Z]+(-[a-zA-Z0-9]*|\\\\(?:[0-9a-fA-F]{1,6}|.))*(?=[),\\s])"
798
+ },
799
+ {
800
+ "name": "string.quoted.double.css",
801
+ "begin": "\"",
802
+ "end": "\"",
803
+ "patterns": [
804
+ {
805
+ "include": "#escapes"
861
806
  },
862
- "2": {
863
- "name": "punctuation.section.function.begin.bracket.round.css"
807
+ {
808
+ "name": "support.constant.language-range.css",
809
+ "match": "(?\u003c=[\"\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=[\"\\s])"
810
+ }
811
+ ],
812
+ "beginCaptures": {
813
+ "0": {
814
+ "name": "punctuation.definition.string.begin.css"
864
815
  }
865
816
  },
866
- "end": "\\)",
867
817
  "endCaptures": {
868
818
  "0": {
869
- "name": "punctuation.section.function.end.bracket.round.css"
819
+ "name": "punctuation.definition.string.end.css"
870
820
  }
871
- },
821
+ }
822
+ },
823
+ {
824
+ "name": "string.quoted.single.css",
825
+ "begin": "'",
826
+ "end": "'",
872
827
  "patterns": [
873
828
  {
874
- "include": "#property-values"
829
+ "include": "#escapes"
830
+ },
831
+ {
832
+ "name": "support.constant.language-range.css",
833
+ "match": "(?\u003c=['\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=['\\s])"
875
834
  }
876
- ]
835
+ ],
836
+ "beginCaptures": {
837
+ "0": {
838
+ "name": "punctuation.definition.string.begin.css"
839
+ }
840
+ },
841
+ "endCaptures": {
842
+ "0": {
843
+ "name": "punctuation.definition.string.end.css"
844
+ }
845
+ }
877
846
  },
878
847
  {
879
- "include": "#property-values"
848
+ "include": "#commas"
880
849
  }
881
- ]
882
- },
883
- {
884
- "begin": "(?xi) (?<![\\w-])\n(annotation|attr|blur|brightness|character-variant|contrast|counters?\n|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate\n|image-set|invert|local|minmax|opacity|ornaments|repeat|saturate|sepia\n|styleset|stylistic|swash|symbols)\n(\\()",
850
+ ],
885
851
  "beginCaptures": {
886
852
  "1": {
887
- "name": "support.function.misc.css"
853
+ "name": "entity.other.attribute-name.pseudo-class.css"
888
854
  },
889
855
  "2": {
856
+ "name": "punctuation.definition.entity.css"
857
+ },
858
+ "3": {
890
859
  "name": "punctuation.section.function.begin.bracket.round.css"
891
860
  }
892
861
  },
893
- "end": "\\)",
894
862
  "endCaptures": {
895
863
  "0": {
896
864
  "name": "punctuation.section.function.end.bracket.round.css"
897
865
  }
898
- },
899
- "name": "meta.function.misc.css",
866
+ }
867
+ },
868
+ {
869
+ "begin": "(?i)((:)(?:not|has|matches))(\\()",
870
+ "end": "\\)",
900
871
  "patterns": [
901
872
  {
902
- "match": "(?i)(?<=[,\\s\"]|\\*/|^)\\d+x(?=[\\s,\"')]|/\\*|$)",
903
- "name": "constant.numeric.other.density.css"
904
- },
905
- {
906
- "include": "#property-values"
907
- },
908
- {
909
- "match": "[^'\"),\\s]+",
910
- "name": "variable.parameter.misc.css"
873
+ "include": "#selector-innards"
911
874
  }
912
- ]
913
- },
914
- {
915
- "begin": "(?i)(?<![\\w-])(circle|ellipse|inset|polygon|rect)(\\()",
875
+ ],
916
876
  "beginCaptures": {
917
877
  "1": {
918
- "name": "support.function.shape.css"
878
+ "name": "entity.other.attribute-name.pseudo-class.css"
919
879
  },
920
880
  "2": {
881
+ "name": "punctuation.definition.entity.css"
882
+ },
883
+ "3": {
921
884
  "name": "punctuation.section.function.begin.bracket.round.css"
922
885
  }
923
886
  },
924
- "end": "\\)",
925
887
  "endCaptures": {
926
888
  "0": {
927
889
  "name": "punctuation.section.function.end.bracket.round.css"
928
890
  }
929
- },
930
- "name": "meta.function.shape.css",
891
+ }
892
+ },
893
+ {
894
+ "begin": "(?i)((:)nth-(?:last-)?(?:child|of-type))(\\()",
895
+ "end": "\\)",
931
896
  "patterns": [
932
897
  {
933
- "match": "(?i)(?<=\\s|^|\\*/)(at|round)(?=\\s|/\\*|$)",
934
- "name": "keyword.operator.shape.css"
898
+ "name": "constant.numeric.css",
899
+ "match": "(?i)[+-]?(\\d+n?|n)(\\s*[+-]\\s*\\d+)?"
935
900
  },
936
901
  {
937
- "include": "#property-values"
902
+ "name": "support.constant.parity.css",
903
+ "match": "(?i)even|odd"
938
904
  }
939
- ]
940
- },
941
- {
942
- "begin": "(?i)(?<![\\w-])(cubic-bezier|steps)(\\()",
905
+ ],
943
906
  "beginCaptures": {
944
907
  "1": {
945
- "name": "support.function.timing-function.css"
908
+ "name": "entity.other.attribute-name.pseudo-class.css"
946
909
  },
947
910
  "2": {
911
+ "name": "punctuation.definition.entity.css"
912
+ },
913
+ "3": {
948
914
  "name": "punctuation.section.function.begin.bracket.round.css"
949
915
  }
950
916
  },
951
- "end": "\\)",
952
917
  "endCaptures": {
953
918
  "0": {
954
919
  "name": "punctuation.section.function.end.bracket.round.css"
955
920
  }
956
- },
957
- "name": "meta.function.timing-function.css",
921
+ }
922
+ }
923
+ ]
924
+ },
925
+ "functions": {
926
+ "patterns": [
927
+ {
928
+ "name": "meta.function.calc.css",
929
+ "begin": "(?i)(?\u003c![\\w-])(calc)(\\()",
930
+ "end": "\\)",
958
931
  "patterns": [
959
932
  {
960
- "match": "(?i)(?<![\\w-])(start|end)(?=\\s*\\)|$)",
961
- "name": "support.constant.step-direction.css"
933
+ "name": "keyword.operator.arithmetic.css",
934
+ "match": "[*/]|(?\u003c=\\s|^)[-+](?=\\s|$)"
962
935
  },
963
936
  {
964
937
  "include": "#property-values"
965
938
  }
966
- ]
967
- },
968
- {
969
- "begin": "(?xi) (?<![\\w-])\n( (?:translate|scale|rotate)(?:[XYZ]|3D)?\n| matrix(?:3D)?\n| skew[XY]?\n| perspective\n)\n(\\()",
939
+ ],
970
940
  "beginCaptures": {
971
941
  "1": {
972
- "name": "support.function.transform.css"
942
+ "name": "support.function.calc.css"
973
943
  },
974
944
  "2": {
975
945
  "name": "punctuation.section.function.begin.bracket.round.css"
976
946
  }
977
947
  },
978
- "end": "\\)",
979
948
  "endCaptures": {
980
949
  "0": {
981
950
  "name": "punctuation.section.function.end.bracket.round.css"
982
951
  }
983
- },
952
+ }
953
+ },
954
+ {
955
+ "name": "meta.function.color.css",
956
+ "begin": "(?i)(?\u003c![\\w-])(rgba?|hsla?)(\\()",
957
+ "end": "\\)",
984
958
  "patterns": [
985
959
  {
986
960
  "include": "#property-values"
987
961
  }
988
- ]
989
- },
990
- {
991
- "include": "#url"
992
- },
993
- {
994
- "begin": "(?i)(?<![\\w-])(var)(\\()",
962
+ ],
995
963
  "beginCaptures": {
996
964
  "1": {
997
965
  "name": "support.function.misc.css"
@@ -1000,197 +968,229 @@
1000
968
  "name": "punctuation.section.function.begin.bracket.round.css"
1001
969
  }
1002
970
  },
1003
- "end": "\\)",
1004
971
  "endCaptures": {
1005
972
  "0": {
1006
973
  "name": "punctuation.section.function.end.bracket.round.css"
1007
974
  }
1008
- },
1009
- "name": "meta.function.variable.css",
975
+ }
976
+ },
977
+ {
978
+ "name": "meta.function.gradient.css",
979
+ "begin": "(?xi) (?\u003c![\\w-])\n(\n (?:-webkit-|-moz-|-o-)? # Accept prefixed/historical variants\n (?:repeating-)? # \"Repeating\"-type gradient\n (?:linear|radial|conic) # Shape\n -gradient\n)\n(\\()",
980
+ "end": "\\)",
1010
981
  "patterns": [
1011
982
  {
1012
- "name": "variable.argument.css",
1013
- "match": "(?x)\n--\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*"
983
+ "name": "keyword.operator.gradient.css",
984
+ "match": "(?i)(?\u003c![\\w-])(from|to|at)(?![\\w-])"
1014
985
  },
1015
986
  {
1016
987
  "include": "#property-values"
1017
988
  }
1018
- ]
1019
- }
1020
- ]
1021
- },
1022
- "functional-pseudo-classes": {
1023
- "patterns": [
1024
- {
1025
- "begin": "(?i)((:)dir)(\\()",
989
+ ],
1026
990
  "beginCaptures": {
1027
991
  "1": {
1028
- "name": "entity.other.attribute-name.pseudo-class.css"
992
+ "name": "support.function.gradient.css"
1029
993
  },
1030
994
  "2": {
1031
- "name": "punctuation.definition.entity.css"
1032
- },
1033
- "3": {
1034
995
  "name": "punctuation.section.function.begin.bracket.round.css"
1035
996
  }
1036
997
  },
1037
- "end": "\\)",
1038
998
  "endCaptures": {
1039
999
  "0": {
1040
1000
  "name": "punctuation.section.function.end.bracket.round.css"
1041
1001
  }
1042
- },
1002
+ }
1003
+ },
1004
+ {
1005
+ "name": "meta.function.gradient.invalid.deprecated.gradient.css",
1006
+ "begin": "(?i)(?\u003c![\\w-])(-webkit-gradient)(\\()",
1007
+ "end": "\\)",
1043
1008
  "patterns": [
1044
1009
  {
1045
- "include": "#comment-block"
1046
- },
1047
- {
1048
- "include": "#escapes"
1049
- },
1050
- {
1051
- "match": "(?i)(?<![\\w-])(ltr|rtl)(?![\\w-])",
1052
- "name": "support.constant.text-direction.css"
1010
+ "begin": "(?i)(?\u003c![\\w-])(from|to|color-stop)(\\()",
1011
+ "end": "\\)",
1012
+ "patterns": [
1013
+ {
1014
+ "include": "#property-values"
1015
+ }
1016
+ ],
1017
+ "beginCaptures": {
1018
+ "1": {
1019
+ "name": "invalid.deprecated.function.css"
1020
+ },
1021
+ "2": {
1022
+ "name": "punctuation.section.function.begin.bracket.round.css"
1023
+ }
1024
+ },
1025
+ "endCaptures": {
1026
+ "0": {
1027
+ "name": "punctuation.section.function.end.bracket.round.css"
1028
+ }
1029
+ }
1053
1030
  },
1054
1031
  {
1055
- "include": "#property-value"
1032
+ "include": "#property-values"
1056
1033
  }
1057
- ]
1058
- },
1059
- {
1060
- "begin": "(?i)((:)lang)(\\()",
1034
+ ],
1061
1035
  "beginCaptures": {
1062
1036
  "1": {
1063
- "name": "entity.other.attribute-name.pseudo-class.css"
1037
+ "name": "invalid.deprecated.gradient.function.css"
1064
1038
  },
1065
1039
  "2": {
1066
- "name": "punctuation.definition.entity.css"
1067
- },
1068
- "3": {
1069
1040
  "name": "punctuation.section.function.begin.bracket.round.css"
1070
1041
  }
1071
1042
  },
1072
- "end": "\\)",
1073
1043
  "endCaptures": {
1074
1044
  "0": {
1075
1045
  "name": "punctuation.section.function.end.bracket.round.css"
1076
1046
  }
1077
- },
1047
+ }
1048
+ },
1049
+ {
1050
+ "name": "meta.function.misc.css",
1051
+ "begin": "(?xi) (?\u003c![\\w-])\n(annotation|attr|blur|brightness|character-variant|contrast|counters?\n|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate\n|image-set|invert|local|minmax|opacity|ornaments|repeat|saturate|sepia\n|styleset|stylistic|swash|symbols)\n(\\()",
1052
+ "end": "\\)",
1078
1053
  "patterns": [
1079
1054
  {
1080
- "match": "(?<=[(,\\s])[a-zA-Z]+(-[a-zA-Z0-9]*|\\\\(?:[0-9a-fA-F]{1,6}|.))*(?=[),\\s])",
1081
- "name": "support.constant.language-range.css"
1055
+ "name": "constant.numeric.other.density.css",
1056
+ "match": "(?i)(?\u003c=[,\\s\"]|\\*/|^)\\d+x(?=[\\s,\"')]|/\\*|$)"
1082
1057
  },
1083
1058
  {
1084
- "begin": "\"",
1085
- "beginCaptures": {
1086
- "0": {
1087
- "name": "punctuation.definition.string.begin.css"
1088
- }
1089
- },
1090
- "end": "\"",
1091
- "endCaptures": {
1092
- "0": {
1093
- "name": "punctuation.definition.string.end.css"
1094
- }
1095
- },
1096
- "name": "string.quoted.double.css",
1097
- "patterns": [
1098
- {
1099
- "include": "#escapes"
1100
- },
1101
- {
1102
- "match": "(?<=[\"\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=[\"\\s])",
1103
- "name": "support.constant.language-range.css"
1104
- }
1105
- ]
1059
+ "include": "#property-values"
1106
1060
  },
1107
1061
  {
1108
- "begin": "'",
1109
- "beginCaptures": {
1110
- "0": {
1111
- "name": "punctuation.definition.string.begin.css"
1112
- }
1113
- },
1114
- "end": "'",
1115
- "endCaptures": {
1116
- "0": {
1117
- "name": "punctuation.definition.string.end.css"
1118
- }
1119
- },
1120
- "name": "string.quoted.single.css",
1121
- "patterns": [
1122
- {
1123
- "include": "#escapes"
1124
- },
1125
- {
1126
- "match": "(?<=['\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=['\\s])",
1127
- "name": "support.constant.language-range.css"
1128
- }
1129
- ]
1062
+ "name": "variable.parameter.misc.css",
1063
+ "match": "[^'\"),\\s]+"
1064
+ }
1065
+ ],
1066
+ "beginCaptures": {
1067
+ "1": {
1068
+ "name": "support.function.misc.css"
1130
1069
  },
1131
- {
1132
- "include": "#commas"
1070
+ "2": {
1071
+ "name": "punctuation.section.function.begin.bracket.round.css"
1133
1072
  }
1134
- ]
1073
+ },
1074
+ "endCaptures": {
1075
+ "0": {
1076
+ "name": "punctuation.section.function.end.bracket.round.css"
1077
+ }
1078
+ }
1135
1079
  },
1136
1080
  {
1137
- "begin": "(?i)((:)(?:not|has|matches))(\\()",
1081
+ "name": "meta.function.shape.css",
1082
+ "begin": "(?i)(?\u003c![\\w-])(circle|ellipse|inset|polygon|rect)(\\()",
1083
+ "end": "\\)",
1084
+ "patterns": [
1085
+ {
1086
+ "name": "keyword.operator.shape.css",
1087
+ "match": "(?i)(?\u003c=\\s|^|\\*/)(at|round)(?=\\s|/\\*|$)"
1088
+ },
1089
+ {
1090
+ "include": "#property-values"
1091
+ }
1092
+ ],
1138
1093
  "beginCaptures": {
1139
1094
  "1": {
1140
- "name": "entity.other.attribute-name.pseudo-class.css"
1095
+ "name": "support.function.shape.css"
1141
1096
  },
1142
1097
  "2": {
1143
- "name": "punctuation.definition.entity.css"
1144
- },
1145
- "3": {
1146
1098
  "name": "punctuation.section.function.begin.bracket.round.css"
1147
1099
  }
1148
1100
  },
1149
- "end": "\\)",
1150
1101
  "endCaptures": {
1151
1102
  "0": {
1152
1103
  "name": "punctuation.section.function.end.bracket.round.css"
1153
1104
  }
1154
- },
1105
+ }
1106
+ },
1107
+ {
1108
+ "name": "meta.function.timing-function.css",
1109
+ "begin": "(?i)(?\u003c![\\w-])(cubic-bezier|steps)(\\()",
1110
+ "end": "\\)",
1155
1111
  "patterns": [
1156
1112
  {
1157
- "include": "#selector-innards"
1113
+ "name": "support.constant.step-direction.css",
1114
+ "match": "(?i)(?\u003c![\\w-])(start|end)(?=\\s*\\)|$)"
1115
+ },
1116
+ {
1117
+ "include": "#property-values"
1158
1118
  }
1159
- ]
1119
+ ],
1120
+ "beginCaptures": {
1121
+ "1": {
1122
+ "name": "support.function.timing-function.css"
1123
+ },
1124
+ "2": {
1125
+ "name": "punctuation.section.function.begin.bracket.round.css"
1126
+ }
1127
+ },
1128
+ "endCaptures": {
1129
+ "0": {
1130
+ "name": "punctuation.section.function.end.bracket.round.css"
1131
+ }
1132
+ }
1160
1133
  },
1161
1134
  {
1162
- "begin": "(?i)((:)nth-(?:last-)?(?:child|of-type))(\\()",
1135
+ "begin": "(?xi) (?\u003c![\\w-])\n( (?:translate|scale|rotate)(?:[XYZ]|3D)?\n| matrix(?:3D)?\n| skew[XY]?\n| perspective\n)\n(\\()",
1136
+ "end": "\\)",
1137
+ "patterns": [
1138
+ {
1139
+ "include": "#property-values"
1140
+ }
1141
+ ],
1163
1142
  "beginCaptures": {
1164
1143
  "1": {
1165
- "name": "entity.other.attribute-name.pseudo-class.css"
1144
+ "name": "support.function.transform.css"
1166
1145
  },
1167
1146
  "2": {
1168
- "name": "punctuation.definition.entity.css"
1169
- },
1170
- "3": {
1171
1147
  "name": "punctuation.section.function.begin.bracket.round.css"
1172
1148
  }
1173
1149
  },
1174
- "end": "\\)",
1175
1150
  "endCaptures": {
1176
1151
  "0": {
1177
1152
  "name": "punctuation.section.function.end.bracket.round.css"
1178
1153
  }
1179
- },
1154
+ }
1155
+ },
1156
+ {
1157
+ "include": "#url"
1158
+ },
1159
+ {
1160
+ "name": "meta.function.variable.css",
1161
+ "begin": "(?i)(?\u003c![\\w-])(var)(\\()",
1162
+ "end": "\\)",
1180
1163
  "patterns": [
1181
1164
  {
1182
- "match": "(?i)[+-]?(\\d+n?|n)(\\s*[+-]\\s*\\d+)?",
1183
- "name": "constant.numeric.css"
1165
+ "name": "variable.argument.css",
1166
+ "match": "(?x)\n--\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*"
1184
1167
  },
1185
1168
  {
1186
- "match": "(?i)even|odd",
1187
- "name": "support.constant.parity.css"
1169
+ "include": "#property-values"
1188
1170
  }
1189
- ]
1171
+ ],
1172
+ "beginCaptures": {
1173
+ "1": {
1174
+ "name": "support.function.misc.css"
1175
+ },
1176
+ "2": {
1177
+ "name": "punctuation.section.function.begin.bracket.round.css"
1178
+ }
1179
+ },
1180
+ "endCaptures": {
1181
+ "0": {
1182
+ "name": "punctuation.section.function.end.bracket.round.css"
1183
+ }
1184
+ }
1190
1185
  }
1191
1186
  ]
1192
1187
  },
1188
+ "media-feature-keywords": {
1189
+ "name": "support.constant.property-value.css",
1190
+ "match": "(?xi)\n(?\u003c=^|\\s|:|\\*/)\n(?: portrait # Orientation\n | landscape\n | progressive # Scan types\n | interlace\n | fullscreen # Display modes\n | standalone\n | minimal-ui\n | browser\n)\n(?=\\s|\\)|$)"
1191
+ },
1193
1192
  "media-features": {
1193
+ "match": "(?xi)\n(?\u003c=^|\\s|\\(|\\*/) # Preceded by whitespace, bracket or comment\n(?:\n # Standardised features\n (\n (?:min-|max-)? # Range features\n (?: height\n | width\n | aspect-ratio\n | color\n | color-index\n | monochrome\n | resolution\n )\n | grid # Discrete features\n | scan\n | orientation\n | display-mode\n )\n |\n # Deprecated features\n (\n (?:min-|max-)? # Deprecated in Media Queries 4\n device-\n (?: height\n | width\n | aspect-ratio\n )\n )\n |\n # Vendor extensions\n (\n (?:\n # Spec-compliant syntax\n [-_]\n (?: webkit # Webkit/Blink\n | apple|khtml # Webkit aliases\n | epub # ePub3\n | moz # Gecko\n | ms # Microsoft\n | o # Presto (pre-Opera 15)\n | xv|ah|rim|atsc| # Less common vendors\n hp|tc|wap|ro\n )\n |\n # Non-standard prefixes\n (?: mso # Microsoft Office\n | prince # YesLogic\n )\n )\n -\n [\\w-]+ # Feature name\n (?= # Terminates correctly\n \\s* # Possible whitespace\n (?: # Possible injected comment\n /\\*\n (?:[^*]|\\*[^/])*\n \\*/\n )?\n \\s*\n [:)] # Ends with a colon or closed bracket\n )\n )\n)\n(?=\\s|$|[\u003e\u003c:=]|\\)|/\\*) # Terminates cleanly",
1194
1194
  "captures": {
1195
1195
  "1": {
1196
1196
  "name": "support.type.property-name.media.css"
@@ -1201,12 +1201,7 @@
1201
1201
  "3": {
1202
1202
  "name": "support.type.vendored.property-name.media.css"
1203
1203
  }
1204
- },
1205
- "match": "(?xi)\n(?<=^|\\s|\\(|\\*/) # Preceded by whitespace, bracket or comment\n(?:\n # Standardised features\n (\n (?:min-|max-)? # Range features\n (?: height\n | width\n | aspect-ratio\n | color\n | color-index\n | monochrome\n | resolution\n )\n | grid # Discrete features\n | scan\n | orientation\n | display-mode\n )\n |\n # Deprecated features\n (\n (?:min-|max-)? # Deprecated in Media Queries 4\n device-\n (?: height\n | width\n | aspect-ratio\n )\n )\n |\n # Vendor extensions\n (\n (?:\n # Spec-compliant syntax\n [-_]\n (?: webkit # Webkit/Blink\n | apple|khtml # Webkit aliases\n | epub # ePub3\n | moz # Gecko\n | ms # Microsoft\n | o # Presto (pre-Opera 15)\n | xv|ah|rim|atsc| # Less common vendors\n hp|tc|wap|ro\n )\n |\n # Non-standard prefixes\n (?: mso # Microsoft Office\n | prince # YesLogic\n )\n )\n -\n [\\w-]+ # Feature name\n (?= # Terminates correctly\n \\s* # Possible whitespace\n (?: # Possible injected comment\n /\\*\n (?:[^*]|\\*[^/])*\n \\*/\n )?\n \\s*\n [:)] # Ends with a colon or closed bracket\n )\n )\n)\n(?=\\s|$|[><:=]|\\)|/\\*) # Terminates cleanly"
1206
- },
1207
- "media-feature-keywords": {
1208
- "match": "(?xi)\n(?<=^|\\s|:|\\*/)\n(?: portrait # Orientation\n | landscape\n | progressive # Scan types\n | interlace\n | fullscreen # Display modes\n | standalone\n | minimal-ui\n | browser\n)\n(?=\\s|\\)|$)",
1209
- "name": "support.constant.property-value.css"
1204
+ }
1210
1205
  },
1211
1206
  "media-query": {
1212
1207
  "begin": "\\G",
@@ -1222,33 +1217,23 @@
1222
1217
  "include": "#media-types"
1223
1218
  },
1224
1219
  {
1225
- "match": "(?i)(?<=\\s|^|,|\\*/)(only|not)(?=\\s|{|/\\*|$)",
1226
- "name": "keyword.operator.logical.$1.media.css"
1220
+ "name": "keyword.operator.logical.$1.media.css",
1221
+ "match": "(?i)(?\u003c=\\s|^|,|\\*/)(only|not)(?=\\s|{|/\\*|$)"
1227
1222
  },
1228
1223
  {
1229
- "match": "(?i)(?<=\\s|^|\\*/|\\))and(?=\\s|/\\*|$)",
1230
- "name": "keyword.operator.logical.and.media.css"
1224
+ "name": "keyword.operator.logical.and.media.css",
1225
+ "match": "(?i)(?\u003c=\\s|^|\\*/|\\))and(?=\\s|/\\*|$)"
1231
1226
  },
1232
1227
  {
1233
- "match": ",(?:(?:\\s*,)+|(?=\\s*[;){]))",
1234
- "name": "invalid.illegal.comma.css"
1228
+ "name": "invalid.illegal.comma.css",
1229
+ "match": ",(?:(?:\\s*,)+|(?=\\s*[;){]))"
1235
1230
  },
1236
1231
  {
1237
1232
  "include": "#commas"
1238
1233
  },
1239
1234
  {
1240
1235
  "begin": "\\(",
1241
- "beginCaptures": {
1242
- "0": {
1243
- "name": "punctuation.definition.parameters.begin.bracket.round.css"
1244
- }
1245
- },
1246
1236
  "end": "\\)",
1247
- "endCaptures": {
1248
- "0": {
1249
- "name": "punctuation.definition.parameters.end.bracket.round.css"
1250
- }
1251
- },
1252
1237
  "patterns": [
1253
1238
  {
1254
1239
  "include": "#media-features"
@@ -1257,14 +1242,16 @@
1257
1242
  "include": "#media-feature-keywords"
1258
1243
  },
1259
1244
  {
1260
- "match": ":",
1261
- "name": "punctuation.separator.key-value.css"
1245
+ "name": "punctuation.separator.key-value.css",
1246
+ "match": ":"
1262
1247
  },
1263
1248
  {
1264
- "match": ">=|<=|=|<|>",
1265
- "name": "keyword.operator.comparison.css"
1249
+ "name": "keyword.operator.comparison.css",
1250
+ "match": "\u003e=|\u003c=|=|\u003c|\u003e"
1266
1251
  },
1267
1252
  {
1253
+ "name": "meta.ratio.css",
1254
+ "match": "(\\d+)\\s*(/)\\s*(\\d+)",
1268
1255
  "captures": {
1269
1256
  "1": {
1270
1257
  "name": "constant.numeric.css"
@@ -1275,9 +1262,7 @@
1275
1262
  "3": {
1276
1263
  "name": "constant.numeric.css"
1277
1264
  }
1278
- },
1279
- "match": "(\\d+)\\s*(/)\\s*(\\d+)",
1280
- "name": "meta.ratio.css"
1265
+ }
1281
1266
  },
1282
1267
  {
1283
1268
  "include": "#numeric-values"
@@ -1285,7 +1270,17 @@
1285
1270
  {
1286
1271
  "include": "#comment-block"
1287
1272
  }
1288
- ]
1273
+ ],
1274
+ "beginCaptures": {
1275
+ "0": {
1276
+ "name": "punctuation.definition.parameters.begin.bracket.round.css"
1277
+ }
1278
+ },
1279
+ "endCaptures": {
1280
+ "0": {
1281
+ "name": "punctuation.definition.parameters.end.bracket.round.css"
1282
+ }
1283
+ }
1289
1284
  }
1290
1285
  ]
1291
1286
  },
@@ -1299,6 +1294,7 @@
1299
1294
  ]
1300
1295
  },
1301
1296
  "media-types": {
1297
+ "match": "(?xi)\n(?\u003c=^|\\s|,|\\*/)\n(?:\n # Valid media types\n (all|print|screen|speech)\n |\n # Deprecated in Media Queries 4: http://dev.w3.org/csswg/mediaqueries/#media-types\n (aural|braille|embossed|handheld|projection|tty|tv)\n)\n(?=$|[{,\\s;]|/\\*)",
1302
1298
  "captures": {
1303
1299
  "1": {
1304
1300
  "name": "support.constant.media.css"
@@ -1306,21 +1302,22 @@
1306
1302
  "2": {
1307
1303
  "name": "invalid.deprecated.constant.media.css"
1308
1304
  }
1309
- },
1310
- "match": "(?xi)\n(?<=^|\\s|,|\\*/)\n(?:\n # Valid media types\n (all|print|screen|speech)\n |\n # Deprecated in Media Queries 4: http://dev.w3.org/csswg/mediaqueries/#media-types\n (aural|braille|embossed|handheld|projection|tty|tv)\n)\n(?=$|[{,\\s;]|/\\*)"
1305
+ }
1311
1306
  },
1312
1307
  "numeric-values": {
1313
1308
  "patterns": [
1314
1309
  {
1310
+ "name": "constant.other.color.rgb-value.hex.css",
1311
+ "match": "(#)(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\\b",
1315
1312
  "captures": {
1316
1313
  "1": {
1317
1314
  "name": "punctuation.definition.constant.css"
1318
1315
  }
1319
- },
1320
- "match": "(#)(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\\b",
1321
- "name": "constant.other.color.rgb-value.hex.css"
1316
+ }
1322
1317
  },
1323
1318
  {
1319
+ "name": "constant.numeric.css",
1320
+ "match": "(?xi) (?\u003c![\\w-])\n[-+]? # Sign indicator\n\n(?: # Numerals\n [0-9]+ (?:\\.[0-9]+)? # Integer/float with leading digits\n | \\.[0-9]+ # Float without leading digits\n)\n\n(?: # Scientific notation\n (?\u003c=[0-9]) # Exponent must follow a digit\n E # Exponent indicator\n [-+]? # Possible sign indicator\n [0-9]+ # Exponent value\n)?\n\n(?: # Possible unit for data-type:\n (%) # - Percentage\n | ( deg|grad|rad|turn # - Angle\n | Hz|kHz # - Frequency\n | ch|cm|em|ex|fr|in|mm|mozmm| # - Length\n pc|pt|px|q|rem|vh|vmax|vmin|\n vw\n | dpi|dpcm|dppx # - Resolution\n | s|ms # - Time\n )\n \\b # Boundary checking intentionally lax to\n)? # facilitate embedding in CSS-like grammars",
1324
1321
  "captures": {
1325
1322
  "1": {
1326
1323
  "name": "keyword.other.unit.percentage.css"
@@ -1328,41 +1325,39 @@
1328
1325
  "2": {
1329
1326
  "name": "keyword.other.unit.${2:/downcase}.css"
1330
1327
  }
1331
- },
1332
- "match": "(?xi) (?<![\\w-])\n[-+]? # Sign indicator\n\n(?: # Numerals\n [0-9]+ (?:\\.[0-9]+)? # Integer/float with leading digits\n | \\.[0-9]+ # Float without leading digits\n)\n\n(?: # Scientific notation\n (?<=[0-9]) # Exponent must follow a digit\n E # Exponent indicator\n [-+]? # Possible sign indicator\n [0-9]+ # Exponent value\n)?\n\n(?: # Possible unit for data-type:\n (%) # - Percentage\n | ( deg|grad|rad|turn # - Angle\n | Hz|kHz # - Frequency\n | ch|cm|em|ex|fr|in|mm|mozmm| # - Length\n pc|pt|px|q|rem|vh|vmax|vmin|\n vw\n | dpi|dpcm|dppx # - Resolution\n | s|ms # - Time\n )\n \\b # Boundary checking intentionally lax to\n)? # facilitate embedding in CSS-like grammars",
1333
- "name": "constant.numeric.css"
1328
+ }
1334
1329
  }
1335
1330
  ]
1336
1331
  },
1337
1332
  "property-keywords": {
1338
1333
  "patterns": [
1339
1334
  {
1340
- "match": "(?xi) (?<![\\w-])\n(above|absolute|active|add|additive|after-edge|alias|all|all-petite-caps|all-scroll|all-small-caps|alpha|alphabetic|alternate|alternate-reverse\n|always|antialiased|auto|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel\n|bidi-override|blink|block|block-axis|block-start|block-end|bold|bolder|border|border-box|both|bottom|bottom-outside|break-all|break-word|bullets\n|butt|capitalize|caption|cell|center|central|char|circle|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color|color-burn\n|color-dodge|column|column-reverse|common-ligatures|compact|condensed|contain|content|content-box|contents|context-menu|contextual|copy|cover\n|crisp-edges|crispEdges|crosshair|cyclic|darken|dashed|decimal|default|dense|diagonal-fractions|difference|digits|disabled|disc|discretionary-ligatures\n|distribute|distribute-all-lines|distribute-letter|distribute-space|dot|dotted|double|double-circle|downleft|downright|e-resize|each-line|ease|ease-in\n|ease-in-out|ease-out|economy|ellipse|ellipsis|embed|end|evenodd|ew-resize|exact|exclude|exclusion|expanded|extends|extra-condensed|extra-expanded\n|fallback|farthest-corner|farthest-side|fill|fill-available|fill-box|filled|fit-content|fixed|flat|flex|flex-end|flex-start|flip|forwards|freeze\n|from-image|full-width|geometricPrecision|georgian|grab|grabbing|grayscale|grid|groove|hand|hanging|hard-light|help|hidden|hide\n|historical-forms|historical-ligatures|horizontal|horizontal-tb|hue|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space\n|ideographic|inactive|infinite|inherit|initial|inline|inline-axis|inline-block|inline-end|inline-flex|inline-grid|inline-list-item|inline-start\n|inline-table|inset|inside|inter-character|inter-ideograph|inter-word|intersect|invert|isolate|isolate-override|italic|jis04|jis78|jis83\n|jis90|justify|justify-all|kannada|keep-all|landscape|large|larger|left|lighten|lighter|line|line-edge|line-through|linear|linearRGB\n|lining-nums|list-item|local|loose|lowercase|lr|lr-tb|ltr|luminance|luminosity|main-size|mandatory|manipulation|manual|margin-box|match-parent\n|match-source|mathematical|max-content|medium|menu|message-box|middle|min-content|miter|mixed|move|multiply|n-resize|narrower|ne-resize\n|nearest-neighbor|nesw-resize|newspaper|no-change|no-clip|no-close-quote|no-common-ligatures|no-contextual|no-discretionary-ligatures\n|no-drop|no-historical-ligatures|no-open-quote|no-repeat|none|nonzero|normal|not-allowed|nowrap|ns-resize|numbers|numeric|nw-resize|nwse-resize\n|oblique|oldstyle-nums|open|open-quote|optimizeLegibility|optimizeQuality|optimizeSpeed|optional|ordinal|outset|outside|over|overlay|overline|padding\n|padding-box|page|painted|pan-down|pan-left|pan-right|pan-up|pan-x|pan-y|paused|petite-caps|pixelated|plaintext|pointer|portrait|pre|pre-line\n|pre-wrap|preserve-3d|progress|progressive|proportional-nums|proportional-width|proximity|radial|recto|region|relative|remove|repeat|repeat-[xy]\n|reset-size|reverse|revert|ridge|right|rl|rl-tb|round|row|row-resize|row-reverse|row-severse|rtl|ruby|ruby-base|ruby-base-container|ruby-text\n|ruby-text-container|run-in|running|s-resize|saturation|scale-down|screen|scroll|scroll-position|se-resize|semi-condensed|semi-expanded|separate\n|sesame|show|sideways|sideways-left|sideways-lr|sideways-right|sideways-rl|simplified|slashed-zero|slice|small|small-caps|small-caption|smaller\n|smooth|soft-light|solid|space|space-around|space-between|spell-out|square|sRGB|stacked-fractions|start|static|status-bar|swap|step-end|step-start\n|sticky|stretch|strict|stroke|stroke-box|style|sub|subgrid|subpixel-antialiased|subtract|super|sw-resize|symbolic|table|table-caption|table-cell\n|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|tabular-nums|tb|tb-rl|text|text-after-edge\n|text-before-edge|text-bottom|text-top|thick|thin|titling-caps|top|top-outside|touch|traditional|transparent|triangle|ultra-condensed|ultra-expanded\n|under|underline|unicase|unset|upleft|uppercase|upright|use-glyph-orientation|use-script|verso|vertical|vertical-ideographic|vertical-lr|vertical-rl\n|vertical-text|view-box|visible|visibleFill|visiblePainted|visibleStroke|w-resize|wait|wavy|weight|whitespace|wider|words|wrap|wrap-reverse\n|x-large|x-small|xx-large|xx-small|zero|zoom-in|zoom-out)\n(?![\\w-])",
1341
- "name": "support.constant.property-value.css"
1335
+ "name": "support.constant.property-value.css",
1336
+ "match": "(?xi) (?\u003c![\\w-])\n(above|absolute|active|add|additive|after-edge|alias|all|all-petite-caps|all-scroll|all-small-caps|alpha|alphabetic|alternate|alternate-reverse\n|always|antialiased|auto|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel\n|bidi-override|blink|block|block-axis|block-start|block-end|bold|bolder|border|border-box|both|bottom|bottom-outside|break-all|break-word|bullets\n|butt|capitalize|caption|cell|center|central|char|circle|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color|color-burn\n|color-dodge|column|column-reverse|common-ligatures|compact|condensed|contain|content|content-box|contents|context-menu|contextual|copy|cover\n|crisp-edges|crispEdges|crosshair|cyclic|darken|dashed|decimal|default|dense|diagonal-fractions|difference|digits|disabled|disc|discretionary-ligatures\n|distribute|distribute-all-lines|distribute-letter|distribute-space|dot|dotted|double|double-circle|downleft|downright|e-resize|each-line|ease|ease-in\n|ease-in-out|ease-out|economy|ellipse|ellipsis|embed|end|evenodd|ew-resize|exact|exclude|exclusion|expanded|extends|extra-condensed|extra-expanded\n|fallback|farthest-corner|farthest-side|fill|fill-available|fill-box|filled|fit-content|fixed|flat|flex|flex-end|flex-start|flip|forwards|freeze\n|from-image|full-width|geometricPrecision|georgian|grab|grabbing|grayscale|grid|groove|hand|hanging|hard-light|help|hidden|hide\n|historical-forms|historical-ligatures|horizontal|horizontal-tb|hue|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space\n|ideographic|inactive|infinite|inherit|initial|inline|inline-axis|inline-block|inline-end|inline-flex|inline-grid|inline-list-item|inline-start\n|inline-table|inset|inside|inter-character|inter-ideograph|inter-word|intersect|invert|isolate|isolate-override|italic|jis04|jis78|jis83\n|jis90|justify|justify-all|kannada|keep-all|landscape|large|larger|left|lighten|lighter|line|line-edge|line-through|linear|linearRGB\n|lining-nums|list-item|local|loose|lowercase|lr|lr-tb|ltr|luminance|luminosity|main-size|mandatory|manipulation|manual|margin-box|match-parent\n|match-source|mathematical|max-content|medium|menu|message-box|middle|min-content|miter|mixed|move|multiply|n-resize|narrower|ne-resize\n|nearest-neighbor|nesw-resize|newspaper|no-change|no-clip|no-close-quote|no-common-ligatures|no-contextual|no-discretionary-ligatures\n|no-drop|no-historical-ligatures|no-open-quote|no-repeat|none|nonzero|normal|not-allowed|nowrap|ns-resize|numbers|numeric|nw-resize|nwse-resize\n|oblique|oldstyle-nums|open|open-quote|optimizeLegibility|optimizeQuality|optimizeSpeed|optional|ordinal|outset|outside|over|overlay|overline|padding\n|padding-box|page|painted|pan-down|pan-left|pan-right|pan-up|pan-x|pan-y|paused|petite-caps|pixelated|plaintext|pointer|portrait|pre|pre-line\n|pre-wrap|preserve-3d|progress|progressive|proportional-nums|proportional-width|proximity|radial|recto|region|relative|remove|repeat|repeat-[xy]\n|reset-size|reverse|revert|ridge|right|rl|rl-tb|round|row|row-resize|row-reverse|row-severse|rtl|ruby|ruby-base|ruby-base-container|ruby-text\n|ruby-text-container|run-in|running|s-resize|saturation|scale-down|screen|scroll|scroll-position|se-resize|semi-condensed|semi-expanded|separate\n|sesame|show|sideways|sideways-left|sideways-lr|sideways-right|sideways-rl|simplified|slashed-zero|slice|small|small-caps|small-caption|smaller\n|smooth|soft-light|solid|space|space-around|space-between|space-evenly|spell-out|square|sRGB|stacked-fractions|start|static|status-bar|swap\n|step-end|step-start|sticky|stretch|strict|stroke|stroke-box|style|sub|subgrid|subpixel-antialiased|subtract|super|sw-resize|symbolic|table\n|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|tabular-nums|tb|tb-rl\n|text|text-after-edge|text-before-edge|text-bottom|text-top|thick|thin|titling-caps|top|top-outside|touch|traditional|transparent|triangle\n|ultra-condensed|ultra-expanded|under|underline|unicase|unset|upleft|uppercase|upright|use-glyph-orientation|use-script|verso|vertical\n|vertical-ideographic|vertical-lr|vertical-rl|vertical-text|view-box|visible|visibleFill|visiblePainted|visibleStroke|w-resize|wait|wavy\n|weight|whitespace|wider|words|wrap|wrap-reverse|x-large|x-small|xx-large|xx-small|zero|zoom-in|zoom-out)\n(?![\\w-])"
1342
1337
  },
1343
1338
  {
1344
- "match": "(?xi) (?<![\\w-])\n(arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|cjk-ideographic\n|decimal|decimal-leading-zero|devanagari|disc|disclosure-closed|disclosure-open|ethiopic-halehame-am\n|ethiopic-halehame-ti-e[rt]|ethiopic-numeric|georgian|gujarati|gurmukhi|hangul|hangul-consonant|hebrew\n|hiragana|hiragana-iroha|japanese-formal|japanese-informal|kannada|katakana|katakana-iroha|khmer\n|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek\n|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal\n|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian\n|upper-latin|upper-roman|urdu)\n(?![\\w-])",
1345
- "name": "support.constant.property-value.list-style-type.css"
1339
+ "name": "support.constant.property-value.list-style-type.css",
1340
+ "match": "(?xi) (?\u003c![\\w-])\n(arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|cjk-ideographic\n|decimal|decimal-leading-zero|devanagari|disc|disclosure-closed|disclosure-open|ethiopic-halehame-am\n|ethiopic-halehame-ti-e[rt]|ethiopic-numeric|georgian|gujarati|gurmukhi|hangul|hangul-consonant|hebrew\n|hiragana|hiragana-iroha|japanese-formal|japanese-informal|kannada|katakana|katakana-iroha|khmer\n|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek\n|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal\n|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian\n|upper-latin|upper-roman|urdu)\n(?![\\w-])"
1346
1341
  },
1347
1342
  {
1348
- "match": "(?<![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+",
1349
- "name": "support.constant.vendored.property-value.css"
1343
+ "name": "support.constant.vendored.property-value.css",
1344
+ "match": "(?\u003c![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+"
1350
1345
  },
1351
1346
  {
1352
- "match": "(?<![\\w-])(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)(?![\\w-])",
1353
- "name": "support.constant.font-name.css"
1347
+ "name": "support.constant.font-name.css",
1348
+ "match": "(?\u003c![\\w-])(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)(?![\\w-])"
1354
1349
  }
1355
1350
  ]
1356
1351
  },
1357
1352
  "property-names": {
1358
1353
  "patterns": [
1359
1354
  {
1360
- "match": "(?xi) (?<![\\w-])\n(?:\n # Standard CSS\n additive-symbols|align-content|align-items|align-self|all|animation|animation-delay|animation-direction\n | animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state\n | animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode\n | background-clip|background-color|background-image|background-origin|background-position|background-position-[xy]\n | background-repeat|background-size|block-size|border|border-block-end|border-block-end-color|border-block-end-style\n | border-block-end-width|border-block-start|border-block-start-color|border-block-start-style\n | border-block-start-width|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius\n | border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset\n | border-image-repeat|border-image-slice|border-image-source|border-image-width|border-inline-end\n | border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-start\n | border-inline-start-color|border-inline-start-style|border-inline-start-width|border-left|border-left-color\n | border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style\n | border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius\n | border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-decoration-break\n | box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|clear|clip|clip-path|color\n | column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width\n | column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display\n | empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float\n | font|font-display|font-family|font-feature-settings|font-kerning|font-language-override|font-size|font-size-adjust\n | font-stretch|font-style|font-synthesis|font-variant|font-variant-alternates|font-variant-caps\n | font-variant-east-asian|font-variant-ligatures|font-variant-numeric|font-variant-position|font-weight\n | grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-gap\n | grid-column-start|grid-gap|grid-row|grid-row-end|grid-row-gap|grid-row-start|grid-template|grid-template-areas\n | grid-template-columns|grid-template-rows|height|hyphens|image-orientation|image-rendering|image-resolution\n | ime-mode|inline-size|isolation|justify-content|left|letter-spacing|line-break|line-height|list-style\n | list-style-image|list-style-position|list-style-type|margin|margin-block-end|margin-block-start|margin-bottom\n | margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|mask|mask-clip|mask-composite\n | mask-image|mask-mode|mask-origin|mask-position|mask-repeat|mask-size|mask-type|max-block-size|max-height\n | max-inline-size|max-width|max-zoom|min-block-size|min-height|min-inline-size|min-width|min-zoom|mix-blend-mode\n | negative|object-fit|object-position|offset-block-end|offset-block-start|offset-inline-end|offset-inline-start\n | opacity|order|orientation|orphans|outline|outline-color|outline-offset|outline-style|outline-width|overflow\n | overflow-wrap|overflow-[xy]|pad|padding|padding-block-end|padding-block-start|padding-bottom|padding-inline-end\n | padding-inline-start|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside\n | perspective|perspective-origin|pointer-events|position|prefix|quotes|range|resize|right|ruby-align|ruby-merge\n | ruby-position|scroll-behavior|scroll-snap-coordinate|scroll-snap-destination|scroll-snap-type|shape-image-threshold\n | shape-margin|shape-outside|speak-as|src|suffix|symbols|system|tab-size|table-layout|text-align|text-align-last\n | text-combine-upright|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-emphasis\n | text-emphasis-color|text-emphasis-position|text-emphasis-style|text-indent|text-orientation|text-overflow\n | text-rendering|text-shadow|text-transform|text-underline-position|top|touch-action|transform|transform-box\n | transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property\n | transition-timing-function|unicode-bidi|unicode-range|user-zoom|vertical-align|visibility|white-space|widows\n | width|will-change|word-break|word-spacing|word-wrap|writing-mode|z-index|zoom\n\n # SVG attributes\n | alignment-baseline|baseline-shift|clip-rule|color-interpolation|color-interpolation-filters|color-profile\n | color-rendering|dominant-baseline|enable-background|fill|fill-opacity|fill-rule|flood-color|flood-opacity\n | glyph-orientation-horizontal|glyph-orientation-vertical|kerning|lighting-color|marker-end|marker-mid\n | marker-start|shape-rendering|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap\n | stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|text-anchor|x|y\n\n # Not listed on MDN; presumably deprecated\n | adjust|after|align|align-last|alignment|alignment-adjust|appearance|attachment|azimuth|background-break\n | balance|baseline|before|bidi|binding|bookmark|bookmark-label|bookmark-level|bookmark-target|border-length\n | bottom-color|bottom-left-radius|bottom-right-radius|bottom-style|bottom-width|box|box-align|box-direction\n | box-flex|box-flex-group|box-lines|box-ordinal-group|box-orient|box-pack|break|character|collapse|column\n | column-break-after|column-break-before|count|counter|crop|cue|cue-after|cue-before|decoration|decoration-break\n | delay|display-model|display-role|down|drop|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust\n | drop-initial-before-align|drop-initial-size|drop-initial-value|duration|elevation|emphasis|family|fit|fit-position\n | flex-group|float-offset|gap|grid-columns|grid-rows|hanging-punctuation|header|hyphenate|hyphenate-after|hyphenate-before\n | hyphenate-character|hyphenate-lines|hyphenate-resource|icon|image|increment|indent|index|initial-after-adjust\n | initial-after-align|initial-before-adjust|initial-before-align|initial-size|initial-value|inline-box-align|iteration-count\n | justify|label|left-color|left-style|left-width|length|level|line|line-stacking|line-stacking-ruby|line-stacking-shift\n | line-stacking-strategy|lines|list|mark|mark-after|mark-before|marks|marquee|marquee-direction|marquee-play-count|marquee-speed\n | marquee-style|max|min|model|move-to|name|nav|nav-down|nav-index|nav-left|nav-right|nav-up|new|numeral|offset|ordinal-group\n | orient|origin|overflow-style|overhang|pack|page|page-policy|pause|pause-after|pause-before|phonemes|pitch|pitch-range\n | play-count|play-during|play-state|point|presentation|presentation-level|profile|property|punctuation|punctuation-trim\n | radius|rate|rendering-intent|repeat|replace|reset|resolution|resource|respond-to|rest|rest-after|rest-before|richness\n | right-color|right-style|right-width|role|rotation|rotation-point|rows|ruby|ruby-overhang|ruby-span|rule|rule-color\n | rule-style|rule-width|shadow|size|size-adjust|sizing|space|space-collapse|spacing|span|speak|speak-header|speak-numeral\n | speak-punctuation|speech|speech-rate|speed|stacking|stacking-ruby|stacking-shift|stacking-strategy|stress|stretch\n | string-set|style|style-image|style-position|style-type|target|target-name|target-new|target-position|text|text-height\n | text-justify|text-outline|text-replace|text-wrap|timing-function|top-color|top-left-radius|top-right-radius|top-style\n | top-width|trim|unicode|up|user-select|variant|voice|voice-balance|voice-duration|voice-family|voice-pitch|voice-pitch-range\n | voice-rate|voice-stress|voice-volume|volume|weight|white|white-space-collapse|word|wrap\n)\n(?![\\w-])",
1361
- "name": "support.type.property-name.css"
1355
+ "name": "support.type.property-name.css",
1356
+ "match": "(?xi) (?\u003c![\\w-])\n(?:\n # Standard CSS\n additive-symbols|align-content|align-items|align-self|all|animation|animation-delay|animation-direction\n | animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state\n | animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode\n | background-clip|background-color|background-image|background-origin|background-position|background-position-[xy]\n | background-repeat|background-size|block-size|border|border-block-end|border-block-end-color|border-block-end-style\n | border-block-end-width|border-block-start|border-block-start-color|border-block-start-style\n | border-block-start-width|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius\n | border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset\n | border-image-repeat|border-image-slice|border-image-source|border-image-width|border-inline-end\n | border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-start\n | border-inline-start-color|border-inline-start-style|border-inline-start-width|border-left|border-left-color\n | border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style\n | border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius\n | border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-decoration-break\n | box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|clear|clip|clip-path|color\n | column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width\n | column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display\n | empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float\n | font|font-display|font-family|font-feature-settings|font-kerning|font-language-override|font-size|font-size-adjust\n | font-stretch|font-style|font-synthesis|font-variant|font-variant-alternates|font-variant-caps\n | font-variant-east-asian|font-variant-ligatures|font-variant-numeric|font-variant-position|font-weight\n | grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-gap\n | grid-column-start|grid-gap|grid-row|grid-row-end|grid-row-gap|grid-row-start|grid-template|grid-template-areas\n | grid-template-columns|grid-template-rows|height|hyphens|image-orientation|image-rendering|image-resolution\n | ime-mode|inline-size|isolation|justify-content|left|letter-spacing|line-break|line-height|list-style\n | list-style-image|list-style-position|list-style-type|margin|margin-block-end|margin-block-start|margin-bottom\n | margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|mask|mask-clip|mask-composite\n | mask-image|mask-mode|mask-origin|mask-position|mask-repeat|mask-size|mask-type|max-block-size|max-height\n | max-inline-size|max-width|max-zoom|min-block-size|min-height|min-inline-size|min-width|min-zoom|mix-blend-mode\n | negative|object-fit|object-position|offset-block-end|offset-block-start|offset-inline-end|offset-inline-start\n | opacity|order|orientation|orphans|outline|outline-color|outline-offset|outline-style|outline-width|overflow\n | overflow-wrap|overflow-[xy]|pad|padding|padding-block-end|padding-block-start|padding-bottom|padding-inline-end\n | padding-inline-start|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside\n | perspective|perspective-origin|pointer-events|position|prefix|quotes|range|resize|right|ruby-align|ruby-merge\n | ruby-position|scroll-behavior|scroll-snap-coordinate|scroll-snap-destination|scroll-snap-type|shape-image-threshold\n | shape-margin|shape-outside|speak-as|src|suffix|symbols|system|tab-size|table-layout|text-align|text-align-last\n | text-combine-upright|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-emphasis\n | text-emphasis-color|text-emphasis-position|text-emphasis-style|text-indent|text-orientation|text-overflow\n | text-rendering|text-shadow|text-transform|text-underline-position|top|touch-action|transform|transform-box\n | transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property\n | transition-timing-function|unicode-bidi|unicode-range|user-zoom|vertical-align|visibility|white-space|widows\n | width|will-change|word-break|word-spacing|word-wrap|writing-mode|z-index|zoom\n\n # SVG attributes\n | alignment-baseline|baseline-shift|clip-rule|color-interpolation|color-interpolation-filters|color-profile\n | color-rendering|dominant-baseline|enable-background|fill|fill-opacity|fill-rule|flood-color|flood-opacity\n | glyph-orientation-horizontal|glyph-orientation-vertical|kerning|lighting-color|marker-end|marker-mid\n | marker-start|shape-rendering|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap\n | stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|text-anchor|x|y\n\n # Not listed on MDN; presumably deprecated\n | adjust|after|align|align-last|alignment|alignment-adjust|appearance|attachment|azimuth|background-break\n | balance|baseline|before|bidi|binding|bookmark|bookmark-label|bookmark-level|bookmark-target|border-length\n | bottom-color|bottom-left-radius|bottom-right-radius|bottom-style|bottom-width|box|box-align|box-direction\n | box-flex|box-flex-group|box-lines|box-ordinal-group|box-orient|box-pack|break|character|collapse|column\n | column-break-after|column-break-before|count|counter|crop|cue|cue-after|cue-before|decoration|decoration-break\n | delay|display-model|display-role|down|drop|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust\n | drop-initial-before-align|drop-initial-size|drop-initial-value|duration|elevation|emphasis|family|fit|fit-position\n | flex-group|float-offset|gap|grid-columns|grid-rows|hanging-punctuation|header|hyphenate|hyphenate-after|hyphenate-before\n | hyphenate-character|hyphenate-lines|hyphenate-resource|icon|image|increment|indent|index|initial-after-adjust\n | initial-after-align|initial-before-adjust|initial-before-align|initial-size|initial-value|inline-box-align|iteration-count\n | justify|label|left-color|left-style|left-width|length|level|line|line-stacking|line-stacking-ruby|line-stacking-shift\n | line-stacking-strategy|lines|list|mark|mark-after|mark-before|marks|marquee|marquee-direction|marquee-play-count|marquee-speed\n | marquee-style|max|min|model|move-to|name|nav|nav-down|nav-index|nav-left|nav-right|nav-up|new|numeral|offset|ordinal-group\n | orient|origin|overflow-style|overhang|pack|page|page-policy|pause|pause-after|pause-before|phonemes|pitch|pitch-range\n | play-count|play-during|play-state|point|presentation|presentation-level|profile|property|punctuation|punctuation-trim\n | radius|rate|rendering-intent|repeat|replace|reset|resolution|resource|respond-to|rest|rest-after|rest-before|richness\n | right-color|right-style|right-width|role|rotation|rotation-point|rows|ruby|ruby-overhang|ruby-span|rule|rule-color\n | rule-style|rule-width|shadow|size|size-adjust|sizing|space|space-collapse|spacing|span|speak|speak-header|speak-numeral\n | speak-punctuation|speech|speech-rate|speed|stacking|stacking-ruby|stacking-shift|stacking-strategy|stress|stretch\n | string-set|style|style-image|style-position|style-type|target|target-name|target-new|target-position|text|text-height\n | text-justify|text-outline|text-replace|text-wrap|timing-function|top-color|top-left-radius|top-right-radius|top-style\n | top-width|trim|unicode|up|user-select|variant|voice|voice-balance|voice-duration|voice-family|voice-pitch|voice-pitch-range\n | voice-rate|voice-stress|voice-volume|volume|weight|white|white-space-collapse|word|wrap\n)\n(?![\\w-])"
1362
1357
  },
1363
1358
  {
1364
- "match": "(?<![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+",
1365
- "name": "support.type.vendored.property-name.css"
1359
+ "name": "support.type.vendored.property-name.css",
1360
+ "match": "(?\u003c![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+"
1366
1361
  }
1367
1362
  ]
1368
1363
  },
@@ -1396,12 +1391,14 @@
1396
1391
  "include": "#string"
1397
1392
  },
1398
1393
  {
1399
- "match": "!\\s*important(?![\\w-])",
1400
- "name": "keyword.other.important.css"
1394
+ "name": "keyword.other.important.css",
1395
+ "match": "!\\s*important(?![\\w-])"
1401
1396
  }
1402
1397
  ]
1403
1398
  },
1404
1399
  "pseudo-classes": {
1400
+ "name": "entity.other.attribute-name.pseudo-class.css",
1401
+ "match": "(?xi)\n(:)(:*)\n(?: active|any-link|checked|default|disabled|empty|enabled|first\n | (?:first|last|only)-(?:child|of-type)|focus|focus-within|fullscreen|host|hover\n | in-range|indeterminate|invalid|left|link|optional|out-of-range\n | read-only|read-write|required|right|root|scope|target|unresolved\n | valid|visited\n)(?![\\w-]|\\s*[;}])",
1405
1402
  "captures": {
1406
1403
  "1": {
1407
1404
  "name": "punctuation.definition.entity.css"
@@ -1409,11 +1406,11 @@
1409
1406
  "2": {
1410
1407
  "name": "invalid.illegal.colon.css"
1411
1408
  }
1412
- },
1413
- "match": "(?xi)\n(:)(:*)\n(?: active|any-link|checked|default|disabled|empty|enabled|first\n | (?:first|last|only)-(?:child|of-type)|focus|focus-within|fullscreen|host|hover\n | in-range|indeterminate|invalid|left|link|optional|out-of-range\n | read-only|read-write|required|right|root|scope|target|unresolved\n | valid|visited\n)(?![\\w-]|\\s*[;}])",
1414
- "name": "entity.other.attribute-name.pseudo-class.css"
1409
+ }
1415
1410
  },
1416
1411
  "pseudo-elements": {
1412
+ "name": "entity.other.attribute-name.pseudo-element.css",
1413
+ "match": "(?xi)\n(?:\n (::?) # Elements using both : and :: notation\n (?: after\n | before\n | first-letter\n | first-line\n | (?:-(?:ah|apple|atsc|epub|hp|khtml|moz\n |ms|o|rim|ro|tc|wap|webkit|xv)\n | (?:mso|prince))\n -[a-z-]+\n )\n |\n (::) # Double-colon only\n (?: backdrop\n | content\n | grammar-error\n | marker\n | placeholder\n | selection\n | shadow\n | spelling-error\n )\n)\n(?![\\w-]|\\s*[;}])",
1417
1414
  "captures": {
1418
1415
  "1": {
1419
1416
  "name": "punctuation.definition.entity.css"
@@ -1421,29 +1418,27 @@
1421
1418
  "2": {
1422
1419
  "name": "punctuation.definition.entity.css"
1423
1420
  }
1424
- },
1425
- "match": "(?xi)\n(?:\n (::?) # Elements using both : and :: notation\n (?: after\n | before\n | first-letter\n | first-line\n | (?:-(?:ah|apple|atsc|epub|hp|khtml|moz\n |ms|o|rim|ro|tc|wap|webkit|xv)\n | (?:mso|prince))\n -[a-z-]+\n )\n |\n (::) # Double-colon only\n (?: backdrop\n | content\n | grammar-error\n | marker\n | placeholder\n | selection\n | shadow\n | spelling-error\n )\n)\n(?![\\w-]|\\s*[;}])",
1426
- "name": "entity.other.attribute-name.pseudo-element.css"
1421
+ }
1427
1422
  },
1428
1423
  "rule-list": {
1424
+ "name": "meta.property-list.css",
1429
1425
  "begin": "{",
1426
+ "end": "}",
1427
+ "patterns": [
1428
+ {
1429
+ "include": "#rule-list-innards"
1430
+ }
1431
+ ],
1430
1432
  "beginCaptures": {
1431
1433
  "0": {
1432
1434
  "name": "punctuation.section.property-list.begin.bracket.curly.css"
1433
1435
  }
1434
1436
  },
1435
- "end": "}",
1436
1437
  "endCaptures": {
1437
1438
  "0": {
1438
1439
  "name": "punctuation.section.property-list.end.bracket.curly.css"
1439
1440
  }
1440
- },
1441
- "name": "meta.property-list.css",
1442
- "patterns": [
1443
- {
1444
- "include": "#rule-list-innards"
1445
- }
1446
- ]
1441
+ }
1447
1442
  },
1448
1443
  "rule-list-innards": {
1449
1444
  "patterns": [
@@ -1457,13 +1452,13 @@
1457
1452
  "include": "#font-features"
1458
1453
  },
1459
1454
  {
1460
- "match": "(?x) (?<![\\w-])\n--\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
1461
- "name": "variable.css"
1455
+ "name": "variable.css",
1456
+ "match": "(?x) (?\u003c![\\w-])\n--\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*"
1462
1457
  },
1463
1458
  {
1464
- "begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])",
1465
- "end": "$|(?![-a-zA-Z])",
1466
1459
  "name": "meta.property-name.css",
1460
+ "begin": "(?\u003c![-a-zA-Z])(?=[-a-zA-Z])",
1461
+ "end": "$|(?![-a-zA-Z])",
1467
1462
  "patterns": [
1468
1463
  {
1469
1464
  "include": "#property-names"
@@ -1471,38 +1466,38 @@
1471
1466
  ]
1472
1467
  },
1473
1468
  {
1469
+ "contentName": "meta.property-value.css",
1474
1470
  "begin": "(:)\\s*",
1471
+ "end": "\\s*(;)|\\s*(?=}|\\))",
1472
+ "patterns": [
1473
+ {
1474
+ "include": "#comment-block"
1475
+ },
1476
+ {
1477
+ "include": "#property-values"
1478
+ }
1479
+ ],
1475
1480
  "beginCaptures": {
1476
1481
  "1": {
1477
1482
  "name": "punctuation.separator.key-value.css"
1478
1483
  }
1479
1484
  },
1480
- "end": "\\s*(;)|\\s*(?=}|\\))",
1481
1485
  "endCaptures": {
1482
1486
  "1": {
1483
1487
  "name": "punctuation.terminator.rule.css"
1484
1488
  }
1485
- },
1486
- "contentName": "meta.property-value.css",
1487
- "patterns": [
1488
- {
1489
- "include": "#comment-block"
1490
- },
1491
- {
1492
- "include": "#property-values"
1493
- }
1494
- ]
1489
+ }
1495
1490
  },
1496
1491
  {
1497
- "match": ";",
1498
- "name": "punctuation.terminator.rule.css"
1492
+ "name": "punctuation.terminator.rule.css",
1493
+ "match": ";"
1499
1494
  }
1500
1495
  ]
1501
1496
  },
1502
1497
  "selector": {
1498
+ "name": "meta.selector.css",
1503
1499
  "begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)",
1504
1500
  "end": "(?=\\s*[/@{)])",
1505
- "name": "meta.selector.css",
1506
1501
  "patterns": [
1507
1502
  {
1508
1503
  "include": "#selector-innards"
@@ -1524,6 +1519,7 @@
1524
1519
  "include": "#combinators"
1525
1520
  },
1526
1521
  {
1522
+ "match": "(?x)\n(?:^|(?\u003c=[\\s,(};])) # Follows whitespace, comma, semicolon, or bracket\n(?!\n [-\\w*]+\n \\|\n (?!\n [-\\[:.*\\#a-zA-Z_] # Make sure there's a selector to match\n | [^\\x00-\\x7F]\n )\n)\n(\n (?: [-a-zA-Z_] | [^\\x00-\\x7F] ) # First letter\n (?: [-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n | \\\\(?:[0-9a-fA-F]{1,6}|.)\n )*\n |\n \\* # Universal namespace\n)?\n(\\|) # Namespace separator",
1527
1523
  "captures": {
1528
1524
  "1": {
1529
1525
  "name": "entity.other.namespace-prefix.css"
@@ -1531,17 +1527,18 @@
1531
1527
  "2": {
1532
1528
  "name": "punctuation.separator.css"
1533
1529
  }
1534
- },
1535
- "match": "(?x)\n(?:^|(?<=[\\s,(};])) # Follows whitespace, comma, semicolon, or bracket\n(?!\n [-\\w*]+\n \\|\n (?!\n [-\\[:.*\\#a-zA-Z_] # Make sure there's a selector to match\n | [^\\x00-\\x7F]\n )\n)\n(\n (?: [-a-zA-Z_] | [^\\x00-\\x7F] ) # First letter\n (?: [-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n | \\\\(?:[0-9a-fA-F]{1,6}|.)\n )*\n |\n \\* # Universal namespace\n)?\n(\\|) # Namespace separator"
1530
+ }
1536
1531
  },
1537
1532
  {
1538
1533
  "include": "#tag-names"
1539
1534
  },
1540
1535
  {
1541
- "match": "\\*",
1542
- "name": "entity.name.tag.wildcard.css"
1536
+ "name": "entity.name.tag.wildcard.css",
1537
+ "match": "\\*"
1543
1538
  },
1544
1539
  {
1540
+ "name": "invalid.illegal.bad-identifier.css",
1541
+ "match": "(?x) (?\u003c![@\\w-])\n([.\\#])\n# Invalid identifier\n(\n (?:\n # Starts with ASCII digits, with possible hyphen preceding it\n -?[0-9]\n |\n # Consists of a hyphen only\n - # Terminated by either:\n (?= $ # - End-of-line\n | [\\s,.\\#)\\[:{\u003e+~|] # - Followed by another selector\n | /\\* # - Followed by a block comment\n )\n |\n # Name contains unescaped ASCII symbol\n (?: # Check for acceptable preceding characters\n [-a-zA-Z_0-9]|[^\\x00-\\x7F] # - Valid selector character\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # - Escape sequence\n )*\n (?: # Invalid punctuation\n [!\"'%\u0026(*;\u003c?@^`|\\]}] # - NOTE: We exempt `)` from the list of checked\n | # symbols to avoid matching `:not(.invalid)`\n / (?!\\*) # - Avoid invalidating the start of a comment\n )+\n )\n # Mark remainder of selector invalid\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # - Otherwise valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # - Escape sequence\n )*\n)",
1545
1542
  "captures": {
1546
1543
  "1": {
1547
1544
  "name": "punctuation.definition.entity.css"
@@ -1553,11 +1550,11 @@
1553
1550
  }
1554
1551
  ]
1555
1552
  }
1556
- },
1557
- "match": "(?x) (?<![@\\w-])\n([.\\#])\n# Invalid identifier\n(\n (?:\n # Starts with ASCII digits, with possible hyphen preceding it\n -?[0-9]\n |\n # Consists of a hyphen only\n - # Terminated by either:\n (?= $ # - End-of-line\n | [\\s,.\\#)\\[:{>+~|] # - Followed by another selector\n | /\\* # - Followed by a block comment\n )\n |\n # Name contains unescaped ASCII symbol\n (?: # Check for acceptable preceding characters\n [-a-zA-Z_0-9]|[^\\x00-\\x7F] # - Valid selector character\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # - Escape sequence\n )*\n (?: # Invalid punctuation\n [!\"'%&(*;<?@^`|\\]}] # - NOTE: We exempt `)` from the list of checked\n | # symbols to avoid matching `:not(.invalid)`\n / (?!\\*) # - Avoid invalidating the start of a comment\n )+\n )\n # Mark remainder of selector invalid\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # - Otherwise valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # - Escape sequence\n )*\n)",
1558
- "name": "invalid.illegal.bad-identifier.css"
1553
+ }
1559
1554
  },
1560
1555
  {
1556
+ "name": "entity.other.attribute-name.class.css",
1557
+ "match": "(?x)\n(\\.) # Valid class-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{\u003e+~|] # - Another selector\n | /\\* # - A block comment\n)",
1561
1558
  "captures": {
1562
1559
  "1": {
1563
1560
  "name": "punctuation.definition.entity.css"
@@ -1569,11 +1566,11 @@
1569
1566
  }
1570
1567
  ]
1571
1568
  }
1572
- },
1573
- "match": "(?x)\n(\\.) # Valid class-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{>+~|] # - Another selector\n | /\\* # - A block comment\n)",
1574
- "name": "entity.other.attribute-name.class.css"
1569
+ }
1575
1570
  },
1576
1571
  {
1572
+ "name": "entity.other.attribute-name.id.css",
1573
+ "match": "(?x)\n(\\#)\n(\n -?\n (?![0-9])\n (?:[-a-zA-Z0-9_]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+\n)\n(?=$|[\\s,.\\#)\\[:{\u003e+~|]|/\\*)",
1577
1574
  "captures": {
1578
1575
  "1": {
1579
1576
  "name": "punctuation.definition.entity.css"
@@ -1585,24 +1582,12 @@
1585
1582
  }
1586
1583
  ]
1587
1584
  }
1588
- },
1589
- "match": "(?x)\n(\\#)\n(\n -?\n (?![0-9])\n (?:[-a-zA-Z0-9_]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+\n)\n(?=$|[\\s,.\\#)\\[:{>+~|]|/\\*)",
1590
- "name": "entity.other.attribute-name.id.css"
1585
+ }
1591
1586
  },
1592
1587
  {
1588
+ "name": "meta.attribute-selector.css",
1593
1589
  "begin": "\\[",
1594
- "beginCaptures": {
1595
- "0": {
1596
- "name": "punctuation.definition.entity.begin.bracket.square.css"
1597
- }
1598
- },
1599
1590
  "end": "\\]",
1600
- "endCaptures": {
1601
- "0": {
1602
- "name": "punctuation.definition.entity.end.bracket.square.css"
1603
- }
1604
- },
1605
- "name": "meta.attribute-selector.css",
1606
1591
  "patterns": [
1607
1592
  {
1608
1593
  "include": "#comment-block"
@@ -1611,14 +1596,15 @@
1611
1596
  "include": "#string"
1612
1597
  },
1613
1598
  {
1599
+ "match": "(?\u003c=[\"'\\s]|^|\\*/)\\s*([iI])\\s*(?=[\\s\\]]|/\\*|$)",
1614
1600
  "captures": {
1615
1601
  "1": {
1616
1602
  "name": "storage.modifier.ignore-case.css"
1617
1603
  }
1618
- },
1619
- "match": "(?<=[\"'\\s]|^|\\*/)\\s*([iI])\\s*(?=[\\s\\]]|/\\*|$)"
1604
+ }
1620
1605
  },
1621
1606
  {
1607
+ "match": "(?x)(?\u003c==)\\s*((?!/\\*)(?:[^\\\\\"'\\s\\]]|\\\\.)+)",
1622
1608
  "captures": {
1623
1609
  "1": {
1624
1610
  "name": "string.unquoted.attribute-value.css",
@@ -1628,21 +1614,21 @@
1628
1614
  }
1629
1615
  ]
1630
1616
  }
1631
- },
1632
- "match": "(?x)(?<==)\\s*((?!/\\*)(?:[^\\\\\"'\\s\\]]|\\\\.)+)"
1617
+ }
1633
1618
  },
1634
1619
  {
1635
1620
  "include": "#escapes"
1636
1621
  },
1637
1622
  {
1638
- "match": "[~|^$*]?=",
1639
- "name": "keyword.operator.pattern.css"
1623
+ "name": "keyword.operator.pattern.css",
1624
+ "match": "[~|^$*]?="
1640
1625
  },
1641
1626
  {
1642
- "match": "\\|",
1643
- "name": "punctuation.separator.css"
1627
+ "name": "punctuation.separator.css",
1628
+ "match": "\\|"
1644
1629
  },
1645
1630
  {
1631
+ "match": "(?x)\n# Qualified namespace prefix\n( -?(?!\\d)(?:[\\w-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+\n| \\*\n)\n# Lookahead to ensure there's a valid identifier ahead\n(?=\n \\| (?!\\s|=|$|\\])\n (?: -?(?!\\d)\n | [\\\\\\w-]\n | [^\\x00-\\x7F]\n )\n)",
1646
1632
  "captures": {
1647
1633
  "1": {
1648
1634
  "name": "entity.other.namespace-prefix.css",
@@ -1652,10 +1638,10 @@
1652
1638
  }
1653
1639
  ]
1654
1640
  }
1655
- },
1656
- "match": "(?x)\n# Qualified namespace prefix\n( -?(?!\\d)(?:[\\w-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+\n| \\*\n)\n# Lookahead to ensure there's a valid identifier ahead\n(?=\n \\| (?!\\s|=|$|\\])\n (?: -?(?!\\d)\n | [\\\\\\w-]\n | [^\\x00-\\x7F]\n )\n)"
1641
+ }
1657
1642
  },
1658
1643
  {
1644
+ "match": "(?x)\n(-?(?!\\d)(?\u003e[\\w-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+)\n\\s*\n(?=[~|^\\]$*=]|/\\*)",
1659
1645
  "captures": {
1660
1646
  "1": {
1661
1647
  "name": "entity.other.attribute-name.css",
@@ -1665,10 +1651,19 @@
1665
1651
  }
1666
1652
  ]
1667
1653
  }
1668
- },
1669
- "match": "(?x)\n(-?(?!\\d)(?>[\\w-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+)\n\\s*\n(?=[~|^\\]$*=]|/\\*)"
1654
+ }
1670
1655
  }
1671
- ]
1656
+ ],
1657
+ "beginCaptures": {
1658
+ "0": {
1659
+ "name": "punctuation.definition.entity.begin.bracket.square.css"
1660
+ }
1661
+ },
1662
+ "endCaptures": {
1663
+ "0": {
1664
+ "name": "punctuation.definition.entity.end.bracket.square.css"
1665
+ }
1666
+ }
1672
1667
  },
1673
1668
  {
1674
1669
  "include": "#pseudo-classes"
@@ -1680,32 +1675,22 @@
1680
1675
  "include": "#functional-pseudo-classes"
1681
1676
  },
1682
1677
  {
1683
- "match": "(?x) (?<![@\\w-])\n(?= # Custom element names must:\n [a-z] # - start with a lowercase ASCII letter,\n \\w* - # - contain at least one dash\n)\n(?:\n (?![A-Z]) # No uppercase ASCII letters are allowed\n [\\w-] # Allow any other word character or dash\n)+\n(?![(\\w-])",
1684
- "name": "entity.name.tag.custom.css"
1678
+ "name": "entity.name.tag.custom.css",
1679
+ "match": "(?x) (?\u003c![@\\w-])\n(?= # Custom element names must:\n [a-z] # - start with a lowercase ASCII letter,\n \\w* - # - contain at least one dash\n)\n(?:\n (?![A-Z]) # No uppercase ASCII letters are allowed\n [\\w-] # Allow any other word character or dash\n)+\n(?![(\\w-])"
1685
1680
  }
1686
1681
  ]
1687
1682
  },
1688
1683
  "string": {
1689
1684
  "patterns": [
1690
1685
  {
1691
- "begin": "\"",
1692
- "beginCaptures": {
1693
- "0": {
1694
- "name": "punctuation.definition.string.begin.css"
1695
- }
1696
- },
1697
- "end": "\"|(?<!\\\\)(?=$|\\n)",
1698
- "endCaptures": {
1699
- "0": {
1700
- "name": "punctuation.definition.string.end.css"
1701
- }
1702
- },
1703
1686
  "name": "string.quoted.double.css",
1687
+ "begin": "\"",
1688
+ "end": "\"|(?\u003c!\\\\)(?=$|\\n)",
1704
1689
  "patterns": [
1705
1690
  {
1691
+ "name": "invalid.illegal.unclosed.string.css",
1706
1692
  "begin": "(?:\\G|^)(?=(?:[^\\\\\"]|\\\\.)+$)",
1707
1693
  "end": "$",
1708
- "name": "invalid.illegal.unclosed.string.css",
1709
1694
  "patterns": [
1710
1695
  {
1711
1696
  "include": "#escapes"
@@ -1715,27 +1700,27 @@
1715
1700
  {
1716
1701
  "include": "#escapes"
1717
1702
  }
1718
- ]
1719
- },
1720
- {
1721
- "begin": "'",
1703
+ ],
1722
1704
  "beginCaptures": {
1723
1705
  "0": {
1724
1706
  "name": "punctuation.definition.string.begin.css"
1725
1707
  }
1726
1708
  },
1727
- "end": "'|(?<!\\\\)(?=$|\\n)",
1728
1709
  "endCaptures": {
1729
1710
  "0": {
1730
1711
  "name": "punctuation.definition.string.end.css"
1731
1712
  }
1732
- },
1713
+ }
1714
+ },
1715
+ {
1733
1716
  "name": "string.quoted.single.css",
1717
+ "begin": "'",
1718
+ "end": "'|(?\u003c!\\\\)(?=$|\\n)",
1734
1719
  "patterns": [
1735
1720
  {
1721
+ "name": "invalid.illegal.unclosed.string.css",
1736
1722
  "begin": "(?:\\G|^)(?=(?:[^\\\\']|\\\\.)+$)",
1737
1723
  "end": "$",
1738
- "name": "invalid.illegal.unclosed.string.css",
1739
1724
  "patterns": [
1740
1725
  {
1741
1726
  "include": "#escapes"
@@ -1745,15 +1730,26 @@
1745
1730
  {
1746
1731
  "include": "#escapes"
1747
1732
  }
1748
- ]
1733
+ ],
1734
+ "beginCaptures": {
1735
+ "0": {
1736
+ "name": "punctuation.definition.string.begin.css"
1737
+ }
1738
+ },
1739
+ "endCaptures": {
1740
+ "0": {
1741
+ "name": "punctuation.definition.string.end.css"
1742
+ }
1743
+ }
1749
1744
  }
1750
1745
  ]
1751
1746
  },
1752
1747
  "tag-names": {
1753
- "match": "(?xi) (?<![\\w:-])\n(?:\n # HTML\n a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound\n | big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command\n | content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset\n | figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i\n | iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark\n | marquee|math|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript\n | object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rb|rp|rt|rtc\n | ruby|s|samp|script|section|select|shadow|slot|small|source|spacer|span|strike|strong\n | style|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr\n | track|tt|u|ul|var|video|wbr|xmp\n\n # SVG\n | altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|animateMotion|animateTransform\n | circle|clipPath|color-profile|cursor|defs|desc|discard|ellipse|feBlend|feColorMatrix\n | feComponentTransfer|feComposite|feConvolveMatrix|feDiffuseLighting|feDisplacementMap\n | feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur\n | feImage|feMerge|feMergeNode|feMorphology|feOffset|fePointLight|feSpecularLighting\n | feSpotLight|feTile|feTurbulence|filter|font-face|font-face-format|font-face-name\n | font-face-src|font-face-uri|foreignObject|g|glyph|glyphRef|hatch|hatchpath|hkern\n | line|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|metadata\n | missing-glyph|mpath|path|pattern|polygon|polyline|radialGradient|rect|set|solidcolor\n | stop|svg|switch|symbol|text|textPath|tref|tspan|use|view|vkern\n\n # MathML\n | annotation|annotation-xml|maction|maligngroup|malignmark|math|menclose|merror|mfenced\n | mfrac|mglyph|mi|mlabeledtr|mlongdiv|mmultiscripts|mn|mo|mover|mpadded|mphantom|mroot\n | mrow|ms|mscarries|mscarry|msgroup|msline|mspace|msqrt|msrow|mstack|mstyle|msub|msubsup\n | msup|mtable|mtd|mtext|mtr|munder|munderover|semantics\n)\n(?=[+~>\\s,.\\#|){:\\[]|/\\*|$)",
1754
- "name": "entity.name.tag.css"
1748
+ "name": "entity.name.tag.css",
1749
+ "match": "(?xi) (?\u003c![\\w:-])\n(?:\n # HTML\n a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound\n | big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command\n | content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset\n | figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i\n | iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark\n | marquee|math|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript\n | object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rb|rp|rt|rtc\n | ruby|s|samp|script|section|select|shadow|slot|small|source|spacer|span|strike|strong\n | style|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr\n | track|tt|u|ul|var|video|wbr|xmp\n\n # SVG\n | altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|animateMotion|animateTransform\n | circle|clipPath|color-profile|cursor|defs|desc|discard|ellipse|feBlend|feColorMatrix\n | feComponentTransfer|feComposite|feConvolveMatrix|feDiffuseLighting|feDisplacementMap\n | feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur\n | feImage|feMerge|feMergeNode|feMorphology|feOffset|fePointLight|feSpecularLighting\n | feSpotLight|feTile|feTurbulence|filter|font-face|font-face-format|font-face-name\n | font-face-src|font-face-uri|foreignObject|g|glyph|glyphRef|hatch|hatchpath|hkern\n | line|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|metadata\n | missing-glyph|mpath|path|pattern|polygon|polyline|radialGradient|rect|set|solidcolor\n | stop|svg|switch|symbol|text|textPath|tref|tspan|use|view|vkern\n\n # MathML\n | annotation|annotation-xml|maction|maligngroup|malignmark|math|menclose|merror|mfenced\n | mfrac|mglyph|mi|mlabeledtr|mlongdiv|mmultiscripts|mn|mo|mover|mpadded|mphantom|mroot\n | mrow|ms|mscarries|mscarry|msgroup|msline|mspace|msqrt|msrow|mstack|mstyle|msub|msubsup\n | msup|mtable|mtd|mtext|mtr|munder|munderover|semantics\n)\n(?=[+~\u003e\\s,.\\#|){:\\[]|/\\*|$)"
1755
1750
  },
1756
1751
  "unicode-range": {
1752
+ "match": "(?\u003c![\\w-])[Uu]\\+[0-9A-Fa-f?]{1,6}(?:(-)[0-9A-Fa-f]{1,6})?(?![\\w-])",
1757
1753
  "captures": {
1758
1754
  "0": {
1759
1755
  "name": "constant.other.unicode-range.css"
@@ -1761,30 +1757,16 @@
1761
1757
  "1": {
1762
1758
  "name": "punctuation.separator.dash.unicode-range.css"
1763
1759
  }
1764
- },
1765
- "match": "(?<![\\w-])[Uu]\\+[0-9A-Fa-f?]{1,6}(?:(-)[0-9A-Fa-f]{1,6})?(?![\\w-])"
1760
+ }
1766
1761
  },
1767
1762
  "url": {
1768
- "begin": "(?i)(?<![\\w@-])(url)(\\()",
1769
- "beginCaptures": {
1770
- "1": {
1771
- "name": "support.function.url.css"
1772
- },
1773
- "2": {
1774
- "name": "punctuation.section.function.begin.bracket.round.css"
1775
- }
1776
- },
1777
- "end": "\\)",
1778
- "endCaptures": {
1779
- "0": {
1780
- "name": "punctuation.section.function.end.bracket.round.css"
1781
- }
1782
- },
1783
1763
  "name": "meta.function.url.css",
1764
+ "begin": "(?i)(?\u003c![\\w@-])(url)(\\()",
1765
+ "end": "\\)",
1784
1766
  "patterns": [
1785
1767
  {
1786
- "match": "[^'\")\\s]+",
1787
- "name": "variable.parameter.url.css"
1768
+ "name": "variable.parameter.url.css",
1769
+ "match": "[^'\")\\s]+"
1788
1770
  },
1789
1771
  {
1790
1772
  "include": "#string"
@@ -1795,7 +1777,20 @@
1795
1777
  {
1796
1778
  "include": "#escapes"
1797
1779
  }
1798
- ]
1780
+ ],
1781
+ "beginCaptures": {
1782
+ "1": {
1783
+ "name": "support.function.url.css"
1784
+ },
1785
+ "2": {
1786
+ "name": "punctuation.section.function.begin.bracket.round.css"
1787
+ }
1788
+ },
1789
+ "endCaptures": {
1790
+ "0": {
1791
+ "name": "punctuation.section.function.end.bracket.round.css"
1792
+ }
1793
+ }
1799
1794
  }
1800
1795
  }
1801
- }
1796
+ }