Files
Library/node_modules/@shikijs/langs/dist/nushell.mjs

6 lines
22 KiB
JavaScript
Raw Normal View History

2026-01-09 23:05:52 -05:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"nushell\",\"name\":\"nushell\",\"patterns\":[{\"include\":\"#define-variable\"},{\"include\":\"#define-alias\"},{\"include\":\"#function\"},{\"include\":\"#extern\"},{\"include\":\"#module\"},{\"include\":\"#use-module\"},{\"include\":\"#expression\"},{\"include\":\"#comment\"}],\"repository\":{\"binary\":{\"begin\":\"\\\\b(0x)(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.numeric.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"name\":\"constant.binary.nushell\",\"patterns\":[{\"match\":\"\\\\h{2}\",\"name\":\"constant.numeric.nushell\"}]},\"braced-expression\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.expression.braced.nushell\",\"patterns\":[{\"begin\":\"(?<=\\\\{)\\\\s*\\\\|\",\"end\":\"\\\\|\",\"name\":\"meta.closure.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"}]},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\w+)\\\\s*(:)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$\\\"((?:[^\\\"\\\\\\\\]|\\\\\\\\.)*)\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\"(?:[^\\\"\\\\\\\\]|\\\\\\\\.)*\\\")\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(\\\\$'([^']*)')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"captures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"('[^']*')\\\\s*(:)\\\\s*\",\"name\":\"meta.record-entry.nushell\"},{\"include\":\"#spread\"},{\"include\":\"source.nushell\"}]},\"command\":{\"begin\":\"(?<!\\\\w)(?:(\\\\^)|(?![$0-9]))([!.\\\\w]+(?: (?!-)[-!.\\\\w]+(?:(?=[ )])|$)|[-!.\\\\w]+)*|(?<=\\\\^)\\\\$?(?:\\\"[^\\\"]+\\\"|'[^']+'))\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#control-keywords\"},{\"captures\":{\"0\":{\"name\":\"keyword.other.builtin.nushell\"}},\"match\":\"(?:ansi|char) \\\\w+\"},{\"captures\":{\"1\":{\"name\":\"keyword.other.builtin.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st|ttr(?: (?:category|deprecated|example|search-terms))?)|b(?:its(?: (?:and|not|or|ro[lr]|sh[lr]|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|s(?:plit|tarts-with)))?)|c(?:al|d|h(?:ar|unk(?:-by|s))|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|flatten|nu|reset|use-colors))?|st|tinue))|p)|d(?:ate(?: (?:f(?:ormat|rom-human)|humanize|list-timezone|now|to-timezone))?|e(?:bug(?: (?:e(?:nv|xperimental-options)|info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex))?|f(?:ault)?|scribe|tect(?: columns)?)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex))?|umerate)|rror(?: make)?|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:[el]|ter)|nd|rst)|latten|or(?:mat(?: (?:bits|d(?:ate|uration)|filesize|number|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpackz?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|ya?ml))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup-by)|stat)|h(
export default [
lang
]