@openclaw/diffs 2026.10.2 → 2026.10.5-beta.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 (134) hide show
  1. package/dist/.setup/{browser.runtime-B8JeyUXz.mjs → browser.runtime-BfvyJ76b.mjs} +7 -11
  2. package/dist/assets/viewer-runtime.js +97 -1316
  3. package/dist/index.js +19 -42
  4. package/node_modules/@pierre/diffs/dist/components/CodeView.d.ts +2 -4
  5. package/node_modules/@pierre/diffs/dist/components/CodeView.d.ts.map +1 -1
  6. package/node_modules/@pierre/diffs/dist/components/CodeView.js +23 -12
  7. package/node_modules/@pierre/diffs/dist/components/CodeView.js.map +1 -1
  8. package/node_modules/@pierre/diffs/dist/components/File.d.ts +2 -0
  9. package/node_modules/@pierre/diffs/dist/components/File.d.ts.map +1 -1
  10. package/node_modules/@pierre/diffs/dist/components/File.js +6 -0
  11. package/node_modules/@pierre/diffs/dist/components/File.js.map +1 -1
  12. package/node_modules/@pierre/diffs/dist/components/FileDiff.d.ts +18 -1
  13. package/node_modules/@pierre/diffs/dist/components/FileDiff.d.ts.map +1 -1
  14. package/node_modules/@pierre/diffs/dist/components/FileDiff.js +47 -15
  15. package/node_modules/@pierre/diffs/dist/components/FileDiff.js.map +1 -1
  16. package/node_modules/@pierre/diffs/dist/components/VirtualizedFile.d.ts.map +1 -1
  17. package/node_modules/@pierre/diffs/dist/components/VirtualizedFile.js +11 -11
  18. package/node_modules/@pierre/diffs/dist/components/VirtualizedFile.js.map +1 -1
  19. package/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.d.ts.map +1 -1
  20. package/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.js +18 -17
  21. package/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.js.map +1 -1
  22. package/node_modules/@pierre/diffs/dist/constants.d.ts +1 -3
  23. package/node_modules/@pierre/diffs/dist/constants.d.ts.map +1 -1
  24. package/node_modules/@pierre/diffs/dist/constants.js +1 -3
  25. package/node_modules/@pierre/diffs/dist/constants.js.map +1 -1
  26. package/node_modules/@pierre/diffs/dist/editor/editor.d.ts.map +1 -1
  27. package/node_modules/@pierre/diffs/dist/editor/editor.js +16 -3
  28. package/node_modules/@pierre/diffs/dist/editor/editor.js.map +1 -1
  29. package/node_modules/@pierre/diffs/dist/editor/editor2.js +1 -1
  30. package/node_modules/@pierre/diffs/dist/index.d.ts +2 -2
  31. package/node_modules/@pierre/diffs/dist/index.js +2 -2
  32. package/node_modules/@pierre/diffs/dist/react/utils/useFileDiffInstance.d.ts.map +1 -1
  33. package/node_modules/@pierre/diffs/dist/react/utils/useFileDiffInstance.js +47 -11
  34. package/node_modules/@pierre/diffs/dist/react/utils/useFileDiffInstance.js.map +1 -1
  35. package/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.d.ts.map +1 -1
  36. package/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.js +20 -13
  37. package/node_modules/@pierre/diffs/dist/renderers/DiffHunksRenderer.js.map +1 -1
  38. package/node_modules/@pierre/diffs/dist/renderers/FileRenderer.d.ts.map +1 -1
  39. package/node_modules/@pierre/diffs/dist/renderers/FileRenderer.js +30 -11
  40. package/node_modules/@pierre/diffs/dist/renderers/FileRenderer.js.map +1 -1
  41. package/node_modules/@pierre/diffs/dist/sprite.d.ts +2 -2
  42. package/node_modules/@pierre/diffs/dist/sprite.d.ts.map +1 -1
  43. package/node_modules/@pierre/diffs/dist/sprite.js +57 -0
  44. package/node_modules/@pierre/diffs/dist/sprite.js.map +1 -1
  45. package/node_modules/@pierre/diffs/dist/style.js +1 -1
  46. package/node_modules/@pierre/diffs/dist/types.d.ts +1 -1
  47. package/node_modules/@pierre/diffs/dist/types.d.ts.map +1 -1
  48. package/node_modules/@pierre/diffs/dist/utils/editSessionHunks.d.ts +5 -4
  49. package/node_modules/@pierre/diffs/dist/utils/editSessionHunks.d.ts.map +1 -1
  50. package/node_modules/@pierre/diffs/dist/utils/editSessionHunks.js +32 -9
  51. package/node_modules/@pierre/diffs/dist/utils/editSessionHunks.js.map +1 -1
  52. package/node_modules/@pierre/diffs/dist/utils/parsePatchFiles.d.ts.map +1 -1
  53. package/node_modules/@pierre/diffs/dist/utils/parsePatchFiles.js +21 -13
  54. package/node_modules/@pierre/diffs/dist/utils/parsePatchFiles.js.map +1 -1
  55. package/node_modules/@pierre/diffs/dist/utils/parseQuotedDiffFileName.d.ts +8 -0
  56. package/node_modules/@pierre/diffs/dist/utils/parseQuotedDiffFileName.d.ts.map +1 -0
  57. package/node_modules/@pierre/diffs/dist/utils/parseQuotedDiffFileName.js +54 -0
  58. package/node_modules/@pierre/diffs/dist/utils/parseQuotedDiffFileName.js.map +1 -0
  59. package/node_modules/@pierre/diffs/dist/utils/realignChangeContent.d.ts +13 -10
  60. package/node_modules/@pierre/diffs/dist/utils/realignChangeContent.d.ts.map +1 -1
  61. package/node_modules/@pierre/diffs/dist/utils/realignChangeContent.js +23 -19
  62. package/node_modules/@pierre/diffs/dist/utils/realignChangeContent.js.map +1 -1
  63. package/node_modules/@pierre/diffs/dist/utils/renderDiffWithHighlighter.js +39 -0
  64. package/node_modules/@pierre/diffs/dist/utils/renderDiffWithHighlighter.js.map +1 -1
  65. package/node_modules/@pierre/diffs/dist/worker/worker-portable.js +39 -0
  66. package/node_modules/@pierre/diffs/dist/worker/worker-portable.js.map +1 -1
  67. package/node_modules/@pierre/diffs/dist/worker/worker.js +39 -0
  68. package/node_modules/@pierre/diffs/dist/worker/worker.js.map +1 -1
  69. package/node_modules/@pierre/diffs/node_modules/@shikijs/core/dist/index.d.mts +28 -28
  70. package/node_modules/@pierre/diffs/node_modules/@shikijs/core/dist/index.mjs +15 -12
  71. package/node_modules/@pierre/diffs/node_modules/@shikijs/core/package.json +4 -4
  72. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/{engine-compile-Bdn9ihA2.d.mts → engine-compile-CtqiSkRk.d.mts} +5 -0
  73. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/engine-compile.d.mts +1 -1
  74. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +2 -4
  75. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/engine-raw.d.mts +2 -3
  76. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +2 -4
  77. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/index.d.mts +1 -1
  78. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/index.mjs +1 -1
  79. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/string-TLTPtCPs.mjs +115 -0
  80. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/package.json +3 -3
  81. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-oniguruma/package.json +3 -3
  82. package/node_modules/@pierre/diffs/node_modules/@shikijs/primitive/dist/index.d.mts +31 -32
  83. package/node_modules/@pierre/diffs/node_modules/@shikijs/primitive/dist/index.mjs +2 -1
  84. package/node_modules/@pierre/diffs/node_modules/@shikijs/primitive/package.json +3 -3
  85. package/node_modules/@pierre/diffs/node_modules/@shikijs/themes/dist/monokai.mjs +1 -1
  86. package/node_modules/@pierre/diffs/node_modules/@shikijs/themes/dist/one-dark-pro.mjs +1 -1
  87. package/node_modules/@pierre/diffs/node_modules/@shikijs/themes/dist/red.mjs +1 -1
  88. package/node_modules/@pierre/diffs/node_modules/@shikijs/themes/dist/solarized-dark.mjs +1 -1
  89. package/node_modules/@pierre/diffs/node_modules/@shikijs/themes/dist/solarized-light.mjs +1 -1
  90. package/node_modules/@pierre/diffs/node_modules/@shikijs/themes/package.json +3 -3
  91. package/node_modules/@pierre/diffs/node_modules/@shikijs/transformers/dist/index.d.mts +58 -35
  92. package/node_modules/@pierre/diffs/node_modules/@shikijs/transformers/dist/index.mjs +35 -4
  93. package/node_modules/@pierre/diffs/node_modules/@shikijs/transformers/package.json +3 -3
  94. package/node_modules/@pierre/diffs/node_modules/@shikijs/types/dist/index.d.mts +76 -76
  95. package/node_modules/@pierre/diffs/node_modules/@shikijs/types/package.json +1 -1
  96. package/node_modules/@pierre/diffs/node_modules/micromark-util-types/index.d.ts +6 -3
  97. package/node_modules/@pierre/diffs/node_modules/micromark-util-types/package.json +2 -36
  98. package/node_modules/@pierre/diffs/node_modules/shiki/dist/bundle-full.d.mts +4 -4
  99. package/node_modules/@pierre/diffs/node_modules/shiki/dist/bundle-web.d.mts +9 -9
  100. package/node_modules/@pierre/diffs/node_modules/shiki/dist/types.d.mts +3 -3
  101. package/node_modules/@pierre/diffs/node_modules/shiki/package.json +10 -10
  102. package/node_modules/@pierre/diffs/package.json +1 -1
  103. package/node_modules/@shikijs/langs/dist/ada.mjs +1 -1
  104. package/node_modules/@shikijs/langs/dist/ahk.mjs +1 -1
  105. package/node_modules/@shikijs/langs/dist/beancount.mjs +1 -1
  106. package/node_modules/@shikijs/langs/dist/coq.mjs +1 -1
  107. package/node_modules/@shikijs/langs/dist/csharp.mjs +1 -1
  108. package/node_modules/@shikijs/langs/dist/css.mjs +1 -1
  109. package/node_modules/@shikijs/langs/dist/dart.mjs +1 -1
  110. package/node_modules/@shikijs/langs/dist/dotenv.mjs +1 -1
  111. package/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +1 -1
  112. package/node_modules/@shikijs/langs/dist/gn.mjs +1 -1
  113. package/node_modules/@shikijs/langs/dist/handlebars.mjs +1 -1
  114. package/node_modules/@shikijs/langs/dist/julia.mjs +1 -1
  115. package/node_modules/@shikijs/langs/dist/latex.mjs +1 -1
  116. package/node_modules/@shikijs/langs/dist/luau.mjs +1 -1
  117. package/node_modules/@shikijs/langs/dist/marko.mjs +1 -1
  118. package/node_modules/@shikijs/langs/dist/moonbit.mjs +1 -1
  119. package/node_modules/@shikijs/langs/dist/nextflow-groovy.mjs +1 -1
  120. package/node_modules/@shikijs/langs/dist/nextflow.mjs +1 -1
  121. package/node_modules/@shikijs/langs/dist/nushell.mjs +1 -1
  122. package/node_modules/@shikijs/langs/dist/php.mjs +1 -1
  123. package/node_modules/@shikijs/langs/dist/powershell.mjs +1 -1
  124. package/node_modules/@shikijs/langs/dist/ruby.mjs +1 -1
  125. package/node_modules/@shikijs/langs/dist/rust.mjs +1 -1
  126. package/node_modules/@shikijs/langs/dist/sql.mjs +1 -1
  127. package/node_modules/@shikijs/langs/dist/svelte.mjs +1 -1
  128. package/node_modules/@shikijs/langs/dist/twig.mjs +3 -3
  129. package/node_modules/@shikijs/langs/dist/typespec.mjs +1 -1
  130. package/node_modules/@shikijs/langs/node_modules/@shikijs/types/dist/index.d.mts +76 -76
  131. package/node_modules/@shikijs/langs/node_modules/@shikijs/types/package.json +1 -1
  132. package/node_modules/@shikijs/langs/package.json +3 -3
  133. package/package.json +6 -6
  134. package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/dist/scanner-DX8LRFGE.mjs +0 -77
@@ -1,4 +1,4 @@
1
- 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\":\"string.quoted.double.nushell 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\":\"string.quoted.single.nushell 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(?: (?:c(?:ategory|omplete(?: external)?)|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))|l(?:ear|ip(?: (?:copy|paste))?)|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|type))?)|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(?: (?:config|regex))?)|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|m(?:d|sgpackz?)|nuon|ods|p(?:arquet|list)|ssv|t(?:o(?:ml|on)|sv)|url|vcf|x(?:lsx|ml)|ya?ml))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup-by)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators|pipe-and-redirect))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: (?:import|session))?))|ttp(?: (?:delete|get|head|options|p(?:atch|o(?:ol|st)|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:inary|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:o(?:b(?: (?:describe|flush|id|kill|list|recv|s(?:end|pawn)|unfreeze))?|in)|s(?:on path|p)|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op))|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cosh?|sinh?|tanh?)|vg)|c(?:eil|osh?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:inh?|qrt|tddev|um)|tanh?|variance))?)|e(?:rge(?: deep)?|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|s(?:elf|plit)|type))?)|lugin(?: (?:add|list|rm|stop|use))?|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains|vert-time-zone)|unt(?:-null)?)|u(?:mulative|t))|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|e(?:ntropy|xp(?:lode|r-not))|f(?:i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|horizontal|i(?:mplode|nt(?:eger|o-(?:d(?:f|type)|lazy|nu|repr|schema))|s-(?:duplicated|in|n(?:ot-n|)ull|unique))|join(?:-where)?|l(?:ast|en|i(?:st-contains|t)|owercase)|m(?:a(?:th|x)|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise|ver)|p(?:ivot|rofile)|q(?:cut|u(?:antile|ery))|r(?:e(?:name|place(?:-time-zone)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect(?:or(?: (?:all|by-(?:dtype|name)|ends-with|f(?:irst|loat)|integer|last|matches|n(?:ot|umeric)|s(?:igned-integer|tarts-with)|unsigned-integer))?)?|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|replace(?:-all)?|s(?:lice|plit|trip-chars))|ftime|uct-json-encode))|um(?:mary)?)|t(?:ake|runcate)|u(?:n(?:ique|nest|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:andom(?: (?:b(?:inary|ool)|chars|float|int|uuid))?|e(?:duce|g(?:ex|istry(?: query)?)|ject|name|turn|verse)|[gm]|o(?:ll(?: (?:down|left|right|up))?|tate)|un-(?:ex|in)ternal)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|l(?:eep|ice)|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words))?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|o(?:mpress|ntains))|d(?:e(?:compress|dent|unicode)|istance|owncase)|e(?:nds-with|scape-regex|xpand)|inde(?:nt|x-of)|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|hl-(?:quote|split)|imilarity|lug|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase|wrap)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm(?: (?:query|size))?)|imeit|o(?: (?:csv|gui|html|json|m(?:d|sgpackz?)|nuon|p(?:arquet|list)|t(?:ext|o(?:ml|on)|sv)|xml|ya?ml)|uch)?|r(?:anspose|ee|y)|utor)|u(?:limit|mask|n(?:ame|iq(?:-by)?|let)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse|split-query))?|se)|v(?:alues|ersion(?: check)?|iew(?: (?:blocks|files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![-\\\\w])( (.*))?\"},{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#paren-expression\"}]}},\"match\":\"(?<=\\\\^)(?:\\\\$(\\\"[^\\\"]+\\\"|'[^']+')|\\\"[^\\\"]+\\\"|'[^']+')\",\"name\":\"entity.name.type.external.nushell\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.external.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"([.\\\\w]+(?:-[!.\\\\w]+)*)(?: (.*))?\"},{\"include\":\"#value\"}]}},\"end\":\"(?=[);|}])|$\",\"name\":\"meta.command.nushell\",\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#spread\"},{\"include\":\"#value\"}]},\"comment\":{\"match\":\"(#.*)$\",\"name\":\"comment.nushell\"},\"constant-keywords\":{\"match\":\"\\\\b(?:true|false|null)\\\\b\",\"name\":\"constant.language.nushell\"},\"constant-value\":{\"patterns\":[{\"include\":\"#constant-keywords\"},{\"include\":\"#datetime\"},{\"include\":\"#numbers\"},{\"include\":\"#numbers-hexa\"},{\"include\":\"#numbers-octal\"},{\"include\":\"#numbers-binary\"},{\"include\":\"#binary\"}]},\"control-keywords\":{\"match\":\"(?<![\\\\--:A-Z\\\\\\\\_a-z])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![\\\\--:A-Z\\\\\\\\_a-z])\",\"name\":\"keyword.control.nushell\"},\"datetime\":{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?:T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:\\\\+\\\\d{2}:?\\\\d{2}|Z)?)?\\\\b\",\"name\":\"constant.numeric.nushell\"},\"define-alias\":{\"captures\":{\"1\":{\"name\":\"storage.type.alias.nushell\"},\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"((?:export )?alias)\\\\s+([-!\\\\w]+)\\\\s*(=)\"},\"define-variable\":{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"punctuation.separator.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#types\"}]},\"5\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"(let|mut|(?:export\\\\s+)?const)\\\\s+(\\\\w+)(?:\\\\s*(:)\\\\s*([^=]+?))?\\\\s+(=)\"},\"expression\":{\"patterns\":[{\"include\":\"#pre-command\"},{\"include\":\"#for-loop\"},{\"include\":\"#operators\"},{\"match\":\"\\\\|\",\"name\":\"keyword.control.nushell\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#string-raw\"},{\"include\":\"#command\"},{\"include\":\"#value\"}]},\"extern\":{\"begin\":\"((?:export\\\\s+)?extern)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.nushell\"},\"2\":{\"name\":\"entity.name.function.nushell\"}},\"end\":\"(?<=])\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"patterns\":[{\"include\":\"#function-parameters\"}]},\"for-loop\":{\"begin\":\"(for)\\\\s+(\\\\$?\\\\w+)\\\\s+(in)\\\\s+(.+)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#value\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.for-loop.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function\":{\"begin\":\"((?:export\\\\s+)?def)(?:\\\\s+(--\\\\w+(?:\\\\s+--\\\\w+)*))?\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|`[- \\\\w]+`)(?:\\\\s+(--\\\\w+(?:\\\\s+--\\\\w+)*))?\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.nushell\"},\"2\":{\"name\":\"storage.modifier.nushell\"},\"3\":{\"name\":\"entity.name.function.nushell\"},\"4\":{\"name\":\"storage.modifier.nushell\"}},\"end\":\"(?<=})\",\"patterns\":[{\"include\":\"#function-parameters\"},{\"include\":\"#function-body\"},{\"include\":\"#function-inout\"}]},\"function-body\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.begin.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"name\":\"meta.function.body.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function-inout\":{\"patterns\":[{\"include\":\"#types\"},{\"match\":\"->\",\"name\":\"keyword.operator.nushell\"},{\"include\":\"#function-multiple-inout\"}]},\"function-multiple-inout\":{\"begin\":\"(?<=]\\\\s*)(:)\\\\s+(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.in-out.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"include\":\"#types\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.nushell\"}},\"match\":\"\\\\s*(,)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.nushell\"}},\"match\":\"\\\\s+(->)\\\\s+\"}]},\"function-parameter\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(-{0,2}|\\\\.{3})[-\\\\w]+(?:\\\\((-[?\\\\w])\\\\))?\",\"name\":\"variable.parameter.nushell\"},{\"begin\":\"\\\\??:\\\\s*\",\"end\":\"(?=\\\\s+(?:-{0,2}|\\\\.{3})[-\\\\w]+|\\\\s*(?:[]#,=@|]|$))\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"@(?=[\\\"'])\",\"end\":\"(?<=[\\\"'])\",\"patterns\":[{\"include\":\"#string\"}]},{\"begin\":\"=\\\\s*\",\"end\":\"(?=\\\\s+-{0,2}[-\\\\w]+|\\\\s*(?:[]#,|]|$))\",\"name\":\"default.value.nushell\",\"patterns\":[{\"include\":\"#value\"}]}]},\"function-parameters\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.function.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"},{\"include\":\"#comment\"}]},\"internal-variables\":{\"match\":\"\\\\$(?:nu|env)\\\\b\",\"name\":\"variable.language.nushell\"},\"keyword\":{\"match\":\"def(?:-env)?\",\"name\":\"keyword.other.nushell\"},\"module\":{\"begin\":\"((?:export\\\\s+)?module)\\\\s+([-\\\\w]+)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.module.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.module.end.nushell\"}},\"name\":\"meta.module.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"numbers\":{\"match\":\"(?<![-\\\\w])_*+[-+]?_*+(?:(?i:NaN|infinity|inf)_*+|(?:\\\\d[_\\\\d]*+\\\\.?|\\\\._*+\\\\d)[_\\\\d]*+(?i:E_*+[-+]?_*+\\\\d[_\\\\d]*+)?)(?i:ns|us|µs|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![.\\\\w])|(?=\\\\.\\\\.))\",\"name\":\"constant.numeric.nushell\"},\"numbers-binary\":{\"match\":\"(?<![-\\\\w])_*+0_*+b_*+[01][01_]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"numbers-hexa\":{\"match\":\"(?<![-\\\\w])_*+0_*+x_*+\\\\h[_\\\\h]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"numbers-octal\":{\"match\":\"(?<![-\\\\w])_*+0_*+o_*+[0-7][0-7_]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"operators\":{\"patterns\":[{\"include\":\"#operators-word\"},{\"include\":\"#operators-symbols\"},{\"include\":\"#ranges\"}]},\"operators-symbols\":{\"match\":\"(?<= )(?:[-*+/]=?|//|\\\\*\\\\*|!=|[<=>]=?|[!=]~|\\\\+\\\\+=?)(?= |$)\",\"name\":\"keyword.control.nushell\"},\"operators-word\":{\"match\":\"(?<=[ (])(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?=[ )]|$)\",\"name\":\"keyword.control.nushell\"},\"parameters\":{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(?<=\\\\s)(-{1,2})[-\\\\w]+\",\"name\":\"variable.parameter.nushell\"},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.begin.nushell\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.end.nushell\"}},\"name\":\"meta.expression.parenthesis.nushell\",\"patterns\":[{\"include\":\"#expression\"}]},\"pre-command\":{\"begin\":\"(\\\\w+)(=)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"end\":\"(?=\\\\s+)\",\"patterns\":[{\"include\":\"#value\"}]},\"ranges\":{\"match\":\"\\\\.\\\\.<?\",\"name\":\"keyword.control.nushell\"},\"spread\":{\"match\":\"\\\\.\\\\.\\\\.(?=[^]}\\\\s])\",\"name\":\"keyword.control.nushell\"},\"string\":{\"patterns\":[{\"include\":\"#string-single-quote\"},{\"include\":\"#string-backtick\"},{\"include\":\"#string-double-quote\"},{\"include\":\"#string-interpolated-double\"},{\"include\":\"#string-interpolated-single\"},{\"include\":\"#string-raw\"},{\"include\":\"#string-bare\"}]},\"string-backtick\":{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"`\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"string-bare\":{\"match\":\"[^\\\"#$'(,;\\\\[{|\\\\s][^]\\\"'(),;\\\\[{|}\\\\s]*\",\"name\":\"string.bare.nushell\"},\"string-double-quote\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.double.nushell\",\"patterns\":[{\"match\":\"\\\\w+\"},{\"include\":\"#string-escape\"}]},\"string-escape\":{\"match\":\"\\\\\\\\(?:[\\\"'/\\\\\\\\bfnrt]|u\\\\h{4})\",\"name\":\"constant.character.escape.nushell\"},\"string-interpolated-double\":{\"begin\":\"\\\\$\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.double.nushell\",\"patterns\":[{\"match\":\"\\\\\\\\[()]\",\"name\":\"constant.character.escape.nushell\"},{\"include\":\"#string-escape\"},{\"include\":\"#paren-expression\"}]},\"string-interpolated-single\":{\"begin\":\"\\\\$'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.single.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"string-raw\":{\"begin\":\"r(#+)'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\\\\1\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.raw.nushell\"},\"string-single-quote\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"table\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.table.nushell\",\"patterns\":[{\"include\":\"#spread\"},{\"include\":\"#value\"},{\"match\":\",\",\"name\":\"punctuation.separator.nushell\"}]},\"types\":{\"patterns\":[{\"begin\":\"\\\\b(list)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.list.nushell\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"\\\\b(record)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.record.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[^']+')\\\\s*:\\\\s*\"},{\"include\":\"#types\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.nushell\"}]},\"use-module\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.import.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+')(?:\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+')\\\\s*\\\\[\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"2\":{\"name\":\"keyword.control.import.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]},\"4\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)(?:\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[^']+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)\\\\s+\\\\[\",\"beginCaptures\":{\"2\":{\"name\":\"keyword.control.import.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"0\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"0\":{\"name\":\"keyword.control.import.nushell\"}},\"match\":\"^\\\\s*(?:export )?use\\\\b\"}]},\"value\":{\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#variable-fields\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#table\"},{\"include\":\"#operators\"},{\"include\":\"#paren-expression\"},{\"include\":\"#braced-expression\"},{\"include\":\"#string\"},{\"include\":\"#comment\"}]},\"variable-fields\":{\"match\":\"(?<=[])}])(?:\\\\.(?:[-\\\\w]+|\\\"[- \\\\w]+\\\"))+\",\"name\":\"variable.other.nushell\"},\"variables\":{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#internal-variables\"},{\"match\":\"\\\\$.+\",\"name\":\"variable.other.nushell\"}]},\"2\":{\"name\":\"variable.other.nushell\"}},\"match\":\"(\\\\$[0-9A-Z_a-z]+)((?:\\\\.(?:[-\\\\w]+|\\\"[- \\\\w]+\\\"))*)\"}},\"scopeName\":\"source.nushell\",\"aliases\":[\"nu\"]}"))
1
+ 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\"}]},{\"begin\":\"(?!\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2})([^\\\"#$'(),:;\\\\[{|}\\\\s][^\\\"'(),:;\\\\[{|}\\\\s]*)\\\\s*(:)\\\\s*\",\"beginCaptures\":{\"1\":{\"name\":\"string.bare.nushell variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"end\":\"(?=[,}])|(?<=[^:\\\\s])(?=\\\\s)\",\"name\":\"meta.record-entry.nushell\",\"patterns\":[{\"include\":\"#record-value\"}]},{\"begin\":\"(\\\\$\\\"((?:[^\\\"\\\\\\\\]|\\\\\\\\.)*)\\\")\\\\s*(:)\\\\s*\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"end\":\"(?=[,}])|(?<=[^:\\\\s])(?=\\\\s)\",\"name\":\"meta.record-entry.nushell\",\"patterns\":[{\"include\":\"#record-value\"}]},{\"begin\":\"(\\\"(?:[^\\\"\\\\\\\\]|\\\\\\\\.)*\\\")\\\\s*(:)\\\\s*\",\"beginCaptures\":{\"1\":{\"name\":\"string.quoted.double.nushell variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"end\":\"(?=[,}])|(?<=[^:\\\\s])(?=\\\\s)\",\"name\":\"meta.record-entry.nushell\",\"patterns\":[{\"include\":\"#record-value\"}]},{\"begin\":\"(\\\\$'([^']*)')\\\\s*(:)\\\\s*\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"3\":{\"name\":\"keyword.control.nushell\"}},\"end\":\"(?=[,}])|(?<=[^:\\\\s])(?=\\\\s)\",\"name\":\"meta.record-entry.nushell\",\"patterns\":[{\"include\":\"#record-value\"}]},{\"begin\":\"('[^']*')\\\\s*(:)\\\\s*\",\"beginCaptures\":{\"1\":{\"name\":\"string.quoted.single.nushell variable.other.nushell\"},\"2\":{\"name\":\"keyword.control.nushell\"}},\"end\":\"(?=[,}])|(?<=[^:\\\\s])(?=\\\\s)\",\"name\":\"meta.record-entry.nushell\",\"patterns\":[{\"include\":\"#record-value\"}]},{\"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(?: (?:c(?:ategory|omplete(?: external)?)|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))|l(?:ear|ip(?: (?:copy|paste))?)|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|type))?)|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(?: (?:config|regex))?)|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|m(?:d|sgpackz?)|nuon|ods|p(?:arquet|list)|ssv|t(?:o(?:ml|on)|sv)|url|vcf|x(?:lsx|ml)|ya?ml))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup-by)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators|pipe-and-redirect))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: (?:import|session))?))|ttp(?: (?:delete|get|head|options|p(?:atch|o(?:ol|st)|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:inary|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:o(?:b(?: (?:describe|flush|id|kill|list|recv|s(?:end|pawn)|unfreeze))?|in)|s(?:on path|p)|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op))|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cosh?|sinh?|tanh?)|vg)|c(?:eil|osh?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:inh?|qrt|tddev|um)|tanh?|variance))?)|e(?:rge(?: deep)?|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|s(?:elf|plit)|type))?)|lugin(?: (?:add|list|rm|stop|use))?|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains|vert-time-zone)|unt(?:-null)?)|u(?:mulative|t))|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|e(?:ntropy|xp(?:lode|r-not))|f(?:i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|horizontal|i(?:mplode|nt(?:eger|o-(?:d(?:f|type)|lazy|nu|repr|schema))|s-(?:duplicated|in|n(?:ot-n|)ull|unique))|join(?:-where)?|l(?:ast|en|i(?:st-contains|t)|owercase)|m(?:a(?:th|x)|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise|ver)|p(?:ivot|rofile)|q(?:cut|u(?:antile|ery))|r(?:e(?:name|place(?:-time-zone)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect(?:or(?: (?:all|by-(?:dtype|name)|ends-with|f(?:irst|loat)|integer|last|matches|n(?:ot|umeric)|s(?:igned-integer|tarts-with)|unsigned-integer))?)?|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|replace(?:-all)?|s(?:lice|plit|trip-chars))|ftime|uct-json-encode))|um(?:mary)?)|t(?:ake|runcate)|u(?:n(?:ique|nest|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:andom(?: (?:b(?:inary|ool)|chars|float|int|uuid))?|e(?:duce|g(?:ex|istry(?: query)?)|ject|name|turn|verse)|[gm]|o(?:ll(?: (?:down|left|right|up))?|tate)|un-(?:ex|in)ternal)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|l(?:eep|ice)|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words))?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|o(?:mpress|ntains))|d(?:e(?:compress|dent|unicode)|istance|owncase)|e(?:nds-with|scape-regex|xpand)|inde(?:nt|x-of)|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|hl-(?:quote|split)|imilarity|lug|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase|wrap)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm(?: (?:query|size))?)|imeit|o(?: (?:csv|gui|html|json|m(?:d|sgpackz?)|nuon|p(?:arquet|list)|t(?:ext|o(?:ml|on)|sv)|xml|ya?ml)|uch)?|r(?:anspose|ee|y)|utor)|u(?:limit|mask|n(?:ame|iq(?:-by)?|let)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse|split-query))?|se)|v(?:alues|ersion(?: check)?|iew(?: (?:blocks|files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![-\\\\w])( (.*))?\"},{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#paren-expression\"}]}},\"match\":\"(?<=\\\\^)(?:\\\\$(\\\"[^\\\"]+\\\"|'[^']+')|\\\"[^\\\"]+\\\"|'[^']+')\",\"name\":\"entity.name.type.external.nushell\"},{\"captures\":{\"1\":{\"name\":\"entity.name.type.external.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#value\"}]}},\"match\":\"([.\\\\w]+(?:-[!.\\\\w]+)*)(?: (.*))?\"},{\"include\":\"#value\"}]}},\"end\":\"(?=[);|}])|$\",\"name\":\"meta.command.nushell\",\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#spread\"},{\"include\":\"#value\"}]},\"comment\":{\"match\":\"(#.*)$\",\"name\":\"comment.nushell\"},\"constant-keywords\":{\"match\":\"\\\\b(?:true|false|null)\\\\b\",\"name\":\"constant.language.nushell\"},\"constant-value\":{\"patterns\":[{\"include\":\"#constant-keywords\"},{\"include\":\"#datetime\"},{\"include\":\"#numbers\"},{\"include\":\"#numbers-hexa\"},{\"include\":\"#numbers-octal\"},{\"include\":\"#numbers-binary\"},{\"include\":\"#binary\"}]},\"control-keywords\":{\"match\":\"(?<![\\\\--:A-Z\\\\\\\\_a-z])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![\\\\--:A-Z\\\\\\\\_a-z])\",\"name\":\"keyword.control.nushell\"},\"datetime\":{\"match\":\"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?:T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:\\\\+\\\\d{2}:?\\\\d{2}|Z)?)?\\\\b\",\"name\":\"constant.numeric.nushell\"},\"define-alias\":{\"captures\":{\"1\":{\"name\":\"storage.type.alias.nushell\"},\"2\":{\"name\":\"entity.name.function.nushell\"},\"3\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"((?:export )?alias)\\\\s+([-!\\\\w]+)\\\\s*(=)\"},\"define-variable\":{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"punctuation.separator.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#types\"}]},\"5\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"match\":\"(let|mut|(?:export\\\\s+)?const)\\\\s+(\\\\w+)(?:\\\\s*(:)\\\\s*([^=]+?))?\\\\s+(=)\"},\"expression\":{\"patterns\":[{\"include\":\"#pre-command\"},{\"include\":\"#for-loop\"},{\"include\":\"#operators\"},{\"match\":\"\\\\|\",\"name\":\"keyword.control.nushell\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#string-raw\"},{\"include\":\"#command\"},{\"include\":\"#value\"}]},\"extern\":{\"begin\":\"((?:export\\\\s+)?extern)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.nushell\"},\"2\":{\"name\":\"entity.name.function.nushell\"}},\"end\":\"(?<=])\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"patterns\":[{\"include\":\"#function-parameters\"}]},\"for-loop\":{\"begin\":\"(for)\\\\s+(\\\\$?\\\\w+)\\\\s+(in)\\\\s+(.+)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.nushell\"},\"2\":{\"name\":\"variable.other.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"},\"4\":{\"patterns\":[{\"include\":\"#value\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.bracket.curly.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.bracket.curly.nushell\"}},\"name\":\"meta.for-loop.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function\":{\"begin\":\"((?:export\\\\s+)?def)(?:\\\\s+(--\\\\w+(?:\\\\s+--\\\\w+)*))?\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|`[- \\\\w]+`)(?:\\\\s+(--\\\\w+(?:\\\\s+--\\\\w+)*))?\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.nushell\"},\"2\":{\"name\":\"storage.modifier.nushell\"},\"3\":{\"name\":\"entity.name.function.nushell\"},\"4\":{\"name\":\"storage.modifier.nushell\"}},\"end\":\"(?<=})\",\"patterns\":[{\"include\":\"#function-parameters\"},{\"include\":\"#function-body\"},{\"include\":\"#function-inout\"}]},\"function-body\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.begin.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.function.end.nushell\"}},\"name\":\"meta.function.body.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"function-inout\":{\"patterns\":[{\"include\":\"#types\"},{\"match\":\"->\",\"name\":\"keyword.operator.nushell\"},{\"include\":\"#function-multiple-inout\"}]},\"function-multiple-inout\":{\"begin\":\"(?<=]\\\\s*)(:)\\\\s+(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.in-out.nushell\"},\"2\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"include\":\"#types\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.nushell\"}},\"match\":\"\\\\s*(,)\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"keyword.operator.nushell\"}},\"match\":\"\\\\s+(->)\\\\s+\"}]},\"function-parameter\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(-{0,2}|\\\\.{3})[-\\\\w]+(?:\\\\((-[?\\\\w])\\\\))?\",\"name\":\"variable.parameter.nushell\"},{\"begin\":\"\\\\??:\\\\s*\",\"end\":\"(?=\\\\s+(?:-{0,2}|\\\\.{3})[-\\\\w]+|\\\\s*(?:[]#,=@|]|$))\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"@(?=[\\\"'])\",\"end\":\"(?<=[\\\"'])\",\"patterns\":[{\"include\":\"#string\"}]},{\"begin\":\"=\\\\s*\",\"end\":\"(?=\\\\s+-{0,2}[-\\\\w]+|\\\\s*(?:[]#,|]|$))\",\"name\":\"default.value.nushell\",\"patterns\":[{\"include\":\"#value\"}]}]},\"function-parameters\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.function.parameters.nushell\",\"patterns\":[{\"include\":\"#function-parameter\"},{\"include\":\"#comment\"}]},\"internal-variables\":{\"match\":\"\\\\$(?:nu|env)\\\\b\",\"name\":\"variable.language.nushell\"},\"keyword\":{\"match\":\"def(?:-env)?\",\"name\":\"keyword.other.nushell\"},\"module\":{\"begin\":\"((?:export\\\\s+)?module)\\\\s+([-\\\\w]+)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.module.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.module.end.nushell\"}},\"name\":\"meta.module.nushell\",\"patterns\":[{\"include\":\"source.nushell\"}]},\"numbers\":{\"match\":\"(?<![-\\\\w])_*+[-+]?_*+(?:(?i:NaN|infinity|inf)_*+|(?:\\\\d[_\\\\d]*+\\\\.?|\\\\._*+\\\\d)[_\\\\d]*+(?i:E_*+[-+]?_*+\\\\d[_\\\\d]*+)?)(?i:ns|us|µs|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![.\\\\w])|(?=\\\\.\\\\.))\",\"name\":\"constant.numeric.nushell\"},\"numbers-binary\":{\"match\":\"(?<![-\\\\w])_*+0_*+b_*+[01][01_]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"numbers-hexa\":{\"match\":\"(?<![-\\\\w])_*+0_*+x_*+\\\\h[_\\\\h]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"numbers-octal\":{\"match\":\"(?<![-\\\\w])_*+0_*+o_*+[0-7][0-7_]*+(?![.\\\\w])\",\"name\":\"constant.numeric.nushell\"},\"operators\":{\"patterns\":[{\"include\":\"#operators-word\"},{\"include\":\"#operators-symbols\"},{\"include\":\"#ranges\"}]},\"operators-symbols\":{\"match\":\"(?<= )(?:[-*+/]=?|//|\\\\*\\\\*|!=|[<=>]=?|[!=]~|\\\\+\\\\+=?)(?= |$)\",\"name\":\"keyword.control.nushell\"},\"operators-word\":{\"match\":\"(?<=[ (])(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?=[ )]|$)\",\"name\":\"keyword.control.nushell\"},\"parameters\":{\"captures\":{\"1\":{\"name\":\"keyword.control.nushell\"}},\"match\":\"(?<=\\\\s)(-{1,2})[-\\\\w]+\",\"name\":\"variable.parameter.nushell\"},\"paren-expression\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.begin.nushell\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.end.nushell\"}},\"name\":\"meta.expression.parenthesis.nushell\",\"patterns\":[{\"include\":\"#expression\"}]},\"pre-command\":{\"begin\":\"(\\\\w+)(=)\",\"beginCaptures\":{\"1\":{\"name\":\"variable.other.nushell\"},\"2\":{\"patterns\":[{\"include\":\"#operators\"}]}},\"end\":\"(?=\\\\s+)\",\"patterns\":[{\"include\":\"#value\"}]},\"ranges\":{\"match\":\"\\\\.\\\\.<?\",\"name\":\"keyword.control.nushell\"},\"record-value\":{\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#variable-fields\"},{\"include\":\"#constant-value\"},{\"include\":\"#table\"},{\"include\":\"#spread\"},{\"include\":\"#ranges\"},{\"include\":\"#paren-expression\"},{\"include\":\"#braced-expression\"},{\"include\":\"#string\"},{\"include\":\"#comment\"}]},\"spread\":{\"match\":\"\\\\.\\\\.\\\\.(?=[^]}\\\\s])\",\"name\":\"keyword.control.nushell\"},\"string\":{\"patterns\":[{\"include\":\"#string-single-quote\"},{\"include\":\"#string-backtick\"},{\"include\":\"#string-double-quote\"},{\"include\":\"#string-interpolated-double\"},{\"include\":\"#string-interpolated-single\"},{\"include\":\"#string-raw\"},{\"include\":\"#string-bare\"}]},\"string-backtick\":{\"begin\":\"`\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"`\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"string-bare\":{\"match\":\"[^\\\"#$'(,;\\\\[{|\\\\s][^]\\\"'(),;\\\\[{|}\\\\s]*\",\"name\":\"string.bare.nushell\"},\"string-double-quote\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.double.nushell\",\"patterns\":[{\"match\":\"\\\\w+\"},{\"include\":\"#string-escape\"}]},\"string-escape\":{\"match\":\"\\\\\\\\(?:[\\\"'/\\\\\\\\bfnrt]|u\\\\h{4})\",\"name\":\"constant.character.escape.nushell\"},\"string-interpolated-double\":{\"begin\":\"\\\\$\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.double.nushell\",\"patterns\":[{\"match\":\"\\\\\\\\[()]\",\"name\":\"constant.character.escape.nushell\"},{\"include\":\"#string-escape\"},{\"include\":\"#paren-expression\"}]},\"string-interpolated-single\":{\"begin\":\"\\\\$'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.interpolated.single.nushell\",\"patterns\":[{\"include\":\"#paren-expression\"}]},\"string-raw\":{\"begin\":\"r(#+)'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\\\\1\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.raw.nushell\"},\"string-single-quote\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.nushell\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.nushell\"}},\"name\":\"string.quoted.single.nushell\"},\"table\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.square.begin.nushell\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.square.end.nushell\"}},\"name\":\"meta.table.nushell\",\"patterns\":[{\"include\":\"#spread\"},{\"include\":\"#value\"},{\"match\":\",\",\"name\":\"punctuation.separator.nushell\"}]},\"types\":{\"patterns\":[{\"begin\":\"\\\\b(list)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.list.nushell\",\"patterns\":[{\"include\":\"#types\"}]},{\"begin\":\"\\\\b(record)\\\\s*<\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.type.nushell\"}},\"end\":\">\",\"name\":\"meta.record.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[^']+')\\\\s*:\\\\s*\"},{\"include\":\"#types\"}]},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.nushell\"}]},\"use-module\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.control.import.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"},\"3\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+')(?:\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+')\\\\s*\\\\[\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.nushell\"},\"2\":{\"name\":\"entity.name.namespace.nushell\"}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"1\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"2\":{\"name\":\"keyword.control.import.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]},\"4\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)(?:\\\\s+([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[^']+'|\\\\*))?\\\\s*;?$\"},{\"begin\":\"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\\"\\\\g<path>\\\"|'\\\\g<path>'|(?![\\\"'])\\\\g<path>)\\\\s+\\\\[\",\"beginCaptures\":{\"2\":{\"name\":\"keyword.control.import.nushell\"},\"3\":{\"name\":\"string.bare.nushell\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.namespace.nushell\"}},\"match\":\"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\\"'])\"}]}},\"end\":\"(])\\\\s*;?\\\\s*$\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.square.end.nushell\"}},\"patterns\":[{\"captures\":{\"0\":{\"name\":\"keyword.other.nushell\"}},\"match\":\"([-\\\\w]+|\\\"[- \\\\w]+\\\"|'[- \\\\w]+'|\\\\*),?\"},{\"include\":\"#comment\"}]},{\"captures\":{\"0\":{\"name\":\"keyword.control.import.nushell\"}},\"match\":\"^\\\\s*(?:export )?use\\\\b\"}]},\"value\":{\"patterns\":[{\"include\":\"#variables\"},{\"include\":\"#variable-fields\"},{\"include\":\"#control-keywords\"},{\"include\":\"#constant-value\"},{\"include\":\"#table\"},{\"include\":\"#operators\"},{\"include\":\"#paren-expression\"},{\"include\":\"#braced-expression\"},{\"include\":\"#string\"},{\"include\":\"#comment\"}]},\"variable-fields\":{\"match\":\"(?<=[])}])(?:\\\\.(?:[-\\\\w]+|\\\"[- \\\\w]+\\\"))+\",\"name\":\"variable.other.nushell\"},\"variables\":{\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#internal-variables\"},{\"match\":\"\\\\$.+\",\"name\":\"variable.other.nushell\"}]},\"2\":{\"name\":\"variable.other.nushell\"}},\"match\":\"(\\\\$[0-9A-Z_a-z]+)((?:\\\\.(?:[-\\\\w]+|\\\"[- \\\\w]+\\\"))*)\"}},\"scopeName\":\"source.nushell\",\"aliases\":[\"nu\"]}"))
2
2
 
3
3
  export default [
4
4
  lang