@shikijs/langs-precompiled 2.0.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/sass.mjs +4 -2
  2. package/package.json +4 -4
package/dist/sass.mjs CHANGED
@@ -1,3 +1,5 @@
1
- export default []
1
+ const lang = Object.freeze({displayName:"Sass",fileTypes:["sass"],foldingStartMarker:/\/\*|^#|^\*|^\b|\*#?region|^\./dgv,foldingStopMarker:/\*\/|\*#?endregion|^\p{space}*(?=\n?$)/dgv,name:"sass",patterns:[{begin:/^(\p{space}*)(\/\*)/dgv,end:/(\*\/)|^(?!\p{space}(?!))/dgv,name:"comment.block.sass",patterns:[{include:"#comment-tag"},{include:"#comment-param"}]},{match:/^[\t ]*\/?\/\/[\t ]*[SRI][\t ]*(?=\n?$)/dgv,name:"keyword.other.sass.formatter.action"},{begin:/^[\t ]*\/\/[\t ]*(import)[\t ]*(css-variables)[\t ]*(from)/dgv,captures:{"1":{name:"keyword.control"},"2":{name:"variable"},"3":{name:"keyword.control"}},end:/(?=\n?$)\n?/dgv,name:"comment.import.css.variables",patterns:[{include:"#import-quotes"}]},{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#curly-brackets"},{include:"#placeholder-selector"},{begin:/\$[a-zA-Z0-9_\-]+(?=:)/dgv,captures:{"0":{name:"variable.other.name"}},end:/(?=\n?$)\n?|(?=\)\p{space}\)|\)\n)/dgv,name:"sass.script.maps",patterns:[{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#variable"},{include:"#rgb-value"},{include:"#numeric"},{include:"#unit"},{include:"#flag"},{include:"#comma"},{include:"#function"},{include:"#function-content"},{include:"#operator"},{include:"#reserved-words"},{include:"#parent-selector"},{include:"#property-value"},{include:"#semicolon"},{include:"#dotdotdot"}]},{include:"#variable-root"},{include:"#numeric"},{include:"#unit"},{include:"#flag"},{include:"#comma"},{include:"#semicolon"},{include:"#dotdotdot"},{begin:/@include|\+(?![^\p{L}\p{M}\p{N}\p{Pc}]|\p{Nd})/dgv,captures:{"0":{name:"keyword.control.at-rule.css.sass"}},end:/(?=\n|\()/dgv,name:"support.function.name.sass.library"},{begin:/^(@use)/dgv,captures:{"0":{name:"keyword.control.at-rule.css.sass.use"}},end:/(?=\n)/dgv,name:"sass.use",patterns:[{match:/as|with/dgv,name:"support.type.css.sass"},{include:"#numeric"},{include:"#unit"},{include:"#variable-root"},{include:"#rgb-value"},{include:"#comma"},{include:"#parenthesis-open"},{include:"#parenthesis-close"},{include:"#colon"},{include:"#import-quotes"}]},{begin:/^@import([^\n]*?)( as[^\n]*)?(?=\n?$)/dgv,captures:{"1":{name:"constant.character.css.sass"},"2":{name:"invalid"}},end:/(?=\n)/dgv,name:"keyword.control.at-rule.use"},{begin:/@mixin|^[\t ]*=|@function/dgv,captures:{"0":{name:"keyword.control.at-rule.css.sass"}},end:/(?=\n?$)\n?|(?=\()/dgv,name:"support.function.name.sass",patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]+/dgv,name:"entity.name.function"}]},{begin:/@/dgv,end:/(?=\n?$)\n?|\p{space}(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)(\p{space}|,))/dgv,name:"keyword.control.at-rule.css.sass"},{begin:/(?<!-|\()\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|u|slot)\b(?!-|\)|:\p{space})|&/dgv,end:/(?=\n?$)\n?|(?=\p{space}|,|\(|\)|\.|#|\[|>|-|_)/dgv,name:"entity.name.tag.css.sass.symbol",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:/#/dgv,end:/(?=\n?$)\n?|(?=\p{space}|,|\(|\)|\.|\[|>)/dgv,name:"entity.other.attribute-name.id.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:/\.|(?<=&)(-|_)/dgv,end:/(?=\n?$)\n?|(?=\p{space}|,|\(|\)|\[|>)/dgv,name:"entity.other.attribute-name.class.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:/\[/dgv,end:/\]/dgv,name:"entity.other.attribute-selector.sass",patterns:[{include:"#double-quoted"},{include:"#single-quoted"},{match:/\^|\$|\*|~/dgv,name:"keyword.other.regex.sass"}]},{match:/^((?<=\]|\)|not\(|\*|>|>\p{space})|\n*):[a-z\:\-]+|(::|:-)[a-z\:\-]+/dgv,name:"entity.other.attribute-name.pseudo-class.css.sass"},{include:"#module"},{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]*\(/dgv,name:"entity.name.function"},{match:/\)/dgv,name:"entity.name.function.close"},{begin:/:/dgv,end:/(?=\n?$)\n?|(?=\p{space}\(|and\(|\),)/dgv,name:"meta.property-list.css.sass.prop",patterns:[{match:/(?<=:)[a-z\-]+\p{space}/dgv,name:"support.type.property-name.css.sass.prop.name"},{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#curly-brackets"},{include:"#variable"},{include:"#rgb-value"},{include:"#numeric"},{include:"#unit"},{include:"#module"},{match:/--[^\n]+?(?=\))/dgv,name:"variable.css"},{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]*\(/dgv,name:"entity.name.function"},{match:/\)/dgv,name:"entity.name.function.close"},{include:"#flag"},{include:"#comma"},{include:"#semicolon"},{include:"#function"},{include:"#function-content"},{include:"#operator"},{include:"#parent-selector"},{include:"#property-value"}]},{include:"#rgb-value"},{include:"#function"},{include:"#function-content"},{begin:/(?<=\})(?!\n|\(|\)|[a-zA-Z0-9_\-]+:)/dgv,end:/\p{space}|(?=,|\.|\[|\)|\n)/dgv,name:"entity.name.tag.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{include:"#operator"},{match:/[a-z\-]+((?=:|#\{))/dgv,name:"support.type.property-name.css.sass.prop.name"},{include:"#reserved-words"},{include:"#property-value"}],repository:{colon:{match:/:/dgv,name:"meta.property-list.css.sass.colon"},comma:{match:/\band\b|\bor\b|,/dgv,name:"comment.punctuation.comma.sass"},"comment-param":{match:/@([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"storage.type.class.jsdoc"},"comment-tag":{begin:/(?<=\{\{)/dgv,end:/(?=\}\})/dgv,name:"comment.tag.sass"},"curly-brackets":{match:/\{|\}/dgv,name:"invalid"},dotdotdot:{match:/\.\.\./dgv,name:"variable.other"},"double-quoted":{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.css.sass",patterns:[{include:"#quoted-interpolation"}]},"double-slash":{begin:/\/\//dgv,end:/(?=\n?$)\n?/dgv,name:"comment.line.sass",patterns:[{include:"#comment-tag"}]},flag:{match:/!(important|default|optional|global)/dgv,name:"keyword.other.important.css.sass"},function:{match:/(?<=[\p{space}\|\(\|\,\|\:])(?!url|format|attr)[a-zA-Z0-9_\-][\p{L}\p{M}\p{N}\p{Pc}\-]*(?=\()/dgv,name:"support.function.name.sass"},"function-content":{begin:/(?<=url\(|format\(|attr\()/dgv,end:/[^\n](?=\))/dgv,name:"string.quoted.double.css.sass"},"import-quotes":{match:/["']?\.{0,2}[\p{L}\p{M}\p{N}\p{Pc}\/]+["']?/dgv,name:"constant.character.css.sass"},interpolation:{begin:/#\{/dgv,end:/\}/dgv,name:"support.function.interpolation.sass",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#operator"},{include:"#unit"},{include:"#comma"},{include:"#double-quoted"},{include:"#single-quoted"}]},module:{captures:{"1":{name:"constant.character.module.name"},"2":{name:"constant.numeric.module.dot"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+?)(\.)/dgv,name:"constant.character.module"},numeric:{match:/(-|\.)?[0-9]+(\.[0-9]+)?/dgv,name:"constant.numeric.css.sass"},operator:{match:/\+|\p{space}-\p{space}|\p{space}-(?=\$)|(?<=\()-(?=\$)|\p{space}-(?=\()|\*|\/|%|=|!|<|>|~/dgv,name:"keyword.operator.sass"},"parent-selector":{match:/&/dgv,name:"entity.name.tag.css.sass"},"parenthesis-close":{match:/\)/dgv,name:"entity.name.function.parenthesis.close"},"parenthesis-open":{match:/\(/dgv,name:"entity.name.function.parenthesis.open"},"placeholder-selector":{begin:/(?<!\p{Nd})%(?!\p{Nd})/dgv,end:/(?=\n?$)\n?|\p{space}/dgv,name:"entity.other.inherited-class.placeholder-selector.css.sass"},"property-value":{match:/[a-zA-Z0-9_\-]+/dgv,name:"meta.property-value.css.sass support.constant.property-value.css.sass"},"pseudo-class":{match:/:[a-z\:\-]+/dgv,name:"entity.other.attribute-name.pseudo-class.css.sass"},"quoted-interpolation":{begin:/#\{/dgv,end:/\}/dgv,name:"support.function.interpolation.sass",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#operator"},{include:"#unit"},{include:"#comma"}]},"reserved-words":{match:/\b(false|from|in|not|null|through|to|true)\b/dgv,name:"support.type.property-name.css.sass"},"rgb-value":{match:/(#)([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\b/dgv,name:"constant.language.color.rgb-value.css.sass"},semicolon:{match:/;/dgv,name:"invalid"},"single-quoted":{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.css.sass",patterns:[{include:"#quoted-interpolation"}]},unit:{match:/(?<=[\p{Nd}]|\})(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|fr|%)/dgv,name:"keyword.control.unit.css.sass"},variable:{match:/\$[a-zA-Z0-9_\-]+/dgv,name:"variable.other.value"},"variable-root":{match:/\$[a-zA-Z0-9_\-]+/dgv,name:"variable.other.root"}},scopeName:"source.sass",embeddedLangs:undefined,aliases:undefined})
2
2
 
3
- throw new Error("sass is not supported due to the grammar limits")
3
+ export default [
4
+ lang
5
+ ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/langs-precompiled",
3
3
  "type": "module",
4
- "version": "2.0.3",
4
+ "version": "2.1.0",
5
5
  "description": "TextMate grammars for Shiki in ESM",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -346,11 +346,11 @@
346
346
  "node": ">=20"
347
347
  },
348
348
  "dependencies": {
349
- "oniguruma-to-es": "^2.2.0",
350
- "@shikijs/types": "2.0.3"
349
+ "oniguruma-to-es": "^2.3.0",
350
+ "@shikijs/types": "2.1.0"
351
351
  },
352
352
  "devDependencies": {
353
- "tm-grammars": "^1.22.8"
353
+ "tm-grammars": "^1.22.9"
354
354
  },
355
355
  "scripts": {
356
356
  "build": "pnpm prepare"