Files
devstar_introduction/node_modules/@shikijs/langs/dist/scala.mjs

6 lines
32 KiB
JavaScript
Raw Normal View History

2025-07-26 16:40:29 +08:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Scala\",\"fileTypes\":[\"scala\"],\"firstLineMatch\":\"^#!/.*\\\\b\\\\w*scala\\\\b\",\"foldingStartMarker\":\"/\\\\*\\\\*|\\\\{\\\\s*$\",\"foldingStopMarker\":\"\\\\*\\\\*/|^\\\\s*\\\\}\",\"name\":\"scala\",\"patterns\":[{\"include\":\"#code\"}],\"repository\":{\"backQuotedVariable\":{\"match\":\"`[^`]+`\"},\"block-comments\":{\"patterns\":[{\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.scala\"}},\"match\":\"/\\\\*\\\\*/\",\"name\":\"comment.block.empty.scala\"},{\"begin\":\"^\\\\s*(/\\\\*\\\\*)(?!/)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.scala\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.scala\"}},\"name\":\"comment.block.documentation.scala\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.other.documentation.scaladoc.scala\"},\"2\":{\"name\":\"variable.parameter.scala\"}},\"match\":\"(@param)\\\\s+(\\\\S+)\"},{\"captures\":{\"1\":{\"name\":\"keyword.other.documentation.scaladoc.scala\"},\"2\":{\"name\":\"entity.name.class\"}},\"match\":\"(@(?:tparam|throws))\\\\s+(\\\\S+)\"},{\"match\":\"@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc|groupname|groupprio|groupdesc|group|contentDiagram|documentable|syntax)\\\\b\",\"name\":\"keyword.other.documentation.scaladoc.scala\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.documentation.link.scala\"},\"2\":{\"name\":\"string.other.link.title.markdown\"},\"3\":{\"name\":\"punctuation.definition.documentation.link.scala\"}},\"match\":\"(\\\\[\\\\[)([^\\\\]]+)(\\\\]\\\\])\"},{\"include\":\"#block-comments\"}]},{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.scala\"}},\"end\":\"\\\\*/\",\"name\":\"comment.block.scala\",\"patterns\":[{\"include\":\"#block-comments\"}]}]},\"char-literal\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.character.begin.scala\"},\"2\":{\"name\":\"punctuation.definition.character.end.scala\"}},\"match\":\"(')'(')\",\"name\":\"string.quoted.other constant.character.literal.scala\"},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.character.begin.scala\"}},\"end\":\"'|$\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.character.end.scala\"}},\"name\":\"string.quoted.other constant.character.literal.scala\",\"patterns\":[{\"match\":\"\\\\\\\\(?:[btnfr\\\\\\\\\\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})\",\"name\":\"constant.character.escape.scala\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.unrecognized-character-escape.scala\"},{\"match\":\"[^']{2,}\",\"name\":\"invalid.illegal.character-literal-too-long\"},{\"match\":\"(?<!')[^']\",\"name\":\"invalid.illegal.character-literal-too-long\"}]}]},\"code\":{\"patterns\":[{\"include\":\"#using-directive\"},{\"include\":\"#script-header\"},{\"include\":\"#storage-modifiers\"},{\"include\":\"#declarations\"},{\"include\":\"#inheritance\"},{\"include\":\"#extension\"},{\"include\":\"#imports\"},{\"include\":\"#exports\"},{\"include\":\"#comments\"},{\"include\":\"#strings\"},{\"include\":\"#initialization\"},{\"include\":\"#xml-literal\"},{\"include\":\"#namedBounds\"},{\"include\":\"#keywords\"},{\"include\":\"#using\"},{\"include\":\"#constants\"},{\"include\":\"#singleton-type\"},{\"include\":\"#inline\"},{\"include\":\"#scala-quoted-or-symbol\"},{\"include\":\"#char-literal\"},{\"include\":\"#empty-parentheses\"},{\"include\":\"#parameter-list\"},{\"include\":\"#qualifiedClassName\"},{\"include\":\"#backQuotedVariable\"},{\"include\":\"#curly-braces\"},{\"include\":\"#meta-brackets\"},{\"include\":\"#meta-bounds\"},{\"include\":\"#meta-colons\"}]},\"comments\":{\"patterns\":[{\"include\":\"#block-comments\"},{\"begin\":\"(^[ \\\\t]+)?(?=//)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.scala\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"//\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.scala\"}},\"end\":\"\\\\n\",\"name\":\"c
export default [
lang
]