@shikijs/langs-precompiled 2.3.0 → 2.3.2

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 (101) hide show
  1. package/dist/actionscript-3.mjs +1 -1
  2. package/dist/angular-html.mjs +1 -1
  3. package/dist/applescript.mjs +1 -1
  4. package/dist/ara.mjs +1 -1
  5. package/dist/asciidoc.mjs +1 -1
  6. package/dist/astro.mjs +1 -1
  7. package/dist/beancount.mjs +1 -1
  8. package/dist/blade.mjs +1 -1
  9. package/dist/bsl.mjs +1 -1
  10. package/dist/cadence.mjs +1 -1
  11. package/dist/clarity.mjs +1 -1
  12. package/dist/cmake.mjs +1 -1
  13. package/dist/cobol.mjs +1 -1
  14. package/dist/coq.mjs +1 -1
  15. package/dist/crystal.mjs +1 -1
  16. package/dist/csharp.mjs +6 -2
  17. package/dist/cypher.mjs +1 -1
  18. package/dist/dax.mjs +1 -1
  19. package/dist/diff.mjs +1 -1
  20. package/dist/docker.mjs +1 -1
  21. package/dist/dotenv.mjs +1 -1
  22. package/dist/dream-maker.mjs +1 -1
  23. package/dist/elixir.mjs +1 -1
  24. package/dist/elm.mjs +1 -1
  25. package/dist/erb.mjs +2 -1
  26. package/dist/erlang.mjs +1 -1
  27. package/dist/es-tag-css.mjs +1 -1
  28. package/dist/es-tag-glsl.mjs +1 -1
  29. package/dist/es-tag-html.mjs +1 -1
  30. package/dist/es-tag-sql.mjs +1 -1
  31. package/dist/es-tag-xml.mjs +1 -1
  32. package/dist/fish.mjs +1 -1
  33. package/dist/fortran-free-form.mjs +1 -1
  34. package/dist/fsharp.mjs +1 -1
  35. package/dist/gdresource.mjs +1 -1
  36. package/dist/gdscript.mjs +1 -1
  37. package/dist/git-commit.mjs +1 -1
  38. package/dist/go.mjs +1 -1
  39. package/dist/graphql.mjs +1 -1
  40. package/dist/groovy.mjs +1 -1
  41. package/dist/hack.mjs +1 -1
  42. package/dist/haml.mjs +1 -1
  43. package/dist/haskell.mjs +1 -1
  44. package/dist/hcl.mjs +1 -1
  45. package/dist/html-derivative.mjs +1 -1
  46. package/dist/html.mjs +1 -1
  47. package/dist/jison.mjs +1 -1
  48. package/dist/json.mjs +1 -1
  49. package/dist/json5.mjs +1 -1
  50. package/dist/jsonc.mjs +1 -1
  51. package/dist/jsonl.mjs +1 -1
  52. package/dist/jssm.mjs +1 -1
  53. package/dist/julia.mjs +1 -1
  54. package/dist/kusto.mjs +1 -1
  55. package/dist/latex.mjs +1 -1
  56. package/dist/less.mjs +1 -1
  57. package/dist/markdown.mjs +1 -1
  58. package/dist/marko.mjs +1 -1
  59. package/dist/matlab.mjs +1 -1
  60. package/dist/mermaid.mjs +1 -1
  61. package/dist/mipsasm.mjs +1 -1
  62. package/dist/mojo.mjs +1 -1
  63. package/dist/move.mjs +1 -1
  64. package/dist/nim.mjs +1 -1
  65. package/dist/nushell.mjs +1 -1
  66. package/dist/objective-c.mjs +1 -1
  67. package/dist/objective-cpp.mjs +1 -1
  68. package/dist/perl.mjs +1 -1
  69. package/dist/po.mjs +1 -1
  70. package/dist/polar.mjs +1 -1
  71. package/dist/powershell.mjs +1 -1
  72. package/dist/pug.mjs +1 -1
  73. package/dist/puppet.mjs +1 -1
  74. package/dist/python.mjs +1 -1
  75. package/dist/regexp.mjs +1 -1
  76. package/dist/riscv.mjs +1 -1
  77. package/dist/ruby.mjs +1 -1
  78. package/dist/rust.mjs +1 -1
  79. package/dist/sas.mjs +1 -1
  80. package/dist/scala.mjs +1 -1
  81. package/dist/scheme.mjs +1 -1
  82. package/dist/sdbl.mjs +1 -1
  83. package/dist/shellscript.mjs +1 -1
  84. package/dist/smalltalk.mjs +1 -1
  85. package/dist/splunk.mjs +1 -1
  86. package/dist/sql.mjs +1 -1
  87. package/dist/stata.mjs +1 -1
  88. package/dist/stylus.mjs +1 -1
  89. package/dist/svelte.mjs +1 -1
  90. package/dist/tcl.mjs +1 -1
  91. package/dist/terraform.mjs +1 -1
  92. package/dist/toml.mjs +1 -1
  93. package/dist/twig.mjs +1 -1
  94. package/dist/typst.mjs +1 -1
  95. package/dist/vue.mjs +1 -1
  96. package/dist/vyper.mjs +1 -1
  97. package/dist/wasm.mjs +1 -1
  98. package/dist/wgsl.mjs +1 -1
  99. package/dist/zenscript.mjs +1 -1
  100. package/dist/zig.mjs +1 -1
  101. package/package.json +3 -3
package/dist/zig.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const lang = Object.freeze({displayName:"Zig",fileTypes:["zig","zon"],name:"zig",patterns:[{include:"#comments"},{include:"#strings"},{include:"#keywords"},{include:"#operators"},{include:"#punctuation"},{include:"#numbers"},{include:"#support"},{include:"#variables"}],repository:{commentContents:{patterns:[{match:/\b(TODO|FIXME|XXX|NOTE)\b:?/dgv,name:"keyword.todo.zig"}]},comments:{patterns:[{begin:/\/\/[\!\/](?=[^\/])/dgv,end:/(?=\n?$)/dgv,name:"comment.line.documentation.zig",patterns:[{include:"#commentContents"}]},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.zig",patterns:[{include:"#commentContents"}]}]},keywords:{patterns:[{match:/\binline\b(?!\p{space}*\bfn\b)/dgv,name:"keyword.control.repeat.zig"},{match:/\b(while|for)\b/dgv,name:"keyword.control.repeat.zig"},{match:/\b(extern|packed|export|pub|noalias|inline|comptime|volatile|align|linksection|threadlocal|allowzero|noinline|callconv)\b/dgv,name:"keyword.storage.zig"},{match:/\b(struct|enum|union|opaque)\b/dgv,name:"keyword.structure.zig"},{match:/\b(asm|unreachable)\b/dgv,name:"keyword.statement.zig"},{match:/\b(break|return|continue|defer|errdefer)\b/dgv,name:"keyword.control.flow.zig"},{match:/\b(await|resume|suspend|async|nosuspend)\b/dgv,name:"keyword.control.async.zig"},{match:/\b(try|catch)\b/dgv,name:"keyword.control.trycatch.zig"},{match:/\b(if|else|switch|orelse)\b/dgv,name:"keyword.control.conditional.zig"},{match:/\b(null|undefined)\b/dgv,name:"keyword.constant.default.zig"},{match:/\b(true|false)\b/dgv,name:"keyword.constant.bool.zig"},{match:/\b(usingnamespace|test|and|or)\b/dgv,name:"keyword.default.zig"},{match:/\b(bool|void|noreturn|type|error|anyerror|anyframe|anytype|anyopaque)\b/dgv,name:"keyword.type.zig"},{match:/\b(f16|f32|f64|f80|f128|u\p{Nd}+|i\p{Nd}+|isize|usize|comptime_int|comptime_float)\b/dgv,name:"keyword.type.integer.zig"},{match:/\b(c_char|c_short|c_ushort|c_int|c_uint|c_long|c_ulong|c_longlong|c_ulonglong|c_longdouble)\b/dgv,name:"keyword.type.c.zig"}]},numbers:{patterns:[{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*(\.[0-9a-fA-F][0-9a-fA-F_]*)?([pP][\+\-]?[0-9a-fA-F_]+)?\b/dgv,name:"constant.numeric.hexfloat.zig"},{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][\+\-]?[0-9_]+)?\b/dgv,name:"constant.numeric.float.zig"},{match:/\b[0-9][0-9_]*\b/dgv,name:"constant.numeric.decimal.zig"},{match:/\b0x[a-fA-F0-9_]+\b/dgv,name:"constant.numeric.hexadecimal.zig"},{match:/\b0o[0-7_]+\b/dgv,name:"constant.numeric.octal.zig"},{match:/\b0b[01_]+\b/dgv,name:"constant.numeric.binary.zig"},{match:/\b[0-9](([eEpP][\+\-])|[0-9a-zA-Z_])*(\.(([eEpP][\+\-])|[0-9a-zA-Z_])*)?([eEpP][\+\-])?[0-9a-zA-Z_]*\b/dgv,name:"constant.numeric.invalid.zig"}]},operators:{patterns:[{match:/(?<=\[)\*c(?=\])/dgv,name:"keyword.operator.c-pointer.zig"},{match:/(\b(and|or)\b)|(==|!=|<=|>=|<|>)/dgv,name:"keyword.operator.comparison.zig"},{match:/(-%?|\+%?|\*%?|\/|%)=?/dgv,name:"keyword.operator.arithmetic.zig"},{match:/(<<%?|>>|!|~|&|\^|\|)=?/dgv,name:"keyword.operator.bitwise.zig"},{match:/(==|\+\+|\*\*|->)/dgv,name:"keyword.operator.special.zig"},{match:/=/dgv,name:"keyword.operator.assignment.zig"},{match:/\?/dgv,name:"keyword.operator.question.zig"}]},punctuation:{patterns:[{match:/\./dgv,name:"punctuation.accessor.zig"},{match:/,/dgv,name:"punctuation.comma.zig"},{match:/:/dgv,name:"punctuation.separator.key-value.zig"},{match:/;/dgv,name:"punctuation.terminator.statement.zig"}]},stringcontent:{patterns:[{match:/\\([nrt'"\\]|(x[0-9a-fA-F]{2})|(u\{[0-9a-fA-F]+\}))/dgv,name:"constant.character.escape.zig"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.zig"}]},strings:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.zig",patterns:[{include:"#stringcontent"}]},{begin:/\\\\/dgv,end:/(?=\n?$)/dgv,name:"string.multiline.zig"},{match:/'([^'\\]|\\(x\p{AHex}{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|[^\n]))'/dgv,name:"string.quoted.single.zig"}]},support:{patterns:[{comment:"Built-in functions",match:/@[_a-zA-Z][_a-zA-Z0-9]*/dgv,name:"support.function.builtin.zig"}]},variables:{patterns:[{name:"meta.function.declaration.zig",patterns:[{captures:{"1":{name:"storage.type.function.zig"},"2":{name:"entity.name.type.zig"}},match:/\b(fn)\p{space}+([A-Z][a-zA-Z0-9]*)\b/dgv},{captures:{"1":{name:"storage.type.function.zig"},"2":{name:"entity.name.function.zig"}},match:/\b(fn)\p{space}+([_a-zA-Z][_a-zA-Z0-9]*)\b/dgv},{begin:/\b(fn)\p{space}+@"/dgv,beginCaptures:{"1":{name:"storage.type.function.zig"}},end:/"/dgv,name:"entity.name.function.string.zig",patterns:[{include:"#stringcontent"}]},{match:/\b(const|var|fn)\b/dgv,name:"keyword.default.zig"}]},{name:"meta.function.call.zig",patterns:[{match:/([A-Z][a-zA-Z0-9]*)(?=\p{space}*\()/dgv,name:"entity.name.type.zig"},{match:/([_a-zA-Z][_a-zA-Z0-9]*)(?=\p{space}*\()/dgv,name:"entity.name.function.zig"}]},{name:"meta.variable.zig",patterns:[{match:/\b[_a-zA-Z][_a-zA-Z0-9]*\b/dgv,name:"variable.zig"},{begin:/@"/dgv,end:/"/dgv,name:"variable.string.zig",patterns:[{include:"#stringcontent"}]}]}]}},scopeName:"source.zig",embeddedLangs:undefined,aliases:undefined})
1
+ const lang = Object.freeze({displayName:"Zig",fileTypes:["zig","zon"],name:"zig",patterns:[{include:"#comments"},{include:"#strings"},{include:"#keywords"},{include:"#operators"},{include:"#punctuation"},{include:"#numbers"},{include:"#support"},{include:"#variables"}],repository:{commentContents:{patterns:[{match:/\b(TODO|FIXME|XXX|NOTE)\b:?/dgv,name:"keyword.todo.zig"}]},comments:{patterns:[{begin:/\/\/[\!\/](?=[^\/])/dgv,end:/(?=\n?$)/dgv,name:"comment.line.documentation.zig",patterns:[{include:"#commentContents"}]},{begin:/\/\//dgv,end:/(?=\n?$)/dgv,name:"comment.line.double-slash.zig",patterns:[{include:"#commentContents"}]}]},keywords:{patterns:[{match:/\binline\b(?!\p{space}*\bfn\b)/dgv,name:"keyword.control.repeat.zig"},{match:/\b(while|for)\b/dgv,name:"keyword.control.repeat.zig"},{match:/\b(extern|packed|export|pub|noalias|inline|comptime|volatile|align|linksection|threadlocal|allowzero|noinline|callconv)\b/dgv,name:"keyword.storage.zig"},{match:/\b(struct|enum|union|opaque)\b/dgv,name:"keyword.structure.zig"},{match:/\b(asm|unreachable)\b/dgv,name:"keyword.statement.zig"},{match:/\b(break|return|continue|defer|errdefer)\b/dgv,name:"keyword.control.flow.zig"},{match:/\b(await|resume|suspend|async|nosuspend)\b/dgv,name:"keyword.control.async.zig"},{match:/\b(try|catch)\b/dgv,name:"keyword.control.trycatch.zig"},{match:/\b(if|else|switch|orelse)\b/dgv,name:"keyword.control.conditional.zig"},{match:/\b(null|undefined)\b/dgv,name:"keyword.constant.default.zig"},{match:/\b(true|false)\b/dgv,name:"keyword.constant.bool.zig"},{match:/\b(usingnamespace|test|and|or)\b/dgv,name:"keyword.default.zig"},{match:/\b(bool|void|noreturn|type|error|anyerror|anyframe|anytype|anyopaque)\b/dgv,name:"keyword.type.zig"},{match:/\b(f16|f32|f64|f80|f128|u\p{Nd}+|i\p{Nd}+|isize|usize|comptime_int|comptime_float)\b/dgv,name:"keyword.type.integer.zig"},{match:/\b(c_char|c_short|c_ushort|c_int|c_uint|c_long|c_ulong|c_longlong|c_ulonglong|c_longdouble)\b/dgv,name:"keyword.type.c.zig"}]},numbers:{patterns:[{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*(\.[0-9a-fA-F][0-9a-fA-F_]*)?([pP][\+\-]?[0-9a-fA-F_]+)?\b/dgv,name:"constant.numeric.hexfloat.zig"},{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][\+\-]?[0-9_]+)?\b/dgv,name:"constant.numeric.float.zig"},{match:/\b[0-9][0-9_]*\b/dgv,name:"constant.numeric.decimal.zig"},{match:/\b0x[a-fA-F0-9_]+\b/dgv,name:"constant.numeric.hexadecimal.zig"},{match:/\b0o[0-7_]+\b/dgv,name:"constant.numeric.octal.zig"},{match:/\b0b[01_]+\b/dgv,name:"constant.numeric.binary.zig"},{match:/\b[0-9](([eEpP][\+\-])|[0-9a-zA-Z_])*(\.(([eEpP][\+\-])|[0-9a-zA-Z_])*)?([eEpP][\+\-])?[0-9a-zA-Z_]*\b/dgv,name:"constant.numeric.invalid.zig"}]},operators:{patterns:[{match:/(?<=\[)\*c(?=\])/dgv,name:"keyword.operator.c-pointer.zig"},{match:/(\b(and|or)\b)|(==|!=|<=|>=|<|>)/dgv,name:"keyword.operator.comparison.zig"},{match:/(-%?|\+%?|\*%?|\/|%)=?/dgv,name:"keyword.operator.arithmetic.zig"},{match:/(<<%?|>>|!|~|&|\^|\|)=?/dgv,name:"keyword.operator.bitwise.zig"},{match:/(==|\+\+|\*\*|->)/dgv,name:"keyword.operator.special.zig"},{match:/=/dgv,name:"keyword.operator.assignment.zig"},{match:/\?/dgv,name:"keyword.operator.question.zig"}]},punctuation:{patterns:[{match:/\./dgv,name:"punctuation.accessor.zig"},{match:/,/dgv,name:"punctuation.comma.zig"},{match:/:/dgv,name:"punctuation.separator.key-value.zig"},{match:/;/dgv,name:"punctuation.terminator.statement.zig"}]},stringcontent:{patterns:[{match:/\\([nrt'"\\]|(x[0-9a-fA-F]{2})|(u\{[0-9a-fA-F]+\}))/dgv,name:"constant.character.escape.zig"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.zig"}]},strings:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.zig",patterns:[{include:"#stringcontent"}]},{begin:/\\\\/dgv,end:/(?=\n?$)/dgv,name:"string.multiline.zig"},{match:/'([^'\\]|\\(x\p{AHex}{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|[^\n]))'/dgv,name:"string.quoted.single.zig"}]},support:{patterns:[{match:/@[_a-zA-Z][_a-zA-Z0-9]*/dgv,name:"support.function.builtin.zig"}]},variables:{patterns:[{name:"meta.function.declaration.zig",patterns:[{captures:{"1":{name:"storage.type.function.zig"},"2":{name:"entity.name.type.zig"}},match:/\b(fn)\p{space}+([A-Z][a-zA-Z0-9]*)\b/dgv},{captures:{"1":{name:"storage.type.function.zig"},"2":{name:"entity.name.function.zig"}},match:/\b(fn)\p{space}+([_a-zA-Z][_a-zA-Z0-9]*)\b/dgv},{begin:/\b(fn)\p{space}+@"/dgv,beginCaptures:{"1":{name:"storage.type.function.zig"}},end:/"/dgv,name:"entity.name.function.string.zig",patterns:[{include:"#stringcontent"}]},{match:/\b(const|var|fn)\b/dgv,name:"keyword.default.zig"}]},{name:"meta.function.call.zig",patterns:[{match:/([A-Z][a-zA-Z0-9]*)(?=\p{space}*\()/dgv,name:"entity.name.type.zig"},{match:/([_a-zA-Z][_a-zA-Z0-9]*)(?=\p{space}*\()/dgv,name:"entity.name.function.zig"}]},{name:"meta.variable.zig",patterns:[{match:/\b[_a-zA-Z][_a-zA-Z0-9]*\b/dgv,name:"variable.zig"},{begin:/@"/dgv,end:/"/dgv,name:"variable.string.zig",patterns:[{include:"#stringcontent"}]}]}]}},scopeName:"source.zig",embeddedLangs:undefined,aliases:undefined})
2
2
 
3
3
  export default [
4
4
  lang
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/langs-precompiled",
3
3
  "type": "module",
4
- "version": "2.3.0",
4
+ "version": "2.3.2",
5
5
  "description": "TextMate grammars for Shiki in ESM",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -347,10 +347,10 @@
347
347
  },
348
348
  "dependencies": {
349
349
  "oniguruma-to-es": "^3.1.0",
350
- "@shikijs/types": "2.3.0"
350
+ "@shikijs/types": "2.3.2"
351
351
  },
352
352
  "devDependencies": {
353
- "tm-grammars": "^1.22.11"
353
+ "tm-grammars": "^1.22.13"
354
354
  },
355
355
  "scripts": {
356
356
  "build": "pnpm prepare"