Files
docs/node_modules/@shikijs/langs/dist/templ.mjs

13 lines
25 KiB
JavaScript
Raw Normal View History

2025-08-27 14:05:33 +08:00
import go from './go.mjs'
import javascript from './javascript.mjs'
import css from './css.mjs'
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Templ\",\"name\":\"templ\",\"patterns\":[{\"include\":\"#script-template\"},{\"include\":\"#css-template\"},{\"include\":\"#html-template\"},{\"include\":\"source.go\"}],\"repository\":{\"block-element\":{\"begin\":\"(</?)((?i:address|blockquote|dd|div|section|article|aside|header|footer|nav|menu|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|pre)(?=\\\\s|\\\\\\\\|>))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.block.any.html\"}},\"end\":\"(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.tag.block.any.html\",\"patterns\":[{\"include\":\"#tag-stuff\"}]},\"call-expression\":{\"begin\":\"({\\\\!)\\\\s+\",\"beginCaptures\":{\"0\":{\"name\":\"start.call-expression.templ\"},\"1\":{\"name\":\"punctuation.brace.open\"}},\"end\":\"(})\",\"endCaptures\":{\"0\":{\"name\":\"end.call-expression.templ\"},\"1\":{\"name\":\"punctuation.brace.close\"}},\"name\":\"call-expression.templ\",\"patterns\":[{\"include\":\"source.go\"}]},\"case-expression\":{\"begin\":\"^\\\\s*case .+?:$\",\"captures\":{\"0\":{\"name\":\"case.switch.html-template.templ\",\"patterns\":[{\"include\":\"source.go\"}]}},\"end\":\"(^\\\\s*case .+?:$)|(^\\\\s*default:$)|(\\\\s*$)\",\"patterns\":[{\"include\":\"#template-node\"}]},\"close-element\":{\"begin\":\"(</?)([a-zA-Z0-9:\\\\-]+)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"}},\"end\":\"(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.tag.other.html\",\"patterns\":[{\"include\":\"#tag-stuff\"}]},\"css-template\":{\"begin\":\"^(css) ([A-z_][A-z_0-9]*\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.go\"},\"2\":{\"patterns\":[{\"include\":\"source.go\"}]}},\"end\":\"(?<=^}$)\",\"name\":\"css-template.templ\",\"patterns\":[{\"begin\":\"(?<=\\\\()\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.end.bracket.round.go\"}},\"name\":\"params.css-template.templ\",\"patterns\":[{\"include\":\"source.go\"}]},{\"begin\":\"(?<=\\\\)) ({)$\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.begin.bracket.curly.go\"}},\"end\":\"^(})$\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.end.bracket.curly.go\"}},\"name\":\"block.css-template.templ\",\"patterns\":[{\"begin\":\"\\\\s*((?:-(?:webkit|moz|o|ms|khtml)-)?(?:zoom|z-index|y|x|writing-mode|wrap|wrap-through|wrap-inside|wrap-flow|wrap-before|wrap-after|word-wrap|word-spacing|word-break|word|will-change|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|vector-effect|variant|user-zoom|user-select|up|unicode-(bidi|range)|trim|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform-box|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-underline-position|text-transform|text-spacing|text-space-trim|text-space-collapse|text-size-adjust|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-orientation|text-justify|text-indent|text-height|text-emphasis-style|text-emphasis-skip|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-style|text-decoration-stroke|text-decoration-skip|text-decoration-line|text-decoration-fill|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|system|symbols|suffix|style-type|style-position|style-image|style|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|string-set|stretch|stress|stop-op
export default [
...go,
...javascript,
...css,
lang
]