github-linguist 7.24.0 → 7.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.ats.json +1 -1
- data/grammars/source.svelte.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/samples.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 496933d73353d6abfca96309f1b25d7abf32a40a5bff2faac391cf9b446afb9c
|
4
|
+
data.tar.gz: f2a32762ec75c20606172be9aa109756d938a4feb71d3cc288db7e381b70fdc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9d265722ac20c1491dcc552b5ae773ee2adc26825691b1dd1d21e92498fbad7f8617ee523805486da4db7ae27c88484bee0cc0a6900cb48b168b103b5abd6a6
|
7
|
+
data.tar.gz: 79b5b11c768458bb56db1b6cef1810537e7d09ac4b1983de6b75d2289811a58003ccdf7b516ee1b0c988abef075448c56a51930f0a967458b1bb01fce0a39e84
|
data/grammars/source.ats.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"ATS","scopeName":"source.ats","patterns":[{"include":"#
|
1
|
+
{"name":"ATS","scopeName":"source.ats","patterns":[{"include":"#block"},{"include":"#comment_rest"},{"include":"#comment_line"},{"include":"#comment_block"},{"include":"#embed"},{"include":"#operators"},{"include":"#quantifier_curly"},{"include":"#quantifier_square"},{"include":"#quantifier_arrow"},{"include":"#keywords"},{"include":"#keywords_types"},{"include":"#string"},{"include":"#char"},{"include":"#records"},{"include":"#tuples"},{"include":"#number"}],"repository":{"block":{"begin":"(?\u003c=where|=|^|then|else|\\$rec|\\$rec_t|\\$rec_vt)(?:\\s*){","end":"}","patterns":[{"include":"$self"}],"applyEndPatternLast":true},"char":{"name":"string.quoted.double","match":"(')([^\\\\]{0,1}|\\\\(\\\\|[abefpnrtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8}))(')"},"comment_block":{"name":"comment.block","begin":"\\(\\*","end":"\\*\\)","patterns":[{"include":"#comment_block"}],"applyEndPatternLast":true},"comment_line":{"name":"comment.line.double-slash","match":"//.*$"},"comment_rest":{"name":"comment","begin":"////","end":".\\z","patterns":[{"match":".*"}],"applyEndPatternLast":true},"embed":{"name":"meta","begin":"(%{)","end":"(%})"},"keywords":{"name":"keyword","match":"(\\#|\\$)(\\w+)|\\b(castfn|and|andalso|assume|as|begin|break|case(\\+|-)?|class|continue|dynload|dyn|else|end|exception|extern|fix|fn|for|fun|if|implement|implmnt|primplement|primplmnt|infixl|infixr|infix|in|lam|let|llam|local|macdef|macrodef|method|modprop|modtype|module|nonfix|object|of|op|or|orelse|overload|par|postfix|praxi|prefix|prfn|prfun|prval|rec|sif|staif|staload|stavar|sta|struct|symelim|symintr|then|try|union|val(\\+|-)?|var|when|where|while|withprop|withtype|withviewtype|withview|with)\\b"},"keywords_types":{"name":"keyword","match":"(\\#|\\$)(\\w+)|\\b(abstype|abst@ype|abst0pe|absvtype|absvt@ype|absvt0pe|absviewtype|absviewt@ype|absviewt0pe|absview|absprop|datatype|datavtype|dataviewtype|dataview|dataprop|datasort|sortdef|propdef|viewdef|viewtypedef|vtypedef|stadef|typedef|)\\b"},"number":{"name":"constant.numeric","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|~)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},"operators":{"name":"keyword.operator","match":"!=|!|%|\u0026\u0026|\u0026|\\*|\\+|-|--\u003e|-\u003e|/|:=|\u003c=|(?\u003c=\\s)\u003c|==\u003e|=\u003e|=|\u003e=|\u003e\u003e|\u003e|\\?|\\|\\||\\||~|\\[\\]"},"quantifier_arrow":{"name":"support.type","begin":"(?\u003c!\\s)\u003c","end":"\u003e"},"quantifier_curly":{"name":"support.type","begin":"({)","end":"(})"},"quantifier_square":{"name":"support.type","begin":"(\\[)","end":"(\\])"},"records":{"begin":"('|@)({)","end":"(})","patterns":[{"include":"$self"}]},"string":{"name":"string.quoted.double","begin":"(\")","end":"(\")","patterns":[{"include":"#string_escaped"}]},"string_escaped":{"name":"constant.character.escape","match":"\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8})"},"tuples":{"begin":"('|@)\\(","end":"(\\))","patterns":[{"include":"$self"}]}}}
|
data/grammars/source.svelte.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Svelte Component","scopeName":"source.svelte","patterns":[{"include":"#scope"}],"repository":{"attributes":{"patterns":[{"include":"#attributes-directives"},{"include":"#attributes-keyvalue"},{"include":"#attributes-interpolated"}]},"attributes-directives":{"name":"meta.directive.$1.svelte","begin":"(?\u003c!\u003c)((?:on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*(?=\\s*=))|((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*)))((\\|\\w+)*)","end":"(?=\\s*+[^=\\s])","patterns":[{"begin":"=","end":"(?\u003c=[^\\s=])(?!\\s*=)|(?=/?\u003e)","patterns":[{"include":"#attributes-value"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}}}],"beginCaptures":{"1":{"patterns":[{"include":"#attributes-directives-keywords"},{"include":"#attributes-directives-types-assigned"},{"include":"#attributes-directives-types"}]},"2":{"name":"punctuation.definition.keyword.svelte"},"5":{"patterns":[{"name":"support.function.svelte","match":"\\w+"},{"name":"punctuation.separator.svelte","match":"\\|"}]}}},"attributes-directives-keywords":{"patterns":[{"name":"keyword.control.svelte","match":"on|use|bind"},{"name":"keyword.other.animation.svelte","match":"transition|in|out|animate"},{"name":"storage.type.svelte","match":"let"},{"name":"entity.other.attribute-name.svelte","match":"class|style"}]},"attributes-directives-types":{"patterns":[{"name":"variable.parameter.svelte","match":"(?\u003c=bind:).*$"},{"name":"variable.function.svelte","match":"(?:(?\u003c=use:)|(?\u003c=transition:)|(?\u003c=in:)|(?\u003c=out:)|(?\u003c=animate:)).*$"},{"name":"entity.name.type.svelte","match":"(?\u003c=on:).*$"},{"name":"variable.parameter.svelte","match":"((?\u003c=let:)|(?\u003c=class:)|(?\u003c=style:)).*$"}]},"attributes-directives-types-assigned":{"patterns":[{"name":"variable.language.svelte","match":"(?\u003c=(bind):)this$"},{"name":"entity.name.type.svelte","match":"(?\u003c=(bind):).*$"},{"name":"entity.other.attribute-name.class.svelte","match":"(?\u003c=(class):).*$"},{"name":"support.type.property-name.svelte","match":"(?\u003c=(style):).*$"},{"include":"#attributes-directives-types"}]},"attributes-interpolated":{"contentName":"meta.embedded.expression.svelte source.ts","begin":"(?\u003c!:|=)\\s*({)","end":"(\\})","patterns":[{"include":"source.ts"}],"captures":{"1":{"name":"entity.other.attribute-name.svelte"}}},"attributes-keyvalue":{"name":"meta.attribute.$1.svelte","begin":"((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*)","end":"(?=\\s*+[^=\\s])","patterns":[{"begin":"=","end":"(?\u003c=[^\\s=])(?!\\s*=)|(?=/?\u003e)","patterns":[{"include":"#attributes-value"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.svelte"}}}],"beginCaptures":{"0":{"patterns":[{"name":"support.type.property-name.svelte","match":"--.*"},{"name":"entity.other.attribute-name.svelte","match":".+"}]}}},"attributes-value":{"patterns":[{"include":"#interpolation"},{"match":"(?:(['\"])([0-9._]+[\\w%]{,4})(\\1))|(?:([0-9._]+[\\w%]{,4})(?=\\s|/?\u003e))","captures":{"1":{"name":"punctuation.definition.string.begin.svelte"},"2":{"name":"constant.numeric.decimal.svelte"},"3":{"name":"punctuation.definition.string.end.svelte"},"4":{"name":"constant.numeric.decimal.svelte"}}},{"name":"string.unquoted.svelte","match":"([^\\s\"'=\u003c\u003e`/]|/(?!\u003e))+","patterns":[{"include":"#interpolation"}]},{"name":"string.quoted.svelte","begin":"(['\"])","end":"\\1","patterns":[{"include":"#interpolation"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.svelte"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.svelte"}}}]},"comments":{"name":"comment.block.svelte","begin":"\u003c!--","end":"--\u003e","patterns":[{"contentName":"comment.block.documentation.svelte","begin":"(@)(component)","end":"(?=--\u003e)","patterns":[{"match":".*?(?=--\u003e)","captures":{"0":{"patterns":[{"include":"source.gfm"}]}}},{"include":"source.gfm"}],"beginCaptures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"name":"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}}},{"name":"invalid.illegal.characters-not-allowed-here.svelte","match":"\\G-?\u003e|\u003c!--(?!\u003e)|\u003c!-(?=--\u003e)|--!\u003e"}],"captures":{"0":{"name":"punctuation.definition.comment.svelte"}}},"destructuring":{"patterns":[{"name":"meta.embedded.expression.svelte source.ts","begin":"(?={)","end":"(?\u003c=})","patterns":[{"include":"source.ts#object-binding-pattern"}]},{"name":"meta.embedded.expression.svelte source.ts","begin":"(?=\\[)","end":"(?\u003c=\\])","patterns":[{"include":"source.ts#array-binding-pattern"}]}]},"interpolation":{"patterns":[{"contentName":"meta.embedded.expression.svelte source.ts","begin":"\\{","end":"\\}","patterns":[{"begin":"\\G\\s*(?={)","end":"(?\u003c=})","patterns":[{"include":"source.ts#object-literal"}]},{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.svelte"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.svelte"}}}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#special-tags"},{"include":"#tags"},{"include":"#interpolation"},{"name":"text.svelte","begin":"(?\u003c=\u003e|})","end":"(?=\u003c|{)"}]},"special-tags":{"patterns":[{"include":"#special-tags-void"},{"include":"#special-tags-block-begin"},{"include":"#special-tags-block-end"}]},"special-tags-block-begin":{"name":"meta.special.$3.svelte meta.special.start.svelte","begin":"({)\\s*(#([a-z]*))","end":"(})","patterns":[{"include":"#special-tags-modes"}],"beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}}},"special-tags-block-end":{"name":"meta.special.$3.svelte meta.special.end.svelte","begin":"({)\\s*(/([a-z]*))","end":"(})","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"endCaptures":{"1":{"name":"punctuation.definition.block.end.svelte"}}},"special-tags-keywords":{"match":"([#@/:])(else\\s+if|[a-z]*)","captures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"patterns":[{"name":"keyword.control.conditional.svelte","match":"if|else\\s+if|else"},{"name":"keyword.control.svelte","match":"each|key"},{"name":"keyword.control.flow.svelte","match":"await|then|catch"},{"name":"keyword.other.svelte","match":"html"},{"name":"keyword.other.debugger.svelte","match":"debug"},{"name":"storage.type.svelte","match":"const"}]}}},"special-tags-modes":{"patterns":[{"name":"meta.embedded.expression.svelte source.ts","begin":"((?\u003c=if)|(?\u003c=key)|(?\u003c=then)|(?\u003c=catch)|(?\u003c=html)).*?\\G","end":"(?=})","patterns":[{"include":"source.ts"}]},{"begin":"(?\u003c=const).*?\\G","end":"(?=})","patterns":[{"begin":"\\G\\s*([_$[:alpha:]][_$[:alnum:]]+)\\s*","end":"(?=\\=)","beginCaptures":{"1":{"name":"variable.other.constant.svelte"}}},{"begin":"(?=\\=)","end":"(?=})","patterns":[{"include":"source.ts#variable-initializer"}]}]},{"begin":"(?\u003c=each).*?\\G","end":"(?=})","patterns":[{"contentName":"meta.embedded.expression.svelte source.ts","begin":"\\G\\s*?(?=\\S)","end":"(?=(?:^\\s*|\\s+)(as))","patterns":[{"include":"source.ts"}]},{"begin":"(as)","end":"(?=})","patterns":[{"include":"#destructuring"},{"contentName":"meta.embedded.expression.svelte source.ts","begin":"\\(","end":"\\)|(?=})","patterns":[{"include":"source.ts"}],"captures":{"0":{"name":"meta.brace.round.svelte"}}},{"match":"(\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*)","captures":{"1":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}}},{"name":"punctuation.separator.svelte","match":","}],"beginCaptures":{"1":{"name":"keyword.control.as.svelte"}}}]},{"begin":"(?\u003c=await).*?\\G","end":"(?=})","patterns":[{"contentName":"meta.embedded.expression.svelte source.ts","begin":"\\G\\s*?(?=\\S)","end":"\\s+(then)|(?=})","patterns":[{"include":"source.ts"}],"endCaptures":{"1":{"name":"keyword.control.flow.svelte"}}},{"contentName":"meta.embedded.expression.svelte source.ts","begin":"(?\u003c=then)\\b","end":"(?=})","patterns":[{"include":"source.ts"}]}]},{"begin":"(?\u003c=debug).*?\\G","end":"(?=})","patterns":[{"match":"[_$[:alpha:]][_$[:alnum:]]*","captures":{"0":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}}},{"name":"punctuation.separator.svelte","match":","}]}]},"special-tags-void":{"name":"meta.special.$3.svelte","begin":"({)\\s*((?:[@:])(else\\s+if|[a-z]*))","end":"\\}","patterns":[{"include":"#special-tags-modes"}],"beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}}},"tags":{"patterns":[{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"match":"(\u003c/)(.*?)\\s*(\u003e)|(/\u003e)","captures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}}},"tags-general-end":{"name":"meta.scope.tag.$2.svelte","begin":"(\u003c/)([^/\\s\u003e]*)","end":"(\u003e)","beginCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]}},"endCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}}},"tags-general-start":{"name":"meta.scope.tag.$2.svelte","begin":"(\u003c)([^/\\s\u003e/]*)","end":"(/?\u003e)","patterns":[{"include":"#tags-start-attributes"}],"beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"endCaptures":{"1":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}}},"tags-lang":{"name":"meta.$1.svelte","begin":"\u003c(script|style|template)","end":"\u003c/\\1\\s*\u003e|/\u003e","patterns":[{"name":"meta.lang.$3.svelte","begin":"\\G(?=\\s*[^\u003e]*?(type|lang)\\s*=\\s*(['\"]|)(?:text/)?(\\w+)\\2)","end":"(?=\u003c/|/\u003e)","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}],"beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}}},"tags-lang-start-attributes":{"name":"meta.tag.start.svelte","begin":"\\G","end":"(?=/\u003e)|\u003e","patterns":[{"include":"#attributes"}],"endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}}},"tags-name":{"patterns":[{"match":"(svelte)(:)([a-z][\\w0-9:-]*)","captures":{"1":{"name":"keyword.control.svelte"},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"name":"entity.name.tag.svelte"}}},{"name":"keyword.control.svelte","match":"slot"},{"name":"support.class.component.svelte","match":"[A-Z][a-zA-Z0-9_]*"},{"name":"meta.tag.custom.svelte entity.name.tag.svelte","match":"[a-z][\\w0-9:]*-[\\w0-9:-]*"},{"name":"entity.name.tag.svelte","match":"[a-z][\\w0-9:-]*"}]},"tags-start-attributes":{"name":"meta.tag.start.svelte","begin":"\\G","end":"(?=/?\u003e)","include":"#attributes"},"tags-start-node":{"name":"meta.tag.start.svelte","match":"(\u003c)([^/\\s\u003e/]*)","captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"patterns":[{"include":"#tags-name"}]}}},"tags-void":{"name":"meta.tag.void.svelte","begin":"(\u003c)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\s|/?\u003e)","end":"/?\u003e","patterns":[{"include":"#attributes"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"entity.name.tag.svelte"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}}}},"injections":{"L:(meta.script.svelte - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.ts","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.ts"}]}]},"L:(meta.script.svelte meta.lang.coffee - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.coffee","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.coffee"}]}]},"L:(meta.script.svelte meta.lang.javascript - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.ts","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.ts"}]}]},"L:(meta.script.svelte meta.lang.js - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.ts","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.ts"}]}]},"L:(meta.script.svelte meta.lang.ts - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.ts","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.ts"}]}]},"L:(meta.script.svelte meta.lang.typescript - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.ts","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.ts"}]}]},"L:(meta.style.svelte - meta.lang - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.css","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css"}]}]},"L:(meta.style.svelte meta.lang.css - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.css","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css"}]}]},"L:(meta.style.svelte meta.lang.less - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.css.less","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css.less"}]}]},"L:(meta.style.svelte meta.lang.postcss - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.css.postcss","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{}]}]},"L:(meta.style.svelte meta.lang.sass - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.sass","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.sass"}]}]},"L:(meta.style.svelte meta.lang.scss - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.css.scss","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css.scss"}]}]},"L:(meta.style.svelte meta.lang.stylus - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"source.stylus","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.stylus"}]}]},"L:(meta.template.svelte - meta.lang - (meta source))":{"patterns":[{"begin":"(?\u003c=\u003e)\\s","end":"(?=\u003c/template)","patterns":[{"include":"#scope"}]}]},"L:(meta.template.svelte meta.lang.pug - (meta source))":{"patterns":[{"name":"meta.embedded.block.svelte","contentName":"text.pug","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"text.jade"}]}]},"L:(source.ts, source.js, source.coffee)":{"patterns":[{"name":"punctuation.definition.variable.svelte","match":"(?\u003c![_$[:alnum:]])\\$(?=[_[:alpha:]][_$[:alnum:]]*)"},{"name":"punctuation.definition.variable.svelte","match":"(?\u003c![_$[:alnum:]])(\\$\\$)(?=props|restProps|slots)"}]}}}
|
1
|
+
{"name":"Svelte","scopeName":"source.svelte","patterns":[{"begin":"(\u003c)(style)\\b(?=[^\u003e]*(?:type=('text/sass'|\"text/sass\")|lang=(sass|'sass'|\"sass\")))(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(style)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.sass","begin":"(\u003e)","end":"(?=\u003c/style\u003e)","patterns":[{"include":"source.sass"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(style)\\b(?=[^\u003e]*(?:type=('text/scss'|\"text/scss\")|lang=(scss|'scss'|\"scss\")))(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(style)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.css.scss","begin":"(\u003e)","end":"(?=\u003c/style\u003e)","patterns":[{"include":"source.css.scss"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(style)\\b(?=[^\u003e]*(?:type=('text/less'|\"text/less\")|lang=(less|'less'|\"less\")))(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(style)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.css.less","begin":"(\u003e)","end":"(?=\u003c/style\u003e)","patterns":[{"include":"source.css.less"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(style)\\b(?=[^\u003e]*(?:type=('text/stylus'|\"text/stylus\")|lang=(stylus|'stylus'|\"stylus\")))(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(style)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.stylus","begin":"(\u003e)","end":"(?=\u003c/style\u003e)","patterns":[{"include":"source.stylus"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(style)\\b(?=[^\u003e]*(?:type=('text/postcss'|\"text/postcss\")|lang=(postcss|'postcss'|\"postcss\")))(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(style)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.postcss","begin":"(\u003e)","end":"(?=\u003c/style\u003e)","patterns":[{"include":"source.postcss"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(style)\\b(?=[^\u003e]*(?:(?:type=('text/css'|\"text/css\")|lang=(css|'css'|\"css\")))?)(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(style)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.css","begin":"(\u003e)","end":"(?=\u003c/style\u003e)","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(script)\\b(?=[^\u003e]*(?:type=('text/typescript'|\"text/typescript\")|lang=(typescript|'typescript'|\"typescript\")))(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(script)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.ts","begin":"(\u003e)","end":"(?=\u003c/script\u003e)","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.script.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.script.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(script)\\b(?=[^\u003e]*(?:type=('text/coffee'|\"text/coffee\")|lang=(coffee|'coffee'|\"coffee\")))(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(script)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.coffee","begin":"(\u003e)","end":"(?=\u003c/script\u003e)","patterns":[{"include":"source.coffee"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.script.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.script.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"(\u003c)(script)\\b(?=[^\u003e]*(?:(?:type=('text/javascript'|\"text/javascript\")|lang=(javascript|'javascript'|\"javascript\")))?)(?![^/\u003e]*/\u003e\\s*$)","end":"(\u003c/)(script)(\u003e)","patterns":[{"include":"#tag-stuff"},{"contentName":"source.js","begin":"(\u003e)","end":"(?=\u003c/script\u003e)","patterns":[{"include":"source.js"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.script.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.script.html"},"3":{"name":"punctuation.definition.tag.end.html"}}},{"begin":"({)\\s*(#if|:elseif|#await|@html)","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"keyword.control.conditional"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}}},{"match":"({)\\s*(:then|:catch)\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(})","captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"keyword.control.conditional"},"3":{"name":"variable"},"4":{"name":"punctuation.definition.tag.end.svelte"}}},{"begin":"({)\\s*(#each)","end":"}","patterns":[{"begin":"\\s","end":"\\s(as)\\s+","patterns":[{"include":"source.ts"}],"endCaptures":{"1":{"name":"keyword.control"}}},{"name":"variable","match":"[_$[:alpha:]][_$[:alnum:]]*\\s*"},{"patterns":[{"begin":"\\[\\s*","end":"]\\s*","patterns":[{"include":"source.js"}]},{"begin":"\\{\\s*","end":"}\\s*","patterns":[{"include":"source.js"}]}]},{"match":",\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*","captures":{"1":{"name":"variable"}}},{"begin":"\\(","end":"\\)\\s*","patterns":[{"include":"source.ts"}]}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"keyword.control.conditional"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}}},{"match":"({)\\s*(:else|/if|/each|/await)\\s*(})","captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"keyword.control.conditional"},"3":{"name":"punctuation.definition.tag.end.svelte"}}},{"begin":"{","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}}},{"name":"meta.tag.other.html","begin":"(\u003c/?)([a-zA-Z][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"}}},{"name":"comment.block","begin":"\u003c!--","end":"--\u003e"},{"name":"punctuation.definition.tag","match":"\u003c!doctype html\u003e"}],"repository":{"entities":{"patterns":[{"name":"constant.character.entity.html","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[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"}]},"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-single-quoted":{"name":"string.quoted.single.html","begin":"'","end":"'","patterns":[{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"tag-event-handlers":{"begin":"\\b(on):([a-zA-Z]+)=(\"|')","end":"\\3","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"entity.other.attribute-name.html"},"3":{"name":"string.quoted.double"}},"endCaptures":{"0":{"name":"string.quoted.double"}}},"tag-generic-attribute":{"name":"entity.other.attribute-name.html","match":"\\b([a-zA-Z\\-:]+)"},"tag-id-attribute":{"name":"meta.attribute-with-value.id.html","begin":"\\b(id)\\b\\s*(=)","end":"(?\u003c='|\")","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"}}}],"captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"tag-moustaches":{"begin":"\\b([a-zA-Z\\-:]+)=(\"|')(?=.*{)","end":"\\2","patterns":[{"begin":"{","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}}},{"name":"string.quoted.double","match":"(?!{)."}],"beginCaptures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"string.quoted.double"}},"endCaptures":{"0":{"name":"string.quoted.double"}}},"tag-moustaches-raw":{"begin":"\\b([a-zA-Z\\-:]+)=({)","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.definition.tag.begin.svelte"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}}},"tag-shorthand":{"match":"({)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*(})","captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"variable"},"3":{"name":"punctuation.definition.tag.end.svelte"}}},"tag-stuff":{"patterns":[{"include":"#tag-event-handlers"},{"include":"#tag-moustaches"},{"include":"#tag-moustaches-raw"},{"include":"#tag-shorthand"},{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]}}}
|
data/grammars/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.24.
|
1
|
+
7.24.1
|
data/lib/linguist/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.24.
|
1
|
+
7.24.1
|