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

6 lines
11 KiB
JavaScript
Raw Normal View History

2025-07-26 16:40:29 +08:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Raku\",\"name\":\"raku\",\"patterns\":[{\"begin\":\"^=begin\",\"end\":\"^=end\",\"name\":\"comment.block.perl\"},{\"begin\":\"(^[ \\\\t]+)?(?=#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.perl\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.perl\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.number-sign.perl\"}]},{\"captures\":{\"1\":{\"name\":\"storage.type.class.perl.6\"},\"3\":{\"name\":\"entity.name.type.class.perl.6\"}},\"match\":\"(class|enum|grammar|knowhow|module|package|role|slang|subset)(\\\\s+)(((?:::|')?(?:([a-zA-Z_\\\\x{C0}-\\\\x{FF}\\\\$])([a-zA-Z0-9_\\\\x{C0}-\\\\x{FF}\\\\\\\\$]|[\\\\-'][a-zA-Z0-9_\\\\x{C0}-\\\\x{FF}\\\\$])*))+)\",\"name\":\"meta.class.perl.6\"},{\"begin\":\"(?<=\\\\s)'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.perl\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.perl\"}},\"name\":\"string.quoted.single.perl\",\"patterns\":[{\"match\":\"\\\\\\\\['\\\\\\\\]\",\"name\":\"constant.character.escape.perl\"}]},{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.perl\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.perl\"}},\"name\":\"string.quoted.double.perl\",\"patterns\":[{\"match\":\"\\\\\\\\[abtnfre\\\"\\\\\\\\]\",\"name\":\"constant.character.escape.perl\"}]},{\"begin\":\"q(q|to|heredoc)*\\\\s*:?(q|to|heredoc)*\\\\s*/(.+)/\",\"end\":\"\\\\3\",\"name\":\"string.quoted.single.heredoc.perl\"},{\"begin\":\"(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*{{\",\"end\":\"}}\",\"name\":\"string.quoted.double.heredoc.brace.perl\",\"patterns\":[{\"include\":\"#qq_brace_string_content\"}]},{\"begin\":\"(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\(\\\\(\",\"end\":\"\\\\)\\\\)\",\"name\":\"string.quoted.double.heredoc.paren.perl\",\"patterns\":[{\"include\":\"#qq_paren_string_content\"}]},{\"begin\":\"(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\[\\\\[\",\"end\":\"\\\\]\\\\]\",\"name\":\"string.quoted.double.heredoc.bracket.perl\",\"patterns\":[{\"include\":\"#qq_bracket_string_content\"}]},{\"begin\":\"(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*{\",\"end\":\"}\",\"name\":\"string.quoted.single.heredoc.brace.perl\",\"patterns\":[{\"include\":\"#qq_brace_string_content\"}]},{\"begin\":\"(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*/\",\"end\":\"/\",\"name\":\"string.quoted.single.heredoc.slash.perl\",\"patterns\":[{\"include\":\"#qq_slash_string_content\"}]},{\"begin\":\"(q|Q)(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function
export default [
lang
]