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

6 lines
23 KiB
JavaScript
Raw Normal View History

2026-01-09 23:05:52 -05:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"WebAssembly Interface Types\",\"foldingStartMarker\":\"([\\\\[{])\\\\s*\",\"foldingStopMarker\":\"\\\\s*([]}])\",\"name\":\"wit\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#package\"},{\"include\":\"#toplevel-use\"},{\"include\":\"#world\"},{\"include\":\"#interface\"},{\"include\":\"#whitespace\"}],\"repository\":{\"block-comments\":{\"patterns\":[{\"match\":\"/\\\\*\\\\*/\",\"name\":\"comment.block.empty.wit\"},{\"applyEndPatternLast\":1,\"begin\":\"/\\\\*\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.wit\",\"patterns\":[{\"include\":\"#block-comments\"},{\"include\":\"#markdown\"},{\"include\":\"#whitespace\"}]},{\"applyEndPatternLast\":1,\"begin\":\"/\\\\*(?!\\\\*)\",\"end\":\"\\\\*/\",\"name\":\"comment.block.wit\",\"patterns\":[{\"include\":\"#block-comments\"},{\"include\":\"#whitespace\"}]}]},\"boolean\":{\"match\":\"\\\\b(bool)\\\\b\",\"name\":\"entity.name.type.boolean.wit\"},\"comment\":{\"patterns\":[{\"include\":\"#block-comments\"},{\"include\":\"#doc-comment\"},{\"include\":\"#line-comment\"}]},\"container\":{\"name\":\"meta.container.ty.wit\",\"patterns\":[{\"include\":\"#tuple\"},{\"include\":\"#list\"},{\"include\":\"#option\"},{\"include\":\"#result\"},{\"include\":\"#handle\"}]},\"doc-comment\":{\"begin\":\"^\\\\s*///\",\"end\":\"$\",\"name\":\"comment.line.documentation.wit\",\"patterns\":[{\"include\":\"#markdown\"}]},\"enum\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\b(enum)\\\\b\\\\s+%?((?<![-\\\\w])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*)((-)([a-z][0-9a-z]*|[A-Z][0-9A-Z]*))*)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.enum.enum-items.wit\"},\"2\":{\"name\":\"entity.name.type.id.enum-items.wit\"},\"7\":{\"name\":\"punctuation.brackets.curly.begin.wit\"}},\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.brackets.curly.end.wit\"}},\"name\":\"meta.enum-items.wit\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#enum-cases\"},{\"include\":\"#whitespace\"}]},\"enum-cases\":{\"name\":\"meta.enum-cases.wit\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"\\\\b%?((?<![-\\\\w])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*)((-)([a-z][0-9a-z]*|[A-Z][0-9A-Z]*))*)\\\\b\",\"name\":\"variable.other.enummember.id.enum-cases.wit\"},{\"match\":\"(,)\",\"name\":\"punctuation.comma.wit\"},{\"include\":\"#whitespace\"}]},\"extern\":{\"name\":\"meta.extern-type.wit\",\"patterns\":[{\"name\":\"meta.interface-type.wit\",\"patterns\":[{\"applyEndPatternLast\":1,\"begin\":\"\\\\b(interface)\\\\b\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.interface.interface-type.wit\"},\"2\":{\"name\":\"ppunctuation.brackets.curly.begin.wit\"}},\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.brackets.curly.end.wit\"}},\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#interface-items\"},{\"include\":\"#whitespace\"}]}]},{\"include\":\"#function-definition\"},{\"include\":\"#use-path\"}]},\"flags\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\b(flags)\\\\s+%?((?<![-\\\\w])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*)((-)([a-z][0-9a-z]*|[A-Z][0-9A-Z]*))*)\\\\s*(\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.flags.flags-items.wit\"},\"2\":{\"name\":\"entity.name.type.id.flags-items.wit\"},\"7\":{\"name\":\"punctuation.brackets.curly.begin.wit\"}},\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.brackets.curly.end.wit\"}},\"name\":\"meta.flags-items.wit\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#flags-fields\"},{\"include\":\"#whitespace\"}]},\"flags-fields\":{\"name\":\"meta.flags-fields.wit\",\"patterns\":[{\"include\":\"#comment\"},{\"match\":\"\\\\b%?((?<![-\\\\w])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*)((-)([a-z][0-9a-z]*|[A-Z][0-9A-Z]*))*)\\\\b\",\"name\":\"variable.other.enummember.id.flags-fields.wit\"},{\"match\":\"(,)\",\"name\":\"punctuation.comma.wit\"},{\"include\":\"#whitespace\"}]},\"function\":{\"applyEndPatternLast\":1,\"begin\":\"\\\\b%?((?<![-\\\\w])([a-z][0-9a-z]*|[A-Z][0-9A-Z]*)((-)([a-z][0-9a-z]*|[A-Z][0-9A-Z]*))*)\\\\s*(:)\",\"beginCaptures
export default [
lang
]