github-linguist 9.6.0 → 9.7.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/grammars/gno.mod.json +1 -0
- data/grammars/source.abl.json +1 -1
- data/grammars/source.aleo.json +1 -0
- data/grammars/source.astro.json +1 -1
- data/grammars/source.baml.json +1 -1
- data/grammars/source.bird2.json +1 -0
- data/grammars/source.blueprint.json +1 -0
- data/grammars/source.bnd.json +1 -1
- data/grammars/source.bsl.json +1 -1
- data/grammars/source.carbon.json +1 -0
- data/grammars/source.cl.json +1 -1
- data/grammars/source.clar.json +1 -1
- data/grammars/source.clarion.json +1 -1
- data/grammars/source.cmd.json +1 -1
- data/grammars/source.comment-string.wesl.json +1 -1
- data/grammars/source.comment-string.wgsl.json +1 -1
- data/grammars/source.cs.json +1 -1
- data/grammars/source.csswg.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dds.dspf.json +1 -1
- data/grammars/source.dds.icff.json +1 -1
- data/grammars/source.dds.lf.json +1 -1
- data/grammars/source.dds.pf.json +1 -1
- data/grammars/source.dds.prtf.json +1 -1
- data/grammars/source.deq.json +1 -0
- data/grammars/source.fift.json +1 -0
- data/grammars/source.flix.json +1 -1
- data/grammars/source.fpp.json +1 -0
- data/grammars/source.func.json +1 -0
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gedcom.json +1 -1
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.gno.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.hack.json +1 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.hxml.json +1 -1
- data/grammars/source.ink.json +1 -1
- data/grammars/source.jac.json +1 -1
- data/grammars/source.jass.json +1 -0
- data/grammars/source.julia.json +1 -1
- data/grammars/source.kcl.json +1 -1
- data/grammars/source.koka.json +1 -1
- data/grammars/source.leo.json +1 -1
- data/grammars/source.lobster.json +1 -0
- data/grammars/source.logos.json +1 -1
- data/grammars/source.luau.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.mi.json +1 -1
- data/grammars/source.mojo.json +1 -1
- data/grammars/source.ms.json +1 -0
- data/grammars/source.nim.json +1 -1
- data/grammars/source.openqasm.json +1 -1
- data/grammars/source.opy.json +1 -1
- data/grammars/source.paperspecs.json +1 -0
- data/grammars/source.pl.json +1 -0
- data/grammars/source.pnlgrp.json +1 -1
- data/grammars/source.qsharp.json +1 -1
- data/grammars/source.rarlist.json +1 -0
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.rego.json +1 -1
- data/grammars/source.rhai.json +1 -0
- data/grammars/source.rpg.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.rust.json +1 -1
- data/grammars/source.scala.json +1 -1
- data/grammars/source.smithy.json +1 -1
- data/grammars/source.spicedb.json +1 -1
- data/grammars/source.stim.json +1 -0
- data/grammars/source.surrealql.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.tasm.json +1 -0
- data/grammars/source.tlb.json +1 -0
- data/grammars/source.tolk.json +1 -0
- data/grammars/source.ucode-template.json +1 -0
- data/grammars/source.ucode.json +1 -0
- data/grammars/source.vento.json +1 -1
- data/grammars/source.verse.json +1 -0
- data/grammars/source.vespaSchema.json +1 -0
- data/grammars/source.vhs.json +1 -0
- data/grammars/source.wgsl.json +1 -1
- data/grammars/source.yaml.salt.json +1 -1
- data/grammars/text.bbcode.json +1 -0
- data/grammars/text.html.handlebars.json +1 -1
- data/grammars/text.recfile.json +1 -0
- data/grammars/text.roff.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +19 -0
- data/lib/linguist/generated.rb +24 -0
- data/lib/linguist/generic.yml +1 -0
- data/lib/linguist/heuristics.yml +80 -5
- data/lib/linguist/language.rb +5 -9
- data/lib/linguist/languages.yml +231 -27
- data/lib/linguist/languages_data.rb +7663 -0
- data/lib/linguist/lazy_blob.rb +6 -1
- data/lib/linguist/samples.rb +4 -10
- data/lib/linguist/samples_data.rb +196100 -0
- metadata +31 -19
- data/grammars/markdown.bicep.codeblock.json +0 -1
- data/grammars/source.baml-jinja.json +0 -1
- data/lib/linguist/languages.json +0 -1
- data/lib/linguist/samples.json +0 -1
data/grammars/source.csswg.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Bikeshed","scopeName":"source.csswg","patterns":[{"name":"string.quoted.double.csswg","match":"\u003c\u003c[^\u003e]+\u003e\u003e"},{"name":"string.quoted.double.csswg","match":"\u003c\\{[^}]+\\}\u003e"},{"name":"string.quoted.double.csswg","begin":"{{","end":"\\}\\}"},{"name":"string.quoted.double.csswg","begin":"\\[=","end":"=]"},{"name":"constant.other.biblioLink.csswg","match":"\\[\\[[^\\]]+\\]\\]"},{"name":"constant.language.csswg","match":"\\[[^\\]]+\\]"},{"name":"string.quoted.double.csswg","begin":"''","end":"''"},{"name":"string.quoted.single.csswg","match":"(?\u003c!\\w)'[^']+'"},{"name":"invalid.illegal.heading.csswg","begin":"\u003ch\\d","end":"\u003c/h\\d\u003e"},{"name":"variable.parameter.definition.csswg","begin":"\u003cdfn[^\u003e]*\u003e","end":"\u003c/dfn\u003e"},{"name":"string.quoted.double.csswg","begin":"\u003ca[ \u003e]","end":"\u003c/a\u003e"},{"name":"entity.production.csswg","begin":"\u003cpre\\s+class=.*?prod.*?\u003e","end":"\u003c/pre\u003e","patterns":[{"include":"#production"},{"include":"#definition"}]},{"name":"entity.metadata.csswg","begin":"\u003cpre\\s+class=.*?metadata.*?\u003e","end":"\u003c/pre\u003e","patterns":[{"match":"^(?i)(Abstract|Advisement Class|Assertion Class|Assume Explicit For|At Risk|Audience|Block Elements|Boilerplate|Can I Use
|
|
1
|
+
{"name":"Bikeshed","scopeName":"source.csswg","patterns":[{"name":"string.quoted.double.csswg","match":"\u003c\u003c[^\u003e]+\u003e\u003e"},{"name":"string.quoted.double.csswg","match":"\u003c\\{[^}]+\\}\u003e"},{"name":"string.quoted.double.csswg","begin":"{{","end":"\\}\\}"},{"name":"string.quoted.double.csswg","begin":"\\[=","end":"=]"},{"name":"constant.other.biblioLink.csswg","match":"\\[\\[[^\\]]+\\]\\]"},{"name":"constant.language.csswg","match":"\\[[^\\]]+\\]"},{"name":"string.quoted.double.csswg","begin":"''","end":"''"},{"name":"string.quoted.single.csswg","match":"(?\u003c!\\w)'[^']+'"},{"name":"invalid.illegal.heading.csswg","begin":"\u003ch\\d","end":"\u003c/h\\d\u003e"},{"name":"variable.parameter.definition.csswg","begin":"\u003cdfn[^\u003e]*\u003e","end":"\u003c/dfn\u003e"},{"name":"string.quoted.double.csswg","begin":"\u003ca[ \u003e]","end":"\u003c/a\u003e"},{"name":"entity.production.csswg","begin":"\u003cpre\\s+class=.*?prod.*?\u003e","end":"\u003c/pre\u003e","patterns":[{"include":"#production"},{"include":"#definition"}]},{"name":"entity.metadata.csswg","begin":"\u003cpre\\s+class=.*?metadata.*?\u003e","end":"\u003c/pre\u003e","patterns":[{"match":"^(?i)(Abstract|Advisement Class|Assertion Class|Assume Explicit For|At Risk|Audience|Block Elements|Boilerplate|Can I Use URL|Canonical URL|Complain About|Custom Warning Text|Custom Warning Title|Dark Mode|Date|Deadline|Default Biblio Display|Default Biblio Status|Default Highlight|Default Ref Status|Die On|Die When|ED|Editor|Editor Term|Expires|External Infotrees|Favicon|Force Crossorigin|Former Editor|Group|H1|Ignore Can I Use Url Failure|Ignore MDN Failure|Ignored Terms|Ignored Vars|Image Auto Size|Implementation Report|Include Can I Use Panels|Include Mdn Panels|Indent|Indent Info|Infer Css Dfns|Informative Classes|Inline Github Issues|Inline Tag Command|Issue Class|Issue Tracker Template|Issue Tracking|Level|Line Numbers|Link Checker Timeout|Link Defaults|Local Boilerplate|Logo|Mailing List|Mailing List Archives|Markup Shorthands|Max ToC Depth|Metadata Include|Metadata Order|No Abstract|No Editor|Note Class|Opaque Elements|Org|Prepare For Tr|Previous Version|Remove Multiple Links|Repository|Required Ids|Revision|Shortname|Slim Build Artifact|Status|Status Text|Test Suite|Text Macro|Title|Toggle Diffs|TR|Tracking Vector Alt Text|Tracking Vector Class|Tracking Vector Image|Tracking Vector Image Height|Tracking Vector Image Width|Tracking Vector Title|Translate Ids|Translation|URL|Use Dfn Panels|Version History|Warning|Work Status|Wpt Display|Wpt Path Prefix|)\\s*:\\s*(.*)$","captures":{"1":{"name":"keyword.other.knownKeyName.csswg"},"2":{"name":"string.unquoted.csswg"}}},{"match":"^\\s*(![\\w -]+)\\s*:\\s*(.*)$","captures":{"1":{"name":"variable.other.customKeyName.csswg"},"2":{"name":"string.unquoted.csswg"}}},{"match":"^\\s*([\\w -]+)\\s*:\\s*.*$","captures":{"1":{"name":"invalid.illegal.unknownKeyName.csswg"}}}]},{"name":"entity.propdef.csswg","begin":"\u003cpre\\s+class=.*?(propdef|descdef).*?\u003e","end":"\u003c/pre\u003e","patterns":[{"match":"^\\s*(?i)(Name|Value|For|Initial|Applies to|Inherited|Percentages|Media|Computed value|Animation type|Canonical order|Logical property group)\\s*:\\s*(.*)$","captures":{"1":{"name":"keyword.other.keyName.csswg"},"2":{"name":"string.unquoted.csswg"}}},{"match":"^\\s*([\\w -]+)\\s*:\\s*(.*)$","captures":{"1":{"name":"variable.other.unknownKeyName.csswg"},"2":{"name":"string.unquoted.csswg"}}}]},{"name":"entity.name.tag.csswg","begin":"\u003c/?[a-z]","end":"\u003e"}],"repository":{"definition":{"name":"variable.parameter.definition.csswg","begin":"\u003cdfn( |\u003e)","end":"\u003c/dfn\u003e"},"production":{"name":"constant.other.production.csswg","match":"\u003c\u003c[^\u003e]+\u003e\u003e"}}}
|
data/grammars/source.curlrc.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":".curlrc","scopeName":"source.curlrc","patterns":[{"include":"#main"}],"repository":{"auth":{"patterns":[{"match":"([^\\s:;]+)(:)([^\\s=:;]*)","captures":{"1":{"name":"constant.other.auth-info.curlrc"},"2":{"patterns":[{"include":"etc#kolon"}]},"3":{"name":"constant.other.auth-info.curlrc"}}},{"match":"(:)([^\\s:;]*)","captures":{"1":{"patterns":[{"include":"etc#kolon"}]},"2":{"name":"constant.other.auth-info.curlrc"}}}]},"authProtocol":{"match":"(?:\\G|^)([^\\\\:\\s/]*)(://|:)","captures":{"1":{"name":"entity.other.protocol.curlrc"},"2":{"name":"keyword.operator.protocol.separator.curlrc"}}},"autoRefer":{"match":"(;)(auto)\\b","captures":{"1":{"name":"punctuation.separator.key-value.semicolon.curlrc"},"2":{"name":"variable.assignment.parameter.name.curlrc"}}},"comment":{"name":"comment.line.number-sign.curlrc","begin":"(?:^|(?\u003c=[ \\t\\xA0\"]))#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.curlrc"}}},"header":{"match":"(?:\\G|^)\\s*([-A-Za-z0-9]+)\\s*(?:(:)\\s*(.*)|(;))","captures":{"1":{"name":"entity.name.header.curlrc"},"2":{"patterns":[{"include":"etc#kolon"}]},"3":{"name":"string.unquoted.header-value.curlrc"},"4":{"name":"punctuation.terminator.statement.semicolon.curlrc"}}},"longOptions":{"patterns":[{"name":"meta.option.long.curlrc","match":"(?x)\n(?:\\G|^|(?\u003c=[ \\t])) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_no_parameter\u003e\n\t\tanyauth\n\t|\tappend\n\t|\tbasic\n\t|\tca-native\n\t|\tcert-status\n\t|\tcompressed-ssh\n\t|\tcompressed\n\t|\tcreate-dirs\n\t|\tcrlf\n\t|\tdigest\n\t|\tdisable-eprt\n\t|\tdisable-epsv\n\t|\tdisable\n\t|\tdisallow-username-in-url\n\t|\tdoh-cert-status\n\t|\tdoh-insecure\n\t|\tdump-ca-embed\n\t|\tfail-early\n\t|\tfail-with-body\n\t|\tfail\n\t|\tfalse-start\n\t|\tfollow\n\t|\tform-escape\n\t|\tftp-create-dirs\n\t|\tftp-pasv\n\t|\tftp-pret\n\t|\tftp-skip-pasv-ip\n\t|\tftp-ssl-ccc\n\t|\tftp-ssl-control\n\t|\tget\n\t|\tgloboff\n\t|\thaproxy-protocol\n\t|\thead\n\t|\thttp0.9\n\t|\thttp1.0\n\t|\thttp1.1\n\t|\thttp2-prior-knowledge\n\t|\thttp2\n\t|\thttp3-only\n\t|\thttp3\n\t|\tignore-content-length\n\t|\tinclude\n\t|\tinsecure\n\t|\tipv4\n\t|\tipv6\n\t|\tjunk-session-cookies\n\t|\tlist-only\n\t|\tlocation-trusted\n\t|\tlocation\n\t|\tmail-rcpt-allowfails\n\t|\tmanual\n\t|\tmetalink\n\t|\tnegotiate\n\t|\tnetrc-optional\n\t|\tnetrc\n\t|\tnext\n\t|\tno-alpn\n\t|\tno-buffer\n\t|\tno-clobber\n\t|\tno-keepalive\n\t|\tno-npn\n\t|\tno-progress-meter\n\t|\tno-sessionid\n\t|\tmptcp\n\t|\tntlm-wb\n\t|\tntlm\n\t|\tout-null\n\t|\tparallel-immediate\n\t|\tparallel\n\t|\tpath-as-is\n\t|\tpost301\n\t|\tpost302\n\t|\tpost303\n\t|\tprogress-bar\n\t|\tproxy-anyauth\n\t|\tproxy-basic\n\t|\tproxy-ca-native\n\t|\tproxy-digest\n\t|\tproxy-http[23]\n\t|\tproxy-insecure\n\t|\tproxy-negotiate\n\t|\tproxy-ntlm\n\t|\tproxy-ssl-allow-beast\n\t|\tproxy-ssl-auto-client-cert\n\t|\tproxy-tlsv1\n\t|\tproxytunnel\n\t|\traw\n\t|\tremote-header-name\n\t|\tremote-name-all\n\t|\tremote-name\n\t|\tremote-time\n\t|\tremove-on-error\n\t|\tretry-all-errors\n\t|\tretry-connrefused\n\t|\tsasl-ir\n\t|\tshow-error\n\t|\tshow-headers\n\t|\tsilent\n\t|\tskip-existing\n\t|\tsocks5-basic\n\t|\tsocks5-gssapi-nec\n\t|\tsocks5-gssapi\n\t|\tssl-allow-beast\n\t|\tssl-auto-client-cert\n\t|\tssl-no-revoke\n\t|\tssl-reqd\n\t|\tssl-revoke-best-effort\n\t|\tsslv2\n\t|\tsslv3\n\t|\tssl\n\t|\tstyled-output\n\t|\tsuppress-connect-headers\n\t|\ttcp-fastopen\n\t|\ttcp-nodelay\n\t|\ttftp-no-options\n\t|\ttlsv1.0\n\t|\ttlsv1.1\n\t|\ttlsv1.2\n\t|\ttlsv1.3\n\t|\ttlsv1\n\t|\ttls-earlydata\n\t|\ttr-encoding\n\t|\ttrace-ids\n\t|\ttrace-time\n\t|\tuse-ascii\n\t|\tverbose\n\t|\tversion\n\t|\txattr\n\t)\n)\n(?=\\s|$)","captures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_urls\u003e\n\t\tdns-ipv4-addr\n\t|\tdns-ipv6-addr\n\t|\tdns-servers\n\t|\tdoh-url\n\t|\thaproxy-clientip\n\t|\tipfs-gateway\n\t|\tmail-auth\n\t|\tmail-from\n\t|\tmail-rcpt\n\t|\tnoproxy\n\t|\treferer\n\t|\turl\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|(?=$)))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#url"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"name":"string.unquoted.curlrc","patterns":[{"include":"#url"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_headers\u003e\n\t\theader\n\t|\tproxy-header\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|(?=$)))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#header"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#header"},{"include":"etc#bareword"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_form_data\u003e\n\t\tcookie\n\t|\tform-string\n\t|\tform\n\t|\ttelnet-option\n\t|\tvariable\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|(?=$)))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#params"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#params"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_protocols\u003e\n\t\tproto-default\n\t|\tproto-redir\n\t|\tproto\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#protocols"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#protocols"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_port\u003e\n\t\tftp-port\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"name":"constant.other.port-address.curlrc","patterns":[{"include":"etc#esc"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"name":"constant.other.port-address.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_md5\u003e\n\t\thostpubmd5\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"name":"constant.other.md5.checksum.curlrc","patterns":[{"include":"etc#esc"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"name":"constant.other.md5.checksum.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_range\u003e\n\t\tlocal-port\n\t|\trange\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#range"},{"include":"etc#esc"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#range"},{"include":"etc#bareword"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:](?=\\s)) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_kv_colon\u003e\n\t\taws-sigv4\n\t|\tcert\n\t|\tconnect-to\n\t|\tpreproxy\n\t|\tproxy-cert\n\t|\tproxy-user\n\t|\tproxy1.0\n\t|\tproxy\n\t|\tresolve\n\t|\tsocks4a\n\t|\tsocks4\n\t|\tsocks5-hostname\n\t|\tsocks5\n\t|\tuser\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#auth"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#auth"},{"include":"etc#bareword"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:](?=\\s)) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_string\u003e\n\t\tabstract-unix-socket\n\t|\talt-svc\n\t|\tcacert\n\t|\tcapath\n\t|\tcert-type\n\t|\tciphers\n\t|\tconfig\n\t|\tcookie-jar\n\t|\tcrlfile\n\t|\tcurves\n\t|\tdata-ascii\n\t|\tdata-binary\n\t|\tdata-raw\n\t|\tdata-urlencode\n\t|\tdata\n\t|\tdelegation\n\t|\tdns-interface\n\t|\tdump-header\n\t|\tech\n\t|\tegd-file\n\t|\tengine\n\t|\tetag-compare\n\t|\tetag-save\n\t|\tftp-account\n\t|\tftp-alternative-to-user\n\t|\tftp-method\n\t|\tftp-ssl-ccc-mode\n\t|\thappy-eyeballs-timeout-ms\n\t|\thelp\n\t|\thostpubsha256\n\t|\thsts\n\t|\tinterface\n\t|\tjson\n\t|\tkey-type\n\t|\tkey\n\t|\tknownhosts\n\t|\tkrb\n\t|\tlibcurl\n\t|\tlogin-options\n\t|\tnetrc-file\n\t|\toauth2-bearer\n\t|\toutput-dir\n\t|\toutput\n\t|\tpass\n\t|\tpinnedpubkey\n\t|\tproxy-cacert\n\t|\tproxy-capath\n\t|\tproxy-cert-type\n\t|\tproxy-ciphers\n\t|\tproxy-crlfile\n\t|\tproxy-key-type\n\t|\tproxy-key\n\t|\tproxy-pass\n\t|\tproxy-pinnedpubkey\n\t|\tproxy-service-name\n\t|\tproxy-tls13-ciphers\n\t|\tproxy-tlsauthtype\n\t|\tproxy-tlspassword\n\t|\tproxy-tlsuser\n\t|\tpubkey\n\t|\tquote\n\t|\trandom-file\n\t|\trequest-target\n\t|\trequest\n\t|\tsasl-authzid\n\t|\tservice-name\n\t|\tsigalgs\n\t|\tsocks5-gssapi-service\n\t|\tssl-sessions\n\t|\tstderr\n\t|\ttls-max\n\t|\ttls13-ciphers\n\t|\ttlsauthtype\n\t|\ttlspassword\n\t|\ttlsuser\n\t|\ttrace-ascii\n\t|\ttrace-config\n\t|\ttrace\n\t|\tunix-socket\n\t|\tupload-file\n\t|\tupload-flags\n\t|\turl-query\n\t|\tuser-agent\n\t|\twrite-out\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:(=)?|(?:([-A-Za-z0-9%_]+)(=)?)?([@\u003c]))?(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"keyword.operator.encoding-modifier.curlrc"},"2":{"name":"entity.name.form-field.curlrc"},"3":{"patterns":[{"include":"etc#eql"}]},"4":{"name":"keyword.operator.source-modifier.curlrc"},"5":{"name":"string.quoted.double.curlrc"},"6":{"name":"punctuation.definition.string.begin.curlrc"},"7":{"patterns":[{"include":"etc#esc"}]},"8":{"name":"punctuation.definition.string.end.curlrc"},"9":{"name":"string.unquoted.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:])\n\\s*\n(\n\t(--)?\n\t(?\u003coptlist_numeric\u003e\n\t\tconnect-timeout\n\t|\tcontinue-at\n\t|\tcreate-file-mode\n\t|\texpect100-timeout\n\t|\tip-tos\n\t|\tkeepalive-cnt\n\t|\tkeepalive-time\n\t|\tlimit-rate\n\t|\tmax-filesize\n\t|\tmax-redirs\n\t|\tmax-time\n\t|\tparallel-max-host\n\t|\tparallel-max\n\t|\trate\n\t|\tretry-delay\n\t|\tretry-max-time\n\t|\tretry\n\t|\tspeed-limit\n\t|\tspeed-time\n\t|\ttftp-blksize\n\t|\ttime-cond\n\t|\tvlan-priority\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"etc#num"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"etc#num"},{"include":"etc#bareword"}]}}}]},"main":{"patterns":[{"include":"#comment"},{"include":"#shortOptions"},{"include":"#longOptions"}]},"params":{"patterns":[{"include":"#autoRefer"},{"name":"keyword.operator.encoding-modifier.curlrc","match":"(?:\\G|^|(?\u003c=\\G\"|^\"))="},{"match":"(?:\\G|^|(?\u003c=\\G\"|^\"))(;)([^\\s=;\"]+(?=\"?(?:\\s|$)))?","captures":{"1":{"name":"punctuation.separator.key-value.semicolon.curlrc"},"2":{"name":"variable.assignment.parameter.name.curlrc"}}},{"match":"(?:\\G|^|(?\u003c=\\G\"|^\"))(?:([-A-Za-z0-9%_]+)(=)?)?([@\u003c])","captures":{"1":{"name":"entity.name.form-field.curlrc"},"2":{"patterns":[{"include":"etc#eql"}]},"3":{"name":"keyword.operator.source-modifier.curlrc"}}},{"name":"meta.parameter.curlrc","match":"([^\\s=;]+)(=)([^\\s=;]*)(;)?","captures":{"1":{"name":"variable.assignment.parameter.name.curlrc"},"2":{"patterns":[{"include":"etc#eql"}]},"3":{"name":"constant.other.parameter.value.curlrc"},"4":{"name":"punctuation.separator.key-value.semicolon.curlrc"}}},{"match":"(?\u003c=@)(\"(?:[^\\\\\"]|\\\\.)++\"|(?:[^\"\\s;\\\\]|\\\\.)++)(?:(;)|(?=$|\\s))","captures":{"1":{"name":"variable.assignment.parameter.name.curlrc","patterns":[{"include":"etc#esc"}]},"2":{"name":"punctuation.separator.key-value.semicolon.curlrc"}}},{"include":"etc#esc"},{"include":"etc#bareword"}]},"protocols":{"patterns":[{"name":"constant.other.protocol-name.curlrc","match":"[^\\s,+=-]+"},{"name":"keyword.control.permit-protocol.curlrc","match":"\\+"},{"name":"keyword.control.deny-protocol.curlrc","match":"-"},{"name":"keyword.control.permit-protocol.only.curlrc","match":"="},{"include":"etc#comma"}]},"range":{"patterns":[{"name":"meta.byte-range.curlrc","match":"([0-9]+)(-)([0-9]+)?|(-)([0-9]+)","captures":{"1":{"name":"constant.numeric.integer.int.decimal.dec.range.start.curlrc"},"2":{"name":"punctuation.separator.range.dash.curlrc"},"3":{"name":"constant.numeric.integer.int.decimal.dec.range.end.curlrc"},"4":{"name":"punctuation.separator.range.dash.curlrc"},"5":{"name":"constant.numeric.integer.int.decimal.dec.range.end.curlrc"}}},{"include":"etc#comma"},{"include":"etc#int"}]},"separators":{"patterns":[{"include":"etc#eql"},{"include":"etc#kolon"}]},"shortOptions":{"patterns":[{"name":"meta.option.short.curlrc","begin":"^\\s*((-)[:#012346BGIJLMNOQRSVafghijklnpqsv]*[ACDEFHKPQTUXYbcdehmortuwxyz])","end":"(?x)\n$\n|\n\n# Numbers\n(?\u003c=(?#optlist_numeric)[CYmyz])\n\\G (?:(?! )\\s)*\n([-+]?[0-9.]+)\n\n|\n\n# Byte range\n(?\u003c=(?#optlist_range)r)\n\\G (?:(?! )\\s)*\n([-0-9,]+)\n\n|\n\n# “key=value” pairs\n(?\u003c=(?#optlist_form_data)[Fbt])\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# “key:value” pairs\n(?\u003c=(?#optlist_kv_colon)[EUux])\n\\G (?:(?! )\\s)*\n((?:[^\\\\:\\s/]| )*://)?\n(\n\t(?:[^\\\\:\\s]|\\\\.| )+\n\t(?::(?:[^\\\\:\\s]|\\\\.| )+)*\n\t:?\n)\n\n|\n\n# Headers\n(?\u003c=(?#optlist_headers)H)\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# URLs\n(?\u003c=(?#optlist_urls)e)\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# Port address\n(?\u003c=(?#optlist_port)P)\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# Anything else\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)","beginCaptures":{"1":{"name":"entity.short.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.short.option.curlrc"}},"endCaptures":{"1":{"patterns":[{"include":"etc#num"}]},"10":{"name":"meta.http-headers.curlrc"},"11":{"name":"punctuation.definition.string.begin.curlrc"},"12":{"patterns":[{"include":"#header"}]},"13":{"name":"punctuation.definition.string.end.curlrc"},"14":{"patterns":[{"include":"#header"}]},"15":{"name":"meta.url-string.curlrc"},"16":{"name":"punctuation.definition.string.begin.curlrc"},"17":{"patterns":[{"include":"#url"}]},"18":{"name":"punctuation.definition.string.end.curlrc"},"19":{"patterns":[{"include":"#url"}]},"2":{"patterns":[{"include":"#range"}]},"20":{"name":"string.quoted.double.curlrc"},"21":{"name":"punctuation.definition.string.begin.curlrc"},"22":{"name":"constant.other.port-address.curlrc","patterns":[{"include":"etc#esc"}]},"23":{"name":"punctuation.definition.string.end.curlrc"},"24":{"name":"constant.other.port-address.curlrc"},"25":{"name":"string.quoted.double.curlrc"},"26":{"name":"punctuation.definition.string.begin.curlrc"},"27":{"patterns":[{"include":"etc#esc"}]},"28":{"name":"punctuation.definition.string.end.curlrc"},"29":{"name":"string.unquoted.curlrc"},"3":{"name":"meta.parameter-string.curlrc"},"4":{"name":"punctuation.definition.string.begin.curlrc"},"5":{"patterns":[{"include":"#params"}]},"6":{"name":"punctuation.definition.string.end.curlrc"},"7":{"patterns":[{"include":"#params"}]},"8":{"patterns":[{"include":"#authProtocol"}]},"9":{"patterns":[{"include":"#auth"}]}}},{"name":"meta.option.short.curlrc","match":"^\\s*((-)(?#optlist_no_parameter)[#012346:BGIJLMNORSVZafgijklnpqsv]+)","captures":{"1":{"name":"entity.short.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.short.option.curlrc"}}}]},"string":{"name":"string.quoted.double.curlrc","begin":"\"","end":"\"|(?=$)","patterns":[{"name":"constant.character.escape.backslash.curlrc","match":"(\\\\)[\\\\\"tnrv]","captures":{"1":{"name":"punctuation.definition.escape.backslash.curlrc"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.curlrc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.curlrc"}}},"url":{"patterns":[{"include":"#autoRefer"},{"include":"etc#comma"},{"match":"(?\u003c=\\G\"|^\")((?:[^\"\\\\]|\\\\.)*)(?=$|\"|;)|(?:\\G(?\u003c!\")|^)([^\\s,]+?)(?=$|\\s|;|,)","captures":{"1":{"patterns":[{"include":"etc#url"},{"include":"#urlNoSchema"}]},"2":{"patterns":[{"include":"etc#url"},{"include":"#urlNoSchema"}]}}},{"include":"#params"},{"include":"etc#bareword"}]},"urlNoSchema":{"match":"(?:\\G|^)\\s*([-a-zA-Z0-9]+(?:\\.|@)[-a-zA-Z0-9]+.*)\\s*","captures":{"1":{"name":"constant.other.reference.link.underline.url.curlrc"}}}}}
|
|
1
|
+
{"name":".curlrc","scopeName":"source.curlrc","patterns":[{"include":"#main"}],"repository":{"auth":{"patterns":[{"match":"([^\\s:;]+)(:)([^\\s=:;]*)","captures":{"1":{"name":"constant.other.auth-info.curlrc"},"2":{"patterns":[{"include":"etc#kolon"}]},"3":{"name":"constant.other.auth-info.curlrc"}}},{"match":"(:)([^\\s:;]*)","captures":{"1":{"patterns":[{"include":"etc#kolon"}]},"2":{"name":"constant.other.auth-info.curlrc"}}}]},"authProtocol":{"match":"(?:\\G|^)([^\\\\:\\s/]*)(://|:)","captures":{"1":{"name":"entity.other.protocol.curlrc"},"2":{"name":"keyword.operator.protocol.separator.curlrc"}}},"autoRefer":{"match":"(;)(auto)\\b","captures":{"1":{"name":"punctuation.separator.key-value.semicolon.curlrc"},"2":{"name":"variable.assignment.parameter.name.curlrc"}}},"comment":{"name":"comment.line.number-sign.curlrc","begin":"(?:^|(?\u003c=[ \\t\\xA0\"]))#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.curlrc"}}},"header":{"match":"(?:\\G|^)\\s*([-A-Za-z0-9]+)\\s*(?:(:)\\s*(.*)|(;))","captures":{"1":{"name":"entity.name.header.curlrc"},"2":{"patterns":[{"include":"etc#kolon"}]},"3":{"name":"string.unquoted.header-value.curlrc"},"4":{"name":"punctuation.terminator.statement.semicolon.curlrc"}}},"hexKey":{"patterns":[{"match":"(?:^|\\G)\\s*(@)((?:[^\"\\s\\\\]|\\\\.)++)","captures":{"1":{"name":"keyword.operator.source-modifier.curlrc"},"2":{"name":"string.unquoted.filename.curlrc"}}},{"match":"(?:^|\\G)\\s*(\")(@)((?:[^\\\\\"]|\\\\.)++)(\")","captures":{"1":{"name":"punctuation.definition.string.begin.curlrc"},"2":{"name":"keyword.operator.source-modifier.curlrc"},"3":{"name":"string.quoted.double.filename.curlrc"},"4":{"name":"punctuation.definition.string.end.curlrc"}}},{"include":"etc#hexNoSign"}]},"longOptions":{"patterns":[{"name":"meta.option.long.curlrc","match":"(?x)\n(?:\\G|^|(?\u003c=[ \\t])) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_no_parameter\u003e\n\t\tanyauth\n\t|\tappend\n\t|\tbasic\n\t|\tca-native\n\t|\tcert-status\n\t|\tcompressed-ssh\n\t|\tcompressed\n\t|\tcreate-dirs\n\t|\tcrlf\n\t|\tdigest\n\t|\tdisable-eprt\n\t|\tdisable-epsv\n\t|\tdisable\n\t|\tdisallow-username-in-url\n\t|\tdoh-cert-status\n\t|\tdoh-insecure\n\t|\tdump-ca-embed\n\t|\tfail-early\n\t|\tfail-with-body\n\t|\tfail\n\t|\tfalse-start\n\t|\tfollow\n\t|\tform-escape\n\t|\tftp-create-dirs\n\t|\tftp-pasv\n\t|\tftp-pret\n\t|\tftp-skip-pasv-ip\n\t|\tftp-ssl-ccc\n\t|\tftp-ssl-control\n\t|\tget\n\t|\tgloboff\n\t|\thaproxy-protocol\n\t|\thead\n\t|\thttp0.9\n\t|\thttp1.0\n\t|\thttp1.1\n\t|\thttp2-prior-knowledge\n\t|\thttp2\n\t|\thttp3-only\n\t|\thttp3\n\t|\tignore-content-length\n\t|\tinclude\n\t|\tinsecure\n\t|\tipv4\n\t|\tipv6\n\t|\tjunk-session-cookies\n\t|\tlist-only\n\t|\tlocation-trusted\n\t|\tlocation\n\t|\tmail-rcpt-allowfails\n\t|\tmanual\n\t|\tmetalink\n\t|\tnegotiate\n\t|\tnetrc-optional\n\t|\tnetrc\n\t|\tnext\n\t|\tno-alpn\n\t|\tno-buffer\n\t|\tno-clobber\n\t|\tno-keepalive\n\t|\tno-npn\n\t|\tno-progress-meter\n\t|\tno-sessionid\n\t|\tmptcp\n\t|\tntlm-wb\n\t|\tntlm\n\t|\tout-null\n\t|\tparallel-immediate\n\t|\tparallel\n\t|\tpath-as-is\n\t|\tpost301\n\t|\tpost302\n\t|\tpost303\n\t|\tprogress-bar\n\t|\tproxy-anyauth\n\t|\tproxy-basic\n\t|\tproxy-ca-native\n\t|\tproxy-digest\n\t|\tproxy-http[23]\n\t|\tproxy-insecure\n\t|\tproxy-negotiate\n\t|\tproxy-ntlm\n\t|\tproxy-ssl-allow-beast\n\t|\tproxy-ssl-auto-client-cert\n\t|\tproxy-tlsv1\n\t|\tproxytunnel\n\t|\traw\n\t|\tremote-header-name\n\t|\tremote-name-all\n\t|\tremote-name\n\t|\tremote-time\n\t|\tremove-on-error\n\t|\tretry-all-errors\n\t|\tretry-connrefused\n\t|\tsasl-ir\n\t|\tshow-error\n\t|\tshow-headers\n\t|\tsilent\n\t|\tskip-existing\n\t|\tsocks5-basic\n\t|\tsocks5-gssapi-nec\n\t|\tsocks5-gssapi\n\t|\tssl-allow-beast\n\t|\tssl-auto-client-cert\n\t|\tssl-no-revoke\n\t|\tssl-reqd\n\t|\tssl-revoke-best-effort\n\t|\tsslv2\n\t|\tsslv3\n\t|\tssl\n\t|\tstyled-output\n\t|\tsuppress-connect-headers\n\t|\ttcp-fastopen\n\t|\ttcp-nodelay\n\t|\ttftp-no-options\n\t|\ttlsv1.0\n\t|\ttlsv1.1\n\t|\ttlsv1.2\n\t|\ttlsv1.3\n\t|\ttlsv1\n\t|\ttls-earlydata\n\t|\ttr-encoding\n\t|\ttrace-ids\n\t|\ttrace-time\n\t|\tuse-ascii\n\t|\tverbose\n\t|\tversion\n\t|\txattr\n\t)\n)\n(?=\\s|$)","captures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_urls\u003e\n\t\tdns-ipv4-addr\n\t|\tdns-ipv6-addr\n\t|\tdns-servers\n\t|\tdoh-url\n\t|\thaproxy-clientip\n\t|\tipfs-gateway\n\t|\tmail-auth\n\t|\tmail-from\n\t|\tmail-rcpt\n\t|\tnoproxy\n\t|\treferer\n\t|\turl\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|(?=$)))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#url"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"name":"string.unquoted.curlrc","patterns":[{"include":"#url"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_headers\u003e\n\t\theader\n\t|\tproxy-header\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|(?=$)))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#header"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#header"},{"include":"etc#bareword"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_hexkey\u003e\n\t\thttpsig-key\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|(?=$)))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#hexKey"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#hexKey"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_form_data\u003e\n\t\tcookie\n\t|\tform-string\n\t|\tform\n\t|\ttelnet-option\n\t|\tvariable\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|(?=$)))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#params"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#params"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_protocols\u003e\n\t\tproto-default\n\t|\tproto-redir\n\t|\tproto\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#protocols"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#protocols"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_port\u003e\n\t\tftp-port\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"name":"constant.other.port-address.curlrc","patterns":[{"include":"etc#esc"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"name":"constant.other.port-address.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_md5\u003e\n\t\thostpubmd5\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"name":"constant.other.md5.checksum.curlrc","patterns":[{"include":"etc#esc"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"name":"constant.other.md5.checksum.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:]) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_range\u003e\n\t\tlocal-port\n\t|\trange\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#range"},{"include":"etc#esc"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#range"},{"include":"etc#bareword"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:](?=\\s)) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_kv_colon\u003e\n\t\taws-sigv4\n\t|\tcert\n\t|\tconnect-to\n\t|\tpreproxy\n\t|\tproxy-cert\n\t|\tproxy-user\n\t|\tproxy1.0\n\t|\tproxy\n\t|\tresolve\n\t|\tsocks4a\n\t|\tsocks4\n\t|\tsocks5-hostname\n\t|\tsocks5\n\t|\tuser\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"#auth"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"#auth"},{"include":"etc#bareword"}]}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:](?=\\s)) \\s*\n(\n\t(--)?\n\t(?\u003coptlist_string\u003e\n\t\tabstract-unix-socket\n\t|\talt-svc\n\t|\tcacert\n\t|\tcapath\n\t|\tcert-type\n\t|\tciphers\n\t|\tconfig\n\t|\tcookie-jar\n\t|\tcrlfile\n\t|\tcurves\n\t|\tdata-ascii\n\t|\tdata-binary\n\t|\tdata-raw\n\t|\tdata-urlencode\n\t|\tdata\n\t|\tdelegation\n\t|\tdns-interface\n\t|\tdump-header\n\t|\tech\n\t|\tegd-file\n\t|\tengine\n\t|\tetag-compare\n\t|\tetag-save\n\t|\tftp-account\n\t|\tftp-alternative-to-user\n\t|\tftp-method\n\t|\tftp-ssl-ccc-mode\n\t|\thappy-eyeballs-timeout-ms\n\t|\thelp\n\t|\thostpubsha256\n\t|\thsts\n\t|\thttpsig-algo\n\t|\thttpsig-headers\n\t|\thttpsig-keyid\n\t|\tinterface\n\t|\tjson\n\t|\tkey-type\n\t|\tkey\n\t|\tknownhosts\n\t|\tkrb\n\t|\tlibcurl\n\t|\tlogin-options\n\t|\tnetrc-file\n\t|\toauth2-bearer\n\t|\toutput-dir\n\t|\toutput\n\t|\tpass\n\t|\tpinnedpubkey\n\t|\tproxy-cacert\n\t|\tproxy-capath\n\t|\tproxy-cert-type\n\t|\tproxy-ciphers\n\t|\tproxy-crlfile\n\t|\tproxy-key-type\n\t|\tproxy-key\n\t|\tproxy-pass\n\t|\tproxy-pinnedpubkey\n\t|\tproxy-service-name\n\t|\tproxy-tls13-ciphers\n\t|\tproxy-tlsauthtype\n\t|\tproxy-tlspassword\n\t|\tproxy-tlsuser\n\t|\tpubkey\n\t|\tquote\n\t|\trandom-file\n\t|\trequest-target\n\t|\trequest\n\t|\tsasl-authzid\n\t|\tservice-name\n\t|\tsigalgs\n\t|\tsocks5-gssapi-service\n\t|\tssl-sessions\n\t|\tstderr\n\t|\ttls-max\n\t|\ttls13-ciphers\n\t|\ttlsauthtype\n\t|\ttlspassword\n\t|\ttlsuser\n\t|\ttrace-ascii\n\t|\ttrace-config\n\t|\ttrace\n\t|\tunix-socket\n\t|\tupload-file\n\t|\tupload-flags\n\t|\turl-query\n\t|\tuser-agent\n\t|\twrite-out\n\t)\n)\n(?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:(=)?|(?:([-A-Za-z0-9%_]+)(=)?)?([@\u003c]))?(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"keyword.operator.encoding-modifier.curlrc"},"2":{"name":"entity.name.form-field.curlrc"},"3":{"patterns":[{"include":"etc#eql"}]},"4":{"name":"keyword.operator.source-modifier.curlrc"},"5":{"name":"string.quoted.double.curlrc"},"6":{"name":"punctuation.definition.string.begin.curlrc"},"7":{"patterns":[{"include":"etc#esc"}]},"8":{"name":"punctuation.definition.string.end.curlrc"},"9":{"name":"string.unquoted.curlrc"}}},{"name":"meta.option.long.curlrc","begin":"(?x) (?:\\G|^|(?\u003c=[ \\t]))\n(?!\\s*--\\w[-\\w]*\\s*[=:])\n\\s*\n(\n\t(--)?\n\t(?\u003coptlist_numeric\u003e\n\t\tconnect-timeout\n\t|\tcontinue-at\n\t|\tcreate-file-mode\n\t|\texpect100-timeout\n\t|\tip-tos\n\t|\tkeepalive-cnt\n\t|\tkeepalive-time\n\t|\tlimit-rate\n\t|\tmax-filesize\n\t|\tmax-redirs\n\t|\tmax-time\n\t|\tparallel-max-host\n\t|\tparallel-max\n\t|\trate\n\t|\tretry-delay\n\t|\tretry-max-time\n\t|\tretry\n\t|\tspeed-limit\n\t|\tspeed-time\n\t|\ttftp-blksize\n\t|\ttime-cond\n\t|\tvlan-priority\n\t)\n) (?:\\s*(=|:)|(?=\\s|$))","end":"$|(?:((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))|([^\\s]+))","beginCaptures":{"1":{"name":"entity.long.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.long.option.curlrc"},"4":{"patterns":[{"include":"#separators"}]}},"endCaptures":{"1":{"name":"string.quoted.double.curlrc"},"2":{"name":"punctuation.definition.string.begin.curlrc"},"3":{"patterns":[{"include":"etc#num"},{"include":"etc#bareword"}]},"4":{"name":"punctuation.definition.string.end.curlrc"},"5":{"patterns":[{"include":"etc#num"},{"include":"etc#bareword"}]}}}]},"main":{"patterns":[{"include":"#comment"},{"include":"#shortOptions"},{"include":"#longOptions"}]},"params":{"patterns":[{"include":"#autoRefer"},{"name":"keyword.operator.encoding-modifier.curlrc","match":"(?:\\G|^|(?\u003c=\\G\"|^\"))="},{"match":"(?:\\G|^|(?\u003c=\\G\"|^\"))(;)([^\\s=;\"]+(?=\"?(?:\\s|$)))?","captures":{"1":{"name":"punctuation.separator.key-value.semicolon.curlrc"},"2":{"name":"variable.assignment.parameter.name.curlrc"}}},{"match":"(?:\\G|^|(?\u003c=\\G\"|^\"))(?:([-A-Za-z0-9%_]+)(=)?)?([@\u003c])","captures":{"1":{"name":"entity.name.form-field.curlrc"},"2":{"patterns":[{"include":"etc#eql"}]},"3":{"name":"keyword.operator.source-modifier.curlrc"}}},{"name":"meta.parameter.curlrc","match":"([^\\s=;]+)(=)([^\\s=;]*)(;)?","captures":{"1":{"name":"variable.assignment.parameter.name.curlrc"},"2":{"patterns":[{"include":"etc#eql"}]},"3":{"name":"constant.other.parameter.value.curlrc"},"4":{"name":"punctuation.separator.key-value.semicolon.curlrc"}}},{"match":"(?\u003c=@)(\"(?:[^\\\\\"]|\\\\.)++\"|(?:[^\"\\s;\\\\]|\\\\.)++)(?:(;)|(?=$|\\s))","captures":{"1":{"name":"variable.assignment.parameter.name.curlrc","patterns":[{"include":"etc#esc"}]},"2":{"name":"punctuation.separator.key-value.semicolon.curlrc"}}},{"include":"etc#esc"},{"include":"etc#bareword"}]},"protocols":{"patterns":[{"name":"constant.other.protocol-name.curlrc","match":"[^\\s,+=-]+"},{"name":"keyword.control.permit-protocol.curlrc","match":"\\+"},{"name":"keyword.control.deny-protocol.curlrc","match":"-"},{"name":"keyword.control.permit-protocol.only.curlrc","match":"="},{"include":"etc#comma"}]},"range":{"patterns":[{"name":"meta.byte-range.curlrc","match":"([0-9]+)(-)([0-9]+)?|(-)([0-9]+)","captures":{"1":{"name":"constant.numeric.integer.int.decimal.dec.range.start.curlrc"},"2":{"name":"punctuation.separator.range.dash.curlrc"},"3":{"name":"constant.numeric.integer.int.decimal.dec.range.end.curlrc"},"4":{"name":"punctuation.separator.range.dash.curlrc"},"5":{"name":"constant.numeric.integer.int.decimal.dec.range.end.curlrc"}}},{"include":"etc#comma"},{"include":"etc#int"}]},"separators":{"patterns":[{"include":"etc#eql"},{"include":"etc#kolon"}]},"shortOptions":{"patterns":[{"name":"meta.option.short.curlrc","begin":"^\\s*((-)[:#012346BGIJLMNOQRSVafghijklnpqsv]*[ACDEFHKPQTUXYbcdehmortuwxyz])","end":"(?x)\n$\n|\n\n# Numbers\n(?\u003c=(?#optlist_numeric)[CYmyz])\n\\G (?:(?! )\\s)*\n([-+]?[0-9.]+)\n\n|\n\n# Byte range\n(?\u003c=(?#optlist_range)r)\n\\G (?:(?! )\\s)*\n([-0-9,]+)\n\n|\n\n# “key=value” pairs\n(?\u003c=(?#optlist_form_data)[Fbt])\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.)*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# “key:value” pairs\n(?\u003c=(?#optlist_kv_colon)[EUux])\n\\G (?:(?! )\\s)*\n((?:[^\\\\:\\s/]| )*://)?\n(\n\t(?:[^\\\\:\\s]|\\\\.| )+\n\t(?::(?:[^\\\\:\\s]|\\\\.| )+)*\n\t:?\n)\n\n|\n\n# Headers\n(?\u003c=(?#optlist_headers)H)\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# URLs\n(?\u003c=(?#optlist_urls)e)\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# Port address\n(?\u003c=(?#optlist_port)P)\n\\G (?:(?! )\\s)*\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)\n\n|\n\n# Anything else\n(?:\n\t((\")((?:[^\"\\\\]|\\\\.| )*)(?:(\")|$))\n\t|\n\t([\\S ]+)\n)","beginCaptures":{"1":{"name":"entity.short.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.short.option.curlrc"}},"endCaptures":{"1":{"patterns":[{"include":"etc#num"}]},"10":{"name":"meta.http-headers.curlrc"},"11":{"name":"punctuation.definition.string.begin.curlrc"},"12":{"patterns":[{"include":"#header"}]},"13":{"name":"punctuation.definition.string.end.curlrc"},"14":{"patterns":[{"include":"#header"}]},"15":{"name":"meta.url-string.curlrc"},"16":{"name":"punctuation.definition.string.begin.curlrc"},"17":{"patterns":[{"include":"#url"}]},"18":{"name":"punctuation.definition.string.end.curlrc"},"19":{"patterns":[{"include":"#url"}]},"2":{"patterns":[{"include":"#range"}]},"20":{"name":"string.quoted.double.curlrc"},"21":{"name":"punctuation.definition.string.begin.curlrc"},"22":{"name":"constant.other.port-address.curlrc","patterns":[{"include":"etc#esc"}]},"23":{"name":"punctuation.definition.string.end.curlrc"},"24":{"name":"constant.other.port-address.curlrc"},"25":{"name":"string.quoted.double.curlrc"},"26":{"name":"punctuation.definition.string.begin.curlrc"},"27":{"patterns":[{"include":"etc#esc"}]},"28":{"name":"punctuation.definition.string.end.curlrc"},"29":{"name":"string.unquoted.curlrc"},"3":{"name":"meta.parameter-string.curlrc"},"4":{"name":"punctuation.definition.string.begin.curlrc"},"5":{"patterns":[{"include":"#params"}]},"6":{"name":"punctuation.definition.string.end.curlrc"},"7":{"patterns":[{"include":"#params"}]},"8":{"patterns":[{"include":"#authProtocol"}]},"9":{"patterns":[{"include":"#auth"}]}}},{"name":"meta.option.short.curlrc","match":"^\\s*((-)(?#optlist_no_parameter)[#012346:BGIJLMNORSVZafgijklnpqsv]+)","captures":{"1":{"name":"entity.short.option.name.curlrc"},"2":{"name":"punctuation.definition.dash.short.option.curlrc"}}}]},"string":{"name":"string.quoted.double.curlrc","begin":"\"","end":"\"|(?=$)","patterns":[{"name":"constant.character.escape.backslash.curlrc","match":"(\\\\)[\\\\\"tnrv]","captures":{"1":{"name":"punctuation.definition.escape.backslash.curlrc"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.curlrc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.curlrc"}}},"url":{"patterns":[{"include":"#autoRefer"},{"include":"etc#comma"},{"match":"(?\u003c=\\G\"|^\")((?:[^\"\\\\]|\\\\.)*)(?=$|\"|;)|(?:\\G(?\u003c!\")|^)([^\\s,]+?)(?=$|\\s|;|,)","captures":{"1":{"patterns":[{"include":"etc#url"},{"include":"#urlNoSchema"}]},"2":{"patterns":[{"include":"etc#url"},{"include":"#urlNoSchema"}]}}},{"include":"#params"},{"include":"etc#bareword"}]},"urlNoSchema":{"match":"(?:\\G|^)\\s*([-a-zA-Z0-9]+(?:\\.|@)[-a-zA-Z0-9]+.*)\\s*","captures":{"1":{"name":"constant.other.reference.link.underline.url.curlrc"}}}}}
|
data/grammars/source.dart.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Dart","scopeName":"source.dart","patterns":[{"name":"meta.preprocessor.script.dart","match":"^(#!.*)$"},{"name":"meta.declaration.dart","begin":"^\\w*\\b(augment\\s+library|library|import\\s+augment|import|part\\s+of|part|export)\\b","end":";","patterns":[{"include":"#strings"},{"include":"#comments"},{"name":"keyword.other.import.dart","match":"\\b(as|show|hide)\\b"},{"name":"keyword.control.dart","match":"\\b(if)\\b"}],"beginCaptures":{"0":{"name":"keyword.other.import.dart"}},"endCaptures":{"0":{"name":"punctuation.terminator.dart"}}},{"include":"#comments"},{"include":"#punctuation"},{"include":"#annotations"},{"include":"#keywords"},{"include":"#constants-and-special-vars"},{"include":"#class-identifier-with-optional-factory-method"},{"include":"#function-identifier"},{"include":"#operators"},{"include":"#strings"}],"repository":{"annotations":{"patterns":[{"name":"storage.type.annotation.dart","match":"@[a-zA-Z]+"}]},"class-identifier":{"patterns":[{"name":"support.class.dart","match":"(?\u003c!\\$)\\b(bool|num|int|double|dynamic)\\b(?!\\$)"},{"name":"storage.type.primitive.dart","match":"(?\u003c!\\$)\\bvoid\\b(?!\\$)"},{"begin":"(?\u003c![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\b","end":"(?!\u003c)","patterns":[{"include":"#type-args"}],"beginCaptures":{"1":{"name":"support.class.dart"}}}]},"class-identifier-with-optional-factory-method":{"patterns":[{"match":"(?\u003c!\\$)\\b(bool|num|int|double|dynamic)\\b(?!\\$)\\s*(factory\\b)?","captures":{"1":{"name":"support.class.dart"},"2":{"name":"entity.name.function.dart"}}},{"match":"(?\u003c!\\$)\\b(void)\\b(?!\\$)\\s*(factory\\b)?","captures":{"1":{"name":"storage.type.primitive.dart"},"2":{"name":"entity.name.function.dart"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\b\\s*(factory\\b)?","end":"(?!\u003c)","patterns":[{"include":"#type-args"}],"beginCaptures":{"1":{"name":"support.class.dart"},"2":{"name":"entity.name.function.dart"}}}]},"comments":{"patterns":[{"name":"comment.block.empty.dart","match":"/\\*\\*/","captures":{"0":{"name":"punctuation.definition.comment.dart"}}},{"include":"#comments-doc-oldschool"},{"include":"#comments-doc"},{"include":"#comments-inline"}]},"comments-block":{"patterns":[{"name":"comment.block.dart","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments-block"}]}]},"comments-doc":{"patterns":[{"name":"comment.block.documentation.dart","begin":"///","end":"^(?!\\s*///)","patterns":[{"include":"#dartdoc"}]}]},"comments-doc-oldschool":{"patterns":[{"name":"comment.block.documentation.dart","begin":"/\\*\\*","end":"\\*/","patterns":[{"include":"#comments-doc-oldschool"},{"include":"#comments-block"},{"include":"#dartdoc"}]}]},"comments-inline":{"patterns":[{"include":"#comments-block"},{"match":"((//).*)$","captures":{"1":{"name":"comment.line.double-slash.dart"}}}]},"constants-and-special-vars":{"patterns":[{"name":"constant.language.dart","match":"(?\u003c!\\$)\\b(true|false|null)\\b(?!\\$)"},{"name":"variable.language.dart","match":"(?\u003c!\\$)\\b(this|super|augmented)\\b(?!\\$)"},{"name":"constant.numeric.dart","match":"(?\u003c!\\$)\\b((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(([0-9][0-9_]*\\.?[0-9_]*)|(\\.[0-9][0-9_]*))((e|E)(\\+|-)?[0-9][0-9_]*)?)\\b(?!\\$)"}]},"dartdoc":{"patterns":[{"match":"(\\[.*?\\])","captures":{"0":{"name":"variable.name.source.dart"}}},{"begin":"^\\s*///\\s*(```)","end":"^\\s*///\\s*(```)|^(?!\\s*///)","patterns":[{"include":"#dartdoc-codeblock-triple"}]},{"begin":"^\\s*\\*\\s*(```)","end":"^\\s*\\*\\s*(```)|^(?=\\s*\\*/)","patterns":[{"include":"#dartdoc-codeblock-block"}]},{"name":"variable.other.source.dart","match":"`[^`\n]+`"},{"match":"(?:\\*|\\/\\/)\\s{4,}(.*?)(?=($|\\*\\/))","captures":{"1":{"name":"variable.other.source.dart"}}}]},"dartdoc-codeblock-block":{"contentName":"variable.other.source.dart","begin":"^\\s*\\*\\s*(?!(\\s*```|/))","end":"
|
|
1
|
+
{"name":"Dart","scopeName":"source.dart","patterns":[{"name":"meta.preprocessor.script.dart","match":"^(#!.*)$"},{"name":"meta.declaration.dart","begin":"^\\w*\\b(augment\\s+library|library|import\\s+augment|import|part\\s+of|part|export)\\b","end":";","patterns":[{"include":"#strings"},{"include":"#comments"},{"name":"keyword.other.import.dart","match":"\\b(as|show|hide)\\b"},{"name":"keyword.control.dart","match":"\\b(if)\\b"}],"beginCaptures":{"0":{"name":"keyword.other.import.dart"}},"endCaptures":{"0":{"name":"punctuation.terminator.dart"}}},{"include":"#comments"},{"include":"#punctuation"},{"include":"#annotations"},{"include":"#keywords"},{"include":"#constants-and-special-vars"},{"include":"#class-identifier-with-optional-factory-method"},{"include":"#function-identifier"},{"include":"#operators"},{"include":"#strings"}],"repository":{"annotations":{"patterns":[{"name":"storage.type.annotation.dart","match":"@[a-zA-Z]+"}]},"class-identifier":{"patterns":[{"name":"support.class.dart","match":"(?\u003c!\\$)\\b(bool|num|int|double|dynamic)\\b(?!\\$)"},{"name":"storage.type.primitive.dart","match":"(?\u003c!\\$)\\bvoid\\b(?!\\$)"},{"begin":"(?\u003c![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\b","end":"(?!\u003c)","patterns":[{"include":"#type-args"}],"beginCaptures":{"1":{"name":"support.class.dart"}}}]},"class-identifier-with-optional-factory-method":{"patterns":[{"match":"(?\u003c!\\$)\\b(bool|num|int|double|dynamic)\\b(?!\\$)\\s*(factory\\b)?","captures":{"1":{"name":"support.class.dart"},"2":{"name":"entity.name.function.dart"}}},{"match":"(?\u003c!\\$)\\b(void)\\b(?!\\$)\\s*(factory\\b)?","captures":{"1":{"name":"storage.type.primitive.dart"},"2":{"name":"entity.name.function.dart"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\b\\s*(factory\\b)?","end":"(?!\u003c)","patterns":[{"include":"#type-args"}],"beginCaptures":{"1":{"name":"support.class.dart"},"2":{"name":"entity.name.function.dart"}}}]},"comments":{"patterns":[{"name":"comment.block.empty.dart","match":"/\\*\\*/","captures":{"0":{"name":"punctuation.definition.comment.dart"}}},{"include":"#comments-doc-oldschool"},{"include":"#comments-doc"},{"include":"#comments-inline"}]},"comments-block":{"patterns":[{"name":"comment.block.dart","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments-block"}]}]},"comments-doc":{"patterns":[{"name":"comment.block.documentation.dart","begin":"///","end":"^(?!\\s*///)","patterns":[{"include":"#dartdoc"}]}]},"comments-doc-oldschool":{"patterns":[{"name":"comment.block.documentation.dart","begin":"/\\*\\*","end":"\\*/","patterns":[{"include":"#comments-doc-oldschool"},{"include":"#comments-block"},{"include":"#dartdoc"}]}]},"comments-inline":{"patterns":[{"include":"#comments-block"},{"match":"((//).*)$","captures":{"1":{"name":"comment.line.double-slash.dart"}}}]},"constants-and-special-vars":{"patterns":[{"name":"constant.language.dart","match":"(?\u003c!\\$)\\b(true|false|null)\\b(?!\\$)"},{"name":"variable.language.dart","match":"(?\u003c!\\$)\\b(this|super|augmented)\\b(?!\\$)"},{"name":"constant.numeric.dart","match":"(?\u003c!\\$)\\b((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|(([0-9][0-9_]*\\.?[0-9_]*)|(\\.[0-9][0-9_]*))((e|E)(\\+|-)?[0-9][0-9_]*)?)\\b(?!\\$)"}]},"dartdoc":{"patterns":[{"match":"(\\[.*?\\])","captures":{"0":{"name":"variable.name.source.dart"}}},{"begin":"^\\s*///\\s*(```)","end":"^\\s*///\\s*(```)|^(?!\\s*///)","patterns":[{"include":"#dartdoc-codeblock-triple"}]},{"begin":"^\\s*\\*\\s*(```)","end":"^\\s*\\*\\s*(```)|^(?=\\s*\\*/)","patterns":[{"include":"#dartdoc-codeblock-block"}]},{"name":"variable.other.source.dart","match":"`[^`\n]+`"},{"match":"(?:\\*|\\/\\/)\\s{4,}(.*?)(?=($|\\*\\/))","captures":{"1":{"name":"variable.other.source.dart"}}}]},"dartdoc-codeblock-block":{"contentName":"variable.other.source.dart","begin":"^\\s*\\*\\s*(?!(\\s*```|/))","end":"$"},"dartdoc-codeblock-triple":{"contentName":"variable.other.source.dart","begin":"^\\s*///\\s*(?!\\s*```)","end":"$"},"expression":{"patterns":[{"include":"#constants-and-special-vars"},{"include":"#class-identifier-with-optional-factory-method"},{"include":"#function-identifier"},{"include":"#strings"},{"name":"variable.parameter.dart","match":"[a-zA-Z0-9_]+"},{"begin":"\\{","end":"\\}","patterns":[{"include":"#expression"}]}]},"function-identifier":{"patterns":[{"match":"([_$]*[a-z][a-zA-Z0-9_$]*)(\u003c(?:[a-zA-Z0-9_$\u003c\u003e?]|,\\s*|\\s+extends\\s+)+\u003e)?[!?]?\\(","captures":{"1":{"name":"entity.name.function.dart"},"2":{"patterns":[{"include":"#type-args"}]}}},{"name":"entity.name.function.dart","match":"(?\u003c=\\.)new\\b"}]},"keywords":{"patterns":[{"name":"keyword.cast.dart","match":"(?\u003c!\\$)\\bas\\b(?!\\$)"},{"name":"keyword.control.catch-exception.dart","match":"(?\u003c!\\$)\\b(try|on|catch|finally|throw|rethrow)\\b(?!\\$)"},{"name":"keyword.control.dart","match":"(?\u003c!\\$)\\b(break|case|continue|default|do|else|for|if|in|switch|while|when)\\b(?!\\$)"},{"name":"keyword.control.dart","match":"(?\u003c!\\$)\\b(sync(\\*)?|async(\\*)?|await|yield(\\*)?)\\b(?!\\$)"},{"name":"keyword.control.dart","match":"(?\u003c!\\$)\\bassert\\b(?!\\$)"},{"name":"keyword.new.dart","match":"(?\u003c![\\$\\.])\\b(new)\\b(?!\\$)"},{"name":"keyword.control.return.dart","match":"(?\u003c!\\$)\\b(return)\\b(?!\\$)"},{"name":"keyword.declaration.dart","match":"(?\u003c!\\$)\\b(abstract|sealed|base|interface|class|enum|extends|extension\\s+type|extension|external|factory|implements|get(?![(\u003c])|mixin|native|operator|set(?![(\u003c])|typedef|with|covariant)\\b(?!\\$)"},{"name":"storage.modifier.dart","match":"(?\u003c!\\$)\\b(macro|augment|static|final|const|required|late)\\b(?!\\$)"},{"name":"storage.type.primitive.dart","match":"(?\u003c!\\$)\\b(?:var)\\b(?!\\$)"}]},"operators":{"patterns":[{"name":"keyword.operator.dart","match":"(?\u003c!\\$)\\b(is\\!?)\\b(?!\\$)"},{"name":"keyword.operator.ternary.dart","match":"\\?|:"},{"name":"keyword.operator.bitwise.dart","match":"(\u003c\u003c|\u003e\u003e\u003e?|~|\\^|\\||\u0026)"},{"name":"keyword.operator.assignment.bitwise.dart","match":"((\u0026|\\^|\\||\u003c\u003c|\u003e\u003e\u003e?)=)"},{"name":"keyword.operator.closure.dart","match":"(=\u003e)"},{"name":"keyword.operator.comparison.dart","match":"(==|!=|\u003c=?|\u003e=?)"},{"name":"keyword.operator.assignment.arithmetic.dart","match":"(([+*/%-]|\\~)=)"},{"name":"keyword.operator.assignment.dart","match":"(=)"},{"name":"keyword.operator.increment-decrement.dart","match":"(\\-\\-|\\+\\+)"},{"name":"keyword.operator.arithmetic.dart","match":"(\\-|\\+|\\*|\\/|\\~\\/|%)"},{"name":"keyword.operator.logical.dart","match":"(!|\u0026\u0026|\\|\\|)"}]},"punctuation":{"patterns":[{"name":"punctuation.comma.dart","match":","},{"name":"punctuation.terminator.dart","match":";"},{"name":"punctuation.dot.dart","match":"\\."}]},"string-interp":{"patterns":[{"name":"meta.embedded.expression.dart","match":"\\$([a-zA-Z0-9_]+)","captures":{"1":{"name":"variable.parameter.dart"}}},{"name":"meta.embedded.expression.dart","begin":"\\$\\{","end":"\\}","patterns":[{"include":"#expression"}]},{"name":"constant.character.escape.dart","match":"\\\\."}]},"strings":{"patterns":[{"name":"string.interpolated.triple.double.dart","begin":"(?\u003c!r)\"\"\"","end":"\"\"\"(?!\")","patterns":[{"include":"#string-interp"}]},{"name":"string.interpolated.triple.single.dart","begin":"(?\u003c!r)'''","end":"'''(?!')","patterns":[{"include":"#string-interp"}]},{"name":"string.quoted.triple.double.dart","begin":"r\"\"\"","end":"\"\"\"(?!\")"},{"name":"string.quoted.triple.single.dart","begin":"r'''","end":"'''(?!')"},{"name":"string.interpolated.double.dart","begin":"(?\u003c!\\|r)\"","end":"\"","patterns":[{"name":"invalid.string.newline","match":"\\n"},{"include":"#string-interp"}]},{"name":"string.quoted.double.dart","begin":"r\"","end":"\"","patterns":[{"name":"invalid.string.newline","match":"\\n"}]},{"name":"string.interpolated.single.dart","begin":"(?\u003c!\\|r)'","end":"'","patterns":[{"name":"invalid.string.newline","match":"\\n"},{"include":"#string-interp"}]},{"name":"string.quoted.single.dart","begin":"r'","end":"'","patterns":[{"name":"invalid.string.newline","match":"\\n"}]}]},"type-args":{"begin":"(\u003c)","end":"(\u003e)","patterns":[{"include":"#class-identifier"},{"match":","},{"name":"keyword.declaration.dart","match":"extends"},{"include":"#comments"}],"beginCaptures":{"1":{"name":"other.source.dart"}},"endCaptures":{"1":{"name":"other.source.dart"}}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"DDS.DSPF","scopeName":"source.dds.dspf","patterns":[{"include":"#comments"},{"include":"#
|
|
1
|
+
{"name":"DDS.DSPF","scopeName":"source.dds.dspf","patterns":[{"name":"variable.other.dds.dspf.field"},{"include":"#comments"},{"include":"#gutter"},{"include":"#constants"},{"include":"#keywords"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"name":"comment.line.dds.dspf","match":"^.{5}(.)(\\*).*"}]},"constants":{"patterns":[{"name":"constant.language.dds.dspf","match":"(?\u003c=(.{44}))(\\*)[a-zA-Z][a-zA-Z0-9]*"},{"name":"constant.language.dds.dspf.andor","match":"(?i)(?\u003c=^.{5}(A|\\s).{0})(A|O)"},{"name":"constant.language.dds.dspf.n01","match":"(?i)(?\u003c=^.{5}(A|\\s).{1})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.dspf.n02","match":"(?i)(?\u003c=^.{5}(A|\\s).{4})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.dspf.n03","match":"(?i)(?\u003c=^.{5}(A|\\s).{7})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.dspf.nameType","match":"(?i)(?\u003c=^.{5}(A|\\s).{10})(R|H)"},{"name":"constant.language.dds.dspf.ref","match":"(?i)(?\u003c=^.{5}(A|\\s).{22})(R)"},{"name":"constant.language.dds.dspf.len","match":"(?i)(?\u003c=^.{5}(A|\\s).{23})[0-9|\\s]{5}"},{"name":"constant.language.dds.dspf.dataType","match":"(?i)(?\u003c=^.{5}(A|\\s).{28})(A|D|E|F|G|I|J|L|M|N|O|S|T|W|X|Y|Z)"},{"name":"constant.language.dds.dspf.decpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{29})[0-9|\\s]{2}"},{"name":"constant.language.dds.dspf.usage","match":"(?i)(?\u003c=^.{5}(A|\\s).{31})(O|I|B|H|M|P)"},{"name":"constant.language.dds.dspf.locline","match":"(?i)(?\u003c=^.{5}(A|\\s).{32})([0-9]|\\s){3}"},{"name":"constant.language.dds.dspf.locpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{35})([0-9]|\\s|\\+){3}"},{"name":"dds.dspf.edtcde","begin":"(?i)(?\u003c=EDTCDE\\()","end":"(?=\\))","patterns":[{"include":"#contline"},{"name":"constant.other.dds.dspf.edtcde.values","match":"(?i)\\b([1-9A-DJ-QW-Z])\\b"}]},{"name":"dds.dspf.chginpdft","begin":"(?i)(?\u003c=CHGINPDFT\\()","end":"(?=\\))","patterns":[{"include":"#contline"},{"name":"constant.other.dds.dspf.chginpdft.values","match":"(?i)\\b(BL|CS|HI|LC|RI|UL)\\b"}]},{"name":"dds.dspf.auto","begin":"(?i)(?\u003c=AUTO\\()","end":"(?=\\))","patterns":[{"include":"#contline"},{"name":"constant.other.dds.dspf.auto.values","match":"(?i)\\b(RAB|RAZ|RA)\\b"}]},{"name":"constant.other.dds.dspf.color.values","match":"(?i)(?\u003c=\\*COLOR\\s)(BLU|GRN|PNK|RED|TRQ|WHT|YLW)\\b"},{"name":"constant.other.dds.dspf.dspatr.values","match":"(?i)(?\u003c=\\*DSPATR\\s)(BL|CS|HI|ND|PC|RI|UL|MDT|OID|PR|SP)\\b"},{"name":"constant.numeric.dds.dspf","match":"(?\u003c=(.{44}))\\b([0-9]+)\\b"},{"name":"dds.dspf.check","begin":"(?i)(?\u003c=(CHECK\\())","end":"(?=(\\)))","patterns":[{"include":"#contline"},{"name":"constant.other.dds.dspf.check.values","match":"(?i)(\\b(AB|ME|MF|M10F|M10|M11F|M11|VNE|VN|ER|FE|LC|RB|RZ|RLTB|RL)\\b)"}]},{"name":"dds.dspf.dspatr","begin":"(?i)(?\u003c=(DSPATR\\())","end":"(?=(\\)))","patterns":[{"include":"#contline"},{"name":"constant.other.dds.dspf.dspatr.values","match":"(?i)(\\b(SP|PR|OID|MDT|UL|RI|PC|ND|HI|CS|BL)\\b)"}]},{"name":"dds.dspf.color","begin":"(?i)(?\u003c=(COLOR\\())","end":"(?=(\\)))","patterns":[{"include":"#contline"},{"name":"constant.other.dds.dspf.color.values","match":"(?i)(\\b(BLU|PNK|YLW|TRQ|RED|WHT|GRN)\\b)"}]},{"name":"dds.dspf.comp","begin":"(?i)((?\u003c=((COMP)\\())|(?\u003c=((CMP)\\()))","end":"(?=(\\)))","patterns":[{"include":"#contline"},{"name":"keyword.other.dds.dspf.comp.values","match":"(?i)(\\b(GE|LE|NG|GT|NL|LT|NE|EQ)\\b)"},{"name":"constant.numeric.dds.dspf","match":"\\b([0-9]+)\\b"}]}]},"contline":{"patterns":[{"include":"#comments"},{"include":"#gutter"},{"name":"keyword.other.dds.dspf.spec","match":"(?i)(?\u003c=^.{5})(A)"}]},"gutter":{"patterns":[{"name":"comment.gutter","match":"^.{1,5}"},{"name":"comment.block.line.dds","begin":"(?\u003c=^.{80})","end":"\n"}]},"keywords":{"patterns":[{"name":"keyword.other.dds.dspf.spec","match":"(?i)(?\u003c=^.{5})[A]"},{"name":"keyword.other.dds.dspf","match":"[+-](?=\\s*$)"},{"name":"keyword.other.dds.dspf.func","match":"(?i)(?\u003c=^.{5}[A\\s].{38})(C[AF])[0-9]{2}"},{"name":"keyword.other.dds.dspf.funcs","match":"(?i)(?\u003c=(.{44}))(?\u003c=^.{44}|[^A-Za-z0-9])(WRDWRAP|WINDOW|WDWTITLE|WDWBORDER|VLDCMDKEY|VALUES|VALNUM|USRRSTDSP|USRDSPMGT|USRDFN|USER|UNLOCK|TIMSEP|TIMFMT|TIME|TEXT|SYSNAME|SNGCHCFLD|SLNO|SFLSNGCHC|SFLSIZ|SFLSCROLL|SFLRTNSEL|SFLROLVAL|SFLRNA|SFLRCDNBR|SFLPGMQ|SFLPAG|SFLNXTCHG|SFLMSGRCD|SFLMSGKEY|SFLMSGID|SFLMSG|SFLMODE|SFLMLTCHC|SFLLIN|SFLINZ|SFLFOLD|SFLENTER|SFLEND|SFLDSPCTL|SFLDSP|SFLDROP|SFLDLT|SFLCTL|SFLCSRRRN|SFLCSRPRG|SFLCLR|SFLCHCCTL|SETOFF|SETOF|RTNDTA|RTNCSRLOC|ROLLUP|ROLLDOWN|RMVWDW|RETLCKSTS|RETCMDKEY|RETKEY|REFFLD|REF|RANGE|PUTRETAIN|PUTOVR|PULLDOWN|PSHBTNFLD|PSHBTNCHC|PROTECT|PRINT|PASSRCD|PAGEDOWN|PAGEUP|OVRDTA|OVRATR|OVERLAY|OPENPRT|NOCCSID|MSGLOC|MSGID|MSGCON|MSGALARM|MOUBTN|MNUCNL|MNUBARSW|MNUBARSEP|MNUBARDSP|MNUBARCHC|MNUBAR|MLTCHCFLD|MDTOFF|MAPVAL|LOWER|LOGOUT|LOGINP|LOCK|KEEP|INZRCD|INZINP|INVITE|INDTXT|INDARA|HTML|HOME|HLPTITLE|HLPSEQ|HLPSCHIDX|HLPRTN|HLPRCD|HLPPNLGRP|HLPID|HLPFULL|HLPEXCLD|HLPDOC|HLPCMDKEY|HLPCLR|HLPBDY|HLPARA|HELP|GETRETAIN|FRCDTA|FLTPCN|FLTFIXDEC|FLDCSRPRG|ERRSFL|ERRMSG|ERRMSGID|ERASEINP|ERASE|ENTFLDATR|EDTWRD|EDTMSK|EDTCDE|DUP|DSPSIZ|DSPRL|DSPMOD|DSPATR|DLTEDT|DLTCHK|DFTVAL|DFT|DATSEP|DATFMT|DATE|CSRLOC|CSRINPONLY|COMP|COLOR|CNTFLD|CLEAR|CHRID|CHOICE|CHKMSGID|CHGINPDFT|CHECK|CHCUNAVAIL|CHCSLT|CHCCTL|CHCAVAIL|CHCACCEL|CHANGE|BLKFOLD|BLINK|BLANKS|AUTO|ASSUME|ALWROL|ALWGPH|ALTPAGEDWN|ALTPAGEUP|ALTNAME|ALTHELP|ALIAS|ALARM)\\b\\b"},{"name":"keyword.other.dds.dspf.funcs","match":"(?i)(?\u003c=^.{5}[A\\s].{38})(CMP|CLRL|SFL)\\b"}]},"strings":{"patterns":[{"name":"string.other.dds.dspf.hex","begin":"(?i)x'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.dspf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.dspf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.dspf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]},{"name":"string.quoted.single.dds.dspf","begin":"'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.dspf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.dspf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.dspf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]}]}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"DDS.ICFF","scopeName":"source.dds.icff","patterns":[{"include":"#comments"},{"include":"#
|
|
1
|
+
{"name":"DDS.ICFF","scopeName":"source.dds.icff","patterns":[{"name":"variable.other.dds.icff.field"},{"include":"#comments"},{"include":"#gutter"},{"include":"#constants"},{"include":"#keywords"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"name":"comment.line.dds.icff","match":"^.{5}(.)(\\*).*"}]},"constants":{"patterns":[{"name":"constant.language.dds.icff","match":"(?\u003c=(.{44}))(\\*)[a-zA-Z][a-zA-Z0-9]*"},{"name":"constant.language.dds.icff.andor","match":"(?i)(?\u003c=^.{5}(A|\\s).{0})(A|O)"},{"name":"constant.language.dds.icff.n01","match":"(?i)(?\u003c=^.{5}(A|\\s).{1})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.icff.n02","match":"(?i)(?\u003c=^.{5}(A|\\s).{4})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.icff.n03","match":"(?i)(?\u003c=^.{5}(A|\\s).{7})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.icff.nameType","match":"(?i)(?\u003c=^.{5}(A|\\s).{10})(R|H)"},{"name":"constant.language.dds.icff.ref","match":"(?i)(?\u003c=^.{5}(A|\\s).{22})(R)"},{"name":"constant.language.dds.icff.len","match":"(?i)(?\u003c=^.{5}(A|\\s).{23})[0-9|\\s]{5}"},{"name":"constant.language.dds.icff.dataType","match":"(?i)(?\u003c=^.{5}(A|\\s).{28})(P|S|B|F|A|O)"},{"name":"constant.language.dds.icff.decpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{29})[0-9|\\s]{2}"},{"name":"constant.language.dds.icff.usage","match":"(?i)(?\u003c=^.{5}(A|\\s).{31})(B|P)"},{"name":"constant.numeric.dds.icff","match":"(?\u003c=(.{44}))\\b([0-9]+)\\b"}]},"gutter":{"patterns":[{"name":"comment.gutter","match":"^.{1,5}"},{"name":"comment.block.line.dds","begin":"(?\u003c=^.{80})","end":"\n"}]},"keywords":{"patterns":[{"name":"keyword.other.dds.icff.spec","match":"(?i)(?\u003c=^.{5})[A]"},{"name":"keyword.other.dds.icff","match":"[+-](?=\\s*$)"},{"name":"keyword.other.dds.icff.funcs","match":"(?i)(?\u003c=(.{44}))(?\u003c=^.{44}|[^A-Za-z0-9])(VARLEN|VARBUFMGT|TNSSYNLVL|TIMER|TEXT|SYNLVL|SUBDEV|SECURITY|RSPCONFIRM|RQSWRT|REFFLD|REF|RECID|RCVTRNRND|RCVTKCMT|RCVROLLB|RCVNEGRSP|RCVFMH|RCVFAIL|RCVENDGRP|RCVDETACH|RCVCTLDTA|RCVCONFIRM|RCVCANCEL|PRPCMT|NEGRSP|INVITE|INDTXT|INDARA|FRCDTA|FMTNAME|FMH|FLTPCN|FAIL|EVOKE|EOS|ENDGRP|DFREVOKE|DETACH|CTLDTA|CONFIRM|CNLINVITE|CANCEL|ALWWRT|ALIAS)\\b\\b"}]},"strings":{"patterns":[{"name":"string.other.dds.icff.hex","begin":"(?i)x'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.icff","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.icff","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.icff.spec","match":"(?i)(?\u003c=^.{5})[A]"}]},{"name":"string.quoted.single.dds.icff","begin":"'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.icff","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.icff","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.icff.spec","match":"(?i)(?\u003c=^.{5})[A]"}]}]}}}
|
data/grammars/source.dds.lf.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"DDS.LF","scopeName":"source.dds.lf","patterns":[{"include":"#comments"},{"include":"#
|
|
1
|
+
{"name":"DDS.LF","scopeName":"source.dds.lf","patterns":[{"include":"#comments"},{"include":"#gutter"},{"include":"#constants"},{"include":"#keywords"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"name":"comment.line.dds.lf","match":"^.{5}(.)(\\*).*"}]},"constants":{"patterns":[{"name":"constant.language.dds.lf","match":"(?\u003c=(.{44}))(\\*)[a-zA-Z][a-zA-Z0-9]*"},{"name":"constant.language.dds.lf.nametype","match":"(?i)(?\u003c=^.{5}(A|\\s).{10})(R|K|J|S|O)"},{"name":"constant.language.dds.lf.ref","match":"(?i)(?\u003c=^.{5}(A|\\s).{22})R"},{"name":"constant.language.dds.lf.len","match":"(?i)(?\u003c=^.{5}(A|\\s).{23})[0-9|\\s]{5}"},{"name":"constant.language.dds.lf.datatype","match":"(?i)(?\u003c=^.{5}(A|\\s).{28})(P|S|B|F|A|L|T|Z|H|J|E|O|G|5)"},{"name":"constant.language.dds.lf.decpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{29})[0-9|\\s]{2}"},{"name":"constant.language.dds.lf.use","match":"(?i)(?\u003c=^.{5}(A|\\s).{31})(B|I|N)"},{"name":"constant.language.dds.lf.edtcde","match":"(?i)(?\u003c=EDTCDE\\()[1-9A-DJ-QW-Z](?=[\\s)])"},{"name":"constant.language.dds.lf.refshift","match":"(?i)(?\u003c=REFSHIFT\\()[ADIMNSWXY](?=[\\s)])"},{"name":"constant.numeric.dds.lf","match":"(?\u003c=(.{44}))(\\b[0-9]+)|([0-9]*[.][0-9]*)"}]},"contline":{"patterns":[{"include":"#comments"},{"include":"#gutter"},{"name":"keyword.other.dds.lf.spec","match":"(?i)(?\u003c=^.{5})(A)"}]},"gutter":{"patterns":[{"name":"comment.gutter","match":"^.{1,5}"},{"name":"comment.block.line.dds","begin":"(?\u003c=^.{80})","end":"\n"}]},"keywords":{"patterns":[{"name":"keyword.other.dds.lf.spec","match":"(?i)(?\u003c=^.{5})[A]"},{"name":"keyword.other.dds.lf","match":"[+-](?=\\s*$)"},{"name":"keyword.other.dds.lf.funcs","match":"(?i)(?\u003c=(.{44}))(?\u003c=^.{44}|[^A-Za-z0-9])((ZONE|VARLEN|VALUES|UNSIGNED|SIGNED|UNIQUE|TRNTBL|TIMSEP|TIMFMT|TEXT|SST|RENAME|REFSHIFT|REFACCPTH|RANGE|PFILE|NOALTSEQ|LIFO|JREF|JOIN|JFLD|JFILE|JDUPSEQ|JDFTVAL|FORMAT|FLTPCN|FIFO|FCFO|EDTCDE|EDTWRD|DYNSLT|DIGIT|DESCEND|DATSEP|DATFMT|CONCAT|COMP|COLHDG|CMP|CHKMSGID|CHECK|CCSID|ALTSEQ|ALL|ALIAS|ABSVAL)+)\\b\\b"},{"name":"dds.lf.comp","begin":"(?i)(?\u003c=(.{44}))((?\u003c=((COMP)\\())|(?\u003c=((CMP)\\()))","end":"(?=(\\)))","patterns":[{"include":"#contline"},{"name":"keyword.other.dds.lf.comp.values","match":"(?i)(\\b(GE|LE|NG|GT|NL|LT|NE|EQ)\\b)"},{"name":"constant.numeric.dds.lf","match":"\\b([0-9]+)\\b"},{"include":"#strings"}]},{"name":"dds.lf.check","begin":"(?i)(?\u003c=CHECK\\()","end":"(?=\\))","patterns":[{"include":"#contline"},{"name":"constant.language.dds.lf.check","match":"(?i)\\b(M10|M11|AB|ME|MF|VNE|VN)\\b"}]}]},"strings":{"patterns":[{"name":"string.other.dds.lf.hex","begin":"(?i)x'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.lf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.lf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.lf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]},{"name":"string.quoted.single.dds.lf","begin":"'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.lf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.lf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.lf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]}]}}}
|
data/grammars/source.dds.pf.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"DDS.PF","scopeName":"source.dds.pf","patterns":[{"include":"#comments"},{"include":"#
|
|
1
|
+
{"name":"DDS.PF","scopeName":"source.dds.pf","patterns":[{"include":"#comments"},{"include":"#gutter"},{"include":"#constants"},{"include":"#keywords"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"name":"comment.line.dds.pf","match":"^.{5}(.)(\\*).*"}]},"constants":{"patterns":[{"name":"constant.language.dds.pf","match":"(?\u003c=(.{44}))(\\*)[a-zA-Z][a-zA-Z0-9]*"},{"name":"constant.language.dds.pf.nametype","match":"(?i)(?\u003c=^.{5}(A|\\s).{10})(R|K)"},{"name":"constant.language.dds.pf.ref","match":"(?i)(?\u003c=^.{5}(A|\\s).{22})R"},{"name":"constant.language.dds.pf.len","match":"(?i)(?\u003c=^.{5}(A|\\s).{23})[0-9|\\s]{5}"},{"name":"constant.language.dds.pf.datatype","match":"(?i)(?\u003c=^.{5}(A|\\s).{28})(P|S|B|F|A|L|T|Z|H|J|E|O|G|5)"},{"name":"constant.language.dds.pf.decpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{29})([0-9]|\\s){2}"},{"name":"constant.language.dds.pf.use","match":"(?i)(?\u003c=^.{5}(A|\\s).{31})(B)"},{"name":"constant.language.dds.pf.edtcde","match":"(?i)(?\u003c=EDTCDE\\()[1-9A-DJ-QW-Z](?=[\\s)])"},{"name":"constant.language.dds.pf.refshift","match":"(?i)(?\u003c=REFSHIFT\\()[ADIMNSWXY](?=[\\s)])"},{"name":"constant.numeric.dds.pf","match":"(?\u003c=(.{44}))(\\b[0-9]+)|([0-9]*[.][0-9]*)"}]},"contline":{"patterns":[{"include":"#comments"},{"include":"#gutter"},{"name":"keyword.other.dds.pf.spec","match":"(?i)(?\u003c=^.{5})(A)"}]},"gutter":{"patterns":[{"name":"comment.gutter","match":"^.{1,5}"},{"name":"comment.block.line.dds","begin":"(?\u003c=^.{80})","end":"\n"}]},"keywords":{"patterns":[{"name":"keyword.other.dds.pf.spec","match":"(?i)(?\u003c=^.{5})(A)"},{"name":"keyword.other.dds.pf","match":"[+-](?=\\s*$)"},{"name":"keyword.other.dds.pf.funcs","match":"(?i)(?\u003c=(.{44}))(?\u003c=^.{44}|[^A-Za-z0-9])(ZONE|VARLEN|VALUES|UNSIGNED|SIGNED|UNIQUE|TIMSEP|TIMFMT|TEXT|REFSHIFT|REFFLD|REF|RANGE|NOALTSEQ|LIFO|FORMAT|FLTPCN|FIFO|FCFO|EDTCDE|EDTWRD|DIGIT|DFT|DESCEND|DATSEP|DATFMT|COMP|COLHDG|CMP|CHKMSGID|CHECK|CCSID|ALWNULL|ALTSEQ|ALIAS|ABSVAL)\\b\\b"},{"name":"dds.pf.comp","begin":"(?i)(?\u003c=(.{44}))((?\u003c=((COMP)\\())|(?\u003c=((CMP)\\()))","end":"(?=(\\)))","patterns":[{"include":"#contline"},{"name":"keyword.other.dds.pf.comp.values","match":"(?i)(\\b(GE|LE|NG|GT|NL|LT|NE|EQ)\\b)"},{"name":"constant.numeric.dds.pf","match":"\\b([0-9]+)\\b"},{"include":"#strings"}]},{"name":"dds.pf.check","begin":"(?i)(?\u003c=CHECK\\()","end":"(?=\\))","patterns":[{"include":"#contline"},{"name":"constant.language.dds.pf.check","match":"(?i)\\b(M10|M11|AB|ME|MF|VNE|VN)\\b"}]}]},"strings":{"patterns":[{"name":"string.other.dds.pf.hex","begin":"(?i)x'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.pf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.pf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.pf.spec","match":"(?i)(?\u003c=^.{5})(A)"}]},{"name":"string.quoted.single.dds.pf","begin":"'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.pf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.pf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.pf.spec","match":"(?i)(?\u003c=^.{5})(A)"}]}]}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"DDS.PRTF","scopeName":"source.dds.prtf","patterns":[{"include":"#comments"},{"include":"#
|
|
1
|
+
{"name":"DDS.PRTF","scopeName":"source.dds.prtf","patterns":[{"name":"variable.other.dds.prtf.field"},{"include":"#comments"},{"include":"#gutter"},{"include":"#constants"},{"include":"#keywords"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"name":"comment.line.dds.prtf","match":"^.{5}(.)(\\*).*"}]},"constants":{"patterns":[{"name":"constant.language.dds.prtf","match":"(?\u003c=(.{44}))(\\*)[a-zA-Z][a-zA-Z0-9]*"},{"name":"constant.language.dds.prtf.andor","match":"(?i)(?\u003c=^.{5}(A|\\s).{0})(A|O)"},{"name":"constant.language.dds.prtf.n01","match":"(?i)(?\u003c=^.{5}(A|\\s).{1})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.n02","match":"(?i)(?\u003c=^.{5}(A|\\s).{4})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.n03","match":"(?i)(?\u003c=^.{5}(A|\\s).{7})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.nameType","match":"(?i)(?\u003c=^.{5}(A|\\s).{10})R"},{"name":"constant.language.dds.prtf.ref","match":"(?i)(?\u003c=^.{5}(A|\\s).{22})R"},{"name":"constant.language.dds.prtf.len","match":"(?i)(?\u003c=^.{5}(A|\\s).{23})[0-9|\\s]{5}"},{"name":"constant.language.dds.prtf.dataType","match":"(?i)(?\u003c=^.{5}(A|\\s).{28})(A|F|G|L|O|S|T|Z)"},{"name":"constant.language.dds.prtf.decpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{29})[0-9|\\s]{2}"},{"name":"constant.language.dds.prtf.usage","match":"(?i)(?\u003c=^.{5}(A|\\s).{31})O"},{"name":"constant.language.dds.prtf.locline","match":"(?i)(?\u003c=^.{5}(A|\\s).{32})([0-9]|\\s){3}"},{"name":"constant.language.dds.prtf.locpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{35})([0-9]|\\s|\\+){3}"},{"name":"constant.language.dds.prtf.edtcde","match":"(?i)(?\u003c=EDTCDE\\()[1-9A-DJ-QW-Z](?=[\\s)])"},{"name":"constant.language.dds.prtf.color","match":"(?i)(?\u003c=COLOR\\()(BLK|BLU|BRN|GRN|PNK|RED|TRQ|YLW)(?=[\\s)])"},{"name":"constant.language.dds.prtf.barcode","match":"(?i)(?\u003c=BARCODE\\()(MSI|UPCA|UPCE|UPC2|UPC5|EAN8|EAN13|EAN2|EAN5|CODEABAR|CODE128|CODE3OF9|CODE93|INTERL2OF5|INDUST2OF5|MATRIX2OF5|POSTNET|RM4SCC|AP4SCC|DUTCHKIX|JPBC|PDF417|MAXICODE|DATAMATRIX|QRCODE)(?=[\\s)])"},{"name":"constant.numeric.dds.prtf","match":"(?\u003c=(.{44}))\\b([0-9]+)\\b"}]},"gutter":{"patterns":[{"name":"comment.gutter","match":"^.{1,5}"},{"name":"comment.block.line.dds","begin":"(?\u003c=^.{80})","end":"\n"}]},"keywords":{"patterns":[{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"},{"name":"keyword.other.dds.prtf","match":"[+-](?=\\s*$)"},{"name":"keyword.other.dds.prtf.funcs","match":"(?i)(?\u003c=(.{44}))(?\u003c=^.{44}|[^A-Za-z0-9])(ZFOLD|UNISCRIPT|UNDERLINE|TXTRTT|TRNSPY|TIMSEP|TIMFMT|TIME|TEXT|STRPAGGRP|STAPLE|SPACEB|SPACEA|SKIPB|SKIPA|RELPOS|REFFLD|REF|PRTQLTY|POSITION|PAGSEG|PAGRTT|PAGNBR|OVERLAY|OUTBIN|MSGCON|LPI|LINE|INVMMAP|INVDTAMAP|INDTXT|INDARA|HIGHLIGHT|GDF|FORCE|FONTNAME|FONT|FNTCHRSET|FLTPCN|FLTFIXDEC|ENDPAGGRP|ENDPAGE|EDTWRD|EDTCDE|DUPLEX|DTASTMCMD|DRAWER|DOCIDXTAG|DLTEDT|DFT|DFNCHR|DATSEP|DATFMT|DATE|CVTDTA|CPI|COLOR|CHRSIZ|CHRID|CDEFNT|BOX|BLKFOLD|BARCODE|ALIAS|AFPRSC)\\b\\b"}]},"strings":{"patterns":[{"name":"string.other.dds.prtf.hex","begin":"(?i)x'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.prtf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.prtf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]},{"name":"string.quoted.single.dds.prtf","begin":"'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.prtf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.prtf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"DEQ","scopeName":"source.deq","patterns":[{"include":"#comment"},{"include":"#mako-def-block"},{"include":"#mako-block"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#import-statement"},{"include":"#decorator"},{"include":"#code-definition"},{"include":"#gadget-definition"},{"include":"#compose-definition"},{"include":"#program-definition"}],"repository":{"assert-statement":{"begin":"\\b(ASSERT_EQ)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"check-statement":{"begin":"\\b(CHECK|DETECTOR)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"keyword.directive.deq","match":"\\b(FLIP)\\b"},{"include":"#targets"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"code-definition":{"begin":"\\b(CODE)\\s+([a-zA-Z][a-zA-Z0-9_]*)\\s*(\\[\\[)","end":"^\\s*(\\})","patterns":[{"include":"#comment"},{"include":"#code-params"},{"include":"#mako-expression"},{"include":"#logical-declaration"},{"include":"#stabilizer-declaration"},{"include":"#pauli-product"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.type.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"code-params":{"match":"(\\d+|\\$\\{[^}]*\\})\\s*,\\s*(\\d+|\\$\\{[^}]*\\})(?:\\s*,\\s*(\\d+|\\$\\{[^}]*\\}))?\\s*(\\]\\])\\s*(\\{)","captures":{"1":{"name":"constant.numeric.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"constant.numeric.deq"},"4":{"name":"punctuation.bracket.deq"},"5":{"name":"punctuation.bracket.deq"}}},"comment":{"name":"comment.line.number-sign.deq","match":"#.*$"},"compose-body":{"patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#repeat-block-compose"},{"include":"#port-statement"},{"include":"#conditional-correction"},{"include":"#gadget-application"},{"include":"#stim-instruction"}]},"compose-definition":{"begin":"\\b(COMPOSE)\\s+((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#compose-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.function.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"conditional-correction":{"match":"\\b(CONDITIONAL)\\s+(rec\\[-\\d+\\])\\s+((?:[XYZ]\\d+)(?:\\*[XYZ]\\d+)*)\\s+(\\d+)","captures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"variable.other.deq"},"3":{"name":"support.type.pauli.deq"},"4":{"name":"constant.numeric.deq"}}},"conditional-statement":{"begin":"\\b(CONDITIONAL)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"support.variable.readout.deq","match":"R\\d+"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"support.class.check.deq","match":"(?:IN|OUT)\\d+\\.S\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"decorator":{"begin":"(@[a-zA-Z][a-zA-Z0-9_]*)\\s*(\\()?","end":"(\\))|(?=$|#)","patterns":[{"include":"#decorator-string"},{"include":"#decorator-kwarg"},{"name":"constant.numeric.deq","match":"-?\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?"}],"beginCaptures":{"1":{"name":"entity.name.function.decorator.deq"},"2":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"decorator-kwarg":{"match":"\\b([a-zA-Z][a-zA-Z0-9_]*)\\s*(=)","captures":{"1":{"name":"variable.parameter.deq"},"2":{"name":"keyword.operator.assignment.deq"}}},"decorator-string":{"name":"string.quoted.double.deq","match":"\"(?:[^\"\\\\]|\\\\.)*\""},"error-statement":{"begin":"\\b(ERROR)\\s*(\\()","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"constant.numeric.deq","match":"-?\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?"},{"name":"punctuation.bracket.deq","match":"\\)"},{"include":"#error-targets"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"punctuation.bracket.deq"}}},"error-targets":{"patterns":[{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"},{"name":"storage.type.pauli.deq","match":"[XYZ]\\d+"},{"name":"support.class.check.deq","match":"C\\d+"},{"name":"support.variable.readout.deq","match":"R\\d+"}]},"gadget-application":{"begin":"((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s+(?=(IN|OUT)\\(|\\(\\)|\\d|\\$\\{)","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#port-binding"},{"name":"punctuation.bracket.deq","match":"\\(\\)"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"entity.name.function.call.deq"}}},"gadget-body":{"patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#repeat-block-gadget"},{"include":"#port-statement"},{"include":"#readout-statement"},{"include":"#check-statement"},{"include":"#error-statement"},{"include":"#conditional-statement"},{"include":"#virtual-logical-statement"},{"include":"#propagate-statement"},{"include":"#preselect-statement"},{"include":"#stim-instruction"}]},"gadget-definition":{"begin":"\\b(GADGET)\\s+((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#gadget-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.function.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"import-statement":{"match":"\\b(IMPORT)\\s+(\"(?:[^\"\\\\]|\\\\.)*\")","captures":{"1":{"name":"keyword.control.import.deq"},"2":{"name":"string.quoted.double.deq"}}},"logical-declaration":{"begin":"\\b(LOGICAL)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#pauli-product"}],"beginCaptures":{"1":{"name":"keyword.declaration.deq"}}},"mako-block":{"name":"meta.embedded.block.python.mako","begin":"\u003c%(?![a-zA-Z/])","end":"%\u003e","patterns":[{"include":"source.python"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.mako"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.mako"}}},"mako-def-block":{"name":"meta.mako.def-block","begin":"(\u003c%)((def))\\b([^\u003e]*)(\u003e)","end":"(\u003c/%)(def)(\u003e)","patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#gadget-body"},{"include":"#compose-body"},{"include":"#program-body"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.begin.mako"},"2":{"name":"keyword.control.directive.mako"},"4":{"patterns":[{"include":"#mako-tag-attributes"}]},"5":{"name":"punctuation.section.embedded.end.mako"}},"endCaptures":{"1":{"name":"punctuation.section.embedded.begin.mako"},"2":{"name":"keyword.control.directive.mako"},"3":{"name":"punctuation.section.embedded.end.mako"}}},"mako-expression":{"name":"meta.embedded.expression.mako","begin":"\\$\\{","end":"\\}","patterns":[{"include":"#mako-nested-braces"},{"include":"source.python"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.mako"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.mako"}}},"mako-line":{"name":"meta.embedded.line.python.mako","begin":"^(\\s*)(%)(?!%)\\s+","end":"$","patterns":[{"include":"source.python"}],"beginCaptures":{"2":{"name":"keyword.control.directive.mako"}}},"mako-nested-braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#mako-nested-braces"},{"include":"#mako-string"}]},"mako-string":{"patterns":[{"name":"string.quoted.double.mako","match":"\"(?:[^\"\\\\]|\\\\.)*\""},{"name":"string.quoted.single.mako","match":"'(?:[^'\\\\]|\\\\.)*'"}]},"mako-tag-attributes":{"patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*(=)\\s*(\"[^\"]*\")","captures":{"1":{"name":"entity.other.attribute-name.mako"},"2":{"name":"keyword.operator.assignment.mako"},"3":{"name":"string.quoted.double.mako"}}}]},"parenthesized-arguments":{"begin":"\\(","end":"\\)","patterns":[{"name":"constant.numeric.deq","match":"-?\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?"}],"beginCaptures":{"0":{"name":"punctuation.bracket.deq"}},"endCaptures":{"0":{"name":"punctuation.bracket.deq"}}},"pauli-product":{"name":"storage.type.pauli.deq","match":"[IXYZ]\\d+"},"port-binding":{"begin":"\\b(IN|OUT)(\\()","end":"\\)","patterns":[{"include":"#mako-expression"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.modifier.deq"},"2":{"name":"punctuation.bracket.deq"}},"endCaptures":{"0":{"name":"punctuation.bracket.deq"}}},"port-statement":{"begin":"\\b(INPUT|OUTPUT)\\s+([a-zA-Z][a-zA-Z0-9_]*)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"entity.name.type.deq"}}},"preselect-statement":{"begin":"\\b(PRESELECT)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"invalid.illegal.virtual-stabilizer-in-preselect.deq","match":"(?:IN|OUT)\\d+\\.S\\d+"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"constant.numeric.parity.deq","match":"\\b[01]\\b"},{"name":"invalid.illegal.preselect-parity-out-of-range.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"program-body":{"patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#repeat-block-program"},{"include":"#port-statement"},{"include":"#assert-statement"},{"include":"#virtual-correction"},{"include":"#conditional-correction"},{"include":"#gadget-application"},{"include":"#stim-instruction"}]},"program-definition":{"begin":"\\b(PROGRAM)\\s+((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#program-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.function.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"propagate-statement":{"begin":"\\b(PROPAGATE)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"keyword.directive.deq","match":"\\b(FROM|FLIP)\\b"},{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XZ]\\d+"},{"name":"support.class.check.deq","match":"IN\\d+\\.DS\\d+"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"support.variable.readout.deq","match":"R\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"readout-statement":{"begin":"\\b(READOUT|OBSERVABLE_INCLUDE)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"keyword.directive.deq","match":"\\b(FLIP)\\b"},{"include":"#readout-targets"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"readout-targets":{"patterns":[{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"},{"name":"support.class.check.deq","match":"IN\\d+\\.DS\\d+"},{"include":"#targets"}]},"repeat-block-compose":{"begin":"\\b(REPEAT)\\s+(\\d+|\\$\\{[^}]*\\})\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#compose-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"repeat-block-gadget":{"begin":"\\b(REPEAT)\\s+(\\d+|\\$\\{[^}]*\\})\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#gadget-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"repeat-block-program":{"begin":"\\b(REPEAT)\\s+(\\d+|\\$\\{[^}]*\\})\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#program-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"stabilizer-declaration":{"begin":"\\b(STABILIZER)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#pauli-product"}],"beginCaptures":{"1":{"name":"keyword.declaration.deq"}}},"stim-instruction":{"begin":"\\b([a-zA-Z][a-zA-Z0-9_]*)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#tag"},{"include":"#parenthesized-arguments"},{"include":"#targets"},{"include":"#port-binding"}],"beginCaptures":{"1":{"name":"support.function.deq"}}},"tag":{"name":"string.other.deq","match":"\\[[^\\]]*\\]"},"targets":{"patterns":[{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"variable.other.deq","match":"sweep\\[\\d+\\]"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"support.class.check.deq","match":"(?:IN|OUT)\\d+\\.S\\d+"},{"name":"storage.type.pauli.deq","match":"!?[XYZ]\\d+"},{"name":"keyword.operator.deq","match":"\\*"},{"name":"keyword.operator.deq","match":"!"},{"name":"constant.numeric.deq","match":"\\d+"}]},"virtual-correction":{"match":"\\b(VIRTUAL)\\s+((?:[XYZ]\\d+)(?:\\*[XYZ]\\d+)*)\\s+(\\d+)","captures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"support.type.pauli.deq"},"3":{"name":"constant.numeric.deq"}}},"virtual-logical-statement":{"begin":"\\b(VIRTUAL)\\s+(?=(?:IN|OUT)?\\d*\\.?L[XYZ]|L[XYZ])","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"fift","scopeName":"source.fift","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#stack_words"},{"include":"#program_words"},{"include":"#control_words"},{"include":"#literals"},{"include":"#commands"}],"repository":{"commands":{"patterns":[{"name":"keyword.other.command.fift","match":"\\b[A-Z][A-Z0-9_]*\\b"}]},"comments":{"patterns":[{"name":"comment.line.double-slash.fift","match":"//.*$"}]},"control_words":{"patterns":[{"name":"keyword.control.flow.fift","match":"\\b(if|ifnot|cond|until|while|times)\\b"},{"name":"keyword.control.import.fift","match":"\\b(include)\\b"}]},"literals":{"patterns":[{"name":"constant.language.boolean.fift","match":"\\b(true|false)\\b"},{"name":"constant.other.binary-slice.fift","match":"b\\{[01]+\\}"},{"name":"constant.other.hex-slice.fift","match":"x\\{[0-9a-fA-F_]+\\}"},{"name":"constant.other.hex-bytes.fift","match":"B\\{[0-9a-fA-F_]+\\}"},{"name":"constant.character.fift","match":"char ."}]},"numbers":{"patterns":[{"name":"constant.numeric.decimal.fift","match":"\\b-?[0-9]+(/-?[0-9]+)?\\b"},{"name":"constant.numeric.hex.fift","match":"\\b0x[0-9a-fA-F]+\\b"},{"name":"constant.numeric.binary.fift","match":"\\b0b[01]+\\b"}]},"program_words":{"patterns":[{"name":"keyword.control.program.fift","match":"\\b(PROGRAM|END\u003ec|PROC|PROCINLINE|DECLPROC|DECLMETHOD)\\b"},{"name":"keyword.control.call.fift","match":"\\b(CALLDICT|INLINECALLDICT)\\b"}]},"stack_words":{"patterns":[{"name":"keyword.operator.stack.fift","match":"\\b(dup|drop|swap|rot|-rot|over|tuck|nip|2dup|2drop|2swap|pick|roll|-roll|exch|exch2|\\?dup)\\b"}]},"strings":{"patterns":[{"name":"string.quoted.double.fift","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.fift","match":"\\\\."}]},{"name":"string.quoted.double.abort.fift","match":"abort\"[^\"]*\""},{"name":"string.quoted.double.print.fift","match":"\\.\"[^\"]*\""}]}}}
|
data/grammars/source.flix.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"flix","scopeName":"source.flix","patterns":[{"include":"#all_patterns"}],"repository":{"all_patterns":{"patterns":[{"include":"#constants"},{"include":"#keywords"},{"include":"#literal_char"},{"include":"#literal_string"},{"include":"#literal_dec"},{"include":"#literal_hex"},{"include":"#annotations"},{"include":"#types"},{"include":"#comments"}]},"annotations":{"patterns":[{"name":"storage.type.annotation.flix","match":"@Deprecated"},{"name":"storage.type.annotation.flix","match":"@Experimental"},{"name":"storage.type.annotation.flix","match":"@Internal"},{"name":"storage.type.annotation.flix","match":"@ParallelWhenPure"},{"name":"storage.type.annotation.flix","match":"@Parallel"},{"name":"storage.type.annotation.flix","match":"@LazyWhenPure"},{"name":"storage.type.annotation.flix","match":"@Lazy"},{"name":"storage.type.annotation.flix","match":"@Skip"},{"name":"storage.type.annotation.flix","match":"@Test"}]},"comments":{"patterns":[{"name":"comment.line.double-slash.flix","match":"//.*$"},{"name":"comment.block.flix","begin":"/\\*","end":"\\*/"}]},"constants":{"patterns":[{"name":"constant.language.unit.flix","match":"\\
|
|
1
|
+
{"name":"flix","scopeName":"source.flix","patterns":[{"include":"#all_patterns"}],"repository":{"all_patterns":{"patterns":[{"include":"#constants"},{"include":"#declarations"},{"include":"#keywords"},{"include":"#literal_char"},{"include":"#literal_string"},{"include":"#literal_dec"},{"include":"#literal_hex"},{"include":"#annotations"},{"include":"#functions"},{"include":"#types"},{"include":"#comments"}]},"annotations":{"patterns":[{"name":"storage.type.annotation.flix","match":"@Deprecated"},{"name":"storage.type.annotation.flix","match":"@Experimental"},{"name":"storage.type.annotation.flix","match":"@Internal"},{"name":"storage.type.annotation.flix","match":"@ParallelWhenPure"},{"name":"storage.type.annotation.flix","match":"@Parallel"},{"name":"storage.type.annotation.flix","match":"@LazyWhenPure"},{"name":"storage.type.annotation.flix","match":"@Lazy"},{"name":"storage.type.annotation.flix","match":"@Skip"},{"name":"storage.type.annotation.flix","match":"@Test"}]},"comments":{"patterns":[{"name":"comment.line.double-slash.flix","match":"//.*$"},{"name":"comment.block.flix","begin":"/\\*","end":"\\*/"}]},"constants":{"patterns":[{"name":"constant.language.unit.flix","match":"(?\u003c![a-zA-Z0-9_!])\\(\\)"},{"name":"constant.language.bool.flix","match":"\\b(true|false)\\b"},{"name":"constant.language.comparison.flix","match":"\\b(LessThan|EqualTo|GreaterThan)\\b"},{"name":"constant.language.nil.flix","match":"\\b(Nil)\\b"},{"name":"constant.language.null.flix","match":"\\b(null)\\b"},{"name":"constant.language.option.flix","match":"\\b(Some|None)\\b"},{"name":"constant.language.result.flix","match":"\\b(Ok|Err)\\b"}]},"declarations":{"patterns":[{"match":"\\b(def|redef)\\s+([a-z][a-zA-Z0-9_]*!?)","captures":{"1":{"name":"keyword.declaration.flix"},"2":{"name":"entity.name.function.flix"}}}]},"functions":{"patterns":[{"match":"\\b([A-Z][a-zA-Z0-9_]*)\\.([a-z][a-zA-Z0-9_]*!?)","captures":{"1":{"name":"entity.name.type.flix"},"2":{"name":"support.function.flix"}}},{"name":"entity.name.function.flix","match":"\\b[a-z][a-zA-Z0-9_]*!?(?=\\s*\\()"}]},"keywords":{"patterns":[{"name":"keyword.control.choose.flix","match":"\\b(choose\\*|choose)\\b"},{"name":"keyword.control.applicativefor.flix","match":"\\b(forA)\\b"},{"name":"keyword.control.monadicfor.flix","match":"\\b(forM)\\b"},{"name":"keyword.control.foreach.flix","match":"\\b(foreach)\\b"},{"name":"keyword.control.handler.flix","match":"\\b(handler)\\b"},{"name":"keyword.control.yield.flix","match":"\\b(yield)\\b"},{"name":"keyword.control.if.flix","match":"\\b(if|else)\\b"},{"name":"keyword.control.match.flix","match":"\\b(case|match|ematch)\\b"},{"name":"keyword.control.run.flix","match":"\\b(run)\\b"},{"name":"keyword.control.throw.flix","match":"\\b(throw)\\b"},{"name":"keyword.control.try.flix","match":"\\b(try|catch)\\b"},{"name":"keyword.control.spawn.flix","match":"\\b(spawn)\\b"},{"name":"keyword.control.par.flix","match":"\\b(par)\\b"},{"name":"keyword.control.unsafe.flix","match":"\\b(unsafe)\\b"},{"name":"keyword.forall.flix","match":"\\b(forall)\\b"},{"name":"keyword.operator.bool.flix","match":"\\b(not|and|or)\\b"},{"name":"keyword.operator.fix.flix","match":"\\bfix\\b"},{"name":"keyword.operator.new.flix","match":"\\b(new)\\b"},{"name":"keyword.declaration.flix","match":"\\b(eff|def|redef|enum|type|alias|trait|instance|with|mod|struct)\\b"},{"name":"keyword.expression.cast.flix","match":"\\b(checked_cast|checked_ecast|unchecked_cast|as)\\b"},{"name":"keyword.expression.discard.flix","match":"\\b(discard)\\b"},{"name":"keyword.expression.fixpoint.flix","match":"\\b(from|into|inject|project|psolve|solve|query|pquery|where|select)\\b"},{"name":"keyword.expression.force.flix","match":"\\b(force)\\b"},{"name":"keyword.expression.hole.flix","match":"(\\?\\?\\?|\\?[a-zA-Z0-9]+)"},{"name":"keyword.expression.import.flix","match":"\\b(import)\\b"},{"name":"keyword.expression.instanceof.flix","match":"\\b(instanceof)\\b"},{"name":"keyword.expression.let.flix","match":"\\b(let)\\b"},{"name":"keyword.expression.lazy.flix","match":"\\b(lazy)\\b"},{"name":"keyword.expression.region.flix","match":"\\b(region)\\b"},{"name":"keyword.use.flix","match":"\\b(use)\\b"},{"name":"keyword.mut.flix","match":"\\b(mut)\\b"},{"name":"keyword.symbols.flix","match":"(~\u003e|\u003c\\-|=\u003e)"},{"name":"keyword.arrow.function.flix","match":"(\\s\\-\u003e\\s|\\s\\-\u003e|\\-\u003e\\s)"},{"name":"keyword.operator.arrow.struct.flix","match":"\\-\u003e"},{"name":"keyword.control.semicolon.flix","match":";"},{"name":"variable.language.super.flix","match":"\\b(super)\\b"},{"name":"storage.modifier.flix","match":"\\b(pub|sealed|static)\\b"}]},"literal_char":{"name":"string.quoted.single.flix","begin":"'","end":"'","patterns":[{"name":"constant.character.escape","match":"\\\\((u[0-9a-fA-F]{4})|.)"}]},"literal_dec":{"patterns":[{"name":"constant.numeric.decimal.flix","match":"\\b[0-9](_*[0-9])*\\.[0-9](_*[0-9])*(f32|f64)?\\b"},{"name":"constant.numeric.decimal.bigdecimal.flix","match":"\\b[0-9](_*[0-9])*\\.[0-9](_*[0-9])*(ff)?\\b"},{"name":"constant.numeric.decimal.flix","match":"(?\u003c!\\$)\\b[0-9](_*[0-9])*(i8|i16|i32|i64|ii)?\\b"}]},"literal_hex":{"name":"constant.numeric.hex.flix","match":"\\b0x[a-fA-F0-9](_*[a-fA-F0-9])*(i8|i16|i32|i64|ii)?\\b"},"literal_string":{"name":"string.quoted.double.flix","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.flix","match":"\\\\((u[0-9a-fA-F]{4})|.)"},{"contentName":"meta.embedded.line.flix","begin":"\\$\\{","end":"\\}","patterns":[{"include":"#all_patterns"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.flix"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.flix"}}}]},"types":{"patterns":[{"name":"entity.name.type.flix","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"fpp","scopeName":"source.fpp","patterns":[{"include":"#specInitPhase"},{"include":"#keywords"},{"include":"#modifiers"},{"include":"#severity"},{"include":"#types"},{"include":"#type-builtin-literals"},{"include":"#annotations"},{"include":"#tripleString"},{"include":"#strings"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#punctuation-accessor"},{"include":"#string-character-escape"},{"include":"#numeric-literal"}],"repository":{"annotations":{"patterns":[{"name":"comment.block.documentation.fpp","match":"[@][\u003c]?[^\n]*"},{"name":"comment.line.fpp","match":"[#][^\n]*"}]},"cppTripleString":{"contentName":"meta.embedded.block.cpp","begin":"\"\"\"","end":"\"\"\"","patterns":[{"include":"source.c++"}],"beginCaptures":{"0":{"name":"string.quoted.triple.fpp punctuation.definition.string.begin.fpp"}},"endCaptures":{"0":{"name":"string.quoted.triple.fpp punctuation.definition.string.end.fpp"}}},"keywords":{"patterns":[{"name":"storage.type.class.fpp","match":"\\b(?\u003c![$])(action|always|array|assert|at|base|block|bool|change|choice|command|component|connections|constant|container|cpu|default|do|drop|else|enter|entry|enum|event|exit|format|get|group|guard|health|hook|id|if|import|include|initial|input|instance|interface|internal|locate|machine|match|module|omit|on|opcode|orange|output|packet|packets|param|phase|port|priority|private|product|queue|record|recv|red|ref|reg|request|resp|save|send|serial|set|severity|signal|size|sizeof|stack|state|string|struct|telemetry|text|throttle|time|topology|type|unmatched|update|with|yellow)\\b"}]},"line-continuation":{"name":"punctuation.separator.continuation.fpp","match":"\\\\\\s*$"},"modifiers":{"patterns":[{"name":"keyword.control.export.fpp","match":"\\b(?\u003c![$])(active|async|deployment|dictionary|sync|system|passive|queued|guarded)\\b"}]},"numeric-literal":{"patterns":[{"name":"constant.numeric.hex.ts","match":"\\b(?\u003c!\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\b(?!\\$)","captures":{"1":{"name":"storage.type.numeric.bigint.ts"}}},{"name":"constant.numeric.binary.ts","match":"\\b(?\u003c!\\$)0(?:b|B)[01][01_]*(n)?\\b(?!\\$)","captures":{"1":{"name":"storage.type.numeric.bigint.ts"}}},{"name":"constant.numeric.octal.ts","match":"\\b(?\u003c!\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\b(?!\\$)","captures":{"1":{"name":"storage.type.numeric.bigint.ts"}}},{"match":"(?x)\n(?\u003c!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)(n)?\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*(n)?\\b)| # .1\n (?:\\b[0-9][0-9_]*(n)?\\b(?!\\.)) # 1\n)(?!\\$)","captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"10":{"name":"meta.delimiter.decimal.period.ts"},"11":{"name":"storage.type.numeric.bigint.ts"},"12":{"name":"meta.delimiter.decimal.period.ts"},"13":{"name":"storage.type.numeric.bigint.ts"},"14":{"name":"storage.type.numeric.bigint.ts"},"2":{"name":"storage.type.numeric.bigint.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"storage.type.numeric.bigint.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"storage.type.numeric.bigint.ts"},"7":{"name":"storage.type.numeric.bigint.ts"},"8":{"name":"meta.delimiter.decimal.period.ts"},"9":{"name":"storage.type.numeric.bigint.ts"}}}]},"punctuation-accessor":{"match":"(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))","captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"}}},"punctuation-comma":{"name":"punctuation.separator.comma.ts","match":","},"punctuation-semicolon":{"name":"punctuation.terminator.statement.ts","match":";"},"severity":{"patterns":[{"name":"keyword.control.trycatch.fpp","match":"\\b(?\u003c![$])(activity|diagnostic|low|fatal|high|warning)\\b"}]},"specInitPhase":{"name":"meta.spec-init.fpp","begin":"\\b(?\u003c![$])(phase)\\b","end":"(?\u003c=\")|(?=\\})","patterns":[{"include":"#cppTripleString"},{"include":"#strings"},{"include":"#line-continuation"},{"include":"#annotations"},{"include":"#numeric-literal"},{"include":"#punctuation-accessor"}],"beginCaptures":{"1":{"name":"storage.type.class.fpp"}}},"string-character-escape":{"name":"constant.character.escape.ts","match":"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\\{[0-9A-Fa-f]+\\}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)"},"strings":{"name":"string.quoted.double.fpp","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.fpp","match":"\\\\."}]},"tripleString":{"name":"string.quoted.triple.fpp","begin":"\"\"\"","end":"\"\"\"","patterns":[{"name":"constant.character.escape.fpp","match":"\\\\."}]},"type-builtin-literals":{"name":"support.type.builtin.ts","match":"\\b(?\u003c![$])(true|false)\\b"},"types":{"patterns":[{"name":"support.type.primitive.fpp","match":"\\b(U8|I8|U16|I16|U32|I32|U64|I64|F32|F64|string|bool)\\b"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"func","scopeName":"source.func","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#directives"},{"include":"#keywords"},{"include":"#types"},{"include":"#specifiers"},{"include":"#operators"},{"include":"#function-calls"},{"include":"#punctuation"},{"include":"#identifiers"}],"repository":{"comments":{"patterns":[{"name":"comment.line.double-semicolon.func","match":";;.*$"},{"name":"comment.block.func","begin":"\\{-","end":"-\\}","patterns":[{"include":"#comments"}]}]},"directives":{"patterns":[{"name":"keyword.control.directive.include.func","match":"#include"},{"name":"keyword.control.directive.pragma.func","match":"#pragma"}]},"function-calls":{"patterns":[{"name":"meta.function-call.builtin.func","match":"(?x)\\b(?:throw_unless|equal_slices|send_raw_message|accept_message)\\b(?=\\s*\\()","captures":{"0":{"name":"support.function.builtin.func"}}},{"name":"meta.function-call.method.func","begin":"(?\u003c=\\.|~)\\s*(`[^`]+`|[A-Za-z_\\$][^\\s+\\-*\\/%,.;(){}\\[\\]=\u003c\u003e|\\^~]*)\\s*(?=\\()","end":"(?=)","beginCaptures":{"1":{"name":"support.function.method.func"}}},{"name":"meta.function-call.func","begin":"(?x)(?\u003c![\\.\\$~])(`[^`]+`|[A-Za-z_\\$][^\\s+\\-*\\/%,.;(){}\\[\\]=\u003c\u003e|\\^~]*)\\s*(?=\\()","end":"(?=)","beginCaptures":{"1":{"name":"support.function.call.func"}}}]},"identifiers":{"patterns":[{"name":"entity.name.function.definition.func","match":"(?x)(?:(?\u003c=^)|(?\u003c=[;{])\\s*)(`[^`]+`|[A-Za-z_\\$][^\\s+\\-*\\/%,.;(){}\\[\\]=\u003c\u003e|\\^~]*)\\s*(?=\\()"},{"name":"variable.other.func","match":"`[^`]+`|[A-Za-z_\\$][^\\s+\\-*\\/%,.;(){}\\[\\]=\u003c\u003e|\\^~]*"}]},"keywords":{"patterns":[{"name":"keyword.control.func","match":"\\b(?:if|ifnot|elseif|elseifnot|else|while|do|until|repeat|return|try|catch)\\b"},{"name":"keyword.declaration.func","match":"\\b(?:global|const|forall)\\b"}]},"numbers":{"patterns":[{"name":"constant.numeric.hex.func","match":"(?\u003c![0-9A-Za-z_])-?0x[0-9a-fA-F]+"},{"name":"constant.numeric.dec.func","match":"(?\u003c![0-9A-Za-z_])-?[0-9]+"}]},"operators":{"patterns":[{"name":"keyword.operator.func","match":"(?:==|!=|\u003c=|\u003e=|\u003c=\u003e|\u003c\u003c=|\u003e\u003e=|~\u003e\u003e=|\\^\u003e\u003e=|\u003c\u003c|\u003e\u003e|~\u003e\u003e|\\^\u003e\u003e|-\u003e|=|\\+=|-=|\\*=|\\/=|~\\/=|\\^\\/=|%|~%=|\\^%|\u0026|\\|\\||~|\\^|\\?|\\.)"}]},"punctuation":{"patterns":[{"name":"punctuation.brackets.func","match":"[()\\[\\]{}]"},{"name":"punctuation.separator.func","match":"[,:;]"}]},"specifiers":{"patterns":[{"name":"storage.modifier.func","match":"\\b(?:impure|inline|inline_ref|method_id|asm)\\b"}]},"strings":{"patterns":[{"name":"string.quoted.double.func","match":"\"(?:[^\\\"\\\\]|\\\\.)*\"[Hhcu]?"}]},"types":{"patterns":[{"name":"storage.type.primitive.func","match":"\\b(?:int|cell|slice|builder|cont|tuple)\\b"},{"name":"storage.type.modifier.func","match":"\\bvar\\b"}]}}}
|