github-linguist 9.1.0 → 9.2.0
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.
- checksums.yaml +4 -4
- data/bin/github-linguist +3 -3
- data/grammars/etc.json +1 -1
- data/grammars/inline.edgeql.json +1 -1
- data/grammars/liquid.injection.json +1 -1
- data/grammars/source.4dm.json +1 -1
- data/grammars/source.QB64.json +1 -1
- data/grammars/source.abl.json +1 -1
- data/grammars/source.aiken.json +1 -0
- data/grammars/source.apex.json +1 -1
- data/grammars/source.ballerina.json +1 -1
- data/grammars/source.brs.json +1 -1
- data/grammars/source.c++.json +1 -1
- data/grammars/source.c.calendar.json +1 -0
- data/grammars/source.c.json +1 -1
- data/grammars/source.cl.json +1 -1
- data/grammars/source.clue.json +1 -0
- data/grammars/source.cmake.json +1 -1
- data/grammars/source.cmakecache.json +1 -1
- data/grammars/source.cobol.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.daslang.json +1 -0
- data/grammars/source.dds.dspf.json +1 -1
- data/grammars/source.erlang.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.git-revlist.json +1 -1
- data/grammars/source.gleam.json +1 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.ilecobol.json +1 -0
- data/grammars/source.jai.json +1 -1
- data/grammars/source.json.comments.json +1 -1
- data/grammars/source.julia.console.json +1 -1
- data/grammars/source.julia.json +1 -1
- data/grammars/source.just.json +1 -1
- data/grammars/source.koka.json +1 -0
- data/grammars/source.leo.json +1 -0
- data/grammars/source.livescript.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.m3u.json +1 -0
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.nasl.json +1 -1
- data/grammars/source.nim.json +1 -1
- data/grammars/source.nushell.json +1 -1
- data/grammars/source.objc.json +1 -1
- data/grammars/source.odin.json +1 -1
- data/grammars/source.openqasm.json +1 -0
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.rescript.json +1 -1
- data/grammars/source.roc.json +1 -1
- data/grammars/source.rust.json +1 -1
- data/grammars/source.sail.json +1 -0
- data/grammars/source.slang.json +1 -1
- data/grammars/source.slint.json +1 -1
- data/grammars/source.smithy.json +1 -1
- data/grammars/source.soql.json +1 -1
- data/grammars/source.sway.json +1 -1
- data/grammars/source.tact.json +1 -1
- data/grammars/source.talon.json +1 -1
- data/grammars/source.templ.json +1 -1
- data/grammars/source.toc.json +1 -1
- data/grammars/source.torrc.json +1 -0
- data/grammars/source.typst.json +1 -1
- data/grammars/source.uplc.json +1 -0
- data/grammars/source.vba.json +1 -1
- data/grammars/source.vento.json +1 -0
- data/grammars/source.vue.json +1 -1
- data/grammars/source.wdl.json +1 -1
- data/grammars/source.wit.json +1 -1
- data/grammars/source.zmodel.json +1 -0
- data/grammars/text.adblock.json +1 -1
- data/grammars/text.html.liquid.json +1 -1
- data/grammars/text.html.vento.json +1 -0
- data/grammars/text.valve-cfg.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +23 -1
- data/lib/linguist/heuristics.yml +8 -1
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +143 -10
- data/lib/linguist/samples.json +1 -1
- metadata +21 -11
- data/grammars/source.c.platform.json +0 -1
data/grammars/source.templ.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"templ","scopeName":"source.templ","patterns":[{"include":"#script-template"},{"include":"#css-template"},{"include":"#html-template"},{"include":"source.go"}],"repository":{"block-element":{"name":"meta.tag.block.any.html","begin":"(\u003c/?)((?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|\\\\|\u003e))","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.block.any.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"call-expression":{"name":"call-expression.templ","begin":"({\\!)\\s+","end":"(})","patterns":[{"include":"source.go"}],"beginCaptures":{"0":{"name":"start.call-expression.templ"},"1":{"name":"punctuation.brace.open"}},"endCaptures":{"0":{"name":"end.call-expression.templ"},"1":{"name":"punctuation.brace.close"}}},"case-expression":{"begin":"^\\s*case .+?:$","end":"(^\\s*case .+?:$)|(^\\s*default:$)|(\\s*$)","patterns":[{"include":"#template-node"}],"captures":{"0":{"name":"case.switch.html-template.templ","patterns":[{"include":"source.go"}]}}},"close-element":{"name":"meta.tag.other.html","begin":"(\u003c/?)([a-zA-Z0-9:\\-]+)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.other.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"css-template":{"name":"css-template.templ","begin":"^(css) ([A-z_][A-z_0-9]*\\()","end":"(?\u003c=^}$)","patterns":[{"name":"params.css-template.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"block.css-template.templ","begin":"(?\u003c=\\)) ({)$","end":"^(})$","patterns":[{"name":"property.css-template.templ","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-opacity|stop-color|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak-as|speak|span|spacing|space-collapse|space|solid-opacity|solid-color|sizing|size-adjust|size|shape-rendering|shape-padding|shape-outside|shape-margin|shape-inside|shape-image-threshold|shadow|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-snap-destination|scroll-snap-coordinate|scroll-behavior|scale|ry|rx|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-merge|ruby-align|ruby|rows|rotation-point|rotation|rotate|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|region-fragment|rate|range|radius|r|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|prefix|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective-origin|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-bottom|padding-block-start|padding-block-end|padding|pad|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow-inline|overflow-block|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset-start|offset-inline-start|offset-inline-end|offset-end|offset-block-start|offset-block-end|offset-before|offset-after|offset|object-position|object-fit|numeral|new|negative|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|motion-rotation|motion-path|motion-offset|motion|model|mix-blend-mode|min-zoom|min-width|min-inline-size|min-height|min-block-size|min|max-zoom|max-width|max-lines|max-inline-size|max-height|max-block-size|max|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marquee-style|marquee-speed|marquee-play-count|marquee-loop|marquee-direction|marquee|marks|marker-start|marker-side|marker-mid|marker-end|marker|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-bottom|margin-block-start|margin-block-end|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-snap|line-height|line-grid|line-break|line|lighting-color|level|letter-spacing|length|left-width|left-style|left-color|left|label|kerning|justify-self|justify-items|justify-content|justify|iteration-count|isolation|inline-size|inline-box-align|initial-value|initial-size|initial-letter-wrap|initial-letter-align|initial-letter|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-rendering|image-resolution|image-orientation|image|icon|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-last|hyphenate-limit-chars|hyphenate-character|hyphenate|height|header|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-gap|grid-row-end|grid-row|grid-rows|grid-gap|grid-column-start|grid-column-gap|grid-column-end|grid-column|grid-columns|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|font-weight|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|flow-into|flow-from|flow|flood-opacity|flood-color|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|filter|fill-rule|fill-opacity|fill|family|fallback|enable-background|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cy|cx|cursor|cue-before|cue-after|cue|crop|counter-set|counter-reset|counter-increment|counter|count|corner-shape|corners|continue|content|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color-adjust|color|collapse|clip-rule|clip-path|clip|clear|character|caret-shape|caret-color|caret|caption-side|buffered-rendering|break-inside|break-before|break-after|break|box-suppress|box-snap|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-limit|border-length|border-left-width|border-left-style|border-left-color|border-left|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-image-width|border-image-transform|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-clip-top|border-clip-right|border-clip-left|border-clip-bottom|border-clip|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border|bookmark-target|bookmark-level|bookmark-label|bookmark|block-size|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position-inline|background-position-block|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alt|all|alignment-baseline|alignment-adjust|alignment|align-last|align-self|align-items|align-content|align|after|adjust|additive-symbols)):\\s+","end":"(?\u003c=;$)","patterns":[{"name":"expression.property.css-template.templ","begin":"({)","end":"(})(;)$","patterns":[{"include":"source.go"}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"},"2":{"name":"punctuation.terminator.rule.css"}}},{"name":"constant.property.css-template.templ","match":"(.*)(;)$","captures":{"1":{"name":"support.type.property-value.css"},"2":{"name":"punctuation.terminator.rule.css"}}}],"beginCaptures":{"1":{"name":"support.type.property-name.css"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}},"default-expression":{"begin":"^\\s*default:$","end":"(^\\s*case .+?:$)|(^\\s*default:$)|(\\s*$)","patterns":[{"include":"#template-node"}],"captures":{"0":{"name":"default.switch.html-template.templ","patterns":[{"include":"source.go"}]}}},"element":{"name":"meta.tag.any.html","begin":"(\u003c)([a-zA-Z0-9:\\-]++)(?=[^\u003e]*\u003e\u003c/\\2\u003e)","end":"(\u003e(\u003c)/)(\\2)(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}}},"else-expression":{"name":"else.html-template.templ","begin":"\\s+(else)\\s+({)\\s*$","end":"^\\s*(})$","patterns":[{"include":"#template-node"}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}},"else-if-expression":{"name":"else-if.html-template.templ","begin":"\\s(else if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.else-if.html-template.templ","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}}},{"name":"block.else-if.html-template.templ","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#template-node"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"entities":{"patterns":[{"name":"constant.character.entity.html","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#[xX][0-9a-fA-F]+)(;)","captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}}},{"name":"invalid.illegal.bad-ampersand.html","match":"\u0026"}]},"for-expression":{"name":"for.html-template.templ","begin":"^\\s*for .+{","end":"\\s*}\\s*\n","patterns":[{"include":"#template-node"}],"captures":{"0":{"name":"meta.embedded.block.go","patterns":[{"include":"source.go"}]}}},"go-comment-block":{"name":"comment.block.go","begin":"(\\/\\*)","end":"(\\*\\/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"endCaptures":{"1":{"name":"punctuation.definition.comment.go"}}},"go-comment-double-slash":{"name":"comment.line.double-slash.go","begin":"(\\/\\/)","end":"(?:\\n|$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}}},"html-comment":{"name":"comment.block.html","begin":"\u003c!--","end":"--\u003e","beginCaptures":{"0":{"name":"punctuation.definition.comment.html"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.html"}}},"html-template":{"name":"html-template.templ","begin":"^(templ) ((?:\\([A-z_][A-z_0-9]* \\*?[A-z_][A-z_0-9]*\\) )?[A-z_][A-z_0-9]*(\\(|\\[))","end":"(?\u003c=^}$)","patterns":[{"name":"params.html-template.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"type-params.html-template.templ","begin":"(?\u003c=\\[)","end":"(\\])","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.square.go"}}},{"name":"block.html-template.templ","begin":"(?\u003c=\\)) ({)$","end":"^(})$","patterns":[{"include":"#template-node"}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}},"if-expression":{"name":"if.html-template.templ","begin":"^\\s*(if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.if.html-template.templ","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}}},{"name":"block.if.html-template.templ","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#template-node"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"import-expression":{"patterns":[{"name":"import-expression.templ","begin":"(@)((?:[A-z_][A-z_0-9]*\\.)?[A-z_][A-z_0-9]*(?:\\(|{|$))","end":"(?\u003c=\\))$|(?\u003c=})$|(?\u003c=$)","patterns":[{"name":"struct-method.import-expression.templ","begin":"(?\u003c=[A-z_0-9]{)","end":"\\s*(})(\\.[A-z_][A-z_0-9]*\\()","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"},"2":{"patterns":[{"include":"source.go"}]}}},{"name":"params.import-expression.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"children.import-expression.templ","begin":"(?\u003c=\\))\\s({)$","end":"^\\s*(})$","patterns":[{"include":"#template-node"}],"beginCaptures":{"1":{"name":"punctuation.brace.open"}},"endCaptures":{"1":{"name":"punctuation.brace.close"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}}]},"inline-element":{"name":"meta.tag.inline.any.html","begin":"(\u003c/?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?=\\s|\\\\|\u003e))","end":"((?: ?/)?\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.inline.any.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"raw-go":{"name":"raw-go.templ","begin":"{{","end":"}}","patterns":[{"include":"source.go"}],"beginCaptures":{"0":{"name":"start.raw-go.templ"},"1":{"name":"punctuation.brace.open"}},"endCaptures":{"0":{"name":"end.raw-go.templ"},"1":{"name":"punctuation.brace.open"}}},"script-element":{"name":"meta.tag.script.html","begin":"(\u003c)(script)([^\u003e]*)(\u003e)","end":"\u003c/script\u003e","patterns":[{"include":"source.js"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.html"}},"endCaptures":{"0":{"patterns":[{"include":"#close-element"}]}}},"script-template":{"name":"script-template.templ","begin":"^(script) ([A-z_][A-z_0-9]*\\()","end":"(?\u003c=^}$)","patterns":[{"name":"params.script-template.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"block.script-template.templ","begin":"(?\u003c=\\)) ({)$","end":"^(})$","patterns":[{"include":"source.js"}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}},"sgml":{"name":"meta.tag.sgml.html","begin":"\u003c!","end":"\u003e","patterns":[{"name":"meta.tag.sgml.doctype.html","begin":"(?i:DOCTYPE)","end":"(?=\u003e)","patterns":[{"name":"string.quoted.double.doctype.identifiers-and-DTDs.html","match":"\"[^\"\u003e]*\""}],"captures":{"1":{"name":"entity.name.tag.doctype.html"}}},{"name":"constant.other.inline-data.html","begin":"\\[CDATA\\[","end":"]](?=\u003e)"},{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"(\\s*)(?!--|\u003e)\\S(\\s*)"}],"captures":{"0":{"name":"punctuation.definition.tag.html"}}},"string-double-quoted":{"name":"string.quoted.double.html","begin":"\"","end":"\"","patterns":[{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"string-expression":{"name":"expression.html-template.templ","begin":"{\\s+","end":"}","patterns":[{"include":"source.go"}],"beginCaptures":{"0":{"name":"start.string-expression.templ"}},"endCaptures":{"0":{"name":"end.string-expression.templ"}}},"style-element":{"name":"meta.tag.style.html","begin":"(\u003c)(style)([^\u003e]*)(\u003e)","end":"\u003c/style\u003e","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.html"}},"endCaptures":{"0":{"patterns":[{"include":"#close-element"}]}}},"switch-expression":{"name":"switch.html-template.templ","begin":"^\\s*switch .+?{$","end":"^\\s*}$","patterns":[{"include":"#template-node"},{"include":"#case-expression"},{"include":"#default-expression"}],"captures":{"0":{"name":"meta.embedded.block.go","patterns":[{"include":"source.go"}]}}},"tag-else-attribute":{"name":"else.attribute.html","begin":"\\s(else)\\s({)$","end":"^\\s*(})$","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"name":"punctuation.brace.open"}},"endCaptures":{"1":{"name":"punctuation.brace.close"}}},"tag-else-if-attribute":{"name":"else-if.attribute.html","begin":"\\s(else if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.else-if.attribute.html","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.brace.open"}}},{"name":"block.else-if.attribute.html","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#tag-stuff"}],"endCaptures":{"1":{"name":"punctuation.brace.close"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"tag-generic-attribute":{"name":"entity.other.attribute-name.html","match":"(?\u003c=[^=])\\b([a-zA-Z0-9:-]+)"},"tag-id-attribute":{"name":"meta.attribute-with-value.id.html","begin":"\\b(id)\\b\\s*(=)","end":"(?!\\G)(?\u003c='|\"|[^\\s\u003c\u003e/])","patterns":[{"name":"string.quoted.double.html","contentName":"meta.toc-list.id.html","begin":"\"","end":"\"","patterns":[{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},{"name":"string.quoted.single.html","contentName":"meta.toc-list.id.html","begin":"'","end":"'","patterns":[{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},{"name":"string.unquoted.html","match":"(?\u003c==)(?:[^\\s{}\u003c\u003e/'\"]|/(?!\u003e))+","captures":{"0":{"name":"meta.toc-list.id.html"}}}],"captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"tag-if-attribute":{"name":"if.attribute.html","begin":"^\\s*(if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.if.attribute.html","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.brace.open"}}},{"name":"block.if.attribute.html","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#tag-stuff"}],"endCaptures":{"1":{"name":"punctuation.brace.close"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"tag-stuff":{"patterns":[{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-expression"},{"include":"#tag-if-attribute"},{"include":"#tag-else-if-attribute"},{"include":"#tag-else-attribute"}]},"template-node":{"patterns":[{"include":"#string-expression"},{"include":"#call-expression"},{"include":"#import-expression"},{"include":"#script-element"},{"include":"#style-element"},{"include":"#element"},{"include":"#html-comment"},{"include":"#go-comment-block"},{"include":"#go-comment-double-slash"},{"include":"#sgml"},{"include":"#block-element"},{"include":"#inline-element"},{"include":"#close-element"},{"include":"#else-if-expression"},{"include":"#if-expression"},{"include":"#else-expression"},{"include":"#for-expression"},{"include":"#switch-expression"},{"include":"#raw-go"}]}}}
|
1
|
+
{"name":"templ","scopeName":"source.templ","patterns":[{"include":"#script-template"},{"include":"#css-template"},{"include":"#html-template"},{"include":"source.go"}],"repository":{"block-element":{"name":"meta.tag.block.any.html","begin":"(\u003c/?)((?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|\\\\|\u003e))","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.block.any.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"call-expression":{"name":"call-expression.templ","begin":"({\\!)\\s+","end":"(})","patterns":[{"include":"source.go"}],"beginCaptures":{"0":{"name":"start.call-expression.templ"},"1":{"name":"punctuation.brace.open"}},"endCaptures":{"0":{"name":"end.call-expression.templ"},"1":{"name":"punctuation.brace.close"}}},"case-expression":{"begin":"^\\s*case .+?:$","end":"(^\\s*case .+?:$)|(^\\s*default:$)|(\\s*$)","patterns":[{"include":"#template-node"}],"captures":{"0":{"name":"case.switch.html-template.templ","patterns":[{"include":"source.go"}]}}},"close-element":{"name":"meta.tag.other.html","begin":"(\u003c/?)([a-zA-Z0-9:\\-]+)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.other.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"css-template":{"name":"css-template.templ","begin":"^(css) ([A-z_][A-z_0-9]*\\()","end":"(?\u003c=^}$)","patterns":[{"name":"params.css-template.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"block.css-template.templ","begin":"(?\u003c=\\))\\s*({)$","end":"^(})$","patterns":[{"name":"property.css-template.templ","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-opacity|stop-color|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak-as|speak|span|spacing|space-collapse|space|solid-opacity|solid-color|sizing|size-adjust|size|shape-rendering|shape-padding|shape-outside|shape-margin|shape-inside|shape-image-threshold|shadow|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-snap-destination|scroll-snap-coordinate|scroll-behavior|scale|ry|rx|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-merge|ruby-align|ruby|rows|rotation-point|rotation|rotate|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|region-fragment|rate|range|radius|r|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|prefix|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective-origin|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-bottom|padding-block-start|padding-block-end|padding|pad|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow-inline|overflow-block|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset-start|offset-inline-start|offset-inline-end|offset-end|offset-block-start|offset-block-end|offset-before|offset-after|offset|object-position|object-fit|numeral|new|negative|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|motion-rotation|motion-path|motion-offset|motion|model|mix-blend-mode|min-zoom|min-width|min-inline-size|min-height|min-block-size|min|max-zoom|max-width|max-lines|max-inline-size|max-height|max-block-size|max|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marquee-style|marquee-speed|marquee-play-count|marquee-loop|marquee-direction|marquee|marks|marker-start|marker-side|marker-mid|marker-end|marker|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-bottom|margin-block-start|margin-block-end|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-snap|line-height|line-grid|line-break|line|lighting-color|level|letter-spacing|length|left-width|left-style|left-color|left|label|kerning|justify-self|justify-items|justify-content|justify|iteration-count|isolation|inline-size|inline-box-align|initial-value|initial-size|initial-letter-wrap|initial-letter-align|initial-letter|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-rendering|image-resolution|image-orientation|image|icon|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-last|hyphenate-limit-chars|hyphenate-character|hyphenate|height|header|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-gap|grid-row-end|grid-row|grid-rows|grid-gap|grid-column-start|grid-column-gap|grid-column-end|grid-column|grid-columns|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|font-weight|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|flow-into|flow-from|flow|flood-opacity|flood-color|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|filter|fill-rule|fill-opacity|fill|family|fallback|enable-background|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cy|cx|cursor|cue-before|cue-after|cue|crop|counter-set|counter-reset|counter-increment|counter|count|corner-shape|corners|continue|content|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color-adjust|color|collapse|clip-rule|clip-path|clip|clear|character|caret-shape|caret-color|caret|caption-side|buffered-rendering|break-inside|break-before|break-after|break|box-suppress|box-snap|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-limit|border-length|border-left-width|border-left-style|border-left-color|border-left|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-image-width|border-image-transform|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-clip-top|border-clip-right|border-clip-left|border-clip-bottom|border-clip|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border|bookmark-target|bookmark-level|bookmark-label|bookmark|block-size|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position-inline|background-position-block|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alt|all|alignment-baseline|alignment-adjust|alignment|align-last|align-self|align-items|align-content|align|after|adjust|additive-symbols)):\\s+","end":"(?\u003c=;$)","patterns":[{"name":"expression.property.css-template.templ","begin":"({)","end":"(})(;)$","patterns":[{"include":"source.go"}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"},"2":{"name":"punctuation.terminator.rule.css"}}},{"name":"constant.property.css-template.templ","match":"(.*)(;)$","captures":{"1":{"name":"support.type.property-value.css"},"2":{"name":"punctuation.terminator.rule.css"}}}],"beginCaptures":{"1":{"name":"support.type.property-name.css"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}},"default-expression":{"begin":"^\\s*default:$","end":"(^\\s*case .+?:$)|(^\\s*default:$)|(\\s*$)","patterns":[{"include":"#template-node"}],"captures":{"0":{"name":"default.switch.html-template.templ","patterns":[{"include":"source.go"}]}}},"element":{"name":"meta.tag.any.html","begin":"(\u003c)([a-zA-Z0-9:\\-]++)(?=[^\u003e]*\u003e\u003c/\\2\u003e)","end":"(\u003e(\u003c)/)(\\2)(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}}},"else-expression":{"name":"else.html-template.templ","begin":"\\s+(else)\\s+({)\\s*$","end":"^\\s*(})$","patterns":[{"include":"#template-node"}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}},"else-if-expression":{"name":"else-if.html-template.templ","begin":"\\s(else if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.else-if.html-template.templ","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}}},{"name":"block.else-if.html-template.templ","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#template-node"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"entities":{"patterns":[{"name":"constant.character.entity.html","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#[xX][0-9a-fA-F]+)(;)","captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}}},{"name":"invalid.illegal.bad-ampersand.html","match":"\u0026"}]},"for-expression":{"name":"for.html-template.templ","begin":"^\\s*for .+{","end":"\\s*}\\s*\n","patterns":[{"include":"#template-node"}],"captures":{"0":{"name":"meta.embedded.block.go","patterns":[{"include":"source.go"}]}}},"go-comment-block":{"name":"comment.block.go","begin":"(\\/\\*)","end":"(\\*\\/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"endCaptures":{"1":{"name":"punctuation.definition.comment.go"}}},"go-comment-double-slash":{"name":"comment.line.double-slash.go","begin":"(\\/\\/)","end":"(?:\\n|$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}}},"html-comment":{"name":"comment.block.html","begin":"\u003c!--","end":"--\u003e","beginCaptures":{"0":{"name":"punctuation.definition.comment.html"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.html"}}},"html-template":{"name":"html-template.templ","begin":"^(templ) ((?:\\([A-z_][A-z_0-9]* \\*?[A-z_][A-z_0-9]*\\) )?[A-z_][A-z_0-9]*(\\(|\\[))","end":"(?\u003c=^}$)","patterns":[{"name":"params.html-template.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"type-params.html-template.templ","begin":"(?\u003c=\\[)","end":"(\\])","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.square.go"}}},{"name":"block.html-template.templ","begin":"(?\u003c=\\))\\s*({)$","end":"^(})$","patterns":[{"include":"#template-node"}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}},"if-expression":{"name":"if.html-template.templ","begin":"^\\s*(if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.if.html-template.templ","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}}},{"name":"block.if.html-template.templ","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#template-node"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"import-expression":{"patterns":[{"name":"import-expression.templ","begin":"(@)((?:[A-z_][A-z_0-9]*\\.)?[A-z_][A-z_0-9]*(?:\\(|{|$))","end":"(?\u003c=\\))$|(?\u003c=})$|(?\u003c=$)","patterns":[{"name":"struct-method.import-expression.templ","begin":"(?\u003c=[A-z_0-9]{)","end":"\\s*(})(\\.[A-z_][A-z_0-9]*\\()","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"},"2":{"patterns":[{"include":"source.go"}]}}},{"name":"params.import-expression.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"children.import-expression.templ","begin":"(?\u003c=\\))\\s({)$","end":"^\\s*(})$","patterns":[{"include":"#template-node"}],"beginCaptures":{"1":{"name":"punctuation.brace.open"}},"endCaptures":{"1":{"name":"punctuation.brace.close"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}}]},"inline-element":{"name":"meta.tag.inline.any.html","begin":"(\u003c/?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?=\\s|\\\\|\u003e))","end":"((?: ?/)?\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.inline.any.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},"raw-go":{"name":"raw-go.templ","begin":"{{","end":"}}","patterns":[{"include":"source.go"}],"beginCaptures":{"0":{"name":"start.raw-go.templ"},"1":{"name":"punctuation.brace.open"}},"endCaptures":{"0":{"name":"end.raw-go.templ"},"1":{"name":"punctuation.brace.open"}}},"script-element":{"name":"meta.tag.script.html","begin":"(\u003c)(script)([^\u003e]*)(\u003e)","end":"\u003c/script\u003e","patterns":[{"include":"source.js"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.html"}},"endCaptures":{"0":{"patterns":[{"include":"#close-element"}]}}},"script-template":{"name":"script-template.templ","begin":"^(script) ([A-z_][A-z_0-9]*\\()","end":"(?\u003c=^}$)","patterns":[{"name":"params.script-template.templ","begin":"(?\u003c=\\()","end":"(\\))","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}}},{"name":"block.script-template.templ","begin":"(?\u003c=\\))\\s*({)$","end":"^(})$","patterns":[{"include":"source.js"}],"beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}}},"sgml":{"name":"meta.tag.sgml.html","begin":"\u003c!","end":"\u003e","patterns":[{"name":"meta.tag.sgml.doctype.html","begin":"(?i:DOCTYPE)","end":"(?=\u003e)","patterns":[{"name":"string.quoted.double.doctype.identifiers-and-DTDs.html","match":"\"[^\"\u003e]*\""}],"captures":{"1":{"name":"entity.name.tag.doctype.html"}}},{"name":"constant.other.inline-data.html","begin":"\\[CDATA\\[","end":"]](?=\u003e)"},{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"(\\s*)(?!--|\u003e)\\S(\\s*)"}],"captures":{"0":{"name":"punctuation.definition.tag.html"}}},"string-double-quoted":{"name":"string.quoted.double.html","begin":"\"","end":"\"","patterns":[{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"string-expression":{"name":"expression.html-template.templ","begin":"{\\s+","end":"}","patterns":[{"include":"source.go"}],"beginCaptures":{"0":{"name":"start.string-expression.templ"}},"endCaptures":{"0":{"name":"end.string-expression.templ"}}},"style-element":{"name":"meta.tag.style.html","begin":"(\u003c)(style)([^\u003e]*)(\u003e)","end":"\u003c/style\u003e","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.html"}},"endCaptures":{"0":{"patterns":[{"include":"#close-element"}]}}},"switch-expression":{"name":"switch.html-template.templ","begin":"^\\s*switch .+?{$","end":"^\\s*}$","patterns":[{"include":"#template-node"},{"include":"#case-expression"},{"include":"#default-expression"}],"captures":{"0":{"name":"meta.embedded.block.go","patterns":[{"include":"source.go"}]}}},"tag-else-attribute":{"name":"else.attribute.html","begin":"\\s(else)\\s({)$","end":"^\\s*(})$","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"name":"punctuation.brace.open"}},"endCaptures":{"1":{"name":"punctuation.brace.close"}}},"tag-else-if-attribute":{"name":"else-if.attribute.html","begin":"\\s(else if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.else-if.attribute.html","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.brace.open"}}},{"name":"block.else-if.attribute.html","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#tag-stuff"}],"endCaptures":{"1":{"name":"punctuation.brace.close"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"tag-generic-attribute":{"name":"entity.other.attribute-name.html","match":"(?\u003c=[^=])\\b([a-zA-Z0-9:-]+)"},"tag-id-attribute":{"name":"meta.attribute-with-value.id.html","begin":"\\b(id)\\b\\s*(=)","end":"(?!\\G)(?\u003c='|\"|[^\\s\u003c\u003e/])","patterns":[{"name":"string.quoted.double.html","contentName":"meta.toc-list.id.html","begin":"\"","end":"\"","patterns":[{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},{"name":"string.quoted.single.html","contentName":"meta.toc-list.id.html","begin":"'","end":"'","patterns":[{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},{"name":"string.unquoted.html","match":"(?\u003c==)(?:[^\\s{}\u003c\u003e/'\"]|/(?!\u003e))+","captures":{"0":{"name":"meta.toc-list.id.html"}}}],"captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"tag-if-attribute":{"name":"if.attribute.html","begin":"^\\s*(if)\\s","end":"(?\u003c=})","patterns":[{"name":"expression.if.attribute.html","begin":"(?\u003c=if\\s)","end":"({)$","patterns":[{"include":"source.go"}],"endCaptures":{"1":{"name":"punctuation.brace.open"}}},{"name":"block.if.attribute.html","begin":"(?\u003c={)$","end":"^\\s*(})","patterns":[{"include":"#tag-stuff"}],"endCaptures":{"1":{"name":"punctuation.brace.close"}}}],"beginCaptures":{"1":{"name":"keyword.control.go"}}},"tag-stuff":{"patterns":[{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-expression"},{"include":"#tag-if-attribute"},{"include":"#tag-else-if-attribute"},{"include":"#tag-else-attribute"}]},"template-node":{"patterns":[{"include":"#string-expression"},{"include":"#call-expression"},{"include":"#import-expression"},{"include":"#script-element"},{"include":"#style-element"},{"include":"#element"},{"include":"#html-comment"},{"include":"#go-comment-block"},{"include":"#go-comment-double-slash"},{"include":"#sgml"},{"include":"#block-element"},{"include":"#inline-element"},{"include":"#close-element"},{"include":"#else-if-expression"},{"include":"#if-expression"},{"include":"#else-expression"},{"include":"#for-expression"},{"include":"#switch-expression"},{"include":"#raw-go"}]}}}
|
data/grammars/source.toc.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"TOC (WoW)","scopeName":"source.toc","patterns":[{"match":"^(##\\s*(\\S+))\\s*(:)\\s*(.*)$","captures":{"1":{"name":"keyword.tag.toc"},"2":{"name":"keyword.tag.toc","patterns":[{"name":"entity.name.tag.custom.toc","match":"[Xx]-[^:]+"},{"name":"entity.name.tag.localized.toc","match":"(?i)(Title-|Notes-|Category-|)(?-i)(enUS|enCN|enGB|enTW|frFR|deDE|esES|esMX|itIT|ptBR|ptPT|ruRU|koKR|zhTW|zhCN)"},{"name":"entity.name.tag.toc","match":"(?i)(Interface|Title|Notes|RequiredDeps|\\bDep[^:]*|OptionalDeps|LoadOnDemand|LoadWith|LoadManagers|SavedVariablesPerCharacter|SavedVariables|DefaultState|Author|Version|AddonCompartmentFunc(OnEnter|OnLeave)?|IconAtlas|IconTexture|Category|Group)"},{"name":"entity.name.tag.restricted.toc","match":"(?i)(AllowLoad
|
1
|
+
{"name":"TOC (WoW)","scopeName":"source.toc","patterns":[{"match":"^(##\\s*(\\S+))\\s*(:)\\s*(.*)$","captures":{"1":{"name":"keyword.tag.toc"},"2":{"name":"keyword.tag.toc","patterns":[{"name":"entity.name.tag.custom.toc","match":"[Xx]-[^:]+"},{"name":"entity.name.tag.localized.toc","match":"(?i)(Title-|Notes-|Category-|)(?-i)(enUS|enCN|enGB|enTW|frFR|deDE|esES|esMX|itIT|ptBR|ptPT|ruRU|koKR|zhTW|zhCN)"},{"name":"entity.name.tag.toc","match":"(?i)(Interface|Title|Notes|RequiredDeps|\\bDep[^:]*|OptionalDeps|LoadOnDemand|LoadWith|LoadManagers|AllowLoadGameType|SavedVariablesPerCharacter|SavedVariables|LoadSavedVariablesFirst|DefaultState|Author|Version|AddonCompartmentFunc(OnEnter|OnLeave)?|IconAtlas|IconTexture|Category|Group)"},{"name":"entity.name.tag.restricted.toc","match":"(?i)(AllowLoad|OnlyBetaAndPTR|SavedVariablesMachine|Secure|LoadFirst|UseSecureEnvironment)"},{"name":"invalid.tag.toc","match":"\\S[^:]+"}]},"3":{"name":"punctuation.separator.key-value"},"4":{"name":"string.value.toc","patterns":[{"match":"(\\|c)([a-fA-F0-9]{8})","captures":{"1":{"name":"constant.character.escape.toc"},"2":{"name":"string.escape.coloring.toc"}}},{"name":"constant.character.escape.toc","match":"(\\|r)"},{"name":"constant.other.packager.toc","match":"@.*?@"}]}}},{"name":"comment.toc","match":"#.*$"},{"name":"entity.name.file.toc","begin":"^(?!#)\\s*(?=[\\w\\[])","end":"\\n","patterns":[{"include":"#inline-conditional-directive"},{"include":"#inline-variable-directive"}]},{"name":"constant.other.packager.toc","match":"@.*?@"}],"repository":{"inline-conditional-directive":{"name":"keyword.tag.toc","match":"\\[(\\w+)(\\s+)([^\\]]*)\\]","captures":{"1":{"name":"keyword.tag.toc","patterns":[{"name":"entity.name.tag.toc","match":"(?i)(AllowLoadGameType)"},{"name":"entity.name.tag.restricted.toc","match":"(?i)(AllowLoad)"},{"name":"invalid.tag.toc","match":".+"}]},"2":{"name":"punctuation.separator.key-value"},"3":{"name":"string.escape.coloring.toc"}}},"inline-variable-directive":{"name":"keyword.tag.toc","match":"\\[(\\w+)\\]","captures":{"1":{"name":"keyword.tag.toc","patterns":[{"name":"entity.name.tag.variable.toc","match":"(?i)(Family|Game)"},{"name":"invalid.tag.toc","match":"\\S[^:]+"}]}}}}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"Tor Configuration","scopeName":"source.torrc","patterns":[{"begin":"\\A(?=[ \\t]*$|This document)","end":"(?=\\S)","patterns":[{"name":"meta.document.torrc-spec","begin":"^(?=This document specifies the current format and semantics of the torrc)","end":"(?=A)B","patterns":[{"name":"meta.section.file-syntax.torrc-spec","contentName":"source.embedded.abnf","begin":"(?i)^(\\s*)((1\\.)\\s+File\\s+Syntax)[ \\t]*$","end":"(?=^(?:(?!\\s)|\\1)(?:\\d+\\.)+\\s+)","patterns":[{"include":"source.abnf"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indentation.torrc-spec"},"2":{"name":"markup.heading.1.numbered.torrc-spec"},"3":{"name":"constant.numeric.section-number.torrc-spec"}}},{"name":"meta.section.syntax-examples.torrc-spec","contentName":"source.embedded.torrc","begin":"(?i)^(\\s*)(((?:\\d+\\.){2})\\s+Syntax\\s+examples)[ \\t]*$","end":"(?=A)B","patterns":[{"include":"source.torrc#main"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indentation.torrc-spec"},"2":{"name":"markup.heading.2.numbered.torrc-spec"},"3":{"name":"constant.numeric.section-number.torrc-spec"}}},{"name":"meta.section.other.torrc-spec","contentName":"text.embedded.plain","begin":"(?i)^(\\s*)((\\d+\\.)\\s+(?!Syntax\\s+examples\\s*$)\\S.*)[ \\t]*$","end":"(?=^(?:(?!\\s)|\\1)(?:\\d+\\.)+\\s+)","patterns":[{}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indentation.torrc-spec"},"2":{"name":"markup.heading.1.numbered.torrc-spec"},"3":{"name":"constant.numeric.section-number.torrc-spec"}}}]}],"applyEndPatternLast":true},{"include":"#main"}],"repository":{"address":{"patterns":[{"name":"meta.address.torrc","match":"(?ix)\n(?:\n\t# “hostname:…”\n\t([^\\[\\]\\s:#,]+) (:)\n\t|\n\t# No first part, just match anything that quacks like an IP addy\n\t(?=\\[)\n)\n\n# DRY and TextMate-friendly hack to assert balanced but optional brackets\n(?:\n\t# If an opening bracket follows, require an accompanying closing bracket \n\t(?= \\[ [^\\[\\]\\s,\\#]*+ \\])\n\t|\n\t# Otherwise, avoid matching unbalanced brackets\n\t(?!\\[)\n)\n\n(\\[)?\n(?: (\\d{1,3}(?:\\.\\d{1,3})+) # IPv4 address\n| (:*[0-9A-F]+(?::+[0-9A-F]*)*+) # IPv6 address\n| (\\d+) # Port?\n)\n(\\])?\n(?=\\s|,|$|\\#)","captures":{"1":{"patterns":[{"include":"source.hosts#modern"}]},"2":{"patterns":[{"include":"etc#colon"}]},"3":{"name":"punctuation.definition.address.begin.torrc"},"4":{"patterns":[{"include":"etc#ipv4"}]},"5":{"patterns":[{"include":"etc#ipv6"}]},"6":{"patterns":[{"include":"#port"}]},"7":{"name":"punctuation.definition.address.end.torrc"}}},{"match":"(\\[)([^\\[\\]]+)(\\])((/)(\\d+))","captures":{"1":{"name":"punctuation.definition.ipv6-address.begin.torrc"},"2":{"patterns":[{"include":"etc#ipv6"}]},"3":{"name":"punctuation.definition.ipv6-address.end.torrc"},"4":{"name":"meta.cidr-notation"},"5":{"name":"keyword.operator.assignment.cidr"},"6":{"patterns":[{"include":"etc#intNoExp"}]}}}]},"anyIP":{"match":"\\*[46]?(?::\\*)?","captures":{"0":{"patterns":[{"name":"keyword.operator.wildcard.match-ipv$1.torrc","match":"\\*(\\d)"},{"name":"keyword.operator.wildcard.match-all.torrc","match":"\\*"},{"include":"etc#colon"}]}}},"cc":{"name":"constant.language.country-code.${2:/downcase}.torrc","match":"(\\{)(?:([A-Za-z]{2})|(\\?\\?))(\\})","captures":{"1":{"name":"punctuation.definition.country-code.begin.torrc"},"3":{"name":"constant.character.escape.wildcard.match-any.torrc"},"4":{"name":"punctuation.definition.country-code.end.torrc"}}},"comment":{"name":"comment.line.number-sign.torrc","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.torrc"}}},"commentEmbedded":{"contentName":"comment.line.number-sign.embedded.torrc","begin":"[ \\t]*(?=#)","end":"(?!\\G)^","patterns":[{"name":"punctuation.definition.comment.torrc","match":"\\G#"}]},"entry":{"name":"meta.entry.${3:/downcase/asciify}.torrc","begin":"^\\s*(?:(/)|(\\+))?((?:[^\\s#\\0\\\\]|\\\\(?!$))++)","end":"(?!\\G)","patterns":[{"name":"meta.numeric-setting.torrc","begin":"(?ix)\n# Unitless\n(?\u003c= AddressDisableIPv6\n| AllowNonRFC953Hostnames\n| AssumeReachableIPv6\n| AssumeReachable\n| AuthDirHasIPv6Connectivity\n| AuthDirListBadExits\n| AuthDirListMiddleOnly\n| AuthDirMaxServersPerAddr\n| AuthDirPinKeys\n| AuthDirRejectRequestsUnderLoad\n| AuthDirSharedRandomness\n| AuthDirTestEd25519LinkKeys\n| AuthDirTestReachability\n| AuthoritativeDirectory\n| AutomapHostsOnResolve\n| AvoidDiskWrites\n| BridgeAuthoritativeDir\n| BridgeRecordUsageByCountry\n| BridgeRelay\n| CacheDirectoryGroupReadable\n| CellStatistics\n| CircuitBuildTimeout\n| CircuitPadding\n| CircuitPriorityHalflife\n| CircuitStreamTimeout\n| CircuitsAvailableTimeout\n| ClientBootstrapConsensusAuthorityDownloadInitialDelay\n| ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay\n| ClientBootstrapConsensusFallbackDownloadInitialDelay\n| ClientBootstrapConsensusMaxInProgressTries\n| ClientDNSRejectInternalAddresses\n| ClientOnly\n| ClientPreferIPv6DirPort\n| ClientPreferIPv6ORPort\n| ClientRejectInternalAddresses\n| ClientUseIPv4\n| ClientUseIPv6\n| CompiledProofOfWorkHash\n| ConfluxEnabled\n| ConnDirectionStatistics\n| ConnLimit\n| ConnectionPadding\n| ConstrainedSockets\n| ControlPortFileGroupReadable\n| ControlSocketsGroupWritable\n| CookieAuthFileGroupReadable\n| CookieAuthentication\n| CountPrivateBandwidth\n| DataDirectoryGroupReadable\n| DirAllowPrivateAddresses\n| DirAuthorityFallbackRate\n| DirCache\n| DirReqStatistics\n| DisableAllSwap\n| DisableDebuggerAttachment\n| DisableNetwork\n| DisableOOSCheck\n| DoSCircuitCreationBurst\n| DoSCircuitCreationDefenseType\n| DoSCircuitCreationEnabled\n| DoSCircuitCreationMinConnections\n| DoSCircuitCreationRate\n| DoSConnectionConnectBurst\n| DoSConnectionConnectRate\n| DoSConnectionDefenseType\n| DoSConnectionEnabled\n| DoSConnectionMaxConcurrentCount\n| DoSRefuseSingleHopClientRendezvous\n| DoSStreamCreationBurst\n| DoSStreamCreationDefenseType\n| DoSStreamCreationEnabled\n| DoSStreamCreationRate\n| DormantCanceledByStartup\n| DormantOnFirstStartup\n| DormantTimeoutDisabledByIdleStreams\n| DormantTimeoutEnabled\n| DownloadExtraInfo\n| EnforceDistinctSubnets\n| EntryStatistics\n| ExitPolicyRejectLocalInterfaces\n| ExitPolicyRejectPrivate\n| ExitPortStatistics\n| ExitRelay\n| ExtORPortCookieAuthFileGroupReadable\n| ExtendAllowPrivateAddresses\n| ExtendByEd25519ID\n| ExtraInfoStatistics\n| FascistFirewall\n| FetchDirInfoEarly\n| FetchDirInfoExtraEarly\n| FetchHidServDescriptors\n| FetchServerDescriptors\n| FetchUselessDescriptors\n| GeoIPExcludeUnknown\n| HardwareAccel\n| HiddenServiceAllowUnknownPorts\n| HiddenServiceDirGroupReadable\n| HiddenServiceEnableIntroDoSBurstPerSec\n| HiddenServiceEnableIntroDoSDefense\n| HiddenServiceEnableIntroDoSRatePerSec\n| HiddenServiceMaxStreamsCloseCircuit\n| HiddenServiceMaxStreams\n| HiddenServiceNonAnonymousMode\n| HiddenServiceNumIntroductionPoints\n| HiddenServiceOnionBalanceInstance\n| HiddenServicePoWDefensesEnabled\n| HiddenServicePoWQueueBurst\n| HiddenServicePoWQueueRate\n| HiddenServiceSingleHopMode\n| HiddenServiceStatistics\n| HiddenServiceVersion\n| IPv6Exit\n| KISTSockBufSizeFactor\n| KeepBindCapabilities\n| KeepalivePeriod\n| KeyDirectoryGroupReadable\n| LearnCircuitBuildTimeout\n| LogMessageDomains\n| LogTimeGranularity\n| MainloopStats\n| MaxCircuitDirtiness\n| MaxClientCircuitsPending\n| MinMeasuredBWsForAuthToIgnoreAdvertised\n| NewCircuitPeriod\n| NoExec\n| NumCPUs\n| NumDirectoryGuards\n| NumEntryGuards\n| NumPrimaryGuards\n| OfflineMasterKey\n| OverloadStatistics\n| PaddingStatistics\n| PathBiasScaleThreshold\n| PathBiasScaleUseThreshold\n| PathsNeededToBuildCircuits\n| ProtocolWarnings\n| PublishHidServDescriptors\n| PublishServerDescriptor\n| ReducedCircuitPadding\n| ReducedConnectionPadding\n| ReducedExitPolicy\n| ReevaluateExitPolicy\n| RefuseUnknownExits\n| RunAsDaemon\n| SafeLogging\n| SafeSocks\n| Sandbox\n| ServerDNSAllowBrokenConfig\n| ServerDNSAllowNonRFC953Hostnames\n| ServerDNSDetectHijacking\n| ServerDNSRandomizeCase\n| ServerDNSSearchDomains\n| ShutdownWaitLength\n| SocksTimeout\n| StrictNodes\n| TestSocks\n| TestingBridgeBootstrapDownloadInitialDelay\n| TestingBridgeDownloadInitialDelay\n| TestingClientConsensusDownloadInitialDelay\n| TestingClientDownloadInitialDelay\n| TestingDirAuthVoteExitIsStrict\n| TestingDirAuthVoteGuardIsStrict\n| TestingDirAuthVoteHSDirIsStrict\n| TestingEnableCellStatsEvent\n| TestingEnableConnBwEvent\n| TestingServerConsensusDownloadInitialDelay\n| TestingServerDownloadInitialDelay\n| TestingTorNetwork\n| TrackHostExitsExpire\n| TruncateLogFile\n| UnixSocksGroupWritable\n| UpdateBridgesFromAuthority\n| UseBridges\n| UseDefaultFallbackDirs\n| UseEntryGuards\n| UseGuardFraction\n| UseMicrodescriptors\n| V3AuthNIntervalsValid\n| V3AuthUseLegacyKey\n| V3AuthoritativeDirectory\n| VanguardsLiteEnabled\n| VersioningAuthoritativeDirectory\n| __OwningControllerProcess\n\n# Units in use\n| AccountingMax\n| AuthDirFastGuarantee\n| AuthDirGuardBWGuarantee\n| AuthDirVoteGuardGuaranteeTimeKnown\n| AuthDirVoteStableGuaranteeMTBF\n| AuthDirVoteStableGuaranteeMinUptime\n| BandwidthBurst\n| BandwidthRate\n| ConstrainedSockSize\n| DoSCircuitCreationDefenseTimePeriod\n| DoSConnectionConnectDefenseTimePeriod\n| DormantClientTimeout\n| GuardLifetime\n| HeartbeatPeriod\n| KISTSchedRunInterval\n| MaxAdvertisedBandwidth\n| MaxConsensusAgeForDiffs\n| MaxMemInQueues\n| MaxOnionQueueDelay\n| MaxUnparseableDescSizeToLog\n| MinUptimeHidServDirectoryV2\n| PerConnBWBurst\n| PerConnBWRate\n| RelayBandwidthBurst\n| RelayBandwidthRate\n| RephistTrackTime\n| SSLKeyLifetime\n| SigningKeyLifetime\n| TestingAuthDirTimeToLearnReachability\n| TestingAuthKeyLifetime\n| TestingClientMaxIntervalWithoutRequest\n| TestingDirConnectionMaxStall\n| TestingLinkCertLifetime\n| TestingMinExitFlagThreshold\n| TestingMinFastFlagThreshold\n| TestingMinTimeToReportBandwidth\n| TestingSigningKeySlop\n| TestingV3AuthInitialDistDelay\n| TestingV3AuthInitialVoteDelay\n| TestingV3AuthInitialVotingInterval\n| TestingV3AuthVotingStartOffset\n| TokenBucketRefillInterval\n| V3AuthDistDelay\n| V3AuthVoteDelay\n| V3AuthVotingInterval\n\n# Ports lists\n| FirewallPorts\n| LongLivedPorts\n| RejectPlaintextPorts\n| WarnPlaintextPorts\n) \\G ","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryNumeric"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryNumeric"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryNumeric"}]}}}]},{"begin":"(?i)(?\u003c=[/+\\s]Log|^Log)\\G","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryLogging"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryLogging"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryLogging"}]}}}]},{"begin":"(?ix)\n(?\u003c= AccelDir\n| CacheDirectory\n| ClientOnionAuthDir\n| ControlPortWriteToFile\n| ControlSocket\n| CookieAuthFile\n| DataDirectory\n| DirPortFrontPage\n| ExtORPortCookieAuthFile\n| GeoIPFile\n| GeoIPv6File\n| GuardfractionFile\n| HiddenServiceDir\n| KeyDirectory\n| PidFile\n| ServerDNSResolvConfFile\n| V3BandwidthsFile\n) \\G","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryFile"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryFile"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryFile"}]}}}]},{"begin":"(?ix)\n(?\u003c= AuthDirVoteGuard\n| EntryNodes\n| ExcludeExitNodes\n| ExcludeNodes\n| ExitNodes\n| HSLayer2Nodes\n| HSLayer3Nodes\n| HTTPProxy\n| HTTPSProxy\n| HiddenServicePort\n| MapAddress\n| MiddleNodes\n| NodeFamily\n| OutboundBindAddressExit\n| OutboundBindAddressOR\n| OutboundBindAddressPT\n| OutboundBindAddress\n| Socks4Proxy | SOCKS4Proxy # FIXME; Remove different casing once issue with\n| Socks5Proxy | SOCKS5Proxy # scoped modifiers in lookbehinds is worked out.\n| TestingDirAuthVoteExit\n| TestingDirAuthVoteGuard\n| TestingDirAuthVoteHSDir\n| VirtualAddrNetworkIPv6\n) \\G","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryNode"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryNode"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryNode"}]}}}]},{"begin":"(?i)(?\u003c=DirPolicy|ExitPolicy|MetricsPortPolicy|SocksPolicy|SOCKSPolicy)\\G","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryPolicies"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryPolicies"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryPolicies"}]}}}]},{"begin":"(?i)(?\u003c=ConsensusParams|ServerTransportOptions)\\G","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryParams"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryParams"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryParams"}]}}}]},{"begin":"(?ix)\n(?\u003c= MinimalAcceptedServerVersion\n| RecommendedClientVersions\n| RecommendedServerVersions\n| RecommendedVersions\n) \\G","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryVersions"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryVersions"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryVersions"}]}}}]},{"begin":"\\G","end":"(?!\\G)","patterns":[{"contentName":"meta.value.torrc","begin":"\\G(?=(?:\\s+(?:[^\"#\\s]+|\"(?:[^\\\\\"]|\\\\.)*+\"))++\\s*#)","end":"(?=\\s*#)","patterns":[{"include":"#entryGeneric"}]},{"contentName":"meta.value.torrc","begin":"\\G(?:\\s*(\\\\$\\r?\\n?)|[ \\t]+|(?=$|#))","end":"(\\G\\s+((?=\\S)(?!#)[^\\\\\\n#\\0]+))(?=\\s*(?:$|#))|(?=\\s*$)","patterns":[{"include":"#commentEmbedded"},{"include":"#esc"},{"include":"#entryGeneric"}],"beginCaptures":{"1":{"patterns":[{"include":"#esc"}]}},"endCaptures":{"1":{"name":"meta.value.torrc"},"2":{"patterns":[{"include":"#entryGeneric"}]}}}]}],"beginCaptures":{"1":{"name":"keyword.operator.flag.clear-value.torrc"},"2":{"name":"keyword.operator.flag.append-value.torrc"},"3":{"name":"variable.assignment.entry.torrc"}}},"entryFile":{"name":"string.other.link.filename.torrc","begin":"(?=[^#\\s])","end":"(?=\\s*(?:$|#))"},"entryGeneric":{"patterns":[{"include":"#typed"},{"include":"#address"},{"include":"etc#ip"},{"include":"#num"},{"include":"#str"},{"include":"#portSuffix"},{"include":"etc#comma"},{"include":"#anyIP"},{"include":"#unq"}]},"entryLogging":{"patterns":[{"name":"meta.log-selector.torrc","match":"(?ix)\n((\\[)((?:~?(?:[a-z]+|\\*)(?:,|(?=\\])))*+)(\\]))?\n((?!-)(?:(?:debug|err|info|notice|warn)-?){1,2}(?\u003c!-))\n(?=$|\\s)","captures":{"1":{"name":"meta.domain-list.torrc"},"2":{"name":"punctuation.section.begin.domains.torrc"},"3":{"patterns":[{"name":"entity.name.domain.torrc","match":"[A-Za-z]+"},{"name":"keyword.operator.wildcard.match-all.torrc","match":"\\*"},{"name":"keyword.operator.logical.negation.negate.torrc","match":"~"},{"include":"etc#comma"}]},"4":{"name":"punctuation.section.end.domains.torrc"},"5":{"name":"meta.severity-levels.torrc","patterns":[{"name":"constant.language.severity-level.torrc","match":"(?i)debug|err|info|notice|warn"},{"name":"punctuation.separator.dash.torrc","match":"-"}]}}},{"name":"keyword.operator.log-destination.$1.torrc","match":"(?i)(?\u003c=\\s|^|\\G)\\b(stderr|stdout|syslog)\\b(?=$|\\s|#)"},{"name":"meta.log-file.torrc","contentName":"string.other.link.filename.torrc","begin":"(?i)(?\u003c=\\s|^|\\G)(file)(?=\\s|$|#)[ \\t]*","end":"(?=\\s*(?:$|#))","beginCaptures":{"1":{"name":"keyword.operator.log-destination.filename.torrc"}}}]},"entryNode":{"patterns":[{"include":"#cc"},{"include":"#port"},{"match":"(?i)(?\u003c=\\s|^|\\G|,)(unix)(:)((?:[^\\r\\n#\\s\\\\]|\\\\.)++)","captures":{"1":{"name":"storage.type.domain.unix.torrc"},"2":{"patterns":[{"include":"etc#kolon"}]},"3":{"name":"string.other.link.filename.torrc"}}},{"name":"keyword.operator.wildcard.match-all.torrc","match":"(?\u003c=\\s|^|\\G|,)\\*(?=\\s|,|$|#)"},{"include":"#address"},{"include":"etc#comma"},{"include":"etc#ipv6"},{"include":"source.hosts#modern"}]},"entryNumeric":{"patterns":[{"name":"constant.language.other.$1.torrc","match":"(?i)(?\u003c=\\s|^|\\G)\\b(auto|bridge|relay|v3)\\b(?=$|\\s|#)"},{"include":"etc#comma"},{"include":"#typed"},{"include":"#unit"},{"include":"#num"},{"name":"invalid.illegal.syntax.non-numeric.torrc","match":"(?:[^#\\s\\d,]|(?\u003c!\\d),(?!\\d))++"}]},"entryParams":{"patterns":[{"name":"meta.parameter.torrc","contentName":"meta.parameter-value.torrc","begin":"(?\u003c=\\s|^|\\G|,)([^\\s#=]+)(=)","end":"(?=$|\\s|,|#)","patterns":[{"include":"#typed"},{"name":"string.unquoted.torrc","match":"\\G[^\\s,#]+"}],"beginCaptures":{"1":{"name":"entity.name.parameter.torrc"},"2":{"patterns":[{"include":"etc#eql"}]}}},{"name":"constant.language.parameter.niladic.torrc","match":"(?\u003c=\\s|^|\\G|,)[^\\s#=,]+(?=$|\\s|,|#)"},{"include":"etc#comma"}]},"entryPolicies":{"patterns":[{"name":"meta.policy.${2:/downcase}.torrc","match":"(?i)(?\u003c=\\s|^|\\G|,)((accept|reject)6?)(?=$|\\s|#|,)","captures":{"1":{"name":"keyword.control.policy-action.torrc"}}},{"include":"etc#comma"},{"include":"#address"},{"include":"etc#ip"},{"include":"etc#colon"},{"include":"etc#globSimple"}]},"entryVersions":{"patterns":[{"include":"#version"},{"include":"etc#comma"}]},"esc":{"name":"constant.character.escape.newline.torrc","match":"((\\\\))$\\r?\\n?","captures":{"1":{"name":"punctuation.definition.escape.backslash.torrc"},"2":{"name":"sublimelinter.gutter-mark.torrc"}}},"include":{"name":"meta.preprocessor.include.torrc","begin":"(?i)^\\s*((%)include)(?=$|\\s|#)[ \\t]*","end":"(?=\\s*$)","patterns":[{"name":"string.quoted.double.include.filename.torrc","contentName":"constant.other.reference.link.include.torrc","begin":"\\G\"","end":"\"|(?=$)","patterns":[{"include":"#strEsc"},{"include":"etc#globSimple"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.torrc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.torrc"}}},{"name":"string.unquoted.include.filename.torrc","begin":"\\G(?=[^\"\\s#\\\\])","end":"(?=\\s*(?:$|#))","patterns":[{"name":"constant.other.reference.link.include.torrc","match":"(?:[^\"\\r\\n#\\\\]|\\\\.)++","captures":{"0":{"patterns":[{"include":"etc#globSimple"}]}}},{"include":"#esc"}]}],"beginCaptures":{"1":{"name":"keyword.control.directive.include.torrc"},"2":{"name":"punctuation.definition.directive.torrc"}}},"main":{"patterns":[{"include":"#comment"},{"include":"#include"},{"include":"#entry"}]},"num":{"patterns":[{"name":"constant.numeric.integer.int.hexadecimal.hex.torrc","match":"(?i)(?:(?\u003c=\\s|^|\\G|,)[-+]|\\b)0x[A-F0-9]+\\b"},{"name":"constant.numeric.float.real.decimal.dec.torrc","match":"(?:(?\u003c=\\s|^|\\G|,)[-+]|\\b)\\d*\\.\\d+\\b"},{"name":"constant.numeric.integer.int.decimal.dec.torrc","match":"(?:(?\u003c=\\s|^|\\G|,)[-+]|\\b)\\d+(?!\\.)\\b"}]},"port":{"patterns":[{"include":"#portLone"},{"include":"#portSuffix"}]},"portLone":{"name":"constant.numeric.integer.port-number.torrc","match":"(?\u003c=\\s|^|\\G|,)\\d+(?=\\s|$|,|#)"},"portSuffix":{"match":"(?:(?\u003c=\\d:)|(?\u003c=\\d)(:))(\\d+)(?=\\s|$|,|#)","captures":{"1":{"patterns":[{"include":"etc#colon"}]},"2":{"name":"constant.numeric.integer.port-number.torrc"}}},"str":{"name":"string.quoted.double.torrc","begin":"\"","end":"(\")|((?:[^\\\\\"]|\\\\.)*)$","patterns":[{"include":"#strEsc"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.torrc"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.torrc"},"2":{"name":"invalid.illegal.syntax.unclosed-string.torrc"}}},"strEsc":{"patterns":[{"name":"constant.character.escape.simple.torrc","match":"(\\\\)[nrt\\\\'\"]"},{"name":"constant.character.escape.codepoint.hexadecimal.torrc","match":"(\\\\)x[A-Fa-f0-9]{2}"},{"name":"constant.character.escape.codepoint.octal.torrc","match":"(\\\\)([0-7]{1,3})"}]},"typed":{"patterns":[{"name":"meta.duration.torrc","match":"(?i)(?:^|\\G|(?\u003c=\\s))([-+]?(?:0[xX][A-F0-9]+|\\d+(?:\\.\\d+)?))\\s+((?:second|minute|hour|day|week)s?)(?=$|\\s|#)","captures":{"1":{"patterns":[{"include":"#num"}]},"2":{"patterns":[{"include":"#unit"}]}}},{"name":"meta.data-size.torrc","match":"(?i)(?:^|\\G|(?\u003c=\\s))([-+]?(?:0[xX][A-F0-9]+|\\d+(?:\\.\\d+)?))\\s+([KMGT]?(?:Bytes|Bits))(?=$|\\s|#)","captures":{"1":{"patterns":[{"include":"#num"}]},"2":{"patterns":[{"include":"#unit"}]}}}]},"unit":{"match":"(?i)(?\u003c=\\s|^|\\G)\\b(?:(([KMGT]?(?:Bit|Byte|B))s?)|((msec|second|minute|hour|day|week|month)s?))\\b(?=$|\\s|#)","captures":{"1":{"name":"constant.language.unit.data.${2:/downcase}.torrc"},"3":{"name":"constant.language.unit.temporal.${4:/downcase}.torrc"}}},"unq":{"name":"string.unquoted.torrc","begin":"[^\\s\\0#]","end":"(?=\\s*(?:\\\\?$|#))"},"version":{"name":"constant.other.version-string.torrc","match":"(?i)(?\u003c=\\s|^|\\G|,)(\\d+(?:\\.\\d+)*)(?:(-)(?!-)[-A-Z]+)?(?=$|,|\\s|#)","captures":{"1":{"patterns":[{"include":"etc#dot"}]},"2":{"patterns":[{"include":"etc#dash"}]}}}},"injections":{"L:source.torrc meta.entry.accountingstart.torrc":{"patterns":[{"match":"(?i)(?\u003c=AccountingStart)\\s+(day|week|month)(?:\\s+(\\d{1,2}))?\\s+((?:\\d{2}(:)\\d{2}))(?=\\s*(?:$|#))","captures":{"1":{"patterns":[{"include":"#unit"}]},"2":{"name":"constant.numeric.day-of-month.torrc"},"3":{"name":"constant.numeric.time.torrc"},"4":{"name":"punctuation.separator.time.torrc"}}}]},"L:source.torrc meta.entry.controlsocket.torrc":{"patterns":[{"match":"(?i)(?\u003c=ControlSocket)\\s+(0)(?=\\s*(?:$|#))","captures":{"1":{"name":"constant.numeric.disable-option.torrc"}}}]},"L:source.torrc meta.entry.schedulers.torrc":{"patterns":[{"match":"(?i)(?\u003c=Schedulers)\\s+(?!\\s*,\\s*)((?:\\s*(?:,\\s*)?(?:KISTLite|KIST|Vanilla))++)(?=\\s*(?:$|#))","captures":{"1":{"patterns":[{"name":"constant.language.scheduler-type.torrc","match":"\\w+"},{"include":"etc#comma"}]}}}]},"L:source.torrc source.embedded.abnf meta.ruleset":{"patterns":[{"name":"string.comment.freeform-rule-specifier.abnf","match":"(?\u003c==)\\s+(Any character except.+)"}]}}}
|
data/grammars/source.typst.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"typst","scopeName":"source.typst","patterns":[{"include":"#markup"}],"repository":{"arrayOrDict":{"patterns":[{"match":"(\\()\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"meta.brace.round.typst"}}},{"match":"(\\()\\s*(:)\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"punctuation.separator.colon.typst"},"3":{"name":"meta.brace.round.typst"}}},{"begin":"\\(","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#literalContent"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}}]},"blockComment":{"name":"comment.block.typst","begin":"\\/\\*","end":"\\*\\/","patterns":[{"include":"#blockComment"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.typst"}}},"blockRaw":{"patterns":[{"include":"#blockRawGeneral"}]},"blockRawGeneral":{"name":"markup.raw.block.typst","begin":"(`{3,})([\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*\\b)?","end":"(\\1)","beginCaptures":{"1":{"name":"punctuation.definition.raw.begin.typst"},"2":{"name":"fenced_code.block.language.typst"}},"endCaptures":{"1":{"name":"punctuation.definition.raw.end.typst"}}},"callArgs":{"begin":"\\(","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#patternOrArgsBody"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},"code":{"patterns":[{"include":"#common"},{"include":"#comments"},{"name":"punctuation.terminator.statement.typst","match":";"},{"include":"#expression"}]},"codeBlock":{"begin":"\\{","end":"\\}","patterns":[{"include":"#code"}],"beginCaptures":{"0":{"name":"meta.brace.curly.typst"}},"endCaptures":{"0":{"name":"meta.brace.curly.typst"}}},"comments":{"patterns":[{"include":"#blockComment"},{"include":"#lineComment"}]},"common":{"patterns":[{"include":"#strictComments"},{"include":"#blockRaw"},{"include":"#inlineRaw"}]},"constants":{"patterns":[{"name":"constant.numeric.length.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?\u003c!\\.)(mm|pt|cm|in|em)($|\\b)"},{"name":"constant.numeric.angle.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?\u003c!\\.)(rad|deg)($|\\b)"},{"name":"constant.numeric.percentage.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%"},{"name":"constant.numeric.fr.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?\u003c!\\.)fr"},{"name":"constant.numeric.integer.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)\\d+\\b(?!\\.(?:[^\\p{L}\\p{Nl}__]|$)|[eE])"},{"name":"constant.numeric.hex.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)0x[0-9a-fA-F]+\\b"},{"name":"constant.numeric.octal.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)0o[0-7]+\\b"},{"name":"constant.numeric.binary.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)0b[01]+\\b"},{"name":"constant.numeric.float.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?:)"},{"include":"#stringLiteral"},{"include":"#markupMath"}]},"contentBlock":{"begin":"\\[","end":"\\]","patterns":[{"include":"#contentBlock"},{"include":"#markup"}],"beginCaptures":{"0":{"name":"meta.brace.square.typst"}},"endCaptures":{"0":{"name":"meta.brace.square.typst"}}},"contextStatement":{"name":"meta.expr.context.typst","begin":"\\bcontext\\b(?!-)","end":"(?\u003c=[\\}\\]\\d])|(?=[;\\}\\]\\)#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.other.typst"}}},"elseClause":{"name":"keyword.control.conditional.typst","match":"\\belse\\b(?!-)"},"expression":{"patterns":[{"include":"#comments"},{"include":"#arrayOrDict"},{"include":"#contentBlock"},{"name":"keyword.control.conditional.typst","match":"\\b(else)\\b(?!-)"},{"name":"keyword.control.loop.typst","match":"\\b(break|continue)\\b(?!-)"},{"name":"keyword.other.range.typst","match":"\\b(in)\\b(?!-)"},{"name":"keyword.other.logical.typst","match":"\\b(and|or|not)\\b(?!-)"},{"name":"keyword.control.flow.typst","match":"\\b(return)\\b(?!-)"},{"include":"#markupLabel"},{"include":"#blockRaw"},{"include":"#inlineRaw"},{"include":"#codeBlock"},{"include":"#letStatement"},{"include":"#showStatement"},{"include":"#contextStatement"},{"include":"#setStatement"},{"include":"#forStatement"},{"include":"#whileStatement"},{"include":"#ifStatement"},{"include":"#importStatement"},{"include":"#includeStatement"},{"include":"#strictFuncCallOrPropAccess"},{"include":"#primitiveColors"},{"include":"#primitiveFunctions"},{"include":"#primitiveTypes"},{"include":"#keywordConstants"},{"include":"#identifier"},{"include":"#constants"},{"name":"keyword.control.typst","match":"(as)\\b(?!-)"},{"name":"keyword.operator.range.typst","match":"(in)\\b(?!-)"},{"name":"keyword.operator.spread.typst","match":"\\.\\."},{"name":"punctuation.separator.colon.typst","match":":"},{"name":"keyword.operator.accessor.typst","match":"\\."},{"name":"punctuation.separator.comma.typst","match":","},{"name":"storage.type.function.arrow.typst","match":"=\u003e"},{"name":"keyword.operator.relational.typst","match":"==|!=|\u003c=|\u003c|\u003e=|\u003e"},{"begin":"(\\+=|-=|\\*=|\\/=|=)","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.operator.assignment.typst"}}},{"name":"keyword.operator.arithmetic.typst","match":"\\+|\\\\|\\/|\\*|-"}]},"forClause":{"begin":"(for\\b)\\s*","end":"(?\u003c!(?:\\bwhile)|(?:hile\\s{1})|(?:ile\\s{2})|(?:le\\s{3})|(?:[\\s\\S]{2}(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or))|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s)|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s{2}|(?:if|in|or)\\s{3}|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not))|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not)\\s|(?:and|not)\\s{2}|(?:[\\s\\S]{4}[=\u003c\u003e\\+\\-\\*\\/])|(?:[\\s\\S]{3}[=\u003c\u003e\\+\\-\\*\\/]\\s)|(?:[\\s\\S]{2}[=\u003c\u003e\\+\\-\\*\\/]\\s{2})|(?:[\\s\\S][=\u003c\u003e\\+\\-\\*\\/]\\s{3})|(?:[=\u003c\u003e\\+\\-\\*\\/]\\s{4}))(?=[\\[\\{])|(?=[;,\\}\\]\\)\\#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.loop.typst"}}},"forStatement":{"name":"meta.expr.for.typst","begin":"(?=(?:(for\\b(?!-))\\s*))","end":"(?\u003c=[\\}\\]])(?![\\{\\[])|(?=[;\\}\\]\\)\\n]|$)","patterns":[{"include":"#comments"},{"include":"#forClause"},{"include":"#codeBlock"},{"include":"#contentBlock"}]},"identifier":{"name":"variable.other.readwrite.typst","match":"(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*"},"ifClause":{"begin":"\\bif\\b(?!-)","end":"(?\u003c!(?:\\bwhile)|(?:hile\\s{1})|(?:ile\\s{2})|(?:le\\s{3})|(?:[\\s\\S]{2}(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or))|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s)|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s{2}|(?:if|in|or)\\s{3}|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not))|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not)\\s|(?:and|not)\\s{2}|(?:[\\s\\S]{4}[=\u003c\u003e\\+\\-\\*\\/])|(?:[\\s\\S]{3}[=\u003c\u003e\\+\\-\\*\\/]\\s)|(?:[\\s\\S]{2}[=\u003c\u003e\\+\\-\\*\\/]\\s{2})|(?:[\\s\\S][=\u003c\u003e\\+\\-\\*\\/]\\s{3})|(?:[=\u003c\u003e\\+\\-\\*\\/]\\s{4}))(?=[\\[\\{])|(?=[;,\\}\\]\\)\\#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.conditional.typst"}}},"ifStatement":{"name":"meta.expr.if.typst","begin":"(?=(?:(else\\s+)?(if\\b(?!-))))","end":"(?\u003c=\\}|\\])(?!\\s*(else)\\b(?!-)|[\\[\\{])|(?\u003c=else)(?!\\s*(?:if\\b(?!-)|[\\[\\{]))|(?=[;\\}\\]\\)\\n]|$)","patterns":[{"include":"#comments"},{"include":"#ifClause"},{"include":"#elseClause"},{"include":"#codeBlock"},{"include":"#contentBlock"}]},"importAsClause":{"begin":"(\\bas\\b)\\s*","end":"(?=[\\s;\\}\\]\\)\\:])","patterns":[{"include":"#comments"},{"include":"#identifier"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"importPathClause":{"begin":"(\\bimport\\b(?!-))\\s*","end":"(?=\\:|as)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"importStatement":{"name":"meta.expr.import.typst","begin":"(\\bimport\\b(?!-))\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#importPathClause"},{"name":"punctuation.separator.colon.typst","match":"\\:"},{"name":"keyword.operator.wildcard.typst","match":"\\*"},{"name":"punctuation.separator.comma.typst","match":"\\,"},{"include":"#importAsClause"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"includeStatement":{"name":"meta.expr.include.typst","begin":"(\\binclude\\b(?!-))\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"inlineRaw":{"name":"markup.raw.inline.typst string.other.raw.typst","begin":"`","end":"`","beginCaptures":{"0":{"name":"punctuation.definition.raw.inline.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.raw.inline.typst"}}},"keywordConstants":{"patterns":[{"name":"keyword.other.none.typst","match":"(?\u003c!\\)|\\]|\\})\\bnone\\b(?!-)"},{"name":"keyword.other.auto.typst","match":"(?\u003c!\\)|\\]|\\})\\bauto\\b(?!-)"},{"name":"constant.language.boolean.typst","match":"(?\u003c!\\)|\\]|\\})\\b(false|true)\\b(?!-)"}]},"letBindingClause":{"begin":"(let\\b(?!-))\\s*","end":"(?=[=;\\]}\\n])","patterns":[{"include":"#comments"},{"begin":"(\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*)(\\()","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#patternOrArgsBody"}],"beginCaptures":{"1":{"name":"entity.name.function.typst","patterns":[{"include":"#primitiveFunctions"}]},"2":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},{"begin":"\\(","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#patternOrArgsBody"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},{"include":"#identifier"}],"beginCaptures":{"1":{"name":"storage.type.typst"}}},"letInitClause":{"begin":"=\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.typst"}}},"letStatement":{"name":"meta.expr.let.typst","begin":"(?=(?:(let\\b(?!-))))","end":"(?!\\=)(?=[\\s;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#letBindingClause"},{"include":"#letInitClause"}]},"lineComment":{"name":"comment.line.double-slash.typst","begin":"\\/\\/","end":"(?=$|\\n)","beginCaptures":{"0":{"name":"punctuation.definition.comment.typst"}}},"literalContent":{"patterns":[{"include":"#paramOrArgName"},{"include":"#expression"}]},"markup":{"patterns":[{"include":"#common"},{"include":"#markupEnterCode"},{"include":"#markupEscape"},{"name":"punctuation.definition.linebreak.typst","match":"\\\\"},{"name":"punctuation.definition.nonbreaking-space.typst","match":"\\~"},{"name":"punctuation.definition.shy.typst","match":"-\\?"},{"name":"punctuation.definition.em-dash.typst","match":"---"},{"name":"punctuation.definition.en-dash.typst","match":"--"},{"name":"punctuation.definition.ellipsis.typst","match":"\\.\\.\\."},{"include":"#markupBold"},{"include":"#markupItalic"},{"include":"#markupLink"},{"include":"#markupMath"},{"include":"#markupHeading"},{"name":"punctuation.definition.list.unnumbered.typst","match":"^\\s*-\\s+"},{"name":"punctuation.definition.list.numbered.typst","match":"^\\s*([0-9]+\\.|\\+)\\s+"},{"include":"#markupLabel"},{"include":"#markupReference"},{"include":"#markupBrace"}]},"markupBold":{"name":"markup.bold.typst","begin":"(?:(^\\*|\\*$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])\\*)|(\\*(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))","end":"(?:(^\\*|\\*$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])\\*)|(\\*(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))|\\n|(?=\\])","patterns":[{"include":"#markup"}],"beginCaptures":{"0":{"name":"punctuation.definition.bold.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.bold.typst"}}},"markupBrace":{"name":"markup.content.brace.typst","match":"[{}()\\[\\]]"},"markupEnterCode":{"patterns":[{"match":"(#)\\s","captures":{"1":{"name":"punctuation.definition.hash.typst"}}},{"match":"(#)(;)","captures":{"1":{"name":"punctuation.definition.hash.typst"},"2":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:break|continue|and|or|not|return|as|in|include|import|let|else|if|for|while|context|set|show)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:any|str|int|float|bool|type|length|content|array|dictionary|arguments)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"entity.name.type.primitive.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:none)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.other.none.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:false|true)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"constant.language.boolean.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*[\\(\\[])","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"entity.name.function.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=[\\p{L}\\p{Nl}__])","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"variable.other.readwrite.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=\\\")","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"string.hash.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=\\d|\\.\\d)","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"constant.numeric.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?:)","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}}]},"markupEscape":{"name":"constant.character.escape.content.typst","match":"\\\\(?:[^u]|u\\{?[0-9a-zA-Z]*\\}?)"},"markupHeading":{"name":"markup.heading.typst","begin":"^\\s*(=+)(?:(?=[\\r\\n]|$)|[^\\S\\n]+)","end":"\\n|(?=\u003c)","patterns":[{"include":"#markup"}],"beginCaptures":{"1":{"name":"punctuation.definition.heading.typst"}}},"markupItalic":{"name":"markup.italic.typst","begin":"(?:(^_|_$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])_)|(_(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))","end":"(?:(^_|_$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])_)|(_(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))|\\n|(?=\\])","patterns":[{"include":"#markup"}],"beginCaptures":{"0":{"name":"punctuation.definition.italic.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.italic.typst"}}},"markupLabel":{"name":"string.other.label.typst","match":"\u003c[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-\\.:]*\u003e"},"markupLink":{"name":"markup.underline.link.typst","begin":"(?:https?):\\/\\/","end":"(?=[\\s\\]\\)]|(?=[!,.:;?'](?:[\\s\\]\\)]|$)))","patterns":[{"include":"#markupLinkParen"},{"include":"#markupLinkBracket"},{"match":"(^|\\G)(?:[0-9a-zA-Z#$%\u0026*\\+\\-\\/\\=\\@\\_\\~]+|(?:[!,.:;?']+(?![\\s\\]\\)]|$)))"}]},"markupLinkBracket":{"begin":"\\[","end":"\\]|(?=[\\s\\)])","patterns":[{"include":"#markupLink"}]},"markupLinkParen":{"begin":"\\(","end":"\\)|(?=[\\s\\]])","patterns":[{"include":"#markupLink"}]},"markupMath":{"name":"markup.math.typst","begin":"\\$","end":"\\$","patterns":[{"include":"#math"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.math.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.math.typst"}}},"markupReference":{"name":"string.other.reference.typst","match":"(@)[\\p{L}\\p{Nl}__](?:[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]|[\\.:](?!:\\s|$|([\\.:]*[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-\\.:])))*","captures":{"1":{"name":"punctuation.definition.reference.typst"}}},"math":{"patterns":[{"include":"#markupEscape"},{"include":"#stringLiteral"},{"include":"#markupEnterCode"},{"begin":"([_^\\/√∛∜])\\s*([\\[\\(\\{⌈⌊⌜⌞❲⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼])","end":"([\\]\\)\\}⌉⌋⌝⌟❳⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽])|(?=\\$)|$","patterns":[{"include":"#mathParen"},{"include":"#math"}],"beginCaptures":{"1":{"name":"punctuation.math.operator.typst"},"2":{"name":"constant.other.symbol.typst"}},"endCaptures":{"0":{"name":"constant.other.symbol.typst"}}},{"name":"punctuation.math.operator.typst","match":"[_^'\u0026\\/√∛∜]"},{"include":"#strictMathFuncCallOrPropAccess"},{"include":"#mathPrimary"},{"include":"#mathMoreBrace"}]},"mathBrace":{"name":"markup.content.brace.typst","match":"[{}]"},"mathCallArgs":{"begin":"\\(","end":"\\)|(?=\\$)","patterns":[{"include":"#comments"},{"include":"#mathParen"},{"name":"punctuation.separator.comma.typst","match":","},{"include":"#math"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},"mathIdentifier":{"name":"variable.other.readwrite.typst","match":"(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+"},"mathMoreBrace":{"name":"markup.content.brace.typst","match":"[{}()\\[\\]]"},"mathParen":{"begin":"[\\[\\(\\{⌈⌊⌜⌞❲⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼]","end":"([\\]\\)\\}⌉⌋⌝⌟❳⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽])|(?=\\$)|$","patterns":[{"include":"#mathParen"},{"include":"#math"}],"beginCaptures":{"0":{"name":"markup.content.brace.typst"}},"endCaptures":{"0":{"name":"markup.content.brace.typst"}}},"mathPrimary":{"begin":"(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+","end":"(?!(?:\\(|\\.[\\p{L}\\p{Nl}_]))|(?=\\$)","patterns":[{"include":"#strictMathFuncCallOrPropAccess"},{"match":"(\\.)((?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])*)","captures":{"1":{"name":"keyword.operator.accessor.typst"},"2":{"name":"variable.other.readwrite.typst"}}},{"include":"#mathCallArgs"},{"include":"#mathIdentifier"}],"beginCaptures":{"0":{"name":"variable.other.readwrite.typst"}}},"paramOrArgName":{"match":"(?!(show|import|include)\\s*\\:)((?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*)\\s*(\\:)","captures":{"2":{"name":"variable.other.readwrite.typst"},"3":{"name":"punctuation.separator.colon.typst"}}},"patternOrArgsBody":{"patterns":[{"include":"#comments"},{"include":"#paramOrArgName"},{"include":"#expression"}]},"primitiveColors":{"name":"variable.other.constant.builtin.typst","match":"\\b(red|blue|green|black|white|gray|silver|eastern|navy|aqua|teal|purple|fuchsia|maroon|orange|yellow|olive|lime|ltr|rtl|ttb|btt|start|left|center|right|end|top|horizon|bottom)\\b(?!-)"},"primitiveFunctions":{"name":"support.function.builtin.typst","match":"\\b(?:luma|oklab|oklch|rgb|cmyk|range)\\b(?!-)"},"primitiveTypes":{"name":"entity.name.type.primitive.typst","match":"\\b(any|str|int|float|bool|type|length|content|array|dictionary|arguments)\\b(?!-)"},"setClause":{"begin":"(set\\b)\\s+","end":"(?=if)|(?=[\\n;\\{\\[\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#strictFuncCallOrPropAccess"},{"include":"#identifier"}],"beginCaptures":{"1":{"name":"keyword.control.other.typst"}}},"setIfClause":{"begin":"(if\\b(?!-))\\s*","end":"(?\u003c=\\S)(?\u003c!and|or|not|in|!=|==|\u003c=|\u003e=|\u003c|\u003e|\\+|-|\\*|\\/|=|\\+=|-=|\\*=|\\/=)(?!\\s*(?:and|or|not|in|!=|==|\u003c=|\u003e=|\u003c|\u003e|\\+|-|\\*|\\/|=|\\+=|-=|\\*=|\\/=|\\.))|(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.typst"}}},"setStatement":{"name":"meta.expr.set.typst","begin":"(?=(?:(set\\b(?!-))\\s*(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*))","end":"(?\u003c=\\))(?!\\s*if\\b)|(?=[\\s;\\{\\[\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#setClause"},{"include":"#setIfClause"}]},"showAnyClause":{"match":"(show\\b)\\s*(?=\\:)","captures":{"1":{"name":"keyword.control.other.typst"}}},"showSelectClause":{"begin":"(show\\b)\\s*","end":"(?=[:;\\}\\]\\n])","patterns":[{"include":"#comments"},{"include":"#markupLabel"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.other.typst"}}},"showStatement":{"name":"meta.expr.show.typst","begin":"(?=(?:(show\\b(?!-))))","end":"(?=[\\s;\\{\\[\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#showAnyClause"},{"include":"#showSelectClause"},{"include":"#showSubstClause"}]},"showSubstClause":{"begin":"(\\:)\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.separator.colon.typst"}}},"strictComments":{"patterns":[{"include":"#blockComment"},{"include":"#strictLineComment"}]},"strictFuncCallOrPropAccess":{"name":"meta.expr.call.typst","begin":"(?=(?:(\\.)?(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=\\(|\\[)))","end":"(?:(?\u003c=\\)|\\])(?![\\[\\(\\.]))|(?=[\\s;,\\}\\]\\)\\#]|$)","patterns":[{"name":"keyword.operator.accessor.typst","match":"\\."},{"match":"(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=\\(|\\[)","captures":{"0":{"patterns":[{"include":"#primitiveFunctions"},{"include":"#primitiveTypes"},{"name":"entity.name.function.typst","match":".*"}]}}},{"include":"#identifier"},{"match":"(\\()\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"meta.brace.round.typst"}}},{"include":"#callArgs"},{"include":"#contentBlock"}]},"strictLineComment":{"name":"comment.line.double-slash.typst","begin":"(?\u003c!:)\\/\\/","end":"(?=$|\\n)","beginCaptures":{"0":{"name":"punctuation.definition.comment.typst"}}},"strictMathFuncCallOrPropAccess":{"name":"meta.expr.call.typst","begin":"(?=(?:(?:(\\.)((?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])*)|(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+)(?=\\()))","end":"(?:(?\u003c=[\\)])(?![\\(\\.]|(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+(?=\\()))|(?=[\\$\\s;,\\}\\]\\)]|$)","patterns":[{"name":"keyword.operator.accessor.typst","match":"\\."},{"name":"entity.name.function.typst","match":"(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+(?=\\()","captures":{"0":{"name":"entity.name.function.typst","patterns":[{"include":"#primitiveFunctions"},{"include":"#primitiveTypes"},{"name":"entity.name.function.typst","match":".*"}]}}},{"include":"#mathIdentifier"},{"match":"(\\()\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"meta.brace.round.typst"}}},{"include":"#mathCallArgs"}]},"stringLiteral":{"name":"string.quoted.double.typst","begin":"\"","end":"\"","patterns":[{"match":"(\\\\(?:[^u]|u\\{?[0-9a-zA-Z]*\\}?))|[^\\\\\"]+","captures":{"1":{"name":"constant.character.escape.string.typst"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.string.typst"}}},"whileClause":{"begin":"(while\\b)\\s*","end":"(?\u003c!(?:\\bwhile)|(?:hile\\s{1})|(?:ile\\s{2})|(?:le\\s{3})|(?:[\\s\\S]{2}(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or))|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s)|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s{2}|(?:if|in|or)\\s{3}|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not))|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not)\\s|(?:and|not)\\s{2}|(?:[\\s\\S]{4}[=\u003c\u003e\\+\\-\\*\\/])|(?:[\\s\\S]{3}[=\u003c\u003e\\+\\-\\*\\/]\\s)|(?:[\\s\\S]{2}[=\u003c\u003e\\+\\-\\*\\/]\\s{2})|(?:[\\s\\S][=\u003c\u003e\\+\\-\\*\\/]\\s{3})|(?:[=\u003c\u003e\\+\\-\\*\\/]\\s{4}))(?=[\\[\\{])|(?=[;,\\}\\]\\)\\#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.loop.typst"}}},"whileStatement":{"name":"meta.expr.while.typst","begin":"(?=(?:(while\\b(?!-))))","end":"(?\u003c=[\\}\\]])(?![\\{\\[])|(?=[;\\}\\]\\)\\n]|$)","patterns":[{"include":"#comments"},{"include":"#whileClause"},{"include":"#codeBlock"},{"include":"#contentBlock"}]}}}
|
1
|
+
{"name":"typst","scopeName":"source.typst","patterns":[{"include":"#shebang"},{"include":"#markup"}],"repository":{"arrayOrDict":{"patterns":[{"match":"(\\()\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"meta.brace.round.typst"}}},{"match":"(\\()\\s*(:)\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"punctuation.separator.colon.typst"},"3":{"name":"meta.brace.round.typst"}}},{"begin":"\\(","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#literalContent"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}}]},"blockComment":{"name":"comment.block.typst","begin":"\\/\\*","end":"\\*\\/","patterns":[{"include":"#blockComment"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.typst"}}},"blockRaw":{"patterns":[{"include":"#blockRawGeneral"}]},"blockRawGeneral":{"name":"markup.raw.block.typst","begin":"(`{3,})([\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*\\b)?","end":"(\\1)","beginCaptures":{"1":{"name":"punctuation.definition.raw.begin.typst"},"2":{"name":"fenced_code.block.language.typst"}},"endCaptures":{"1":{"name":"punctuation.definition.raw.end.typst"}}},"callArgs":{"begin":"\\(","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#patternOrArgsBody"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},"code":{"patterns":[{"include":"#common"},{"include":"#comments"},{"name":"punctuation.terminator.statement.typst","match":";"},{"include":"#expression"}]},"codeBlock":{"begin":"\\{","end":"\\}","patterns":[{"include":"#code"}],"beginCaptures":{"0":{"name":"meta.brace.curly.typst"}},"endCaptures":{"0":{"name":"meta.brace.curly.typst"}}},"comments":{"patterns":[{"include":"#blockComment"},{"include":"#lineComment"}]},"common":{"patterns":[{"include":"#strictComments"},{"include":"#blockRaw"},{"include":"#inlineRaw"}]},"constants":{"patterns":[{"name":"constant.numeric.length.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?\u003c!\\.)(mm|pt|cm|in|em)($|\\b)"},{"name":"constant.numeric.angle.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?\u003c!\\.)(rad|deg)($|\\b)"},{"name":"constant.numeric.percentage.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%"},{"name":"constant.numeric.fr.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?\u003c!\\.)fr"},{"name":"constant.numeric.integer.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)\\d+\\b(?!\\.(?:[^\\p{L}\\p{Nl}__]|$)|[eE])"},{"name":"constant.numeric.hex.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)0x[0-9a-fA-F]+\\b"},{"name":"constant.numeric.octal.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)0o[0-7]+\\b"},{"name":"constant.numeric.binary.typst","match":"(?\u003c!\\)|\\]|\\})(^|(?\u003c=\\s|#)|\\b)0b[01]+\\b"},{"name":"constant.numeric.float.typst","match":"(?:\\d+\\.(?!\\d)|\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(?:)"},{"include":"#stringLiteral"},{"include":"#markupMath"}]},"contentBlock":{"begin":"\\[","end":"\\]","patterns":[{"include":"#contentBlock"},{"include":"#markup"}],"beginCaptures":{"0":{"name":"meta.brace.square.typst"}},"endCaptures":{"0":{"name":"meta.brace.square.typst"}}},"contextStatement":{"name":"meta.expr.context.typst","begin":"\\bcontext\\b(?!-)","end":"(?\u003c=[\\}\\]\\d])|(?=[;\\}\\]\\)#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.other.typst"}}},"elseClause":{"name":"keyword.control.conditional.typst","match":"\\belse\\b(?!-)"},"expression":{"patterns":[{"include":"#comments"},{"include":"#arrayOrDict"},{"include":"#contentBlock"},{"name":"keyword.control.conditional.typst","match":"\\b(else)\\b(?!-)"},{"name":"keyword.control.loop.typst","match":"\\b(break|continue)\\b(?!-)"},{"name":"keyword.other.range.typst","match":"\\b(in)\\b(?!-)"},{"name":"keyword.other.logical.typst","match":"\\b(and|or|not)\\b(?!-)"},{"name":"keyword.control.flow.typst","match":"\\b(return)\\b(?!-)"},{"include":"#markupLabel"},{"include":"#blockRaw"},{"include":"#inlineRaw"},{"include":"#codeBlock"},{"include":"#letStatement"},{"include":"#showStatement"},{"include":"#contextStatement"},{"include":"#setStatement"},{"include":"#forStatement"},{"include":"#whileStatement"},{"include":"#ifStatement"},{"include":"#importStatement"},{"include":"#includeStatement"},{"include":"#strictFuncCallOrPropAccess"},{"include":"#primitiveColors"},{"include":"#primitiveFunctions"},{"include":"#primitiveTypes"},{"include":"#keywordConstants"},{"include":"#identifier"},{"include":"#constants"},{"name":"keyword.control.typst","match":"(as)\\b(?!-)"},{"name":"keyword.operator.range.typst","match":"(in)\\b(?!-)"},{"name":"keyword.operator.spread.typst","match":"\\.\\."},{"name":"punctuation.separator.colon.typst","match":":"},{"name":"keyword.operator.accessor.typst","match":"\\."},{"name":"punctuation.separator.comma.typst","match":","},{"name":"storage.type.function.arrow.typst","match":"=\u003e"},{"name":"keyword.operator.relational.typst","match":"==|!=|\u003c=|\u003c|\u003e=|\u003e"},{"begin":"(\\+=|-=|\\*=|\\/=|=)","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.operator.assignment.typst"}}},{"name":"keyword.operator.arithmetic.typst","match":"\\+|\\\\|\\/|\\*|-"}]},"forClause":{"begin":"(for\\b)\\s*","end":"(?\u003c!(?:\\bwhile)|(?:hile\\s{1})|(?:ile\\s{2})|(?:le\\s{3})|(?:[\\s\\S]{2}(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or))|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s)|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s{2}|(?:if|in|or)\\s{3}|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not))|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not)\\s|(?:and|not)\\s{2}|(?:[\\s\\S]{4}[=\u003c\u003e\\+\\-\\*\\/])|(?:[\\s\\S]{3}[=\u003c\u003e\\+\\-\\*\\/]\\s)|(?:[\\s\\S]{2}[=\u003c\u003e\\+\\-\\*\\/]\\s{2})|(?:[\\s\\S][=\u003c\u003e\\+\\-\\*\\/]\\s{3})|(?:[=\u003c\u003e\\+\\-\\*\\/]\\s{4}))(?=[\\[\\{])|(?=[;,\\}\\]\\)\\#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.loop.typst"}}},"forStatement":{"name":"meta.expr.for.typst","begin":"(?=(?:(for\\b(?!-))\\s*))","end":"(?\u003c=[\\}\\]])(?![\\{\\[])|(?=[;\\}\\]\\)\\n]|$)","patterns":[{"include":"#comments"},{"include":"#forClause"},{"include":"#codeBlock"},{"include":"#contentBlock"}]},"identifier":{"name":"variable.other.readwrite.typst","match":"(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*"},"ifClause":{"begin":"\\bif\\b(?!-)","end":"(?\u003c!(?:\\bwhile)|(?:hile\\s{1})|(?:ile\\s{2})|(?:le\\s{3})|(?:[\\s\\S]{2}(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or))|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s)|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s{2}|(?:if|in|or)\\s{3}|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not))|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not)\\s|(?:and|not)\\s{2}|(?:[\\s\\S]{4}[=\u003c\u003e\\+\\-\\*\\/])|(?:[\\s\\S]{3}[=\u003c\u003e\\+\\-\\*\\/]\\s)|(?:[\\s\\S]{2}[=\u003c\u003e\\+\\-\\*\\/]\\s{2})|(?:[\\s\\S][=\u003c\u003e\\+\\-\\*\\/]\\s{3})|(?:[=\u003c\u003e\\+\\-\\*\\/]\\s{4}))(?=[\\[\\{])|(?=[;,\\}\\]\\)\\#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.conditional.typst"}}},"ifStatement":{"name":"meta.expr.if.typst","begin":"(?=(?:(else\\s+)?(if\\b(?!-))))","end":"(?\u003c=\\}|\\])(?!\\s*(else)\\b(?!-)|[\\[\\{])|(?\u003c=else)(?!\\s*(?:if\\b(?!-)|[\\[\\{]))|(?=[;\\}\\]\\)\\n]|$)","patterns":[{"include":"#comments"},{"include":"#ifClause"},{"include":"#elseClause"},{"include":"#codeBlock"},{"include":"#contentBlock"}]},"importAsClause":{"begin":"(\\bas\\b)\\s*","end":"(?=[\\s;\\}\\]\\)\\:])","patterns":[{"include":"#comments"},{"include":"#identifier"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"importPathClause":{"begin":"(\\bimport\\b(?!-))\\s*","end":"(?=\\:|as)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"importStatement":{"name":"meta.expr.import.typst","begin":"(\\bimport\\b(?!-))\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#importPathClause"},{"name":"punctuation.separator.colon.typst","match":"\\:"},{"name":"keyword.operator.wildcard.typst","match":"\\*"},{"name":"punctuation.separator.comma.typst","match":"\\,"},{"include":"#importAsClause"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"includeStatement":{"name":"meta.expr.include.typst","begin":"(\\binclude\\b(?!-))\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.import.typst"}}},"inlineRaw":{"name":"markup.raw.inline.typst string.other.raw.typst","begin":"`","end":"`","beginCaptures":{"0":{"name":"punctuation.definition.raw.inline.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.raw.inline.typst"}}},"keywordConstants":{"patterns":[{"name":"keyword.other.none.typst","match":"(?\u003c!\\)|\\]|\\})\\bnone\\b(?!-)"},{"name":"keyword.other.auto.typst","match":"(?\u003c!\\)|\\]|\\})\\bauto\\b(?!-)"},{"name":"constant.language.boolean.typst","match":"(?\u003c!\\)|\\]|\\})\\b(false|true)\\b(?!-)"}]},"letBindingClause":{"begin":"(let\\b(?!-))\\s*","end":"(?=[=;\\]}\\n])","patterns":[{"include":"#comments"},{"begin":"(\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*)(\\()","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#patternOrArgsBody"}],"beginCaptures":{"1":{"name":"entity.name.function.typst","patterns":[{"include":"#primitiveFunctions"}]},"2":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},{"begin":"\\(","end":"\\)|(?=[;\\}\\]])","patterns":[{"include":"#patternOrArgsBody"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},{"include":"#identifier"}],"beginCaptures":{"1":{"name":"storage.type.typst"}}},"letInitClause":{"begin":"=\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.typst"}}},"letStatement":{"name":"meta.expr.let.typst","begin":"(?=(?:(let\\b(?!-))))","end":"(?!\\=)(?=[\\s;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#letBindingClause"},{"include":"#letInitClause"}]},"lineComment":{"name":"comment.line.double-slash.typst","begin":"\\/\\/","end":"(?=$|\\n)","beginCaptures":{"0":{"name":"punctuation.definition.comment.typst"}}},"literalContent":{"patterns":[{"include":"#paramOrArgName"},{"include":"#expression"}]},"markup":{"patterns":[{"include":"#common"},{"include":"#markupEnterCode"},{"include":"#markupEscape"},{"name":"punctuation.definition.linebreak.typst","match":"\\\\"},{"name":"punctuation.definition.nonbreaking-space.typst","match":"\\~"},{"name":"punctuation.definition.shy.typst","match":"-\\?"},{"name":"punctuation.definition.em-dash.typst","match":"---"},{"name":"punctuation.definition.en-dash.typst","match":"--"},{"name":"punctuation.definition.ellipsis.typst","match":"\\.\\.\\."},{"include":"#markupBold"},{"include":"#markupItalic"},{"include":"#markupLink"},{"include":"#markupMath"},{"include":"#markupHeading"},{"name":"punctuation.definition.list.unnumbered.typst","match":"^\\s*-\\s+"},{"name":"punctuation.definition.list.numbered.typst","match":"^\\s*([0-9]+\\.|\\+)\\s+"},{"include":"#markupLabel"},{"include":"#markupReference"},{"include":"#markupBrace"}]},"markupBold":{"name":"markup.bold.typst","begin":"(?:(^\\*|\\*$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])\\*)|(\\*(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))","end":"(?:(^\\*|\\*$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])\\*)|(\\*(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))|\\n|(?=\\])","patterns":[{"include":"#markup"}],"beginCaptures":{"0":{"name":"punctuation.definition.bold.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.bold.typst"}}},"markupBrace":{"name":"markup.content.brace.typst","match":"[{}()\\[\\]]"},"markupEnterCode":{"patterns":[{"match":"(#)\\s","captures":{"1":{"name":"punctuation.definition.hash.typst"}}},{"match":"(#)(;)","captures":{"1":{"name":"punctuation.definition.hash.typst"},"2":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:break|continue|and|or|not|return|as|in|include|import|let|else|if|for|while|context|set|show)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:any|str|int|float|bool|type|length|content|array|dictionary|arguments)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"entity.name.type.primitive.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:none)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.other.none.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=(?:false|true)\\b(?!-))","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"constant.language.boolean.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*[\\(\\[])","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"entity.name.function.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=[\\p{L}\\p{Nl}__])","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"variable.other.readwrite.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=\\\")","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"string.hash.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?=\\d|\\.\\d)","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"constant.numeric.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}},{"begin":"#(?:)","end":"(?\u003c=;)|(?\u003c=[\\}\\]\\)])(?![;\\(\\[\\$]|(?:\\.(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=[\\(\\[])))|(?\u003c!#)(?=[\"\\_])|(?=\\.(?:[^0-9\\p{L}\\p{Nl}__]|$))|(?=[\\s,\\}\\]\\)\\#\\$\\*]|$)|(;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.hash.typst"}},"endCaptures":{"1":{"name":"punctuation.terminator.statement.typst"}}}]},"markupEscape":{"name":"constant.character.escape.content.typst","match":"\\\\(?:[^u]|u\\{?[0-9a-zA-Z]*\\}?)"},"markupHeading":{"name":"markup.heading.typst","begin":"^\\s*(=+)(?:(?=[\\r\\n]|$)|[^\\S\\n]+)","end":"\\n|(?=\u003c)","patterns":[{"include":"#markup"}],"beginCaptures":{"1":{"name":"punctuation.definition.heading.typst"}}},"markupItalic":{"name":"markup.italic.typst","begin":"(?:(^_|_$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])_)|(_(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))","end":"(?:(^_|_$|((?\u003c=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}])_)|(_(?=[\\W\\p{Han}\\p{Hangul}\\p{Katakana}\\p{Hiragana}]))))|\\n|(?=\\])","patterns":[{"include":"#markup"}],"beginCaptures":{"0":{"name":"punctuation.definition.italic.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.italic.typst"}}},"markupLabel":{"name":"string.other.label.typst","match":"\u003c[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-\\.:]*\u003e"},"markupLink":{"name":"markup.underline.link.typst","begin":"(?:https?):\\/\\/","end":"(?=[\\s\\]\\)]|(?=[!,.:;?'](?:[\\s\\]\\)]|$)))","patterns":[{"include":"#markupLinkParen"},{"include":"#markupLinkBracket"},{"match":"(^|\\G)(?:[0-9a-zA-Z#$%\u0026*\\+\\-\\/\\=\\@\\_\\~]+|(?:[!,.:;?']+(?![\\s\\]\\)]|$)))"}]},"markupLinkBracket":{"begin":"\\[","end":"\\]|(?=[\\s\\)])","patterns":[{"include":"#markupLink"}]},"markupLinkParen":{"begin":"\\(","end":"\\)|(?=[\\s\\]])","patterns":[{"include":"#markupLink"}]},"markupMath":{"name":"markup.math.typst","begin":"\\$","end":"\\$","patterns":[{"include":"#math"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.math.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.math.typst"}}},"markupReference":{"name":"string.other.reference.typst","match":"(@)[\\p{L}\\p{Nl}__](?:[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]|[\\.:](?!:\\s|$|([\\.:]*[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-\\.:])))*","captures":{"1":{"name":"punctuation.definition.reference.typst"}}},"math":{"patterns":[{"include":"#markupEscape"},{"include":"#stringLiteral"},{"include":"#markupEnterCode"},{"begin":"([_^\\/√∛∜])\\s*([\\[\\(\\{⌈⌊⌜⌞❲⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼])","end":"([\\]\\)\\}⌉⌋⌝⌟❳⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽])|(?=\\$)|$","patterns":[{"include":"#mathParen"},{"include":"#math"}],"beginCaptures":{"1":{"name":"punctuation.math.operator.typst"},"2":{"name":"constant.other.symbol.typst"}},"endCaptures":{"0":{"name":"constant.other.symbol.typst"}}},{"name":"punctuation.math.operator.typst","match":"[_^'\u0026\\/√∛∜]"},{"include":"#strictMathFuncCallOrPropAccess"},{"include":"#mathPrimary"},{"include":"#mathMoreBrace"}]},"mathBrace":{"name":"markup.content.brace.typst","match":"[{}]"},"mathCallArgs":{"begin":"\\(","end":"\\)|(?=\\$)","patterns":[{"include":"#comments"},{"include":"#mathParen"},{"name":"punctuation.separator.comma.typst","match":","},{"include":"#math"}],"beginCaptures":{"0":{"name":"meta.brace.round.typst"}},"endCaptures":{"0":{"name":"meta.brace.round.typst"}}},"mathIdentifier":{"name":"variable.other.readwrite.typst","match":"(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+"},"mathMoreBrace":{"name":"markup.content.brace.typst","match":"[{}()\\[\\]]"},"mathParen":{"begin":"[\\[\\(\\{⌈⌊⌜⌞❲⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼]","end":"([\\]\\)\\}⌉⌋⌝⌟❳⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽])|(?=\\$)|$","patterns":[{"include":"#mathParen"},{"include":"#math"}],"beginCaptures":{"0":{"name":"markup.content.brace.typst"}},"endCaptures":{"0":{"name":"markup.content.brace.typst"}}},"mathPrimary":{"begin":"(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+","end":"(?!(?:\\(|\\.[\\p{L}\\p{Nl}_]))|(?=\\$)","patterns":[{"include":"#strictMathFuncCallOrPropAccess"},{"match":"(\\.)((?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])*)","captures":{"1":{"name":"keyword.operator.accessor.typst"},"2":{"name":"variable.other.readwrite.typst"}}},{"include":"#mathCallArgs"},{"include":"#mathIdentifier"}],"beginCaptures":{"0":{"name":"variable.other.readwrite.typst"}}},"paramOrArgName":{"match":"(?!(show|import|include)\\s*\\:)((?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*)\\s*(\\:)","captures":{"2":{"name":"variable.other.readwrite.typst"},"3":{"name":"punctuation.separator.colon.typst"}}},"patternOrArgsBody":{"patterns":[{"include":"#comments"},{"include":"#paramOrArgName"},{"include":"#expression"}]},"primitiveColors":{"name":"variable.other.constant.builtin.typst","match":"\\b(red|blue|green|black|white|gray|silver|eastern|navy|aqua|teal|purple|fuchsia|maroon|orange|yellow|olive|lime|ltr|rtl|ttb|btt|start|left|center|right|end|top|horizon|bottom)\\b(?!-)"},"primitiveFunctions":{"name":"support.function.builtin.typst","match":"\\b(?:luma|oklab|oklch|rgb|cmyk|range)\\b(?!-)"},"primitiveTypes":{"name":"entity.name.type.primitive.typst","match":"\\b(any|str|int|float|bool|type|length|content|array|dictionary|arguments)\\b(?!-)"},"setClause":{"begin":"(set\\b)\\s+","end":"(?=if)|(?=[\\n;\\{\\[\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#strictFuncCallOrPropAccess"},{"include":"#identifier"}],"beginCaptures":{"1":{"name":"keyword.control.other.typst"}}},"setIfClause":{"begin":"(if\\b(?!-))\\s*","end":"(?\u003c=\\S)(?\u003c!and|or|not|in|!=|==|\u003c=|\u003e=|\u003c|\u003e|\\+|-|\\*|\\/|=|\\+=|-=|\\*=|\\/=)(?!\\s*(?:and|or|not|in|!=|==|\u003c=|\u003e=|\u003c|\u003e|\\+|-|\\*|\\/|=|\\+=|-=|\\*=|\\/=|\\.))|(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.typst"}}},"setStatement":{"name":"meta.expr.set.typst","begin":"(?=(?:(set\\b(?!-))\\s*(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*))","end":"(?\u003c=\\))(?!\\s*if\\b)|(?=[\\s;\\{\\[\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#setClause"},{"include":"#setIfClause"}]},"shebang":{"name":"comment.line.shebang.typst","begin":"^(#!)","end":"\\n","beginCaptures":{"1":{"name":"punctuation.definition.comment.line.shebang.typst"}}},"showAnyClause":{"match":"(show\\b)\\s*(?=\\:)","captures":{"1":{"name":"keyword.control.other.typst"}}},"showSelectClause":{"begin":"(show\\b)\\s*","end":"(?=[:;\\}\\]\\n])","patterns":[{"include":"#comments"},{"include":"#markupLabel"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.other.typst"}}},"showStatement":{"name":"meta.expr.show.typst","begin":"(?=(?:(show\\b(?!-))))","end":"(?=[\\s;\\{\\[\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#showAnyClause"},{"include":"#showSelectClause"},{"include":"#showSubstClause"}]},"showSubstClause":{"begin":"(\\:)\\s*","end":"(?=[\\n;\\}\\]\\)])","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.separator.colon.typst"}}},"strictComments":{"patterns":[{"include":"#blockComment"},{"include":"#strictLineComment"}]},"strictFuncCallOrPropAccess":{"name":"meta.expr.call.typst","begin":"(?=(?:(\\.)?(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=\\(|\\[)))","end":"(?:(?\u003c=\\)|\\])(?![\\[\\(\\.]))|(?=[\\s;,\\}\\]\\)\\#]|$)","patterns":[{"name":"keyword.operator.accessor.typst","match":"\\."},{"match":"(?\u003c!\\)|\\]|\\})\\b[\\p{L}\\p{Nl}__][\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}_\\-]*(?=\\(|\\[)","captures":{"0":{"patterns":[{"include":"#primitiveFunctions"},{"include":"#primitiveTypes"},{"name":"entity.name.function.typst","match":".*"}]}}},{"include":"#identifier"},{"match":"(\\()\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"meta.brace.round.typst"}}},{"include":"#callArgs"},{"include":"#contentBlock"}]},"strictLineComment":{"name":"comment.line.double-slash.typst","begin":"(?\u003c!:)\\/\\/","end":"(?=$|\\n)","beginCaptures":{"0":{"name":"punctuation.definition.comment.typst"}}},"strictMathFuncCallOrPropAccess":{"name":"meta.expr.call.typst","begin":"(?=(?:(?:(\\.)((?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])*)|(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+)(?=\\()))","end":"(?:(?\u003c=[\\)])(?![\\(\\.]|(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+(?=\\()))|(?=[\\$\\s;,\\}\\]\\)]|$)","patterns":[{"name":"keyword.operator.accessor.typst","match":"\\."},{"name":"entity.name.function.typst","match":"(?:(?\u003c=_)|\\b)(?:(?!_)[\\p{L}\\p{Nl}_])(?:(?!_)[\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])+(?=\\()","captures":{"0":{"name":"entity.name.function.typst","patterns":[{"include":"#primitiveFunctions"},{"include":"#primitiveTypes"},{"name":"entity.name.function.typst","match":".*"}]}}},{"include":"#mathIdentifier"},{"match":"(\\()\\s*(\\))","captures":{"1":{"name":"meta.brace.round.typst"},"2":{"name":"meta.brace.round.typst"}}},{"include":"#mathCallArgs"}]},"stringLiteral":{"name":"string.quoted.double.typst","begin":"\"","end":"\"","patterns":[{"match":"(\\\\(?:[^u]|u\\{?[0-9a-zA-Z]*\\}?))|[^\\\\\"]+","captures":{"1":{"name":"constant.character.escape.string.typst"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.typst"}},"endCaptures":{"0":{"name":"punctuation.definition.string.typst"}}},"whileClause":{"begin":"(while\\b)\\s*","end":"(?\u003c!(?:\\bwhile)|(?:hile\\s{1})|(?:ile\\s{2})|(?:le\\s{3})|(?:[\\s\\S]{2}(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or))|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s)|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:if|in|or)\\s{2}|(?:if|in|or)\\s{3}|(?:[\\s\\S](?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not))|(?:\\s|[^\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}])(?:and|not)\\s|(?:and|not)\\s{2}|(?:[\\s\\S]{4}[=\u003c\u003e\\+\\-\\*\\/])|(?:[\\s\\S]{3}[=\u003c\u003e\\+\\-\\*\\/]\\s)|(?:[\\s\\S]{2}[=\u003c\u003e\\+\\-\\*\\/]\\s{2})|(?:[\\s\\S][=\u003c\u003e\\+\\-\\*\\/]\\s{3})|(?:[=\u003c\u003e\\+\\-\\*\\/]\\s{4}))(?=[\\[\\{])|(?=[;,\\}\\]\\)\\#\\n]|$)","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.loop.typst"}}},"whileStatement":{"name":"meta.expr.while.typst","begin":"(?=(?:(while\\b(?!-))))","end":"(?\u003c=[\\}\\]])(?![\\{\\[])|(?=[;\\}\\]\\)\\n]|$)","patterns":[{"include":"#comments"},{"include":"#whileClause"},{"include":"#codeBlock"},{"include":"#contentBlock"}]}}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"Untyped Plutus Core","scopeName":"source.uplc","patterns":[{"include":"#keywords"},{"include":"#strings"},{"include":"#constant"},{"include":"#types"},{"include":"#entity"}],"repository":{"boolean":{"name":"constant.language.boolean.uplc","match":"\\b(True|False)\\b"},"constant":{"patterns":[{"include":"#decimal_number"},{"include":"#boolean"},{"name":"constant.numeric.hexadecimal.uplc","match":"#[[:xdigit:]]+\\b"}]},"decimal_number":{"name":"constant.numeric.decimal.uplc","match":"\\b[[:digit:]][[:digit:]_]*(\\.[[:digit:]]*)?\\b"},"entity":{"patterns":[{"name":"entity.name.function.uplc","match":"\\b(addInteger|subtractInteger|multiplyInteger|divideInteger|quotientInteger|remainderInteger|modInteger|equalsInteger|lessThanInteger|lessThanEqualsInteger|appendByteString|consByteString|sliceByteString|lengthOfByteString|indexByteString|equalsByteString|lessThanByteString|lessThanEqualsByteString|sha2_256|sha3_256|blake2b_256|verifyEd25519Signature|verifyEcdsaSecp256k1Signature|verifySchnorrSecp256k1Signature|appendString|equalsString|encodeUtf8|decodeUtf8|ifThenElse|chooseUnit|trace|fstPair|sndPair|chooseList|mkCons|headList|tailList|nullList|chooseData|constrData|mapData|listData|iData|bData|unConstrData|unMapData|unListData|unIData|unBData|equalsData|serialiseData|mkPairData|mkNilData|mkNilPairData|bls12_381_G1_add|bls12_381_G1_neg|bls12_381_G1_scalarMul|bls12_381_G1_equal|bls12_381_G1_compress|bls12_381_G1_uncompress|bls12_381_G1_hashToGroup|bls12_381_G2_add|bls12_381_G2_neg|bls12_381_G2_scalarMul|bls12_381_G2_equal|bls12_381_G2_compress|bls12_381_G2_uncompress|bls12_381_G2_hashToGroup|bls12_381_millerLoop|bls12_381_mulMlResult|bls12_381_finalVerify|integerToByteString|byteStringToInteger|keccak_256|blake2b_224)\\b"},{"name":"variable.other.uplc","match":"\\b([[:lower:]][[:word:]]*)\\b"}]},"keywords":{"patterns":[{"name":"keyword.control.uplc","match":"\\b(program|con|builtin|delay|force|error|lam)\\b"}]},"strings":{"name":"string.quoted.double.uplc","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.uplc","match":"\\\\."}]},"types":{"name":"entity.name.type.uplc","match":"\\b(integer|bytestring|bool|unit|string|list|pair)\\b"}}}
|
data/grammars/source.vba.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Visual Basic for Applications","scopeName":"source.vba","patterns":[{"include":"#comments"},{"include":"#functions"},{"include":"#keywords"},{"include":"#metadata"},{"include":"#numbers"},{"include":"#storage"},{"include":"#strings"},{"include":"#types"},{"name":"constant.other.vba","match":"_(?=\\s*\\n)"}],"repository":{"comments":{"begin":"(?=')|(?:^(?:(\\d*)\\s*|[a-zA-Z][a-zA-Z0-9]{0,254}:\\s*)|:\\s*)(?=(?i:Rem ))","end":"(?\u003c!\\s_)$\\n","patterns":[{"name":"comment.line.quote","match":"\\'.*"},{"name":"comment.line.rem","match":"Rem .*"},{"name":"comment.line.continuation","match":"^.*"}],"beginCaptures":{"1":{"name":"constant.numeric.decimal"}}},"functions":{"begin":"(?i:\\b(Call|Function|Sub) )","end":"\\(|(?=\\n)","patterns":[{"name":"entity.name.function.vba","match":"(?i:\\b([a-zA-Z][a-zA-Z0-9_]*)\\b)"}],"beginCaptures":{"1":{"name":"keyword.other.vba"}}},"keywords":{"patterns":[{"name":"keyword.conditional.vba","match":"(?i:\\b(Do( While| Until)?|While|Case( Else)?|Else(If)?|For( Each)?|(I)?If|In|New|(Select )?Case|Then|To|Step|With)\\b)"},{"name":"keyword.conditional.end.vba","match":"(?i:\\b(End( )?If|End (Select|With)|Next|Wend|Loop( While| Until)?|Exit (For|Do|While))\\b)"},{"name":"keyword.control.vba","match":"(?i:\\b(Exit (Function|Property|Sub)|As|And|By(Ref|Val)|Goto|Is|Like|Mod|Not|On Error|Optional|Or|Resume Next|Stop|Xor|Eqv|Imp|TypeOf|AddressOf)\\b|(\\b(End)\\b(?=\\n)))"},{"name":"keyword.io.vba","match":"(?i:\\b(Open|Close|Line Input|Lock|Unlock|Print|Seek|Get|Put|Write)\\b)"},{"name":"keyword.io.vba","match":"(?i:\\b(Input)(?= \\#))"},{"name":"keyword.other.vba","match":"(?i:\\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent|Implements)\\b)"},{"name":"keyword.other.option.vba","match":"(?i)\\bOption (Base [01]|Compare (Binary|Text)|Explicit|Private Module)\\b"},{"name":"keyword.other.visibility.vba","match":"(?i:\\b(Private|Public|Global|Friend)\\b)"},{"name":"constant.language.vba","match":"(?i)\\b(Empty|False|Nothing|Null|True)\\b"}]},"metadata":{"name":"metadata.vba","begin":"(?i)^\\s*(BEGIN)\\b","end":"(?i)^\\s*(END)\\b","patterns":[{"include":"source.vba"}],"beginCaptures":{"1":{"name":"keyword.metadata.vba"}},"endCaptures":{"0":{"name":"keyword.metadata.vba"}}},"numbers":{"patterns":[{"name":"constant.numeric.date","match":"(?i)\\#((Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)|[0-9]{1,2})(-|\\/)[0-9]{1,2}((-|\\/)[0-9]{1,4})?\\#"},{"name":"constant.numeric.decimal","match":"(?\u003c!\\w)-?\\d+(\\.\\d+)?"},{"name":"constant.numeric.octal","match":"(?i)-?\u0026O[0-7]+"},{"name":"constant.numeric.hexadecimal","match":"(?i)-?\u0026H[0-9A-F]+"}]},"storage":{"patterns":[{"name":"storage.modifier.vba","match":"(?i)\\b(Class|Const|Dim|(G|L|S)et|ReDim( Preserve)?|Erase|Static)\\b"}]},"strings":{"patterns":[{"name":"string.quoted.double","match":"\\\"[^\\n\\r\\\"]*\""}]},"types":{"patterns":[{"name":"support.type.builtin.vba","match":"(?i)\\b(Any|Byte|Boolean|Currency|Collection|Date|Double|Integer|Long(Long|Ptr)?|Object|Single|String|Variant)\\b"},{"match":"(?i)(?\u003c= As )([a-zA-Z][a-zA-Z0-9_]*)","captures":{"1":{"name":"support.type"}}}]}}}
|
1
|
+
{"name":"Visual Basic for Applications","scopeName":"source.vba","patterns":[{"include":"#comments"},{"include":"#functions"},{"include":"#keywords"},{"include":"#metadata"},{"include":"#numbers"},{"include":"#storage"},{"include":"#strings"},{"include":"#types"},{"name":"constant.other.vba","match":"_(?=\\s*\\n)"}],"repository":{"comments":{"begin":"(?=')|(?:^(?:(\\d*)\\s*|[a-zA-Z][a-zA-Z0-9]{0,254}:\\s*)|:\\s*)(?=(?i:Rem ))","end":"(?\u003c!\\s_)$\\n","patterns":[{"name":"comment.line.quote","match":"\\'.*"},{"name":"comment.line.rem","match":"Rem .*"},{"name":"comment.line.continuation","match":"^.*"}],"beginCaptures":{"1":{"name":"constant.numeric.decimal"}}},"functions":{"begin":"(?i:\\b(Call|Function|Sub) )","end":"\\(|(?=\\n)","patterns":[{"name":"entity.name.function.vba","match":"(?i:\\b([a-zA-Z][a-zA-Z0-9_]*)\\b)"}],"beginCaptures":{"1":{"name":"keyword.other.vba"}}},"keywords":{"patterns":[{"name":"keyword.conditional.vba","match":"(?i:\\b(Do( While| Until)?|While|Case( Else)?|Else(If)?|For( Each)?|(I)?If|In|New|(Select )?Case|Then|To|Step|With)\\b)"},{"name":"keyword.conditional.end.vba","match":"(?i:\\b(End( )?If|End (Select|With)|Next|Wend|Loop( While| Until)?|Exit (For|Do|While))\\b)"},{"name":"keyword.control.vba","match":"(?i:\\b(Exit (Function|Property|Sub)|As|And|By(Ref|Val)|Goto|Is|Like|Mod|Not|On Error|Optional|Or|Resume Next|Stop|Xor|Eqv|Imp|TypeOf|AddressOf)\\b|(\\b(End)\\b(?=\\n)))"},{"name":"keyword.io.vba","match":"(?i:\\b(Open|Close|Line Input|Lock|Unlock|Print|Seek|Get|Put|Write)\\b)"},{"name":"keyword.io.vba","match":"(?i:\\b(Input)(?= \\#))"},{"name":"keyword.other.vba","match":"(?i:\\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent|Implements)\\b)"},{"name":"keyword.other.option.vba","match":"(?i)\\bOption (Base [01]|Compare (Binary|Text)|Explicit|Private Module)\\b"},{"name":"keyword.other.deftype.vba","match":"(?i)\\b(DefBool|DefByte|DefInt|DefLng|DefLngLng|DefLngPtr|DefCur|DefSng|DefDbl|DefDec|DefDate|DefStr|DefObj|DefVar)\\b"},{"name":"keyword.other.visibility.vba","match":"(?i:\\b(Private|Public|Global|Friend)\\b)"},{"name":"constant.language.vba","match":"(?i)\\b(Empty|False|Nothing|Null|True)\\b"}]},"metadata":{"name":"metadata.vba","begin":"(?i)^\\s*(BEGIN)\\b","end":"(?i)^\\s*(END)\\b","patterns":[{"include":"source.vba"}],"beginCaptures":{"1":{"name":"keyword.metadata.vba"}},"endCaptures":{"0":{"name":"keyword.metadata.vba"}}},"numbers":{"patterns":[{"name":"constant.numeric.date","match":"(?i)\\#((Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)|[0-9]{1,2})(-|\\/)[0-9]{1,2}((-|\\/)[0-9]{1,4})?\\#"},{"name":"constant.numeric.decimal","match":"(?\u003c!\\w)-?\\d+(\\.\\d+)?"},{"name":"constant.numeric.octal","match":"(?i)-?\u0026O[0-7]+"},{"name":"constant.numeric.hexadecimal","match":"(?i)-?\u0026H[0-9A-F]+"}]},"storage":{"patterns":[{"name":"storage.modifier.vba","match":"(?i)\\b(Class|Const|Dim|(G|L|S)et|ReDim( Preserve)?|Erase|Static)\\b"}]},"strings":{"patterns":[{"name":"string.quoted.double","match":"\\\"[^\\n\\r\\\"]*\""}]},"types":{"patterns":[{"name":"support.type.builtin.vba","match":"(?i)\\b(Any|Byte|Boolean|Currency|Collection|Date|Double|Integer|Long(Long|Ptr)?|Object|Single|String|Variant)\\b"},{"match":"(?i)(?\u003c= As )([a-zA-Z][a-zA-Z0-9_]*)","captures":{"1":{"name":"support.type"}}}]}}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"Vento","scopeName":"source.vento","patterns":[{"name":"comment.block.vento","begin":"{{#","end":"#}}"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"#front_matter"},{"name":"html.vento"}],"repository":{"front_matter":{"name":"meta.embedded.block.yaml","contentName":"source.yaml","begin":"^---[a-zA-Z0-9_-]*\\s*\\n","end":"---\\s*\\n","patterns":[{"include":"source.yaml"}]},"js_code":{"name":"meta.embedded.block.javascript","contentName":"source.js","begin":"{{(-)?\u003e","end":"(-)?}}","patterns":[{"include":"source.js"}]},"template_keyword":{"name":"keyword.vento","match":"\\b(for|of|if|else\\s+if|else|include|set|layout|echo|function|async\\s+function|import|from|export|await)\\b"},"template_tag":{"name":"punctuation.definition.tag.vento","contentName":"source.js","begin":"{{(-)?","end":"(-)?}}","patterns":[{"include":"#template_keyword"},{"include":"source.js"}]}},"injections":{"L:string - (string.quoted.*.html)":{"patterns":[{"include":"source.vento"}]}}}
|