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

9 lines
78 KiB
JavaScript
Raw Normal View History

2026-01-09 23:05:52 -05:00
import tex from './tex.mjs'
const lang = Object.freeze(JSON.parse("{\"displayName\":\"LaTeX\",\"name\":\"latex\",\"patterns\":[{\"match\":\"(?<=\\\\\\\\(?:[@\\\\w]|[@\\\\w]{2}|[@\\\\w]{3}|[@\\\\w]{4}|[@\\\\w]{5}|[@\\\\w]{6}))\\\\s\",\"name\":\"meta.space-after-command.latex\"},{\"include\":\"#songs-env\"},{\"include\":\"#embedded-code-env\"},{\"include\":\"#verbatim-env\"},{\"include\":\"#document-env\"},{\"include\":\"#all-balanced-env\"},{\"include\":\"#documentclass-usepackage-macro\"},{\"include\":\"#input-macro\"},{\"include\":\"#sections-macro\"},{\"include\":\"#hyperref-macro\"},{\"include\":\"#newcommand-macro\"},{\"include\":\"#text-font-macro\"},{\"include\":\"#citation-macro\"},{\"include\":\"#references-macro\"},{\"include\":\"#label-macro\"},{\"include\":\"#verb-macro\"},{\"include\":\"#inline-code-macro\"},{\"include\":\"#all-other-macro\"},{\"include\":\"#display-math\"},{\"include\":\"#inline-math\"},{\"include\":\"#column-specials\"},{\"include\":\"text.tex\"}],\"repository\":{\"all-balanced-env\":{\"patterns\":[{\"begin\":\"\\\\s*((\\\\\\\\)begin)(\\\\{)((?:\\\\+?array|equation|(?:IEEE|sub)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|\\\\+?cases|(?:display)?math|\\\\+?[A-Za-z]*matrix|[BVbpv]?NiceMatrix|[BVbpv]?NiceArray|(?:arg)?m(?:ini|axi))[!*]?)(})(\\\\s*\\\\n)?\",\"captures\":{\"1\":{\"name\":\"support.function.be.latex\"},\"2\":{\"name\":\"punctuation.definition.function.latex\"},\"3\":{\"name\":\"punctuation.definition.arguments.begin.latex\"},\"4\":{\"name\":\"variable.parameter.function.latex\"},\"5\":{\"name\":\"punctuation.definition.arguments.end.latex\"}},\"contentName\":\"meta.math.block.latex support.class.math.block.environment.latex\",\"end\":\"\\\\s*((\\\\\\\\)end)(\\\\{)(\\\\4)(})(?:\\\\s*\\\\n)?\",\"name\":\"meta.function.environment.math.latex\",\"patterns\":[{\"match\":\"(?<!\\\\\\\\)&\",\"name\":\"keyword.control.equation.align.latex\"},{\"match\":\"\\\\\\\\\\\\\\\\\",\"name\":\"keyword.control.equation.newline.latex\"},{\"include\":\"#label-macro\"},{\"include\":\"text.tex#math-content\"},{\"include\":\"$self\"}]},{\"begin\":\"\\\\s*(\\\\\\\\begin\\\\{empheq}(?:\\\\[.*])?)\",\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#macro-with-args-tokenizer\"}]}},\"contentName\":\"meta.math.block.latex support.class.math.block.environment.latex\",\"end\":\"\\\\s*(\\\\\\\\end\\\\{empheq})\",\"name\":\"meta.function.environment.math.latex\",\"patterns\":[{\"match\":\"(?<!\\\\\\\\)&\",\"name\":\"keyword.control.equation.align.latex\"},{\"match\":\"\\\\\\\\\\\\\\\\\",\"name\":\"keyword.control.equation.newline.latex\"},{\"include\":\"#label-macro\"},{\"include\":\"text.tex#math-content\"},{\"include\":\"$self\"}]},{\"begin\":\"(\\\\s*\\\\\\\\begin\\\\{(tabular[*xy]?|xltabular|longtable|(?:long)?tabu|(?:long|tall)?tblr|NiceTabular[*X]?|booktabs)}(\\\\s*\\\\n)?)\",\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#macro-with-args-tokenizer\"}]}},\"contentName\":\"meta.data.environment.tabular.latex\",\"end\":\"(\\\\s*\\\\\\\\end\\\\{(\\\\2)}(?:\\\\s*\\\\n)?)\",\"name\":\"meta.function.environment.tabular.latex\",\"patterns\":[{\"match\":\"(?<!\\\\\\\\)&\",\"name\":\"keyword.control.table.cell.latex\"},{\"match\":\"\\\\\\\\\\\\\\\\\",\"name\":\"keyword.control.table.newline.latex\"},{\"include\":\"$self\"}]},{\"begin\":\"(\\\\s*\\\\\\\\begin\\\\{(itemize|enumerate|description|list)})\",\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#macro-with-args-tokenizer\"}]}},\"end\":\"(\\\\\\\\end\\\\{\\\\2}(?:\\\\s*\\\\n)?)\",\"name\":\"meta.function.environment.list.latex\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"(\\\\s*\\\\\\\\begin\\\\{tikzpicture})\",\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#macro-with-args-tokenizer\"}]}},\"end\":\"(\\\\\\\\end\\\\{tikzpicture}(?:\\\\s*\\\\n)?)\",\"name\":\"meta.function.environment.latex.tikz\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"(\\\\s*\\\\\\\\begin\\\\{frame})\",\"captures\":{\"1\":{\"patterns\":[{\"include\":\"#macro-with-args-tokenizer\"}]}},\"end\":\"(\\\\\\\\end\\\\{frame})\",\"name\":\"met
export default [
...tex,
lang
]