github-linguist 7.24.1 → 7.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/govulncheck.json +1 -0
- data/grammars/liquid.injection.json +1 -1
- data/grammars/source.abap.json +1 -1
- data/grammars/source.abl.json +1 -1
- data/grammars/source.arr.json +1 -0
- data/grammars/source.astro.json +1 -1
- data/grammars/source.basic.json +1 -1
- data/grammars/source.brs.json +1 -1
- data/grammars/source.cds.json +1 -1
- data/grammars/source.chapel.json +1 -1
- data/grammars/source.circom.json +1 -0
- data/grammars/source.clar.json +1 -1
- data/grammars/source.cobol.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.denizenscript.json +1 -1
- data/grammars/source.editorconfig.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.generic-config.json +1 -0
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.gleam.json +1 -1
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.hocon.json +1 -1
- data/grammars/source.hosts.json +1 -1
- data/grammars/source.j.json +1 -1
- data/grammars/source.jflex.json +1 -1
- data/grammars/source.kerboscript.json +1 -0
- data/grammars/source.kickstart.json +1 -0
- data/grammars/source.kotlin.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.mermaid.flowchart.json +1 -1
- data/grammars/source.mermaid.json +1 -1
- data/grammars/source.mermaid.mindmap.json +1 -0
- data/grammars/source.mo.json +1 -1
- data/grammars/source.move.json +1 -1
- data/grammars/source.nim.json +1 -1
- data/grammars/source.nim_filter.json +1 -1
- data/grammars/source.nimcfg.json +1 -1
- data/grammars/source.pnlgrp.json +1 -1
- data/grammars/source.polar.json +1 -1
- data/grammars/source.postscript.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.rescript.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.singularity.json +1 -1
- data/grammars/source.sqf.json +1 -1
- data/grammars/source.stan.json +1 -1
- data/grammars/source.svelte.json +1 -1
- data/grammars/source.sway.json +1 -0
- data/grammars/source.talon.json +1 -1
- data/grammars/source.ts.json +1 -1
- data/grammars/source.tsql.json +1 -1
- data/grammars/source.tsx.json +1 -1
- data/grammars/source.turtle.json +1 -1
- data/grammars/source.v.json +1 -1
- data/grammars/source.yara.json +1 -1
- data/grammars/text.adblock.json +1 -1
- data/grammars/text.checksums.json +1 -1
- data/grammars/text.html.liquid.json +1 -1
- data/grammars/text.restructuredtext.json +1 -1
- data/grammars/text.sfd.json +1 -1
- data/grammars/text.xml.svg.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +8 -0
- data/lib/linguist/generic.yml +1 -0
- data/lib/linguist/heuristics.yml +38 -13
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +132 -16
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/vendor.yml +3 -0
- metadata +11 -4
- data/grammars/source.nim.comment.json +0 -1
data/grammars/source.nim.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Nim","scopeName":"source.nim","patterns":[{"include":"source.nim.comment"},{"name":"source.c.embedded.nim","patterns":[{"begin":"\\{\\.(emit:) ?(\\\"\\\"\\\")","end":"(\\\"\\\"\\\")\\.?","patterns":[{"name":"keyword.operator.nim","begin":"\\`","end":"\\`"},{"include":"source.c"}],"captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"1":{"name":"comment.syntax.nim"}}}]},{"name":"source.asm.embedded.nim","patterns":[{"begin":"(asm )(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"name":"keyword.operator.nim","begin":"\\`","end":"\\`"},{}],"captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]},{"name":"meta.proc.nim","patterns":[{"begin":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|func|method|template|macro|iterator|converter)\\s+((\\`[^\\s\\`]+\\`)|([\\w\\x{80}-\\x{10FFFF}]+))(\\*)?","end":"(\\=)","patterns":[{"match":"\\[[\\w\\x{80}-\\x{10FFFF}]+\\]"},{"begin":"\\{","end":"\\}","patterns":[{"name":"string.something.nim","begin":"\\\"","end":"\\\""},{"name":"entity.other.attribute-name.pattern.nim","match":"([\\w\\x{80}-\\x{10FFFF}]+)"}]},{"begin":"\\(","end":"\\)","patterns":[{"begin":"\\{","end":"\\}","patterns":[{"name":"string.something.nim","begin":"\\\"","end":"\\\""},{"name":"entity.other.attribute-name.pattern.nim","match":"([\\[\\]\\w\\x{80}-\\x{10FFFF}]+)"}]},{"include":"source.nim"}]},{"include":"source.nim"}],"beginCaptures":{"1":{"name":"storage.type.proc.nim"},"2":{"name":"entity.name.function.nim"},"5":{"name":"keyword.operator.secondary.kw-public.nim"}},"endCaptures":{"1":{"name":"keyword.operator.nim"}}}]},{"name":"pragma","begin":"\\{\\.","end":"\\.?\\}","patterns":[{"name":"string.something.nim","begin":"\\\"","end":"\\\""},{"name":"entity.other.attribute-name.pragma.nim","match":"([\\w\\x{80}-\\x{10FFFF}]+)"}]},{"name":"comment.line.discarded.nim","begin":"discard \\\"\\\"\\\"","end":"\\\"\\\"\\\""},{"name":"constant.numeric.float.decimal.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(\\d[_\\d]*((\\.[_\\d]+([eE][\\+\\-]?\\d[_\\d]*)?)|([eE][\\+\\-]?\\d[_\\d]*)))('?([a-zA-Z\\x{80}-\\x{10FFFF}][\\w\\x{80}-\\x{10FFFF}]*)|[fFdD])?"},{"name":"constant.numeric.integer.hexadecimal.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(0[xX][0-9A-Fa-f][_0-9A-Fa-f]*)('?(([a-zA-Z\\x{80}-\\x{10FFFF}][\\w\\x{80}-\\x{10FFFF}]*)|[uUfFdD]))?"},{"name":"constant.numeric.integer.octal.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(0[ocC][0-7][_0-7]*)('?(([a-zA-Z\\x{80}-\\x{10FFFF}][\\w\\x{80}-\\x{10FFFF}]*)|[uUfFdD]))?"},{"name":"constant.numeric.integer.binary.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(0(b|B)[01][_01]*)('?(([a-zA-Z\\x{80}-\\x{10FFFF}][\\w\\x{80}-\\x{10FFFF}]*)|[uUfFdD]))?"},{"name":"constant.numeric.integer.decimal.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(\\d[_\\d]*)('?(([a-zA-Z\\x{80}-\\x{10FFFF}][\\w\\x{80}-\\x{10FFFF}]*)|[uUfFdD]))?"},{"name":"constant.language.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(true|false|inf|nil)(?![\\w\\x{80}-\\x{10FFFF}])"},{"begin":"(?:^|\\s+|=)(when|if)\\b","end":"(?=:)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.control.primary.nim"}},"endCaptures":{"1":{"name":"control.variable.parameter.nim"}}},{"begin":"(?:^|\\s+|=)(case)\\b","end":"(?=\\bof\\b)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.control.primary.nim"}},"endCaptures":{"1":{"name":"control.variable.parameter.nim"}}},{"begin":"(?:^|\\s+)(of|else|elif)\\b","end":"(?=:)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.control.secondary.nim"}},"endCaptures":{"1":{"name":"control.variable.parameter.nim"}}},{"name":"keyword.control.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(await|block|break|continue|do|end|except|finally|raise|return|try|while|yield)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"keyword.operator.boolean.nim","match":"((?\u003c![\\w\\x{80}-\\x{10FFFF}])(and|in|is|isnot|not|notin|or|xor)(?![\\w\\x{80}-\\x{10FFFF}]))"},{"name":"keyword.other.nim","match":"((?\u003c![\\w\\x{80}-\\x{10FFFF}])(addr|as|bind|cast|concept|const|converter|defer|discard|distinct|div|enum|export|from|import|include|let|mixin|object|of|out|ptr|ref|shl|shr|static|type|using|var)(?![\\w\\x{80}-\\x{10FFFF}]))"},{"name":"keyword.operator.nim","match":"(\\b()\\b|(=|\\+|-|\\*|/|\u003c|\u003e|@|\\$|~|\u0026|%|!|\\?|\\^|\\.|:|\\\\)+)"},{"name":"meta.forloop.nim","begin":"(for)\\s+","end":"(?=:)","patterns":[{"match":"\\ [\\w\\x{80}-\\x{10FFFF},]+\\s+(in)\\s+","captures":{"1":{"name":"keyword.control.nim"}}},{"include":"source.nim"}],"captures":{"1":{"name":"keyword.control.nim"}}},{"match":"((import)\\s+[\\.|\\w|\\/]+,?)","captures":{"2":{"name":"keyword.control.nim"}}},{"match":"(from)\\s+[\\/\\w]+(?:\\s+(?:as)\\s+[\\/\\w]+)?\\s+(?=import)","captures":{"1":{"name":"keyword.control.nim"}}},{"begin":"(var|let)\\s*\\(","end":"\\)","captures":{"1":{"name":"keyword.other.nim"}}},{"name":"keyword.invalid.nim","match":"((?\u003c![\\w\\x{80}-\\x{10FFFF}])(interface)(?![\\w\\x{80}-\\x{10FFFF}]))"},{"name":"keyword.other.common.function.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(new|GC_ref|GC_unref|assert|echo|defined|declared|newException|countup|countdown|len|high|low)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"storage.type.concrete.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(((uint|int|float)(8|16|32|64)?)|clong|culong|cchar|cschar|cshort|cint|csize|clonglong|cfloat|cdouble|clongdouble|cuchar|cushort|cuint|culonglong|cstringArray|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"storage.type.generic.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(range|array|seq|tuple|Natural|set|ref|ptr|pointer)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"storage.type.function.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(proc|func|iterator|method|template|macro)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"storage.type.generic.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(openarray|varargs|void)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"support.constant.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])([A-Z][A-Z0-9_]+)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"support.type.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])([A-Z]\\w+)(?![\\w\\x{80}-\\x{10FFFF}])"},{"name":"support.function.any-method.nim","match":"(?\u003c![\\w\\x{80}-\\x{10FFFF}])(\\w+)(?![\\w\\x{80}-\\x{10FFFF}])(?=\\()"},{"name":"string.quoted.triple.nim","begin":"\\w*\\\"\\\"\\\"","end":"\\\"\\\"\\\"[^\\\"]"},{"name":"string.quoted.double.raw.nim","begin":"\\w+\\\"","end":"\\\"","patterns":[{"match":"\\\"\\\""}]},{"name":"string.quoted.double.nim","begin":"\\\"","end":"\\\"","patterns":[{"include":"#escaped_char"}]},{"name":"string.quoted.single.nim","match":"\\'([^\\\\]|\\\\x[0-9A-Fa-f][0-9A-Fa-f]|\\\\\\d+|\\\\[abceflnrtv\\\\\\\"\\'])\\'"},{"name":"invalid.illegal.character.nim","match":"\\'\\\\[^abceflnrtv\\\\\\\"\\']\\'"},{"name":"invalid.illegal.character.nim","match":"\\'[A-Fa-f0-9\\x{80}-\\x{10FFFF}][A-Fa-f0-9\\x{80}-\\x{10FFFF}]+\\'"},{"begin":"([\\w\\x{80}-\\x{10FFFF}\\`]+)\\s*(?=\\(|\\[.+?\\]\\s*\\()","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"support.function.any-method.nim"}}},{"match":"([\\w\\x{80}-\\x{10FFFF}]+)(?=\\s+[\\w](?![\\w\\x{80}-\\x{10FFFF}]+((?!\\n)\\s)+))","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"support.function.any-method.nim"}}},{"match":"([\\w\\x{80}-\\x{10FFFF}]+)(?=\\s+[\\\"\\'\\`])","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"support.function.any-method.nim"}}},{"match":"(tmpl(i)?)(?=( (nim|html|xml|js|css|glsl|md))?\\\"\\\"\\\")","captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"keyword.operator.nim"}}},{"name":"source.nim.embedded.nim","patterns":[{"begin":"(nim)(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"begin":"(?\u003c!\\$)(\\$)\\(","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)\\{","end":"\\}","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )","end":"(\\{|\\n)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.control.nim"}},"endCaptures":{"1":{"name":"plain"}}},{"name":"keyword.operator.nim","match":"(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"},{"include":"source.nim"}],"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]},{"name":"source.html.embedded.nim","patterns":[{"begin":"(html)(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"begin":"(?\u003c!\\$)(\\$)\\(","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)\\{","end":"\\}","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )","end":"(\\{|\\n)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.control.nim"}},"endCaptures":{"1":{"name":"plain"}}},{"name":"keyword.operator.nim","match":"(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"},{"include":"text.xml"}],"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]},{"name":"source.xml.embedded.nim","patterns":[{"begin":"(xml)(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"begin":"(?\u003c!\\$)(\\$)\\(","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)\\{","end":"\\}","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )","end":"(\\{|\\n)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.control.nim"}},"endCaptures":{"1":{"name":"plain"}}},{"name":"keyword.operator.nim","match":"(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"},{"include":"text.xml"}],"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]},{"name":"source.js.embedded.nim","patterns":[{"begin":"(js)(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"begin":"(?\u003c!\\$)(\\$)\\(","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)\\{","end":"\\}","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )","end":"(\\{|\\n)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.control.nim"}},"endCaptures":{"1":{"name":"plain"}}},{"name":"keyword.operator.nim","match":"(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"},{"include":"source.js"}],"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]},{"name":"source.css.embedded.nim","patterns":[{"begin":"(css)(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"begin":"(?\u003c!\\$)(\\$)\\(","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)\\{","end":"\\}","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )","end":"(\\{|\\n)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.control.nim"}},"endCaptures":{"1":{"name":"plain"}}},{"name":"keyword.operator.nim","match":"(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"},{"include":"source.css"}],"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]},{"name":"source.glsl.embedded.nim","patterns":[{"begin":"(glsl)(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"begin":"(?\u003c!\\$)(\\$)\\(","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)\\{","end":"\\}","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )","end":"(\\{|\\n)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.control.nim"}},"endCaptures":{"1":{"name":"plain"}}},{"name":"keyword.operator.nim","match":"(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"},{"include":"source.glsl"}],"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]},{"name":"source.markdown.embedded.nim","patterns":[{"begin":"(md)(\\\"\\\"\\\")","end":"\\\"\\\"\\\"","patterns":[{"begin":"(?\u003c!\\$)(\\$)\\(","end":"\\)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)\\{","end":"\\}","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}}},{"begin":"(?\u003c!\\$)(\\$)(for|while|case|of|when|if|else|elif)( )","end":"(\\{|\\n)","patterns":[{"include":"source.nim"}],"captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.control.nim"}},"endCaptures":{"1":{"name":"plain"}}},{"name":"keyword.operator.nim","match":"(?\u003c!\\$)(\\$[a-zA-Z0-9_]+)"},{}],"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"comment.syntax.nim"}},"endCaptures":{"0":{"name":"comment.syntax.nim"}}}]}],"repository":{"escaped_char":{"patterns":[{"name":"constant.character.escape.newline.nim","match":"\\\\[nN]"},{"name":"constant.character.escape.carriagereturn.nim","match":"\\\\[cC]|\\\\[rR]"},{"name":"constant.character.escape.linefeed.nim","match":"\\\\[lL]"},{"name":"constant.character.escape.formfeed.nim","match":"\\\\[fF]"},{"name":"constant.character.escape.tabulator.nim","match":"\\\\[tT]"},{"name":"constant.character.escape.verticaltabulator.nim","match":"\\\\[vV]"},{"name":"constant.character.escape.double-quote.nim","match":"\\\\\\\""},{"name":"constant.character.escape.single-quote.nim","match":"\\\\'"},{"name":"constant.character.escape.chardecimalvalue.nim","match":"\\\\[0-9]+"},{"name":"constant.character.escape.alert.nim","match":"\\\\[aA]"},{"name":"constant.character.escape.backspace.nim","match":"\\\\[bB]"},{"name":"constant.character.escape.escape.nim","match":"\\\\[eE]"},{"name":"constant.character.escape.hex.nim","match":"\\\\[xX][0-9A-Fa-f]{2}"},{"name":"constant.character.escape.backslash.nim","match":"\\\\\\\\"}]}}}
|
1
|
+
{"name":"Nim","scopeName":"source.nim","patterns":[{"include":"#type-defs"},{"include":"#const-defs"},{"include":"#var-let-using-defs"},{"include":"#pragmas"},{"include":"#brackets"},{"include":"#punctuations"},{"include":"#block-doc-comments"},{"include":"#comments"},{"include":"#for-stmts"},{"include":"#asm-stmts"},{"include":"#routines"},{"include":"#fmt-strs"},{"include":"#operators"},{"include":"#literals"},{"include":"#keywords"},{"include":"#do-stmts"},{"include":"#calls"},{"include":"#types"},{"include":"#builtins"},{"include":"#generic-symbols"}],"repository":{"asm-stmt-1":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","patterns":[{"include":"#interpolation"}],"captures":{"1":{"name":"storage.type.string.nim"},"2":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}},{"contentName":"string.quoted.double.nim","begin":"([Rr])(\")","end":"(\")|(\\n)","patterns":[{"include":"#interpolation"}],"beginCaptures":{"1":{"name":"storage.type.string.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"},"2":{"name":"invalid.illegal.nim"}}},{"name":"string.quoted.double.nim","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"},{"include":"#interpolation"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"asm-stmts":{"patterns":[{"begin":"asm\\b","end":"(?=[^\"Rr{\\s])|(?\u003c=\")","patterns":[{"include":"#pragmas"},{"include":"#asm-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.flow.nim"}}}]},"block-comments":{"patterns":[{"name":"comment.block.number-sign.nim","begin":"#\\[","end":"]#","patterns":[{"include":"#block-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim"}}}]},"block-doc-comments":{"patterns":[{"name":"comment.block.documentation.nim","begin":"##\\[","end":"]##","patterns":[{"include":"#block-doc-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim"}}}]},"brackets":{"patterns":[{"include":"#square-brackets"},{"name":"meta.braces.nim","begin":"\\{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.braces.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.braces.end.nim"}}},{"name":"meta.parens.nim","begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.nim"}}}]},"builtins":{"patterns":[{"name":"variable.language.nim","match":"\\bresult\\b"},{"name":"support.function.builtin.expl","match":"\\b(?x: abs|add(?:[Ee]scapedChar|Float|Int|QuitProc|Quoted)?|alignof|allocCStringArray|arrayWith |ashr|astToStr|assert |atomic(?:AddFetch|AlwaysLockFree|(?:And|Nand|Or|Sub|Xor)Fetch|Clear |(?:Compare)?ExchangeN?|Dec|Fetch(?:A[dn]d|Nand|Or|Sub|Xor)|Inc |IsLockFree|LoadN?|(?:Signal|Thread)Fence|StoreN?|TestAndSet) |card|cas|chr|clamp|close|cmp(?:Mem)?|compile(?:Option|s)|contains|copyMem |cpuRelax|create(?:(?:Shared)?U?|Thread)|cstringArrayToSeq |dealloc(?:CStringArray|Heap|(?:Shared)?(?:Impl)?)|debugEcho|dec |declared(?:InScope)?|deepCopy|default|defined|del(?:ete)?|dispose|doAssert(?:Raises)?|echo|endOfFile |equalMem|excl|failedAssertImpl|field(?:s|Pairs)|find|finished|flushFile|freeShared |GC_(?:collectZct|disable(?:MarkAndSweep)?|fullCollect|getStatistics|(?:un)?ref) |gcInvariant|getAllocStats |get(?:CurrentException(?:Msg)?|File(?:Pos|Size)|Frame(?:State)? |(?:(?:Free|Occupied|Total)(?:Shared)?|Max)Mem|GCFrame|OsFileHandle |StackTrace(?:Entries)?|TypeInfo|ThreadId) |gorge(?:Ex)?|handle|high|incl?|insert|instantiationInfo|internalNew |isNil|isNotForeign|iterToProc|joinThreads?|len|lines|locals|low|max|min |m?(?:items|pairs)|move(?:Mem)? |new(?:Seq(?:OfCap|Uninitialized)?|String(?:OfCap)?|Exception|WideCString)? |onFailedAssert|onThreadDestruction|open|ord|peek|pinToCpu|pop(?:GcFrame)?|pred |prepareMutation|procCall|protect|pushGcFrame|quit|raiseAssert|raw(?:Env|Proc) |ready|read(?:All|Buffer|Bytes|Chars?|File|Lines?) |(?:re)?alloc(?:Shared)?0?(?:Impl)?|recv|repr(?:Discriminant)?|reset |resize(?:Shared)?|runnableExamples |set(?:ControlCHook|CurrentException|FilePos|Frame(?:State)?|GcFrame|Inheritable|Len|StdIoUnbuffered|upForeignThreadGc) |shallow(?:Copy)?|sizeof|slurp|stackTraceAvailable|static(?:Exec|Read)|stdmsg |substr|succ|swap|tearDownForeignThreadGc |to(?:Biggest?(?:Float|Int)|OpenArray(?:Byte)?|U(?:8|16|32))|try(?:Recv|Send) |typeof|unsafe(?:Addr|New)|unsetControlCHook|wasMoved|writeStackTrace |ze(?:64)?|zero(?:Default|Mem)|count(?:down|up)|varargsLen|closureScope |currentSourcePath|disarm|dumpAllocStats|excl|fence|format(?:ErrorIndexBound|FieldDefect) |incl|offsetOf|once|rangeCheck|(?:un)?likely|unown|write(?:Buffer|Bytes|Chars|File|Line)? )\\b"},{"name":"support.function.builtin.expl","match":"`(?:addr|and|div|is(?:not)?|mod|not|of|sh[lr]|x?or|(?:not)?in|=(?:copy|destroy|sink|trace)|\\$|%%|[-*+/\u003c]%?=?|\u003c=%|[\u0026=]=?|\\.\\.|@|\\[]=?)`"},{"name":"storage.type.primitive.expl","match":"\\b(?x:any|array|auto|bool|byte |c(?:double|float|u?(?:long(?:long)?|char|int|short)|longdouble|schar |size(?:_t)?|string(?:[Aa]rray)?) |char|float(?:32|64)?|iterable|lent|open[Aa]rray|owned|pointer|ptr|range|ref|se[qt] |sink|static|string|typed?|type[Dd]esc|u?int(?:8|16|32|64)?|untyped|varargs|void)\\b"},{"name":"support.constant.builtin.expl","match":"\\b(?x:appType|Compile(?:Date|Time)|(?:big|cpu|little)Endian |fm(Append|Read(?:Write(?:Existing)?)?|Write)|fsp(?:Set|Cur|End) |gc(?:Throughput|Responsiveness|Optimize(?:Space|Time))|host(?:CPU|OS) |isMainModule|NaN|(?:Neg)?Inf|Nim(?:Major|Minor|Patch|Version)|nimvm|off|on |Quit(?:Failure|Success)|typeOf(?:Iter|Proc))\\b"},{"name":"support.variable.builtin.expl","match":"\\b(?x: ATOMIC_(?:ACQ_REL|ACQUIRE|CONSUME|RELAXED|RELEASE|SEQ_CST)|errorMessageWriter |(?:global|local)RaiseHook|nimThreadDestructionHandlers|onUnhandledException |outOfMemHook|programResult|std(?:err|out|in)|unhandledExceptionHook )\\b"}]},"calls":{"patterns":[{"begin":"(?x: (?= (?: (?!(?:out|ptr|ref|tuple)\\b) [A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+` ) (?:\\[.*])? (?: \\( |\" |[ ]+ (?: [_\\d\"'`\\[\\(] |(?!\\.|(?:\\*?[ ]*)[:=]|=[^=])[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+[^\\-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔\\s] |(?!as|asm|and|bind|break|concept|const|continue|converter |defer|discard|distinct|div|elif|else|end|except|export|finally|from|import |include|interface|is(?:not)?|let|macro|method|mixin|mod|(?:not)?in|of |raise|sh[lr]|template|using|while|yield|x?or)[A-Za-z\\x80-\\xff] |\\{(?!\\.) ) ) ) )","end":"(?=[^\\[\\(`\\w\\x{80}-\\x{ff}])|(?\u003c=[\"\\)])","patterns":[{"name":"variable.function.nim","begin":"(?=[`_A-Za-z\\x80-\\xff])","end":"(?=[^`_A-Za-z\\x80-\\xff])","patterns":[{"include":"#builtins"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},{"name":"meta.function-call.nim meta.generic.nim","begin":"\\[:?","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.generic.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.generic.end.nim"}}},{"name":"meta.function-call.arguments.nim","begin":"\\(","end":"(\\))","patterns":[{"match":"(?x: (?= (?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) [ ]* [:=](?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]) ) (?!(?x:addr|asm|bind|block|break|case|cast|concept|const|continue|converter |defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for |from|func|if|import|include|interface|iterator|let|macro|method|mixin |object|of|out|proc|ptr|raise|ref|return|static|template|try|tuple|type |using|var|when|while|yield)\\b ) ([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?:[ ]*(:))? )","captures":{"1":{"name":"variable.parameter.nim"},"2":{"name":"punctuation.separator.key-value.nim"}}},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.arguments.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.arguments.end.nim"}}},{"include":"#triplestr_lit"},{"name":"string.quoted.double.nim","begin":"\"","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\"\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.unclosed-string.nim"}}}]}]},"characters":{"patterns":[{"match":"'(?:[^\\\\']|(\\\\(?:[ABCEFLNRTVabceflnrtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2})))'","captures":{"0":{"name":"constant.character.nim"},"1":{"name":"constant.character.escape.nim"}}},{"name":"invalid.illegal.nim","match":"'[^']+'"}]},"comments":{"patterns":[{"include":"#block-comments"},{"include":"#line-comments"}]},"const-defs":{"patterns":[{"begin":"\\b(const) +(?=[A-Za-z\\x80-\\xff]|\\(|`|_\\b)","end":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?|(?=[^\\(])","patterns":[{"include":"#const-name"}],"beginCaptures":{"1":{"name":"storage.modifier.nim"}},"endCaptures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"begin":"^const\\b","end":"^(?! |$)","patterns":[{"begin":"^ (?=[A-Za-z\\x80-\\xff]|\\(|`|_\\b)","end":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?|(?=[^\\(])","patterns":[{"include":"#const-name"}],"endCaptures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"include":"$self"}],"beginCaptures":{"0":{"name":"storage.modifier.nim keyword.declaration.constant.nim"}}}]},"const-name":{"patterns":[{"begin":"\\(","end":"(\\))|(?=[^{_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"match":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","captures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"name":"punctuation.separator.nim","match":","},{"include":"#pragmas"},{"include":"#doc-comments"},{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.nim"}}}]},"do-stmts":{"patterns":[{"begin":"\\bdo\\b","end":"(-\u003e)|(?=[^\\-\\( ])","patterns":[{"include":"#param-list"}],"beginCaptures":{"0":{"name":"storage.type.function.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.return.nim"}}}]},"doc-comments":{"patterns":[{"include":"#block-doc-comments"},{"include":"#line-doc-comments"}]},"fmt-strs":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"(?:(fmt)|(\u0026))(\"\"\")","end":"\"\"\"(?!\")","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}"},{"name":"meta.embedded.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(?=\"\"\"[^\"])","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim variable.function.nim"},"2":{"name":"keyword.operator.nim"},"3":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}},{"contentName":"string.quoted.triple.nim","begin":"(fmt)(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}|\"\""},{"name":"meta.embedded.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"},"3":{"name":"invalid.illegal.nim"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim variable.function.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}},{"contentName":"string.quoted.double.nim","begin":"(\u0026)(\")","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}"},{"name":"meta.embedded.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"},"3":{"name":"invalid.illegal.nim"}}},{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"}],"beginCaptures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"for-stmt-1":{"patterns":[{"name":"punctuation.separator.nim","match":","},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#pragmas"},{"include":"#comments"}]},"for-stmts":{"patterns":[{"begin":"for\\b","end":"(in\\b)|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"begin":"\\(","end":"(in\\b)|(\\))|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim"},"2":{"name":"punctuation.section.parens.end.nim"}}},{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.loop.for.nim"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim"}}}]},"generic-param-list":{"patterns":[{"name":"meta.generic.nim","begin":"(?\u003c=[`*\\w\\x{80}-\\x{ff}]) *(\\[)","end":"(])|(?=[^#_`:=,;A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#generic-param-list-0"}],"beginCaptures":{"1":{"name":"punctuation.section.generic.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.generic.end.nim"}}}]},"generic-param-list-0":{"patterns":[{"name":"variable.parameter.nim","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"name":"punctuation.separator.nim","match":"[,;]"},{"begin":"(:)|(=)","end":"([,;])|(?=\\])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim"},"2":{"name":"keyword.operator.assignment.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.nim"}}},{"include":"#comments"}]},"generic-symbols":{"patterns":[{"name":"support.constant.expl","match":"[A-Z](_?[A-Z\\d_])+\\b"},{"name":"support.type.expl","match":"[A-Z][\\dA-Za-z]+\\b"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},"interpolation":{"patterns":[{"match":"(`) *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_) *(`)","captures":{"0":{"name":"source.nim.embedded"},"1":{"name":"punctuation.section.embedded.begin.nim"},"2":{"name":"punctuation.section.embedded.end.nim"}}}]},"invalid-names":{"patterns":[{"name":"invalid.illegal.nim","match":"(?x:addr|asm|bind|block|break|case|cast|concept|const|continue|converter |defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for |from|func|if|import|include|interface|iterator|let|macro|method|mixin |object|of|out|proc|ptr|raise|ref|return|static|template|try|tuple|type |using|var|when|while|yield)\\b"}]},"keywords":{"patterns":[{"name":"keyword.operator.word.expl","match":"\\b(?:addr|cast)\\b"},{"name":"comment.block.expl","begin":"\\bdiscard +\"\"\"","end":"\"\"\"(?!\")","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.expl"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.expl"}}},{"name":"keyword.other.expl","match":"\\b(?:distinct|discard)\\b"},{"name":"keyword.control.flow.expl","match":"\\b(?:asm|end|break|continue|raise|return|yield)\\b"},{"name":"storage.type.expl","match":"\\b(?:concept|enum|interface)\\b"},{"match":"\\b(object)\\b(?: *(of)\\b)?","captures":{"1":{"name":"storage.type.expl"},"2":{"name":"keyword.other.expl"}}},{"name":"keyword.control.loop.while.expl","match":"\\bwhile\\b"},{"name":"keyword.control.conditional.switch.expl","match":"\\bcase\\b"},{"name":"keyword.control.conditional.case.expl","match":"^ *(of)\\b"},{"name":"keyword.control.conditional.if.expl","match":"\\bif\\b"},{"name":"keyword.control.conditional.when.expl","match":"\\bwhen\\b"},{"name":"keyword.control.conditional.elseif.expl","match":"\\belif\\b"},{"match":"\\b(else)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.conditional.else.expl"},"1":{"name":"keyword.control.conditional.else.expl"},"2":{"name":"punctuation.section.block.conditional.else.expl"}}},{"match":"\\b(try)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.try.expl"},"1":{"name":"keyword.control.exception.try.expl"},"2":{"name":"punctuation.section.block.exception.expl"}}},{"match":"\\b(finally)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.finally.expl"},"1":{"name":"keyword.control.exception.finally.expl"},"2":{"name":"punctuation.section.block.exception.finally.expl"}}},{"match":"\\b(defer)\\b(?: *(:))?","captures":{"1":{"name":"keyword.control.flow.defer.expl"},"2":{"name":"punctuation.section.block.begin.expl"}}},{"match":"\\b(block)\\b(?:(?: *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`))? *(:))?","captures":{"1":{"name":"keyword.declaration.block.expl"},"2":{"name":"punctuation.section.block.begin.expl"}}},{"name":"keyword.control.expl","match":"\\b(?:as|(?:ex|im)port|include|bind|mixin|from|except)\\b"},{"name":"storage.modifier.expl keyword.declaration.expl","match":"\\b(?:const|let|using)\\b"},{"name":"storage.modifier.expl","match":"\\bvar\\b"}]},"language-constants":{"patterns":[{"name":"constant.language.nim","match":"\\b(?:true|false|nil)\\b"}]},"line-comments":{"patterns":[{"name":"comment.line.number-sign.nim","begin":"(#)(?: *(TODO|todo)\\b)?","end":"$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.nim"},"2":{"name":"invalid.deprecated.nim"}}}]},"line-doc-comments":{"patterns":[{"name":"comment.line.documentation.nim","begin":"##","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim"}}}]},"literals":{"patterns":[{"include":"#str_lits"},{"include":"#numbers"},{"include":"#characters"},{"include":"#language-constants"}]},"numbers":{"patterns":[{"match":"(?x: \\b(\\d(?:_?\\d)*) (?: (?: ((\\.)\\d(?:_?\\d)*) ([Ee][-+]?\\d(?:_?\\d)*)? |([Ee][-+]?\\d(?:_?\\d)*) ) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd]))? |('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) ) )","captures":{"0":{"name":"meta.number.float.decimal.nim"},"1":{"name":"constant.numeric.value.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"punctuation.separator.decimal.nim"},"4":{"name":"constant.numeric.value.exponent.nim"},"5":{"name":"constant.numeric.value.exponent.nim"},"6":{"name":"constant.numeric.suffix.nim"},"7":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|[Ff](?:32|64)) )","captures":{"0":{"name":"meta.number.float.hexadecimal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.octal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.binary.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.hexadecimal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.octal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.binary.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(\\d(?:_?\\d)*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.decimal.nim"},"1":{"name":"constant.numeric.value.nim"},"2":{"name":"constant.numeric.suffix.nim"}}}]},"operators":{"patterns":[{"name":"keyword.operator.logical.nim","match":"\\b(?:and|not|x?or)\\b"},{"name":"keyword.operator.word.nim","match":"\\b(?:of|(?:not)?in|is(?:not)?)\\b"},{"name":"keyword.operator.bitwise.nim","match":"\\bsh[lr]\\b"},{"name":"keyword.operator.arithmetic.nim","match":"\\b(?:div|mod)\\b"},{"name":"keyword.operator.comparison.nim","match":"==|\u003c=?|\u003e=?|!="},{"name":"keyword.operator.assignment.nim","match":"(?:[-+*/@$\u0026%|^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔][-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]*)?=(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"name":"keyword.operator.nim","match":"[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+"}]},"param-list":{"patterns":[{"name":"meta.function.parameters","begin":"\\(","end":"\\)","patterns":[{"name":"variable.parameter.nim","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"name":"punctuation.separator.nim","match":"[,;]"},{"begin":"(:)|(=)","end":"(?=[,;\\)])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim"},"2":{"name":"keyword.operator.assignment.nim"}}},{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.parameters.end.nim"}}}]},"patterns":{"patterns":[{"name":"meta.pattern.nim","begin":"\\{(?!\\.)","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.pattern.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.pattern.end.nim"}}}]},"pragmas":{"patterns":[{"name":"meta.annotation.nim","begin":"\\{\\.(?!\\.})","end":"\\.?}","patterns":[{"name":"entity.other.attribute-name.pragma.nim","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#square-brackets"},{"begin":"(?=\\S)","end":"(,)|(?=\\S)","patterns":[{"begin":":","end":"(,)|(?=\\.?})","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.sequence.nim"}}}],"endCaptures":{"1":{"name":"punctuation.separator.sequence.nim"}}}],"beginCaptures":{"0":{"name":"punctuation.section.annotation.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.annotation.end.nim"}}}]},"punctuations":{"patterns":[{"name":"punctuation.terminator.statement.nim","match":";"},{"name":"punctuation.separator.nim","match":","},{"name":"punctuation.section.block.begin.nim","match":":"},{"name":"punctuation.accessor.dot.nim","match":"\\.(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"match":"(\\*) *(:|(?=,|#|\\{\\.))","captures":{"1":{"name":"storage.modifier.nim"},"2":{"name":"punctuation.separator.annotation.nim"}}},{"name":"invalid.illegal.nim","match":"\\)|]|}"}]},"routines":{"patterns":[{"name":"meta.function.nim","begin":"(?x: (proc|template|iterator|func|method|macro|converter)\\b (?:[ ]*([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?:[ ]*(\\*))?)? )","end":"(:)|(?=[^#\\(\\[:\\s]|##)","patterns":[{"include":"#comments"},{"include":"#patterns"},{"include":"#generic-param-list"},{"include":"#param-list"}],"beginCaptures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"entity.name.function.nim"},"3":{"name":"storage.modifier.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.nim"}}}]},"rstr_lit":{"patterns":[{"contentName":"string.quoted.double.nim","begin":"([Rr])(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\"\""}],"beginCaptures":{"1":{"name":"storage.type.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"string.quoted.double.nim invalid.illegal.unclosed-string.nim"}}}]},"square-brackets":{"patterns":[{"name":"meta.brackets.nim","begin":"\\[","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.nim"}}}]},"str_lit":{"patterns":[{"name":"string.quoted.double.nim","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"str_lits":{"patterns":[{"include":"#triplestr_lit"},{"include":"#rstr_lit"},{"include":"#str_lit"}]},"triplestr_lit":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","beginCaptures":{"1":{"name":"storage.type.nim"},"2":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}}]},"type-defs":{"patterns":[{"begin":"^ *(type) +(?:(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) *(\\.))?([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","end":"(?=[^\\[ ])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"1":{"name":"storage.modifier.nim"},"2":{"name":"punctuation.accessor.dot.nim"},"3":{"name":"entity.name.type.nim"},"4":{"name":"storage.modifier.nim"}}},{"begin":"^type\\b","end":"^(?! |$)","patterns":[{"begin":"^ (?:(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) *(\\.))?([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","end":"(?![\\[\\s])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"1":{"name":"punctuation.accessor.dot.nim"},"2":{"name":"entity.name.type.nim"},"3":{"name":"storage.modifier.nim"}}},{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.declaration.type.nim"}}}]},"types":{"patterns":[{"begin":"\\btuple(?=\\[)","end":"(?=[^\\[ ])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"0":{"name":"storage.type.primitive.nim"}}},{"contentName":"meta.generic.nim","begin":"(?=(?:[A-Za-z](?:_?[\\dA-Za-z])*)\\[)(?x:(out|ptr|ref|array |cstring[Aa]rray|iterable|lent|open[Aa]rray|owned|ptr|range|ref|se[qt] |sink|static|type(?:[Dd]esc)?|varargs)|([A-Z][\\dA-Za-z]+))(\\[)","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.type.primitive.nim"},"2":{"name":"support.type.nim"},"3":{"name":"meta.generic.nim punctuation.section.generic.begin.nim"}},"endCaptures":{"0":{"name":"meta.generic.nim punctuation.section.generic.nim"}}},{"name":"storage.type.primitive.expl","match":"\\b(?:out|tuple|ref|ptr)\\b"}]},"var-let-using-defs":{"patterns":[{"begin":"(?:^|(;)) *(var|let|using) +(?=[\\(`A-Za-z\\x80-\\xff]|_\\b)","end":"(?=[^\\({_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name"}],"beginCaptures":{"1":{"name":"punctuation.terminator.nim"},"2":{"name":"storage.modifier.nim keyword.declaration.variable.nim"}}},{"begin":"^(?:var|let|using)\\b","end":"^(?! |$)","patterns":[{"begin":"^ (?=[\\(`A-Za-z\\x80-\\xff]|_\\b)","end":"(?=[^\\({_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name"}]},{"include":"$self"}],"beginCaptures":{"0":{"name":"storage.type.nim"}}}]},"var-name":{"patterns":[{"begin":"\\(","end":"(\\))|(?=[^{_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name-0"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.nim"}}},{"include":"#var-name-0"}]},"var-name-0":{"patterns":[{"match":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","captures":{"1":{"name":"variable.other.expl"},"2":{"name":"storage.modifier.expl"}}},{"name":"punctuation.separator.nim","match":","},{"include":"#pragmas"},{"include":"#doc-comments"},{"include":"#comments"}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"Nim Source Code Filter","scopeName":"source.nim_filter","patterns":[{"name":"meta.start.nim_filter","begin":"\\A(#!)","end":"\\z(!?\\n)","patterns":[{"name":"comment.line.nim_filter","begin":"^\\s*#","end":"\\n","patterns":[{"name":"constant.numeric.float.decimal.nim_filter","match":"\\b((\\d[_\\d]*\\.[_\\d]+([eE][\\+\\-]?\\d[_\\d]*)?)|([eE][\\+\\-]?\\d[_\\d]*))('[fF](32|64))?"},{"name":"constant.numeric.integer.hexadecimal.nim_filter","match":"\\b(0[xX][0-9A-Fa-f][_0-9A-Fa-f]*)('[iIuU](8|16|32|64))?"},{"name":"constant.numeric.integer.octal.nim_filter","match":"\\b(0o[0-7][_0-7]*)('[iIuUfF](8|16|32|64))?"},{"name":"constant.numeric.integer.binary.nim_filter","match":"\\b(0(b|B)[01][_01]*)('[iIuUfF](8|16|32|64))?"},{"name":"constant.numeric.integer.decimal.nim_filter","match":"\\b(\\d[_\\d]*)('[iIuUfF](8|16|32|64))?"},{"name":"constant.language.nim_filter","match":"\\b(true|false|inf|nil)\\b"},{"name":"keyword.control.nim_filter","match":"\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\b"},{"name":"keyword.operator.boolean.nim_filter","match":"(\\b(and|in|is|isnot|not|notin|or|xor)\\b)"},{"name":"keyword.operator.nim_filter","match":"(\\b()\\b|(=|\\+|-|\\*|/|\u003c|\u003e|@|\\$|~|\u0026|%|!|\\?|\\^|\\.|:|\\\\)+)"},{"name":"keyword.other.nim_filter","match":"(\\b(addr|as|asm|atomic|bind|cast|concept|const|discard|distinct|div|enum|export|from|import|include|let|mod|object|of|ptr|ref|shl|shr|static|tuple|type|var)\\b)"},{"name":"keyword.invalid.nim_filter","match":"(\\b(converter|generic|interface|lambda|mixin|out|shared|with|without)\\b)"},{"name":"storage.type.concrete.nim_filter","match":"\\b(((uint|int|float)(8|16|32|64)?)|bool|string|cstring|char|tobject|typedesc)\\b"},{"name":"storage.type.generic.nim_filter","match":"\\b(range|array|seq|natural|set|ref|ptr)\\b"},{"name":"storage.type.function.nim_filter","match":"\\b(proc|iterator|method|template|macro)\\b"},{"name":"keyword.function.nim_filter","match":"\\b(echo|newException)\\b"},{"name":"storage.type.generic.nim_filter","match":"\\b(openarray|varargs|void)\\b"},{"name":"string.quoted.triple.nim_filter","begin":"(\\w[_\\w]*)?\\\"\\\"\\\"","end":"\\\"\\\"\\\"[^\"]"},{"name":"string.quoted.double.raw.nim_filter","begin":"r\\\"","end":"\\\"","patterns":[{"match":"\\\"\\\""}]},{"name":"string.quoted.double.nim_filter","begin":"(\\w[_\\w]*)?\\\"","end":"\\\"","patterns":[{"match":"(\\\\([abenrclftv]|[\"']|[0-9])|x[0-9A-Fa-f]{2})"}]},{"name":"string.quoted.single.nim_filter","match":"\\'(\\\\\\d{1,3}|\\\\?[^\\n]?)\\'"}]}]}]}
|
1
|
+
{"name":"Nim Source Code Filter","scopeName":"source.nim_filter","patterns":[{"begin":"^ *#","end":"^(?! *#)","patterns":[{"match":"(end) (proc|func|method|template|macro|iterator|converter)\\b","captures":{"1":{"name":"keyword.control.nim_filter"},"2":{"name":"storage.type.function.nim_filter"}}},{"include":"#main"}]}],"repository":{"asm-stmt-1":{"patterns":[{"contentName":"string.quoted.triple.nim_filter","begin":"([Rr])?(\"\"\")","end":"^(?! *#)|\"\"\"(?!\")","patterns":[{"include":"#interpolation"}],"captures":{"1":{"name":"storage.type.string.nim_filter"},"2":{"name":"string.quoted.triple.nim_filter punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim_filter punctuation.definition.string.end.nim_filter"}}},{"contentName":"string.quoted.double.nim_filter","begin":"([Rr])(\")","end":"^(?! *#)|(\")|(\\n)","patterns":[{"include":"#interpolation"}],"beginCaptures":{"1":{"name":"storage.type.string.nim_filter"},"2":{"name":"string.quoted.double.nim_filter punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"1":{"name":"string.quoted.double.nim_filter punctuation.definition.string.begin.nim_filter"},"2":{"name":"invalid.illegal.nim_filter"}}},{"name":"string.quoted.double.nim_filter","begin":"\"","end":"^(?! *#)|(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim_filter","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim_filter","match":"\\\\"},{"include":"#interpolation"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"1":{"name":"string.quoted.double.nim_filter punctuation.definition.string.begin.nim_filter"},"2":{"name":"invalid.illegal.nim_filter"}}}]},"asm-stmts":{"patterns":[{"begin":"asm\\b","end":"^(?! *#)|(?=[^\"Rr{\\s])|(?\u003c=\")","patterns":[{"include":"#pragmas"},{"include":"#asm-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.flow.nim_filter"}}}]},"block-comments":{"patterns":[{"match":"^ *#"},{"name":"comment.block.number-sign.nim_filter","begin":"#\\[","end":"^(?! *#)|]#","patterns":[{"include":"#block-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim_filter"}}}]},"block-doc-comments":{"patterns":[{"match":"^ *#"},{"name":"comment.block.documentation.nim_filter","begin":"##\\[","end":"^(?! *#)|]##","patterns":[{"include":"#block-doc-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim_filter"}}}]},"brackets":{"patterns":[{"include":"#square-brackets"},{"name":"meta.braces.nim_filter","begin":"\\{","end":"^(?! *#)|}","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.braces.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.section.braces.end.nim_filter"}}},{"name":"meta.parens.nim_filter","begin":"\\(","end":"^(?! *#)|\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.nim_filter"}}}]},"builtins":{"patterns":[{"name":"variable.language.nim_filter","match":"\\bresult\\b"},{"name":"support.function.builtin.expl","match":"\\b(?x: abs|add(?:[Ee]scapedChar|Float|Int|QuitProc|Quoted)?|alignof|allocCStringArray|arrayWith |ashr|astToStr|assert |atomic(?:AddFetch|AlwaysLockFree|(?:And|Nand|Or|Sub|Xor)Fetch|Clear |(?:Compare)?ExchangeN?|Dec|Fetch(?:A[dn]d|Nand|Or|Sub|Xor)|Inc |IsLockFree|LoadN?|(?:Signal|Thread)Fence|StoreN?|TestAndSet) |card|cas|chr|clamp|close|cmp(?:Mem)?|compile(?:Option|s)|contains|copyMem |cpuRelax|create(?:(?:Shared)?U?|Thread)|cstringArrayToSeq |dealloc(?:CStringArray|Heap|(?:Shared)?(?:Impl)?)|debugEcho|dec |declared(?:InScope)?|deepCopy|default|defined|del(?:ete)?|dispose|doAssert(?:Raises)?|echo|endOfFile |equalMem|excl|failedAssertImpl|field(?:s|Pairs)|find|finished|flushFile|freeShared |GC_(?:collectZct|disable(?:MarkAndSweep)?|fullCollect|getStatistics|(?:un)?ref) |gcInvariant|getAllocStats |get(?:CurrentException(?:Msg)?|File(?:Pos|Size)|Frame(?:State)? |(?:(?:Free|Occupied|Total)(?:Shared)?|Max)Mem|GCFrame|OsFileHandle |StackTrace(?:Entries)?|TypeInfo|ThreadId) |gorge(?:Ex)?|handle|high|incl?|insert|instantiationInfo|internalNew |isNil|isNotForeign|iterToProc|joinThreads?|len|lines|locals|low|max|min |m?(?:items|pairs)|move(?:Mem)? |new(?:Seq(?:OfCap|Uninitialized)?|String(?:OfCap)?|Exception|WideCString)? |onFailedAssert|onThreadDestruction|open|ord|peek|pinToCpu|pop(?:GcFrame)?|pred |prepareMutation|procCall|protect|pushGcFrame|quit|raiseAssert|raw(?:Env|Proc) |ready|read(?:All|Buffer|Bytes|Chars?|File|Lines?) |(?:re)?alloc(?:Shared)?0?(?:Impl)?|recv|repr(?:Discriminant)?|reset |resize(?:Shared)?|runnableExamples |set(?:ControlCHook|CurrentException|FilePos|Frame(?:State)?|GcFrame|Inheritable|Len|StdIoUnbuffered|upForeignThreadGc) |shallow(?:Copy)?|sizeof|slurp|stackTraceAvailable|static(?:Exec|Read)|stdmsg |substr|succ|swap|tearDownForeignThreadGc |to(?:Biggest?(?:Float|Int)|OpenArray(?:Byte)?|U(?:8|16|32))|try(?:Recv|Send) |typeof|unsafe(?:Addr|New)|unsetControlCHook|wasMoved|writeStackTrace |ze(?:64)?|zero(?:Default|Mem)|count(?:down|up)|varargsLen|closureScope |currentSourcePath|disarm|dumpAllocStats|excl|fence|format(?:ErrorIndexBound|FieldDefect) |incl|offsetOf|once|rangeCheck|(?:un)?likely|unown|write(?:Buffer|Bytes|Chars|File|Line)? )\\b"},{"name":"support.function.builtin.expl","match":"`(?:addr|and|div|is(?:not)?|mod|not|of|sh[lr]|x?or|(?:not)?in|=(?:copy|destroy|sink|trace)|\\$|%%|[-*+/\u003c]%?=?|\u003c=%|[\u0026=]=?|\\.\\.|@|\\[]=?)`"},{"name":"storage.type.primitive.expl","match":"\\b(?x:any|array|auto|bool|byte |c(?:double|float|u?(?:long(?:long)?|char|int|short)|longdouble|schar |size(?:_t)?|string(?:[Aa]rray)?) |char|float(?:32|64)?|iterable|lent|open[Aa]rray|owned|pointer|ptr|range|ref|se[qt] |sink|static|string|typed?|type[Dd]esc|u?int(?:8|16|32|64)?|untyped|varargs|void)\\b"},{"name":"support.constant.builtin.expl","match":"\\b(?x:appType|Compile(?:Date|Time)|(?:big|cpu|little)Endian |fm(Append|Read(?:Write(?:Existing)?)?|Write)|fsp(?:Set|Cur|End) |gc(?:Throughput|Responsiveness|Optimize(?:Space|Time))|host(?:CPU|OS) |isMainModule|NaN|(?:Neg)?Inf|Nim(?:Major|Minor|Patch|Version)|nimvm|off|on |Quit(?:Failure|Success)|typeOf(?:Iter|Proc))\\b"},{"name":"support.variable.builtin.expl","match":"\\b(?x: ATOMIC_(?:ACQ_REL|ACQUIRE|CONSUME|RELAXED|RELEASE|SEQ_CST)|errorMessageWriter |(?:global|local)RaiseHook|nimThreadDestructionHandlers|onUnhandledException |outOfMemHook|programResult|std(?:err|out|in)|unhandledExceptionHook )\\b"}]},"calls":{"patterns":[{"begin":"(?x: (?= (?: (?!(?:out|ptr|ref|tuple)\\b) [A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+` ) (?:\\[.*])? (?: \\( |\" |[ ]+ (?: [_\\d\"'`\\[\\(] |(?!\\.|(?:\\*?[ ]*)[:=]|=[^=])[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+[^\\-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔\\s] |(?!as|asm|and|bind|break|concept|const|continue|converter |defer|discard|distinct|div|elif|else|end|except|export|finally|from|import |include|interface|is(?:not)?|let|macro|method|mixin|mod|(?:not)?in|of |raise|sh[lr]|template|using|while|yield|x?or)[A-Za-z\\x80-\\xff] |\\{(?!\\.) ) ) ) )","end":"^(?! *#)|(?=[^\\[\\(`\\w\\x{80}-\\x{ff}])|(?\u003c=[\"\\)])","patterns":[{"name":"variable.function.nim_filter","begin":"(?=[`_A-Za-z\\x80-\\xff])","end":"^(?! *#)|(?=[^`_A-Za-z\\x80-\\xff])","patterns":[{"include":"#builtins"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},{"name":"meta.function-call.nim_filter meta.generic.nim_filter","begin":"\\[:?","end":"^(?! *#)|]","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.generic.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.section.generic.end.nim_filter"}}},{"name":"meta.function-call.arguments.nim_filter","begin":"\\(","end":"^(?! *#)|(\\))","patterns":[{"match":"(?x: (?= (?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) [ ]* [:=](?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]) ) (?!(?x:addr|asm|bind|block|break|case|cast|concept|const|continue|converter |defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for |from|func|if|import|include|interface|iterator|let|macro|method|mixin |object|of|out|proc|ptr|raise|ref|return|static|template|try|tuple|type |using|var|when|while|yield)\\b ) ([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?:[ ]*(:))? )","captures":{"1":{"name":"variable.parameter.nim_filter"},"2":{"name":"punctuation.separator.key-value.nim_filter"}}},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.arguments.begin.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.section.arguments.end.nim_filter"}}},{"include":"#triplestr_lit"},{"name":"string.quoted.double.nim_filter","begin":"\"","end":"^(?! *#)|(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim_filter","match":"\"\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim_filter"},"2":{"name":"invalid.illegal.unclosed-string.nim_filter"}}}]}]},"characters":{"patterns":[{"match":"'(?:[^\\\\']|(\\\\(?:[ABCEFLNRTVabceflnrtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2})))'","captures":{"0":{"name":"constant.character.nim_filter"},"1":{"name":"constant.character.escape.nim_filter"}}},{"name":"invalid.illegal.nim_filter","match":"'[^']+'"}]},"comments":{"patterns":[{"include":"#block-comments"},{"include":"#line-comments"}]},"const-defs":{"patterns":[{"begin":"\\b(const) +(?=[A-Za-z\\x80-\\xff]|\\(|`|_\\b)","end":"^(?! *#)|([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?|(?=[^\\(])","patterns":[{"include":"#const-name"}],"beginCaptures":{"1":{"name":"storage.modifier.nim_filter"}},"endCaptures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"begin":"^const\\b","end":"^(?! *#)|^(?! |$)","patterns":[{"begin":"^ (?=[A-Za-z\\x80-\\xff]|\\(|`|_\\b)","end":"^(?! *#)|([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?|(?=[^\\(])","patterns":[{"include":"#const-name"}],"endCaptures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"include":"#main"}],"beginCaptures":{"0":{"name":"storage.modifier.nim_filter keyword.declaration.constant.nim_filter"}}}]},"const-name":{"patterns":[{"begin":"\\(","end":"^(?! *#)|(\\))|(?=[^{_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"match":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","captures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"name":"punctuation.separator.nim_filter","match":","},{"include":"#pragmas"},{"include":"#doc-comments"},{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.nim_filter"}}}]},"do-stmts":{"patterns":[{"begin":"\\bdo\\b","end":"^(?! *#)|(-\u003e)|(?=[^\\-\\( ])","patterns":[{"include":"#param-list"}],"beginCaptures":{"0":{"name":"storage.type.function.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.return.nim_filter"}}}]},"doc-comments":{"patterns":[{"include":"#block-doc-comments"},{"include":"#line-doc-comments"}]},"fmt-strs":{"patterns":[{"contentName":"string.quoted.triple.nim_filter","begin":"(?:(fmt)|(\u0026))(\"\"\")","end":"^(?! *#)|\"\"\"(?!\")","patterns":[{"name":"constant.character.escape.nim_filter","match":"{{|}}"},{"name":"meta.embedded.nim_filter","begin":"{","end":"^(?! *#)|(=?(?: *:[^}]*)?) *(})|(?=\"\"\"[^\"])","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim_filter"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim_filter"},"2":{"name":"punctuation.section.embedded.end.nim_filter"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim_filter variable.function.nim_filter"},"2":{"name":"keyword.operator.nim_filter"},"3":{"name":"string.quoted.triple.nim_filter punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim_filter punctuation.definition.string.end.nim_filter"}}},{"contentName":"string.quoted.triple.nim_filter","begin":"(fmt)(\")","end":"^(?! *#)|(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim_filter","match":"{{|}}|\"\""},{"name":"meta.embedded.nim_filter","begin":"{","end":"^(?! *#)|(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim_filter"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim_filter"},"2":{"name":"punctuation.section.embedded.end.nim_filter"},"3":{"name":"invalid.illegal.nim_filter"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim_filter variable.function.nim_filter"},"2":{"name":"string.quoted.double.nim_filter punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"1":{"name":"string.quoted.double.nim_filter punctuation.definition.string.end.nim_filter"},"2":{"name":"invalid.illegal.nim_filter"}}},{"contentName":"string.quoted.double.nim_filter","begin":"(\u0026)(\")","end":"^(?! *#)|(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim_filter","match":"{{|}}"},{"name":"meta.embedded.nim_filter","begin":"{","end":"^(?! *#)|(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"name":"constant.character.escape.nim_filter","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim_filter","match":"\\\\"},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim_filter"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim_filter"},"2":{"name":"punctuation.section.embedded.end.nim_filter"},"3":{"name":"invalid.illegal.nim_filter"}}},{"name":"constant.character.escape.nim_filter","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim_filter","match":"\\\\"}],"beginCaptures":{"1":{"name":"keyword.operator.nim_filter"},"2":{"name":"string.quoted.double.nim_filter punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"1":{"name":"string.quoted.double.nim_filter punctuation.definition.string.end.nim_filter"},"2":{"name":"invalid.illegal.nim_filter"}}}]},"for-stmt-1":{"patterns":[{"name":"punctuation.separator.nim_filter","match":","},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#pragmas"},{"include":"#comments"}]},"for-stmts":{"patterns":[{"begin":"for\\b","end":"^(?! *#)|(in\\b)|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"begin":"\\(","end":"^(?! *#)|(in\\b)|(\\))|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim_filter"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim_filter"},"2":{"name":"punctuation.section.parens.end.nim_filter"}}},{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.loop.for.nim_filter"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim_filter"}}}]},"generic-param-list":{"patterns":[{"name":"meta.generic.nim_filter","begin":"(?\u003c=[`*\\w\\x{80}-\\x{ff}]) *(\\[)","end":"^(?! *#)|(])|(?=[^#_`:=,;A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#generic-param-list-0"}],"beginCaptures":{"1":{"name":"punctuation.section.generic.begin.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.section.generic.end.nim_filter"}}}]},"generic-param-list-0":{"patterns":[{"name":"variable.parameter.nim_filter","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"name":"punctuation.separator.nim_filter","match":"[,;]"},{"begin":"(:)|(=)","end":"^(?! *#)|([,;])|(?=\\])","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim_filter"},"2":{"name":"keyword.operator.assignment.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.separator.nim_filter"}}},{"include":"#comments"}]},"generic-symbols":{"patterns":[{"name":"support.constant.expl","match":"[A-Z](_?[A-Z\\d_])+\\b"},{"name":"support.type.expl","match":"[A-Z][\\dA-Za-z]+\\b"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},"interpolation":{"patterns":[{"match":"(`) *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_) *(`)","captures":{"0":{"name":"source.nim_filter.embedded"},"1":{"name":"punctuation.section.embedded.begin.nim_filter"},"2":{"name":"punctuation.section.embedded.end.nim_filter"}}}]},"invalid-names":{"patterns":[{"name":"invalid.illegal.nim_filter","match":"(?x:addr|asm|bind|block|break|case|cast|concept|const|continue|converter |defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for |from|func|if|import|include|interface|iterator|let|macro|method|mixin |object|of|out|proc|ptr|raise|ref|return|static|template|try|tuple|type |using|var|when|while|yield)\\b"}]},"keywords":{"patterns":[{"name":"keyword.operator.word.expl","match":"\\b(?:addr|cast)\\b"},{"name":"comment.block.expl","begin":"\\bdiscard +\"\"\"","end":"^(?! *#)|\"\"\"(?!\")","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.expl"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.expl"}}},{"name":"keyword.other.expl","match":"\\b(?:distinct|discard)\\b"},{"name":"keyword.control.flow.expl","match":"\\b(?:asm|end|break|continue|raise|return|yield)\\b"},{"name":"storage.type.expl","match":"\\b(?:concept|enum|interface)\\b"},{"match":"\\b(object)\\b(?: *(of)\\b)?","captures":{"1":{"name":"storage.type.expl"},"2":{"name":"keyword.other.expl"}}},{"name":"keyword.control.loop.while.expl","match":"\\bwhile\\b"},{"name":"keyword.control.conditional.switch.expl","match":"\\bcase\\b"},{"name":"keyword.control.conditional.case.expl","match":"^ *(of)\\b"},{"name":"keyword.control.conditional.if.expl","match":"\\bif\\b"},{"name":"keyword.control.conditional.when.expl","match":"\\bwhen\\b"},{"name":"keyword.control.conditional.elseif.expl","match":"\\belif\\b"},{"match":"\\b(else)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.conditional.else.expl"},"1":{"name":"keyword.control.conditional.else.expl"},"2":{"name":"punctuation.section.block.conditional.else.expl"}}},{"match":"\\b(try)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.try.expl"},"1":{"name":"keyword.control.exception.try.expl"},"2":{"name":"punctuation.section.block.exception.expl"}}},{"match":"\\b(finally)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.finally.expl"},"1":{"name":"keyword.control.exception.finally.expl"},"2":{"name":"punctuation.section.block.exception.finally.expl"}}},{"match":"\\b(defer)\\b(?: *(:))?","captures":{"1":{"name":"keyword.control.flow.defer.expl"},"2":{"name":"punctuation.section.block.begin.expl"}}},{"match":"\\b(block)\\b(?:(?: *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`))? *(:))?","captures":{"1":{"name":"keyword.declaration.block.expl"},"2":{"name":"punctuation.section.block.begin.expl"}}},{"name":"keyword.control.expl","match":"\\b(?:as|(?:ex|im)port|include|bind|mixin|from|except)\\b"},{"name":"storage.modifier.expl keyword.declaration.expl","match":"\\b(?:const|let|using)\\b"},{"name":"storage.modifier.expl","match":"\\bvar\\b"}]},"language-constants":{"patterns":[{"name":"constant.language.nim_filter","match":"\\b(?:true|false|nil)\\b"}]},"line-comments":{"patterns":[{"match":"^ #"},{"name":"comment.line.number-sign.nim_filter","begin":"(#)(?: *(TODO|todo)\\b)?","end":"^(?! *#)|$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.nim_filter"},"2":{"name":"invalid.deprecated.nim_filter"}}}]},"line-doc-comments":{"patterns":[{"match":"^ *#"},{"name":"comment.line.documentation.nim_filter","begin":"##","end":"^(?! *#)|^(?! *#)|$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim_filter"}}}]},"literals":{"patterns":[{"include":"#str_lits"},{"include":"#numbers"},{"include":"#characters"},{"include":"#language-constants"}]},"main":{"patterns":[{"include":"#type-defs"},{"include":"#const-defs"},{"include":"#var-let-using-defs"},{"include":"#pragmas"},{"include":"#brackets"},{"include":"#punctuations"},{"include":"#block-doc-comments"},{"include":"#comments"},{"include":"#for-stmts"},{"include":"#asm-stmts"},{"include":"#routines"},{"include":"#fmt-strs"},{"include":"#operators"},{"include":"#literals"},{"include":"#keywords"},{"include":"#do-stmts"},{"include":"#calls"},{"include":"#types"},{"include":"#builtins"},{"include":"#generic-symbols"}]},"numbers":{"patterns":[{"match":"(?x: \\b(\\d(?:_?\\d)*) (?: (?: ((\\.)\\d(?:_?\\d)*) ([Ee][-+]?\\d(?:_?\\d)*)? |([Ee][-+]?\\d(?:_?\\d)*) ) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd]))? |('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) ) )","captures":{"0":{"name":"meta.number.float.decimal.nim_filter"},"1":{"name":"constant.numeric.value.nim_filter"},"2":{"name":"constant.numeric.value.nim_filter"},"3":{"name":"punctuation.separator.decimal.nim_filter"},"4":{"name":"constant.numeric.value.exponent.nim_filter"},"5":{"name":"constant.numeric.value.exponent.nim_filter"},"6":{"name":"constant.numeric.suffix.nim_filter"},"7":{"name":"constant.numeric.suffix.nim_filter"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|[Ff](?:32|64)) )","captures":{"0":{"name":"meta.number.float.hexadecimal.nim_filter"},"1":{"name":"constant.numeric.base.nim_filter"},"2":{"name":"constant.numeric.value.nim_filter"},"3":{"name":"constant.numeric.suffix.nim_filter"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.octal.nim_filter"},"1":{"name":"constant.numeric.base.nim_filter"},"2":{"name":"constant.numeric.value.nim_filter"},"3":{"name":"constant.numeric.suffix.nim_filter"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.binary.nim_filter"},"1":{"name":"constant.numeric.base.nim_filter"},"2":{"name":"constant.numeric.value.nim_filter"},"3":{"name":"constant.numeric.suffix.nim_filter"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.hexadecimal.nim_filter"},"1":{"name":"constant.numeric.base.nim_filter"},"2":{"name":"constant.numeric.value.nim_filter"},"3":{"name":"constant.numeric.suffix.nim_filter"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.octal.nim_filter"},"1":{"name":"constant.numeric.base.nim_filter"},"2":{"name":"constant.numeric.value.nim_filter"},"3":{"name":"constant.numeric.suffix.nim_filter"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.binary.nim_filter"},"1":{"name":"constant.numeric.base.nim_filter"},"2":{"name":"constant.numeric.value.nim_filter"},"3":{"name":"constant.numeric.suffix.nim_filter"}}},{"match":"(?x: \\b(\\d(?:_?\\d)*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.decimal.nim_filter"},"1":{"name":"constant.numeric.value.nim_filter"},"2":{"name":"constant.numeric.suffix.nim_filter"}}}]},"operators":{"patterns":[{"name":"keyword.operator.logical.nim_filter","match":"\\b(?:and|not|x?or)\\b"},{"name":"keyword.operator.word.nim_filter","match":"\\b(?:of|(?:not)?in|is(?:not)?)\\b"},{"name":"keyword.operator.bitwise.nim_filter","match":"\\bsh[lr]\\b"},{"name":"keyword.operator.arithmetic.nim_filter","match":"\\b(?:div|mod)\\b"},{"name":"keyword.operator.comparison.nim_filter","match":"==|\u003c=?|\u003e=?|!="},{"name":"keyword.operator.assignment.nim_filter","match":"(?:[-+*/@$\u0026%|^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔][-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]*)?=(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"name":"keyword.operator.nim_filter","match":"[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+"}]},"param-list":{"patterns":[{"name":"meta.function.parameters","begin":"\\(","end":"^(?! *#)|\\)","patterns":[{"name":"variable.parameter.nim_filter","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"name":"punctuation.separator.nim_filter","match":"[,;]"},{"begin":"(:)|(=)","end":"^(?! *#)|(?=[,;\\)])","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim_filter"},"2":{"name":"keyword.operator.assignment.nim_filter"}}},{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.section.parameters.end.nim_filter"}}}]},"patterns":{"patterns":[{"name":"meta.pattern.nim_filter","begin":"\\{(?!\\.)","end":"^(?! *#)|}","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.pattern.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.section.pattern.end.nim_filter"}}}]},"pragmas":{"patterns":[{"name":"meta.annotation.nim_filter","begin":"\\{\\.(?!\\.})","end":"^(?! *#)|\\.?}","patterns":[{"name":"entity.other.attribute-name.pragma.nim_filter","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#square-brackets"},{"begin":"(?=\\S)","end":"^(?! *#)|(,)|(?=\\S)","patterns":[{"begin":":","end":"^(?! *#)|(,)|(?=\\.?})","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.separator.sequence.nim_filter"}}}],"endCaptures":{"1":{"name":"punctuation.separator.sequence.nim_filter"}}}],"beginCaptures":{"0":{"name":"punctuation.section.annotation.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.section.annotation.end.nim_filter"}}}]},"punctuations":{"patterns":[{"name":"punctuation.terminator.statement.nim_filter","match":";"},{"name":"punctuation.separator.nim_filter","match":","},{"name":"punctuation.section.block.begin.nim_filter","match":":"},{"name":"punctuation.accessor.dot.nim_filter","match":"\\.(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"match":"(\\*) *(:|(?=,|#|\\{\\.))","captures":{"1":{"name":"storage.modifier.nim_filter"},"2":{"name":"punctuation.separator.annotation.nim_filter"}}},{"name":"invalid.illegal.nim_filter","match":"\\)|]|}"}]},"routines":{"patterns":[{"name":"meta.function.nim_filter","begin":"(?x: (proc|template|iterator|func|method|macro|converter)\\b (?:[ ]*([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?:[ ]*(\\*))?)? )","end":"^(?! *#)|(:)|(?=[^#\\(\\[:\\s]|##)","patterns":[{"include":"#comments"},{"include":"#patterns"},{"include":"#generic-param-list"},{"include":"#param-list"}],"beginCaptures":{"1":{"name":"storage.type.function.nim_filter"},"2":{"name":"entity.name.function.nim_filter"},"3":{"name":"storage.modifier.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.nim_filter"}}}]},"rstr_lit":{"patterns":[{"contentName":"string.quoted.double.nim_filter","begin":"([Rr])(\")","end":"^(?! *#)|(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim_filter","match":"\"\""}],"beginCaptures":{"1":{"name":"storage.type.nim_filter"},"2":{"name":"string.quoted.double.nim_filter punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"1":{"name":"string.quoted.double.nim_filter punctuation.definition.string.end.nim_filter"},"2":{"name":"string.quoted.double.nim_filter invalid.illegal.unclosed-string.nim_filter"}}}]},"square-brackets":{"patterns":[{"name":"meta.brackets.nim_filter","begin":"\\[","end":"^(?! *#)|]","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.nim_filter"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.nim_filter"}}}]},"str_lit":{"patterns":[{"name":"string.quoted.double.nim_filter","begin":"\"","end":"^(?! *#)|(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim_filter","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim_filter","match":"\\\\"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim_filter"},"2":{"name":"invalid.illegal.nim_filter"}}}]},"str_lits":{"patterns":[{"include":"#triplestr_lit"},{"include":"#rstr_lit"},{"include":"#str_lit"}]},"triplestr_lit":{"patterns":[{"contentName":"string.quoted.triple.nim_filter","begin":"([Rr])?(\"\"\")","end":"^(?! *#)|\"\"\"(?!\")","beginCaptures":{"1":{"name":"storage.type.nim_filter"},"2":{"name":"string.quoted.triple.nim_filter punctuation.definition.string.begin.nim_filter"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim_filter punctuation.definition.string.end.nim_filter"}}}]},"type-defs":{"patterns":[{"begin":"^ *(type) +(?:(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) *(\\.))?([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","end":"^(?! *#)|(?=[^\\[ ])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"1":{"name":"storage.modifier.nim_filter"},"2":{"name":"punctuation.accessor.dot.nim_filter"},"3":{"name":"entity.name.type.nim_filter"},"4":{"name":"storage.modifier.nim_filter"}}},{"begin":"^type\\b","end":"^(?! *#)|^(?! |$)","patterns":[{"begin":"^ (?:(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) *(\\.))?([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","end":"^(?! *#)|(?![\\[\\s])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"1":{"name":"punctuation.accessor.dot.nim_filter"},"2":{"name":"entity.name.type.nim_filter"},"3":{"name":"storage.modifier.nim_filter"}}},{"include":"#main"}],"beginCaptures":{"0":{"name":"keyword.declaration.type.nim_filter"}}}]},"types":{"patterns":[{"begin":"\\btuple(?=\\[)","end":"^(?! *#)|(?=[^\\[ ])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"0":{"name":"storage.type.primitive.nim_filter"}}},{"contentName":"meta.generic.nim_filter","begin":"(?=(?:[A-Za-z](?:_?[\\dA-Za-z])*)\\[)(?x:(out|ptr|ref|array |cstring[Aa]rray|iterable|lent|open[Aa]rray|owned|ptr|range|ref|se[qt] |sink|static|type(?:[Dd]esc)?|varargs)|([A-Z][\\dA-Za-z]+))(\\[)","end":"^(?! *#)|]","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"storage.type.primitive.nim_filter"},"2":{"name":"support.type.nim_filter"},"3":{"name":"meta.generic.nim_filter punctuation.section.generic.begin.nim_filter"}},"endCaptures":{"0":{"name":"meta.generic.nim_filter punctuation.section.generic.nim_filter"}}},{"name":"storage.type.primitive.expl","match":"\\b(?:out|tuple|ref|ptr)\\b"}]},"var-let-using-defs":{"patterns":[{"begin":"(?:^|(;)) *(var|let|using) +(?=[\\(`A-Za-z\\x80-\\xff]|_\\b)","end":"^(?! *#)|(?=[^\\({_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name"}],"beginCaptures":{"1":{"name":"punctuation.terminator.nim_filter"},"2":{"name":"storage.modifier.nim_filter keyword.declaration.variable.nim_filter"}}},{"begin":"^(?:var|let|using)\\b","end":"^(?! *#)|^(?! |$)","patterns":[{"begin":"^ (?=[\\(`A-Za-z\\x80-\\xff]|_\\b)","end":"^(?! *#)|(?=[^\\({_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name"}]},{"include":"#main"}],"beginCaptures":{"0":{"name":"storage.type.nim_filter"}}}]},"var-name":{"patterns":[{"begin":"\\(","end":"^(?! *#)|(\\))|(?=[^{_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name-0"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim_filter"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.nim_filter"}}},{"include":"#var-name-0"}]},"var-name-0":{"patterns":[{"match":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","captures":{"1":{"name":"variable.other.expl"},"2":{"name":"storage.modifier.expl"}}},{"name":"punctuation.separator.nim_filter","match":","},{"include":"#pragmas"},{"include":"#doc-comments"},{"include":"#comments"}]}}}
|
data/grammars/source.nimcfg.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Nim Config","scopeName":"source.nimcfg","patterns":[{"name":"comment.line.number-sign.nimcfg","
|
1
|
+
{"name":"Nim Config","scopeName":"source.nimcfg","patterns":[{"include":"#comments"},{"include":"#directives"},{"include":"#assignements"}],"repository":{"assignements":{"patterns":[{"begin":"(--?)?[A-Za-z]\\w*","end":"(?:(\\[)([A-Za-z]\\w*)(]))? *(?=:|%?=)|$\\n?","patterns":[{"include":"#comments"},{"match":"(\\.)[A-Za-z]\\w*","captures":{"1":{"name":"punctuation.accessor.dot.nimcfg"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.variable.nimcfg"}},"endCaptures":{"1":{"name":"punctuation.section.brackets.begin.nimcfg"},"2":{"name":"entity.other.attribute-name.nimcfg"},"3":{"name":"punctuation.section.brackets.end.nimcfg"}}},{"begin":":|%?=","end":"$\\n?","patterns":[{"include":"#comments"},{"include":"#exprs"},{"name":"keyword.operator.nimcfg","match":"\u0026"},{"name":"punctuation.separator.key-value.nimcfg","match":"[:=]"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.nimcfg"}}}]},"block-comments":{"patterns":[{"name":"comment.block.nimcfg","begin":"#\\[","end":"]#","patterns":[{"include":"#block-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nimcfg"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nimcfg"}}}]},"comments":{"patterns":[{"include":"#block-comments"},{"name":"comment.line.number-sign.nimcfg","begin":"(#)(?: *(TODO|todo)\\b)?","end":"$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.nimcfg"},"2":{"name":"invalid.deprecated.nimcfg"}}}]},"cond-expr":{"patterns":[{"include":"#groups"},{"include":"#language-constants"},{"name":"keyword.operator.logical.nimcfg","match":"(?:and|or|not)\\b"},{"match":"[A-Za-z]\\w*"}]},"directives":{"patterns":[{"include":"#if-stmt"},{"match":"(@) *(else)(?: *(:))?","captures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.control.conditional.else.nimcfg"},"3":{"name":"punctuation.section.block.begin.nimcfg"}}},{"match":"(@) *(end)","captures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.control.conditional.end.nimcfg"}}},{"include":"#env-stmt"}]},"env-stmt":{"patterns":[{"begin":"(@) *((?:put|append|prepend)[Ee]nv|write)\\b","end":"$\\n?","patterns":[{"include":"#exprs"}],"beginCaptures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.other.nimcfg"}}}]},"exprs":{"patterns":[{"include":"#str-lits"},{"include":"#numbers"},{"include":"#language-constants"},{"name":"string.unquoted.nimcfg","match":"[A-Za-z]\\w*"}]},"groups":{"patterns":[{"name":"meta.group.nimcfg","begin":"\\(","end":"\\)","patterns":[{"include":"#cond-expr"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.nimcfg"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.nimcfg"}}}]},"if-stmt":{"patterns":[{"begin":"(@)(?:(elif)|(if))\\b","end":"(:)|$","patterns":[{"include":"#cond-expr"}],"beginCaptures":{"1":{"name":"punctuation.definition.keyword.nimcfg"},"2":{"name":"keyword.control.conditional.elseif.nimcfg"},"3":{"name":"keyword.control.conditional.if.nimcfg"}},"endCaptures":{"1":{"name":"punctuation.section.block.begin.nimcfg"}}}]},"language-constants":{"patterns":[{"name":"constant.language.boolean.nimcfg","match":"\\b(?:true|false|on|off)\\b"}]},"numbers":{"patterns":[{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.hexadecimal.nimcfg"},"1":{"name":"constant.numeric.base.nimcfg"},"2":{"name":"constant.numeric.value.nimcfg"},"3":{"name":"constant.numeric.suffix.nimcfg"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.octal.nimcfg"},"1":{"name":"constant.numeric.base.nimcfg"},"2":{"name":"constant.numeric.value.nimcfg"},"3":{"name":"constant.numeric.suffix.nimcfg"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.binary.nimcfg"},"1":{"name":"constant.numeric.base.nimcfg"},"2":{"name":"constant.numeric.value.nimcfg"},"3":{"name":"constant.numeric.suffix.nimcfg"}}},{"match":"(?x: \\b(\\d(?:_?\\d)*) ('?[Ii](?:8|16|32|64))? )","captures":{"0":{"name":"meta.number.integer.decimal.nimcfg"},"1":{"name":"constant.numeric.value.nimcfg"},"2":{"name":"constant.numeric.suffix.nimcfg"}}}]},"rstr-lit":{"patterns":[{"contentName":"string.quoted.double.nimcfg","begin":"([Rr])(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nimcfg","match":"\"\""}],"beginCaptures":{"1":{"name":"storage.type.nimcfg"},"2":{"name":"string.quoted.double.nimcfg punctuation.definition.string.begin.nimcfg"}},"endCaptures":{"1":{"name":"string.quoted.double.nimcfg punctuation.definition.string.end.nimcfg"},"2":{"name":"string.quoted.double.nimcfg invalid.illegal.unclosed-string.nimcfg"}}}]},"str-lit":{"patterns":[{"name":"string.quoted.double.nimcfg","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nimcfg","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nimcfg","match":"\\\\"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nimcfg"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nimcfg"},"2":{"name":"invalid.illegal.nimcfg"}}}]},"str-lits":{"patterns":[{"include":"#triplestr-lit"},{"include":"#rstr-lit"},{"include":"#str-lit"}]},"triplestr-lit":{"patterns":[{"contentName":"string.quoted.triple.nimcfg","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","beginCaptures":{"1":{"name":"storage.type.nimcfg"},"2":{"name":"string.quoted.triple.nimcfg punctuation.definition.string.begin.nimcfg"}},"endCaptures":{"0":{"name":"string.quoted.triple.nimcfg punctuation.definition.string.end.nimcfg"}}}]}}}
|
data/grammars/source.pnlgrp.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"PNLGRP","scopeName":"source.pnlgrp","patterns":[{"include":"#comments"},{"include":"#symbols"},{"include":"#tags"}],"repository":{"comments":{"patterns":[{"name":"comment.line.pnlgrp","begin":"^(\\.\\*).*","end":"\n"}]},"symbols":{"patterns":[{"name":"support.function.pnlgrp","match":"(?i)(\u0026(AMP|COLON|CONT|MSG\\(.*\\)|PERIOD|SLR)\\.?)"}]},"tags":{"patterns":[{"name":"keyword.other.pnlgrp.help","begin":"(?i)(?\u003c=(:(HELP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.help","match":"(?i)\\b(:(HELP)[ ])"},{"name":"support.function.pnlgrp.help.attribute.name","match":"(?i)\\b(NAME|WIDTH|DEPTH)[=]"},{"name":"support.variable.pnlgrp.help.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.import","begin":"(?i)(?\u003c=(:(IMPORT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.import","match":"(?i)\\b(:(IMPORT)[ ])"},{"name":"support.function.pnlgrp.import.attribute.name","match":"(?i)\\b(NEWNAME|NAME|PNLGRP|PRDLIB)[=]"},{"name":"support.variable.pnlgrp.import.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.isch","begin":"(?i)(?\u003c=(:(ISCH)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.isch","match":"(?i)\\b(:(ISCH)[ ])"},{"name":"support.function.pnlgrp.isch.attribute.name","match":"(?i)\\b(ROOTS)[=]"},{"name":"support.variable.pnlgrp.isch.attribute.value","match":"(?i)(['](([A-Z0-9]{1,20}[ ]*){1,50})['])"}]},{"name":"keyword.other.pnlgrp.ischsubt","begin":"(?i)(?\u003c=(:(ISCHSUBT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.ischsubt","match":"(?i)\\b(:(ISCHSUBT)[ ])"},{"name":"support.function.pnlgrp.ischsubt.attribute.name","match":"(?i)\\b(TOPICS)[=]"},{"name":"support.variable.pnlgrp.ischsubt.attribute.value","match":"(?i)(['](([A-Z0-9_\\/]{1,32}[ ]*){1,16})['])"}]},{"name":"keyword.other.pnlgrp.ischsyn","begin":"(?i)(?\u003c=(:(ISCHSYN)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.ischsyn","match":"(?i)\\b(:(ISCHSYN)[ ])"},{"name":"support.function.pnlgrp.ischsyn.attribute.name","match":"(?i)\\b(ROOT)[=]"},{"name":"support.variable.pnlgrp.ischsyn.attribute.value","match":"(?i)(['](([A-Z0-9]{1,20}){1})['])"}]},{"name":"keyword.other.pnlgrp.link","begin":"(?i)(?\u003c=(:(LINK)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.link","match":"(?i)\\b(:(LINK)[ ])"},{"name":"support.function.pnlgrp.link.attribute.name","match":"(?i)\\b(PERFORM|UNLESS[1-4]|THENDO[1-4]|LINKWHEN)[=]"},{"name":"support.variable.pnlgrp.link.attribute.value","match":"(?i)'((DSPHELP ([A-Z0-9_/]{1,32})([ ]+[A-Z][A-Z0-9@#$]{0,9}/[A-Z][A-Z0-9@#$]{0,9}([ ]+[A-Z][A-Z0-9@#$]{0,9})?)?)|(CHKOBJ\\(\"[A-Z][A-Z0-9@#$]{0,9}\",\"\\*[A-Z]{0,9}\"(,\"(\\*(CHANGE|ALL|USE|EXCLUDE|AUTLMGT)|(\\*(OBJEXIST|OBJMGT|OBJOPR|OBJALTER|OBJREF|ADD|DLT|READ|UPD|EXECUTE)[ ]*){1,7})?\")\\))|(CHKPGM\\(\"(\\*LIBL/|[A-Z][A-Z0-9@#$]{0,9}/)?[A-Z][A-Z0-9@#$]{0,9}\"\\))|(CHKUSRCLS\\(\\*(SECOFR|SECADM|PGMR|SYSOPR|USER)\\)))'"}]},{"name":"keyword.other.pnlgrp.list","begin":"(?i)(?\u003c=(:(DL|OL|SL|UL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.list","match":"(?i)\\b(:(DL|OL|SL|UL)[ ])"},{"name":"support.function.pnlgrp.list.attribute.name","match":"(?i)\\b(COMPACT)"}]},{"name":"keyword.other.pnlgrp.pk","begin":"(?i)(?\u003c=(:(PK)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.pk.attribute.name","match":"(?i)\\b(DEF)"}]},{"name":"keyword.other.pnlgrp.pnlgrp","begin":"(?i)(?\u003c=(:(PNLGRP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.pnlgrp","match":"(?i)\\b(:(PNLGRP)[ ])"},{"name":"support.function.pnlgrp.pnlgrp.attribute.name","match":"(?i)\\b(SCHIDX|ENBGUI|TXTMODE|TXTCHRID|BIDI|NBRSHAPE|DFTMSGF|SUBMSGF)[=]"},{"name":"support.variable.pnlgrp.pnlgrp.attribute.value","match":"(?i)(([A-Z][A-Z0-9#@$]{1,9}/[A-Z][A-Z0-9#@$]{1,9})|NONE|NO|YES|SBCS|DBCS|LTR|RTL|ARABIC|HINDI|('[0-9]{2,5}'))"}]},{"name":"keyword.other.pnlgrp","match":"(?i)(:(XMP|XH[1-4]|VARRCD|VAR|UL|TTROW|TT|TOPINST|TL|TI|TEXT|SL|RT|PV|PT|PT|PRTTRAIL|PRTPNL|PRTHEAD|PNLGRP).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(PK|PDFLDC|PDFLD|PDACCEL|PD|PC|PARML|PANEL|P|OPTLINE|OL|NT|NOTE|MENUI|MENUGRP|MENU|MBARC|MBAR|LP).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(LISTVIEW|LISTGRP|LISTDEF|LISTCOL|LISTACT|LIST|LINK|LINES|LI|KEYL|KEYI|ISCHSYN|ISCHSUBT|ISCH|INFO).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(IMPORT|IMHELP|HP[0-9]|HELP|H[1-4]|FIG|EXMP|EUL|ETT|ETL|ESL|ERT|EPV|EPT|EPRTPNL|EPRTHEAD|EPNLGRP|EPK).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(EPDFLD|EPARML|EPANEL|EOL|ENT|ENOTE|EMENUGRP|EMENU|EMBARC|EMBAR|ELISTGRP|ELIST|ELINK|ELINES|EKEYL|EINFO).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(EHP[0-9]|EHELP|EFIG|EDL|EDATAGRP|EDATA|ECLASS|ECIT|DTHD|DT|DL|DDHD|DD|DATASLTC|DATASLT|DATAIX|DATAI).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(DATAGRP|DATACOL|DATAC|DATA|COPYR|COND|CMDLINE|CLASS|CIT|CHECK|BOTINST|APPFMT).?)"}]}}}
|
1
|
+
{"name":"PNLGRP","scopeName":"source.pnlgrp","patterns":[{"include":"#comments"},{"include":"#symbols"},{"include":"#directives"},{"include":"#tags"}],"repository":{"comments":{"patterns":[{"name":"comment.line.pnlgrp","begin":"^(\\.\\*).*","end":"\n"}]},"directives":{"patterns":[{"name":"keyword.other.pnlgrp.directives.imbed","begin":"(?i)(?\u003c=\\.)(IM)[ ]","end":"\n","patterns":[{"name":"string.other.pnlgrp.directives.imbed.member","match":"(?i)([A-Z][A-Z0-9#@$]{1,9}[ ]*$)"}]}]},"symbols":{"patterns":[{"name":"support.function.pnlgrp","match":"(?i)(\u0026(AMP|COLON|CONT|MSG\\(.*\\)|PERIOD|SLR)\\.?)"}]},"tags":{"patterns":[{"name":"keyword.other.pnlgrp.appfmt","begin":"(?i)(?\u003c=(:(APPFMT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.appfmt","match":"(?i)\\b(:(APPFMT)[ ])"},{"name":"support.function.pnlgrp.appfmt.attribute.name","match":"(?i)\\b(VAR|WIDTH|DEPTH|USREXIT)[=]"},{"name":"support.variable.pnlgrp.appfmt.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32})[']|[0-9]{1,2])"}]},{"name":"keyword.other.pnlgrp.botinst","begin":"(?i)(?\u003c=(:(BOTINST)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.botinst","match":"(?i)\\b(:(BOTINST)[ ])"},{"name":"support.function.pnlgrp.botinst.attribute.name","match":"(?i)\\b(INST)[=]"},{"name":"support.variable.pnlgrp.botinst.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32})['])"}]},{"name":"keyword.other.pnlgrp.check","begin":"(?i)(?\u003c=(:(CHECK)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.check","match":"(?i)\\b(:(CHECK)[ ])"},{"name":"support.function.pnlgrp.check.attribute.name","match":"(?i)\\b(MSGID|MSGF|RANGE|REL|VALUES)[=]"},{"name":"support.variable.pnlgrp.check.attribute.value","match":"(?i)([A-F]{3}[0-9A-F]{4}|['][A-Z][A-Z0-9#@$]{0,9}/[A-Z][A-Z0-9#@$]{0,9}['])"}]},{"name":"keyword.other.pnlgrp.class","begin":"(?i)(?\u003c=(:(CLASS)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.class","match":"(?i)\\b(:(CLASS)[ ])"},{"name":"support.function.pnlgrp.class.attribute.name","match":"(?i)\\b(NAME|BASETYPE|WIDTH|CHRID|SHIFT|CASE|BLANKS|SUBST|BIDI|CONTXTREV|NBRSHAPE|SYMSWAP)[=]"},{"name":"support.variable.pnlgrp.class.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.cmdline","begin":"(?i)(?\u003c=(:(CMDLINE)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.cmdline","match":"(?i)\\b(:(CMDLINE)[ ])"},{"name":"support.function.pnlgrp.cmdline.attribute.name","match":"(?i)\\b(SIZE|NAME)[=]"},{"name":"support.variable.pnlgrp.cmdline.attribute.value","match":"(?i)(SHORT|LONG|[A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.cond","begin":"(?i)(?\u003c=(:(COND)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.cond","match":"(?i)\\b(:(COND)[ ])"},{"name":"support.function.pnlgrp.cond.attribute.name","match":"(?i)\\b(NAME|EXPR|EVAL)[=]"},{"name":"support.variable.pnlgrp.cond.attribute.value","match":"(?i)([A-Z0-9]{1,32}|['](.*)[']|ALWAYS|ONCE)"}]},{"name":"keyword.other.pnlgrp.data","begin":"(?i)(?\u003c=(:(DATA)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.data","match":"(?i)\\b(:(DATA)[ ])"},{"name":"support.function.pnlgrp.data.attribute.name","match":"(?i)\\b((DEPTH|HELP|BOTSEP|SCROLL|LAYOUT|MAXHEAD|BODYSEP|TYPE)[=]|COMPACT)"},{"name":"support.variable.pnlgrp.data.attribute.value","match":"(?i)(([A-Z][A-Z0-9#@$]{1,9}/[A-Z][A-Z0-9#@$]{1,9})|SPACE|NONE|NO|YES|HORIZ|SPACE|INDENT|BOTH|NONE|PROLOG|([0-4]{1})|'\\*')"}]},{"name":"keyword.other.pnlgrp.datac","begin":"(?i)(?\u003c=(:(DATAC)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.datac","match":"(?i)\\b(:(DATAC)[ ])"},{"name":"support.function.pnlgrp.datac.attribute.name","match":"(?i)\\b(CHOICE)[=]"},{"name":"support.variable.pnlgrp.datac.attribute.value","match":"(?i)([A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.datacol","begin":"(?i)(?\u003c=(:(DATACOL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.datacol","match":"(?i)\\b(:(DATACOL)[ ])"},{"name":"support.function.pnlgrp.datacol.attribute.name","match":"(?i)\\b(WIDTH)[=]"},{"name":"support.variable.pnlgrp.datacol.attribute.value","match":"(?i)([0-9]{1,3}|'\\*')"}]},{"name":"keyword.other.pnlgrp.datagrp","begin":"(?i)(?\u003c=(:(DATAGRP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.datagrp","match":"(?i)\\b(:(DATAGRP)[ ])"},{"name":"support.function.pnlgrp.datagrp.attribute.name","match":"(?i)\\b((HELP|NAME|GRPSEP|COND)[=]|COMPACT)"},{"name":"support.variable.pnlgrp.datagrp.attribute.value","match":"(?i)(([A-Z][A-Z0-9#@$]{1,9}/[A-Z][A-Z0-9#@$]{1,9})|([A-Z0-9]{1,32})|INDENT|QINDENT|NONE)"}]},{"name":"keyword.other.pnlgrp.datai","begin":"(?i)(?\u003c=(:(DATAI)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.datai","match":"(?i)\\b(:(DATAI)[ ])"},{"name":"support.function.pnlgrp.datai.attribute.name","match":"(?i)\\b(VAR|USAGE|HELP|NAME|PMTLOC|CHCLOC|ALIGN|JUSTIFY|REQUIRED|CSRLOC|DISPLAY|AUTOENTR|COND|PROMPT|DSPVALUE)[=]"},{"name":"support.variable.pnlgrp.datai.attribute.value","match":"(?i)(([A-Z0-9]{1,32})|(['][A-Z][A-Z0-9#@$]{1,9}/[A-Z][A-Z0-9#@$]{1,9}['])|OUT|INOUT|BEFORE|ABOVE|AFTER|LEFT|RIGHT|START|END|NO|YES|'\\*')"}]},{"name":"keyword.other.pnlgrp.dataix","begin":"(?i)(?\u003c=(:(DATAIX)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.dataix","match":"(?i)\\b(:(DATAIX)[ ])"},{"name":"support.function.pnlgrp.dataix.attribute.name","match":"(?i)\\b(VAR|USAGE|NEWLINE|ITEMSEP|ALIGN|JUSTIFY|REQUIRED|DISPLAY|PROMPT|DSPVALUE|AUTOENTR)[=]"},{"name":"support.variable.pnlgrp.dataix.attribute.value","match":"(?i)(([A-Z0-9]{1,32})|OUT|INOUT|CALC|NO|YES|[0-9]+|LEFT|RIGHT|START|END|['].*['])"}]},{"name":"keyword.other.pnlgrp.dataslt","begin":"(?i)(?\u003c=(:(DATASLT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.dataslt","match":"(?i)\\b(:(DATASLT)[ ])"},{"name":"support.function.pnlgrp.dataslt.attribute.name","match":"(?i)\\b(TYPE|VAR|HELP|NAME|PMTLOC|REQUIRED|AUTOENTR|COND)[=]"},{"name":"support.variable.pnlgrp.dataslt.attribute.value","match":"(?i)(([A-Z0-9]{1,32})|SINGLE|MULTI|BEFORE|ABOVE|NO|YES)"}]},{"name":"keyword.other.pnlgrp.datasltc","begin":"(?i)(?\u003c=(:(DATASLTC)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.datasltc","match":"(?i)\\b(:(DATASLTC)[ ])"},{"name":"support.function.pnlgrp.datasltc.attribute.name","match":"(?i)\\b(CHOICE|OPTION|VAR|HELP|COND|AVAIL|AVLMSGID|AVLMSGF)[=]"},{"name":"support.variable.pnlgrp.datasltc.attribute.value","match":"(?i)(([A-Z0-9]{1,32})|([0-9]{1,2})|([A-F]{3}[0-9A-F]{4})|(['][A-Z][A-Z0-9#@$]{0,9}/[A-Z][A-Z0-9#@$]{0,9}[']))"}]},{"name":"keyword.other.pnlgrp.fig","begin":"(?i)(?\u003c=(:(FIG)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.fig","match":"(?i)\\b(:(FIG)[ ])"},{"name":"support.function.pnlgrp.fig.attribute.name","match":"(?i)\\b(FRAME)[=]"},{"name":"support.variable.pnlgrp.fig.attribute.value","match":"(?i)(RULE|NONE)"}]},{"name":"keyword.other.pnlgrp.help","begin":"(?i)(?\u003c=(:(HELP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.help","match":"(?i)\\b(:(HELP)[ ])"},{"name":"support.function.pnlgrp.help.attribute.name","match":"(?i)\\b(NAME|WIDTH|DEPTH)[=]"},{"name":"support.variable.pnlgrp.help.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.imhelp","begin":"(?i)(?\u003c=(:(IMHELP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.imhelp","match":"(?i)\\b(:(IMHELP)[ ])"},{"name":"support.function.pnlgrp.imhelp.attribute.name","match":"(?i)\\b(NAME)[=]"},{"name":"support.variable.pnlgrp.imhelp.attribute.value","match":"(?i)([A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.import","begin":"(?i)(?\u003c=(:(IMPORT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.import","match":"(?i)\\b(:(IMPORT)[ ])"},{"name":"support.function.pnlgrp.import.attribute.name","match":"(?i)\\b(NEWNAME|NAME|PNLGRP|PRDLIB)[=]"},{"name":"support.variable.pnlgrp.import.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.info","begin":"(?i)(?\u003c=(:(INFO)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.info","match":"(?i)\\b(:(INFO)[ ])"},{"name":"support.function.pnlgrp.info.attribute.name","match":"(?i)\\b(DEPTH|BOTSEP|SCROLL|TYPE)[=]"},{"name":"support.variable.pnlgrp.info.attribute.value","match":"(?i)([0-9]{2,2}|[']\\*[']|SPACE|NONE|RULE|YES|NO|NORMAL|PROLOG)"}]},{"name":"keyword.other.pnlgrp.isch","begin":"(?i)(?\u003c=(:(ISCH)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.isch","match":"(?i)\\b(:(ISCH)[ ])"},{"name":"support.function.pnlgrp.isch.attribute.name","match":"(?i)\\b(ROOTS)[=]"},{"name":"support.variable.pnlgrp.isch.attribute.value","match":"(?i)(['](([A-Z0-9]{1,20}[ ]*){1,50})['])"}]},{"name":"keyword.other.pnlgrp.ischsubt","begin":"(?i)(?\u003c=(:(ISCHSUBT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.ischsubt","match":"(?i)\\b(:(ISCHSUBT)[ ])"},{"name":"support.function.pnlgrp.ischsubt.attribute.name","match":"(?i)\\b(TOPICS)[=]"},{"name":"support.variable.pnlgrp.ischsubt.attribute.value","match":"(?i)(['](([A-Z0-9_\\/]{1,32}[ ]*){1,16})['])"}]},{"name":"keyword.other.pnlgrp.ischsyn","begin":"(?i)(?\u003c=(:(ISCHSYN)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.ischsyn","match":"(?i)\\b(:(ISCHSYN)[ ])"},{"name":"support.function.pnlgrp.ischsyn.attribute.name","match":"(?i)\\b(ROOT)[=]"},{"name":"support.variable.pnlgrp.ischsyn.attribute.value","match":"(?i)(['](([A-Z0-9]{1,20}){1})['])"}]},{"name":"keyword.other.pnlgrp.keyi","begin":"(?i)(?\u003c=(:(KEYI)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.keyi","match":"(?i)\\b(:(KEYI)[ ])"},{"name":"support.function.pnlgrp.keyi.attribute.name","match":"(?i)\\b(KEY|HELP|ACTION|COND|VARUPD|PRIORITY)[=]"},{"name":"support.variable.pnlgrp.keyi.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32})['])"}]},{"name":"keyword.other.pnlgrp.keyl","begin":"(?i)(?\u003c=(:(KEYL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.keyl","match":"(?i)\\b(:(KEYL)[ ])"},{"name":"support.function.pnlgrp.keyl.attribute.name","match":"(?i)\\b(NAME|HELP)[=]"},{"name":"support.variable.pnlgrp.keyl.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.link","begin":"(?i)(?\u003c=(:(LINK)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.link","match":"(?i)\\b(:(LINK)[ ])"},{"name":"support.function.pnlgrp.link.attribute.name","match":"(?i)\\b(PERFORM|UNLESS[1-4]|THENDO[1-4]|LINKWHEN)[=]"},{"name":"support.variable.pnlgrp.link.attribute.value","match":"(?i)'((DSPHELP ([A-Z0-9_/]{1,32})([ ]+[A-Z][A-Z0-9@#$]{0,9}/[A-Z][A-Z0-9@#$]{0,9}([ ]+[A-Z][A-Z0-9@#$]{0,9})?)?)|(CHKOBJ\\(\"[A-Z][A-Z0-9@#$]{0,9}\",\"\\*[A-Z]{0,9}\"(,\"(\\*(CHANGE|ALL|USE|EXCLUDE|AUTLMGT)|(\\*(OBJEXIST|OBJMGT|OBJOPR|OBJALTER|OBJREF|ADD|DLT|READ|UPD|EXECUTE)[ ]*){1,7})?\")\\))|(CHKPGM\\(\"(\\*LIBL/|[A-Z][A-Z0-9@#$]{0,9}/)?[A-Z][A-Z0-9@#$]{0,9}\"\\))|(CHKUSRCLS\\(\\*(SECOFR|SECADM|PGMR|SYSOPR|USER)\\)))'"}]},{"name":"keyword.other.pnlgrp.list_tags","begin":"(?i)(?\u003c=(:(DL|OL|SL|UL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.list_tags","match":"(?i)\\b(:(DL|OL|SL|UL)[ ])"},{"name":"support.function.pnlgrp.list_tags.attribute.name","match":"(?i)\\b(COMPACT)"}]},{"name":"keyword.other.pnlgrp.list","begin":"(?i)(?\u003c=(:(LIST)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.list","match":"(?i)\\b(:(LIST)[ ])"},{"name":"support.function.pnlgrp.list.attribute.name","match":"(?i)\\b(DEPTH|LISTDEF|BOTSEP|SCROLL|MAXHEAD|BODYSEP|VIEW|ACTOR|EXTACT|SELECT|MAXACTL|PARMS|HEADSIZE)[=]"},{"name":"support.variable.pnlgrp.list.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']\\*[']|SPACE|NONE|RULE|YES|NO|[0-4]{1}|INDENT|BOTH|UIM|CALLER|SINGLE|MULTI)"}]},{"name":"keyword.other.pnlgrp.listact","begin":"(?i)(?\u003c=(:(LISTACT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.listact","match":"(?i)\\b(:(LISTACT)[ ])"},{"name":"support.function.pnlgrp.listact.attribute.name","match":"(?i)\\b(HELP|OPTION|ACTFOR|CONFIRM|ENTER|EXTENTER|PROMPT|EXTPROMPT|NOCMD|NOEXT|USREXIT|EXTMSGID|EXTMSGF|COND|AVAIL|AVLMSGID|AVLMSGF)[=]"},{"name":"support.variable.pnlgrp.listact.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)[']|[0-9]{1,3}|BOTH|LISTE|EXACTE|['](.*)[']|ENTER|PROMPT|MSG)"}]},{"name":"keyword.other.pnlgrp.listcol","begin":"(?i)(?\u003c=(:(LISTCOL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.listcol","match":"(?i)\\b(:(LISTCOL)[ ])"},{"name":"support.function.pnlgrp.listcol.attribute.name","match":"(?i)\\b(VAR|MAXWIDTH|USAGE|HELP|COL|NAME|JUSTIFY|EXTACT|PROMPT|DSPVALUE|COLHEAD|DISPLAY|AUTOSKIP)[=]"},{"name":"support.variable.pnlgrp.listcol.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)[']|OUT|INOUT|LEFT|RIGHT|START|END|NO|YES|['](.*)['])"}]},{"name":"keyword.other.pnlgrp.listdef","begin":"(?i)(?\u003c=(:(LISTDEF)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.listdef","match":"(?i)\\b(:(LISTDEF)[ ])"},{"name":"support.function.pnlgrp.listdef.attribute.name","match":"(?i)\\b(NAME|VARS|CHGVAR|MSGID|MSGIDVAR|MSGF|PRTFLAG|EMPHASIS|PROTECT)[=]"},{"name":"support.variable.pnlgrp.listdef.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.listgrp","begin":"(?i)(?\u003c=(:(LISTGRP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.listgrp","match":"(?i)\\b(:(LISTGRP)[ ])"},{"name":"support.function.pnlgrp.listgrp.attribute.name","match":"(?i)\\b(COL|HELP|NAME|COLSEP)[=]"},{"name":"support.variable.pnlgrp.listgrp.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)[']|\\*)"}]},{"name":"keyword.other.pnlgrp.listview","begin":"(?i)(?\u003c=(:(LISTVIEW)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.listview","match":"(?i)\\b(:(LISTVIEW)[ ])"},{"name":"support.function.pnlgrp.listview.attribute.name","match":"(?i)\\b(COLS|LAYOUT)[=]"},{"name":"support.variable.pnlgrp.listview.attribute.value","match":"(?i)([']([A-Z0-9]{1,32}|\\s)+[']|[0-9]{1,2})"}]},{"name":"keyword.other.pnlgrp.mbar","begin":"(?i)(?\u003c=(:(MBAR)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.mbar","match":"(?i)\\b(:(MBAR)[ ])"},{"name":"support.function.pnlgrp.mbar.attribute.name","match":"(?i)\\b(NAME|HELP|MAXBARL)[=]"},{"name":"support.variable.pnlgrp.mbar.attribute.value","match":"(?i)([A-Z]{1}[A-Z0-9]{0,9}|[A-Z/_]{1}[A-Z0-9/_]{1,31}|[123])"}]},{"name":"keyword.other.pnlgrp.mbarc","begin":"(?i)(?\u003c=(:(MBARC)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.mbarc","match":"(?i)\\b(:(MBARC)[ ])"},{"name":"support.function.pnlgrp.mbarc.attribute.name","match":"(?i)\\b(HELP)[=]"},{"name":"support.variable.pnlgrp.mbarc.attribute.value","match":"(?i)([A-Z/_]{1}[A-Z0-9/_]{1,31})"}]},{"name":"keyword.other.pnlgrp.menu","begin":"(?i)(?\u003c=(:(MENU)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.menu","match":"(?i)\\b(:(MENU)[ ])"},{"name":"support.function.pnlgrp.menu.attribute.name","match":"(?i)\\b(DEPTH|BOTSEP|SCROLL)[=]"},{"name":"support.variable.pnlgrp.menu.attribute.value","match":"(?i)(([0-9]{1,2}|'\\*')|(SPACE|NONE|RULE)|(NO|YES))"}]},{"name":"keyword.other.pnlgrp.menugrp","begin":"(?i)(?\u003c=(:(MENUGRP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.menugrp","match":"(?i)\\b(:(MENUGRP)[ ])"},{"name":"support.function.pnlgrp.menugrp.attribute.name","match":"(?i)\\b(COND)[=]"},{"name":"support.variable.pnlgrp.menugrp.attribute.value","match":"(?i)([A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.menui","end":"\\.","patterns":[{"name":"support.function.pnlgrp.menui","match":"(?i)\\b(:(MENUI|MI)[ ])"},{"name":"support.function.pnlgrp.menui.attribute.name","match":"(?i)\\b(HELP|OPTION|ACTION|NAME|COND|AVAIL|AVLMSGID|AVLMSGF|MARKER|ITEM)[=]"},{"name":"support.variable.pnlgrp.menui.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[0-9]{1,3}|[']((CALL .*)|CANCEL|(CMD .*)|EXIT|(MENU .* (NO)?RTNPNT)|RETURN)['])"}]},{"name":"keyword.other.pnlgrp.optline","begin":"(?i)(?\u003c=(:(OPTLINE)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.optline","match":"(?i)\\b(:(OPTLINE)[ ])"},{"name":"support.function.pnlgrp.optline.attribute.name","match":"(?i)\\b(NAME)[=]"},{"name":"support.variable.pnlgrp.optline.attribute.value","match":"(?i)([A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.panel","begin":"(?i)(?\u003c=(:(PANEL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.panel","match":"(?i)\\b(:(PANEL)[ ])"},{"name":"support.function.pnlgrp.panel.attribute.name","match":"(?i)\\b(NAME|HELP|KEYL|PANELID|TITLE|WIDTH|DEPTH|MBAR|MSGL|TOPSEP|DATE|TIME|ENBGUI|ENTER|SELECT|USREXIT|TT|CSRVAR|CSRPOS|CSRLST|CSREID|CSRNAME)[=]"},{"name":"support.variable.pnlgrp.panel.attribute.value","match":"(?i)([A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.pdfld","begin":"(?i)(?\u003c=(:(PDFLD)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.pdfld","match":"(?i)\\b(:(PDFLD)[ ])"},{"name":"support.function.pnlgrp.pdfld.attribute.name","match":"(?i)\\b(NAME)[=]"},{"name":"support.variable.pnlgrp.pdfld.attribute.value","match":"(?i)([A-Z]{1}[A-Z0-9]{0,9})"}]},{"name":"keyword.other.pnlgrp.pdfldc","begin":"(?i)(?\u003c=(:(PDFLDC)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.pdfldc","match":"(?i)\\b(:(PDFLDC)[ ])"},{"name":"support.function.pnlgrp.pdfldc.attribute.name","match":"(?i)\\b(OPTION|HELP|ACTION|ACTFOR|CONFIRM|USREXIT|VARUPD|COND|AVAIL|AVLMSGID|AVLMSGF|CHOICE)[=]"},{"name":"support.variable.pnlgrp.pdfldc.attribute.value","match":"(?i)([0-9]{1,2}|[A-Z]{1}[A-Z0-9]{0,9}|PANEL|LIST|['](CALL .*)[']|[A-Z/_]{1}[A-Z0-9/_]{1,31}|[A-F]{3}[0-9A-F]{4}|['][A-Z][A-Z0-9#@$]{0,9}/[A-Z][A-Z0-9#@$]{0,9}['])"}]},{"name":"keyword.other.pnlgrp.pk","begin":"(?i)(?\u003c=(:(PK)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.pk.attribute.name","match":"(?i)\\b(DEF)"}]},{"name":"keyword.other.pnlgrp.pnlgrp","begin":"(?i)(?\u003c=(:(PNLGRP)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.pnlgrp","match":"(?i)\\b(:(PNLGRP)[ ])"},{"name":"support.function.pnlgrp.pnlgrp.attribute.name","match":"(?i)\\b(SCHIDX|ENBGUI|TXTMODE|TXTCHRID|BIDI|NBRSHAPE|DFTMSGF|SUBMSGF)[=]"},{"name":"support.variable.pnlgrp.pnlgrp.attribute.value","match":"(?i)(([A-Z][A-Z0-9#@$]{1,9}/[A-Z][A-Z0-9#@$]{1,9})|NONE|NO|YES|SBCS|DBCS|LTR|RTL|ARABIC|HINDI|('[0-9]{2,5}'))"}]},{"name":"keyword.other.pnlgrp.prthead","begin":"(?i)(?\u003c=(:(PRTHEAD)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.prthead","match":"(?i)\\b(:(PRTHEAD)[ ])"},{"name":"support.function.pnlgrp.prthead.attribute.name","match":"(?i)\\b(NAME|PRODINFO|PRTDATE|PRTTIME|TITLE|TT|WIDTH|OBJ|OBJLIB)[=]"},{"name":"support.variable.pnlgrp.prthead.attribute.value","match":"(?i)([A-Z0-9]{1,32}|80|132)"}]},{"name":"keyword.other.pnlgrp.prtpnl","begin":"(?i)(?\u003c=(:(PRTPNL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.prtpnl","match":"(?i)\\b(:(PRTPNL)[ ])"},{"name":"support.function.pnlgrp.prtpnl.attribute.name","match":"(?i)\\b(NAME|TITLE|TT|WIDTH)[=]"},{"name":"support.variable.pnlgrp.prtpnl.attribute.value","match":"(?i)([A-Z0-9]{1,32}|80|132)"}]},{"name":"keyword.other.pnlgrp.text","begin":"(?i)(?\u003c=(:(TEXT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.text","match":"(?i)\\b(:(TEXT)[ ])"},{"name":"support.function.pnlgrp.text.attribute.name","match":"(?i)\\b(VAR|USREXIT|ROW|COL)[=]"},{"name":"support.variable.pnlgrp.text.attribute.value","match":"(?i)([A-Z]{1}[A-Z0-9]{0,9}|['](CALL .*)['])"}]},{"name":"keyword.other.pnlgrp.ti","begin":"(?i)(?\u003c=(:(TI)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.ti","match":"(?i)\\b(:(TI)[ ])"},{"name":"support.function.pnlgrp.ti.attribute.name","match":"(?i)\\b(VALUE)[=]"},{"name":"support.variable.pnlgrp.ti.attribute.value","match":"(?i)(['](.+)['])"}]},{"name":"keyword.other.pnlgrp.tl","begin":"(?i)(?\u003c=(:(TL)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.tl","match":"(?i)\\b(:(TL)[ ])"},{"name":"support.function.pnlgrp.tl.attribute.name","match":"(?i)\\b(CASE|MSGID|MSGF)[=]"},{"name":"support.variable.pnlgrp.tl.attribute.value","match":"(?i)(UPPER|MIXED|[A-F]{3}[0-9A-F]{4}|['][A-Z][A-Z0-9#@$]{0,9}/[A-Z][A-Z0-9#@$]{0,9}['])"}]},{"name":"keyword.other.pnlgrp.topinst","begin":"(?i)(?\u003c=(:(TOPINST)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.topinst","match":"(?i)\\b(:(TOPINST)[ ])"},{"name":"support.function.pnlgrp.topinst.attribute.name","match":"(?i)\\b(INST)[=]"},{"name":"support.variable.pnlgrp.topinst.attribute.value","match":"(?i)([A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.tt","begin":"(?i)(?\u003c=(:(TT)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.tt","match":"(?i)\\b(:(TT)[ ])"},{"name":"support.function.pnlgrp.tt.attribute.name","match":"(?i)\\b(NAME|CONDS)[=]"},{"name":"support.variable.pnlgrp.tt.attribute.value","match":"(?i)([A-Z0-9]{1,32}|[']([A-Z0-9_\\/]{1,32}|\\*)['])"}]},{"name":"keyword.other.pnlgrp.ttrow","begin":"(?i)(?\u003c=(:(TTROW)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.ttrow","match":"(?i)\\b(:(TTROW)[ ])"},{"name":"support.function.pnlgrp.ttrow.attribute.name","match":"(?i)\\b(VALUES)[=]"},{"name":"support.variable.pnlgrp.ttrow.attribute.value","match":"(?i)(['](.*)['])"}]},{"name":"keyword.other.pnlgrp.var","begin":"(?i)(?\u003c=(:(VAR)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.var","match":"(?i)\\b(:(VAR)[ ])"},{"name":"support.function.pnlgrp.var.attribute.name","match":"(?i)\\b(NAME|CLASS|ERRVAR)[=]"},{"name":"support.variable.pnlgrp.var.attribute.value","match":"(?i)([A-Z0-9]{1,32})"}]},{"name":"keyword.other.pnlgrp.varrcd","begin":"(?i)(?\u003c=(:(VARRCD)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.varrcd","match":"(?i)\\b(:(VARRCD)[ ])"},{"name":"support.function.pnlgrp.varrcd.attribute.name","match":"(?i)\\b(NAME|VARS|NOPUT|NOGET)[=]"},{"name":"support.variable.pnlgrp.varrcd.attribute.value","match":"(?i)([']?)([A-Z0-9]{1,32}(['])?)"}]},{"name":"keyword.other.pnlgrp","match":"(?i)(:(XMP|XH[1-4]|VARRCD|VAR|UL|TTROW|TT|TOPINST|TL|TI|TEXT|SL|RT|PV|PT|PT|PRTTRAIL|PRTPNL|PRTHEAD|PNLGRP).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(PK|PDFLDC|PDFLD|PDACCEL|PD|PC|PARML|PANEL|P|OPTLINE|OL|NT|NOTE|MI|MENUI|MENUGRP|MENU|MBARC|MBAR|LP).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(LISTVIEW|LISTGRP|LISTDEF|LISTCOL|LISTACT|LIST|LINK|LINES|LI|KEYL|KEYI|ISCHSYN|ISCHSUBT|ISCH|INFO).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(IMPORT|IMHELP|HP[0-9]|HELP|H[1-4]|FIG|EXMP|EUL|ETT|ETL|ESL|ERT|EPV|EPT|EPRTPNL|EPRTHEAD|EPNLGRP|EPK).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(EPDFLD|EPARML|EPANEL|EOL|ENT|ENOTE|EMENUGRP|EMENU|EMBARC|EMBAR|ELISTGRP|ELIST|ELINK|ELINES|EKEYL|EINFO).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(EHP[0-9]|EHELP|EFIG|EDL|EDATAGRP|EDATA|ECLASS|ECIT|DTHD|DT|DL|DDHD|DD|DATASLTC|DATASLT|DATAIX|DATAI).?)"},{"name":"keyword.other.pnlgrp","match":"(?i)(:(DATAGRP|DATACOL|DATAC|DATA|COPYR|COND|CMDLINE|CLASS|CIT|CHECK|BOTINST|APPFMT).?)"}]}}}
|
data/grammars/source.polar.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"polar","scopeName":"source.polar","patterns":[{"include":"#comment"},{"include":"#rule"},{"include":"#rule-type"},{"include":"#inline-query"},{"include":"#resource-block"}],"repository":{"comment":{"name":"comment.line.number-sign","match":"#.*"},"inline-query":{"name":"meta.inline-query","begin":"\\?=","end":";","patterns":[{"include":"#term"}],"beginCaptures":{"0":{"name":"keyword.control"}}},"keyword":{"patterns":[{"name":"constant.character","match":"\\b(cut|or|debug|print|in|forall|if|and|of|not|matches|type|on)\\b"}]},"number":{"patterns":[{"name":"constant.numeric.float","match":"\\b[+-]?\\d+(?:(\\.)\\d+(?:e[+-]?\\d+)?|(?:e[+-]?\\d+))\\b"},{"name":"constant.numeric.integer","match":"\\b(\\+|\\-)[\\d]+\\b"},{"name":"constant.numeric.natural","match":"\\b[\\d]+\\b"}]},"operator":{"match":"(\\+|-|\\*|\\/|\u003c|\u003e|=|!)","captures":{"1":{"name":"keyword.control"}}},"resource-block":{"name":"meta.resource-block","begin":"(resource|actor)\\s+([a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*)\\s*\\{","end":"\\}","patterns":[{"name":"punctuation.separator.sequence.declarations","match":";"},{"name":"meta.relation-declaration","begin":"\\{","end":"\\}","patterns":[{"include":"#specializer"},{"include":"#comment"},{"name":"punctuation.separator.sequence.dict","match":","}]},{"include":"#term"}],"beginCaptures":{"
|
1
|
+
{"name":"polar","scopeName":"source.polar","patterns":[{"include":"#comment"},{"include":"#rule"},{"include":"#rule-type"},{"include":"#inline-query"},{"include":"#resource-block"},{"include":"#test-block"}],"repository":{"boolean":{"name":"constant.language.boolean","match":"\\b(true|false)\\b"},"comment":{"name":"comment.line.number-sign","match":"#.*"},"inline-query":{"name":"meta.inline-query","begin":"\\?=","end":";","patterns":[{"include":"#term"}],"beginCaptures":{"0":{"name":"keyword.control"}}},"keyword":{"patterns":[{"name":"constant.character","match":"\\b(cut|or|debug|print|in|forall|if|and|of|not|matches|type|on|global)\\b"}]},"number":{"patterns":[{"name":"constant.numeric.float","match":"\\b[+-]?\\d+(?:(\\.)\\d+(?:e[+-]?\\d+)?|(?:e[+-]?\\d+))\\b"},{"name":"constant.numeric.integer","match":"\\b(\\+|\\-)[\\d]+\\b"},{"name":"constant.numeric.natural","match":"\\b[\\d]+\\b"}]},"object-literal":{"name":"constant.other.object-literal","begin":"([a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*)\\s*\\{","end":"\\}","patterns":[{"include":"#string"},{"include":"#number"},{"include":"#boolean"}],"beginCaptures":{"1":{"name":"entity.name.type.resource"}}},"operator":{"match":"(\\+|-|\\*|\\/|\u003c|\u003e|=|!)","captures":{"1":{"name":"keyword.control"}}},"resource-block":{"name":"meta.resource-block","begin":"((resource|actor)\\s+([a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*)|(global))\\s*\\{","end":"\\}","patterns":[{"name":"punctuation.separator.sequence.declarations","match":";"},{"name":"meta.relation-declaration","begin":"\\{","end":"\\}","patterns":[{"include":"#specializer"},{"include":"#comment"},{"name":"punctuation.separator.sequence.dict","match":","}]},{"include":"#term"}],"beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"entity.name.type"},"4":{"name":"keyword.control"}}},"rule":{"name":"meta.rule","patterns":[{"include":"#rule-functor"},{"begin":"\\bif\\b","end":";","patterns":[{"include":"#term"}],"beginCaptures":{"0":{"name":"keyword.control.if"}}},{"match":";"}]},"rule-functor":{"begin":"([a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*)\\s*\\(","end":"\\)","patterns":[{"include":"#specializer"},{"name":"punctuation.separator.sequence.list","match":","},{"include":"#term"}],"beginCaptures":{"1":{"name":"support.function.rule"}}},"rule-type":{"name":"meta.rule-type","begin":"\\btype\\b","end":";","patterns":[{"include":"#rule-functor"}],"beginCaptures":{"0":{"name":"keyword.other.type-decl"}}},"specializer":{"match":"[a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*\\s*:\\s*([a-zA-Z_][a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]+)*)","captures":{"1":{"name":"entity.name.type.resource"}}},"string":{"name":"string.quoted.double","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape","match":"\\\\."}]},"term":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#number"},{"include":"#keyword"},{"include":"#operator"},{"include":"#boolean"},{"include":"#object-literal"},{"name":"meta.bracket.list","begin":"\\[","end":"\\]","patterns":[{"include":"#term"},{"name":"punctuation.separator.sequence.list","match":","}]},{"name":"meta.bracket.dict","begin":"\\{","end":"\\}","patterns":[{"include":"#term"},{"name":"punctuation.separator.sequence.dict","match":","}]},{"name":"meta.parens","begin":"\\(","end":"\\)","patterns":[{"include":"#term"}]}]},"test-block":{"name":"meta.test-block","begin":"(test)\\s+(\"[^\"]*\")\\s*\\{","end":"\\}","patterns":[{"name":"meta.test-setup","begin":"(setup)\\s*\\{","end":"\\}","patterns":[{"include":"#rule"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.control"}}},{"include":"#rule"},{"name":"keyword.other","match":"\\b(assert|assert_not)\\b"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.control"},"2":{"name":"string.quoted.double"}}}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"PostScript","scopeName":"source.postscript","patterns":[{"name":"meta.document.pdf","begin":"\\A(?=%PDF)","end":"(?=A)B","patterns":[{"include":"#main"}]},{"name":"meta.ai-prefs.postscript","begin":"\\A(?=/(?:(?:Menus|collection1|precision) {|textImportantVisualLinesSnapping \\d)(?:\\r|$))","end":"(?=A)B","patterns":[{"include":"#main"}]},{"include":"#main"}],"repository":{"array":{"name":"meta.array.postscript","begin":"\\[","end":"\\]","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.postscript"}}},"base85":{"name":"string.other.base85.postscript","begin":"\u003c~","end":"~\u003e","patterns":[{"name":"invalid.illegal.base85.char.postscript","match":"(?:[^!-uz\\s]|~(?!\u003e))++"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},"comment":{"patterns":[{"name":"punctuation.whitespace.comment.leading.postscript","match":"^[ \\t]+(?=%)"},{"include":"#dsc"},{"name":"comment.line.percentage.postscript","begin":"%","end":"(?=$|\\r|\\f)","beginCaptures":{"0":{"name":"punctuation.definition.comment.postscript"}}}]},"dictionary":{"name":"meta.dictionary.postscript","begin":"\u003c\u003c","end":"\u003e\u003e","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.postscript"}}},"dsc":{"name":"meta.Document-Structuring-Comment.postscript","contentName":"string.unquoted.DSC.postscript","begin":"(?x) ^ (%%)\n( BeginBinary\n| BeginCustomColor\n| BeginData\n| BeginDefaults\n| BeginDocument\n| BeginEmulation\n| BeginExitServer\n| BeginFeature\n| BeginFile\n| BeginFont\n| BeginObject\n| BeginPageSetup\n| BeginPaperSize\n| BeginPreview\n| BeginProcSet\n| BeginProcessColor\n| BeginProlog\n| BeginResource\n| BeginSetup\n| BoundingBox\n| CMYKCustomColor\n| ChangeFont\n| Copyright\n| CreationDate\n| Creator\n| DocumentCustomColors\n| DocumentData\n| DocumentFonts\n| DocumentMedia\n| DocumentNeededFiles\n| DocumentNeededFonts\n| DocumentNeededProcSets\n| DocumentNeededResources\n| DocumentPaperColors\n| DocumentPaperForms\n| DocumentPaperSizes\n| DocumentPaperWeights\n| DocumentPrinterRequired\n| DocumentProcSets\n| DocumentProcessColors\n| DocumentSuppliedFiles\n| DocumentSuppliedFonts\n| DocumentSuppliedProcSets\n| DocumentSuppliedResources\n| EOF\n| Emulation\n| EndBinary\n| EndComments\n| EndCustomColor\n| EndData\n| EndDefaults\n| EndDocument\n| EndEmulation\n| EndExitServer\n| EndFeature\n| EndFile\n| EndFont\n| EndObject\n| EndPageSetup\n| EndPaperSize\n| EndPreview\n| EndProcSet\n| EndProcessColor\n| EndProlog\n| EndResource\n| EndSetup\n| ExecuteFile\n| Extensions\n| Feature\n| For\n| IncludeDocument\n| IncludeFeature\n| IncludeFile\n| IncludeFont\n| IncludeProcSet\n| IncludeResource\n| LanguageLevel\n| OperatorIntervention\n| OperatorMessage\n| Orientation\n| PageBoundingBox\n| PageCustomColors\n| PageFiles\n| PageFonts\n| PageMedia\n| PageOrder\n| PageOrientation\n| PageProcessColors\n| PageRequirements\n| PageResources\n| PageTrailer\n| Pages\n| Page\n| PaperColor\n| PaperForm\n| PaperSize\n| PaperWeight\n| ProofMode\n| RGBCustomColor\n| Requirements\n| Routing\n| Title\n| Trailer\n| VMlocation\n| VMusage\n| Version\n| \\+\n| \\?BeginFeatureQuery\n| \\?BeginFileQuery\n| \\?BeginFontListQuery\n| \\?BeginFontQuery\n| \\?BeginPrinterQuery\n| \\?BeginProcSetQuery\n| \\?BeginQuery\n| \\?BeginResourceListQuery\n| \\?BeginResourceQuery\n| \\?BeginVMStatus\n| \\?EndFeatureQuery\n| \\?EndFileQuery\n| \\?EndFontListQuery\n| \\?EndFontQuery\n| \\?EndPrinterQuery\n| \\?EndProcSetQuery\n| \\?EndQuery\n| \\?EndResourceListQuery\n| \\?EndResourceQuery\n| \\?EndVMStatus\n) (:)? [^\\S\\r\\n]*","end":"(?=$|\\r|\\f)","beginCaptures":{"0":{"name":"keyword.other.DSC.postscript"},"1":{"name":"punctuation.definition.keyword.DSC.postscript"},"3":{"name":"keyword.operator.assignment.key-value.colon.postscript"}}},"embedded":{"patterns":[{"contentName":"string.unquoted.heredoc.postscript","begin":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(currentfile)\\s+((?=\\S)[^{}%]+?)\\s+(readline)(?!\\s*})\\b(?![^/\\s{}()\u003c\u003e\\[\\]%])(?:$\\s*)?","end":"(?!\\G)$","beginCaptures":{"1":{"name":"keyword.operator.postscript"},"2":{"patterns":[{"include":"#main"}]},"3":{"name":"keyword.operator.postscript"}}},{"name":"meta.encrypted-source.base85.postscript","contentName":"string.other.base85.postscript","begin":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(currentfile)\\s*((/)ASCII85Decode)\\s+(filter)\\b(?![^/\\s{}()\u003c\u003e\\[\\]%])([^}\u003e\\]%]*?(?:exec|image|readstring)\\s*)$\\s*+","end":"~\u003e|(?=cleartomark|closefile)","beginCaptures":{"1":{"name":"keyword.operator.postscript"},"2":{"name":"variable.other.literal.postscript"},"3":{"name":"punctuation.definition.name.postscript"},"4":{"name":"keyword.operator.postscript"},"5":{"patterns":[{"include":"#main"}]}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},{"name":"meta.encrypted-source.eexec.postscript","begin":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(currentfile)\\s+(eexec)(?:$|(?=.*[\\0-\\x08\\x14-\\x31\\x7F\\x80-\\x9F])(?=.{0,3}?[^A-Fa-f0-9]|\\b[A-Fa-f0-9]))","end":"(cleartomark|closefile)\\b(?![^/\\s{}()\u003c\u003e\\[\\]%])|(?\u003c=\\G)(?=[^\\s0-9A-Fa-f])","patterns":[{"begin":"\\G(?=\\s*$)","end":"(?=\\s*\\S)"},{"begin":"(?:\\G|(?\u003c=\\n|^))\\s*(?=\\S)","end":"(?!\\G)","patterns":[{"name":"string.other.raw.binary.postscript","contentName":"sublimelinter.gutter-mark","begin":"\\G(?!cleartomark|closefile)(?=.{0,3}?[^A-Fa-f0-9])","end":"(?=\\s*(?:cleartomark|closefile))"},{"name":"string.other.hexadecimal.postscript","begin":"\\G(?!cleartomark|closefile)(?=\\s{0,3}?(?:[A-Fa-f0-9]))","end":"(?=\\s*[^A-Fa-f0-9\\s]|cleartomark|closefile)"}]}],"beginCaptures":{"1":{"name":"keyword.operator.postscript"},"2":{"name":"keyword.operator.postscript"}},"endCaptures":{"1":{"name":"keyword.operator.postscript"}}}]},"embeddedRow":{"patterns":[{"name":"string.other.base85.postscript","match":"^[!-uz]{0,78}(~\u003e)","captures":{"1":{"name":"punctuation.definition.string.end.postscript"}}},{"name":"string.other.base85.postscript","begin":"(?x) ^\n(?= [^%\\[]*? \\]\n| [^%(]*? \\)\n| [^%\u003c]*? \u003e\n| .*? \u003c(?!~|\u003c) [A-Fa-f0-9]* [^~\u003eA-Fa-f0-9]\n) [!-uz]{60,80} [^\\S\\r\\n]* $","end":"^[!-uz]{0,78}(~\u003e)","endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}}]},"extensions":{"name":"keyword.operator.ghostscript.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) (?:\\b|(?=\\.))\n( \\.activatepathcontrol\n| \\.addcontrolpath\n| \\.begintransparencygroup\n| \\.begintransparencymaskgroup\n| \\.bind\n| \\.bindnow\n| \\.currentalphaisshape\n| \\.currentblendmode\n| \\.currentfillconstantalpha\n| \\.currentopacityalpha\n| \\.currentoverprintmode\n| \\.currentpathcontrolstate\n| \\.currentshapealpha\n| \\.currentstrokeconstantalpha\n| \\.currenttextknockout\n| \\.dicttomark\n| \\.endtransparencygroup\n| \\.endtransparencymask\n| \\.fileposition\n| \\.genordered\n| \\.knownget\n| \\.locksafe\n| \\.popdf14devicefilter\n| \\.pushpdf14devicefilter\n| \\.setalphaisshape\n| \\.setblendmode\n| \\.setdebug\n| \\.setfillconstantalpha\n| \\.setopacityalpha\n| \\.setoverprintmode\n| \\.setsafe\n| \\.setshapealpha\n| \\.setstrokeconstantalpha\n| \\.settextknockout\n| \\.shellarguments\n| \\.tempfile\n| %Type1BuildChar\n| %Type1BuildGlyph\n| arccos\n| arcsin\n| copydevice\n| copyscanlines\n| currentdevice\n| finddevice\n| findlibfile\n| findprotodevice\n| getdeviceprops\n| getenv\n| makeimagedevice\n| max\n| min\n| putdeviceprops\n| setdevice\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])"},"hex":{"name":"string.other.hexadecimal.postscript","begin":"\u003c","end":"\u003e","patterns":[{"name":"invalid.illegal.hexadecimal.char.postscript","match":"[^\u003e0-9A-Fa-f\\s]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},"main":{"patterns":[{"include":"#string"},{"include":"#comment"},{"include":"#dictionary"},{"include":"#array"},{"include":"#procedure"},{"include":"#base85"},{"include":"#hex"},{"include":"#radix"},{"include":"#number"},{"include":"#embedded"},{"include":"#operators"},{"include":"#extensions"},{"include":"#embeddedRow"},{"include":"#names"}]},"names":{"patterns":[{"name":"variable.other.constant.immediately-evaluated.postscript","match":"(//)[^()\u003c\u003e\\[\\]{}/%\\s]*","captures":{"1":{"name":"punctuation.definition.name.postscript"}}},{"name":"variable.other.constant.literal.postscript","match":"(/)[^()\u003c\u003e\\[\\]{}/%\\s]*","captures":{"1":{"name":"punctuation.definition.name.postscript"}}},{"name":"variable.other.executable.postscript","match":"[^()\u003c\u003e\\[\\]{}/%\\s]+"}]},"number":{"name":"constant.numeric.postscript","match":"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[Ee][-+]?\\d+)?(?=$|[\\s\\[\\]{}(/%\u003c])"},"operators":{"patterns":[{"name":"keyword.operator.level-3.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) \\b\n( GetHalftoneName\n| GetPageDeviceName\n| GetSubstituteCRD\n| StartData\n| StartData\n| addglyph\n| beginbfchar\n| beginbfrange\n| begincidchar\n| begincidrange\n| begincmap\n| begincodespacerange\n| beginnotdefchar\n| beginnotdefrange\n| beginrearrangedfont\n| beginusematrix\n| cliprestore\n| clipsave\n| composefont\n| currentsmoothness\n| currenttrapparams\n| endbfchar\n| endbfrange\n| endcidchar\n| endcidrange\n| endcmap\n| endcodespacerange\n| endnotdefchar\n| endnotdefrange\n| endrearrangedfont\n| endusematrix\n| findcolorrendering\n| removeall\n| removeglyphs\n| setsmoothness\n| settrapparams\n| settrapzone\n| shfill\n| usecmap\n| usefont\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])"},{"name":"keyword.operator.level-2.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) \\b\n( GlobalFontDirectory\n| ISOLatin1Encoding\n| SharedFontDirectory\n| UserObjects\n| arct\n| colorimage\n| configurationerror\n| cshow\n| currentblackgeneration\n| currentcacheparams\n| currentcmykcolor\n| currentcolorrendering\n| currentcolorscreen\n| currentcolorspace\n| currentcolortransfer\n| currentcolor\n| currentdevparams\n| currentglobal\n| currentgstate\n| currenthalftone\n| currentobjectformat\n| currentoverprint\n| currentpacking\n| currentpagedevice\n| currentshared\n| currentstrokeadjust\n| currentsystemparams\n| currentundercolorremoval\n| currentuserparams\n| defineresource\n| defineuserobject\n| deletefile\n| execform\n| execuserobject\n| filenameforall\n| fileposition\n| filter\n| findencoding\n| findresource\n| gcheck\n| globaldict\n| glyphshow\n| gstate\n| ineofill\n| infill\n| instroke\n| inueofill\n| inufill\n| inustroke\n| languagelevel\n| makepattern\n| packedarray\n| printobject\n| product\n| realtime\n| rectclip\n| rectfill\n| rectstroke\n| renamefile\n| resourceforall\n| resourcestatus\n| revision\n| rootfont\n| scheck\n| selectfont\n| serialnumber\n| setbbox\n| setblackgeneration\n| setcachedevice2\n| setcacheparams\n| setcmykcolor\n| setcolorrendering\n| setcolorscreen\n| setcolorspace\n| setcolortransfer\n| setcolor\n| setdevparams\n| setfileposition\n| setglobal\n| setgstate\n| sethalftone\n| setobjectformat\n| setoverprint\n| setpacking\n| setpagedevice\n| setpattern\n| setshared\n| setstrokeadjust\n| setsystemparams\n| setucacheparams\n| setundercolorremoval\n| setuserparams\n| setvmthreshold\n| shareddict\n| startjob\n| uappend\n| ucachestatus\n| ucache\n| ueofill\n| ufill\n| undefinedresource\n| undefinefont\n| undefineresource\n| undefineuserobject\n| undef\n| upath\n| ustrokepath\n| ustroke\n| vmreclaim\n| writeobject\n| xshow\n| xyshow\n| yshow\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])"},{"name":"keyword.operator.level-1.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) \\b\n( FontDirectory\n| StandardEncoding\n| VMerror\n| abs\n| add\n| aload\n| anchorsearch\n| and\n| arcn\n| arcto\n| arc\n| array\n| ashow\n| astore\n| atan\n| awidthshow\n| begin\n| bind\n| bitshift\n| bytesavailable\n| cachestatus\n| ceiling\n| charpath\n| cleardictstack\n| cleartomark\n| clear\n| clippath\n| clip\n| closefile\n| closepath\n| colorimage\n| concatmatrix\n| concat\n| condition\n| copypage\n| copy\n| cos\n| countdictstack\n| countexecstack\n| counttomark\n| count\n| currentcontext\n| currentdash\n| currentdict\n| currentfile\n| currentflat\n| currentfont\n| currentgray\n| currenthalftonephase\n| currenthsbcolor\n| currentlinecap\n| currentlinejoin\n| currentlinewidth\n| currentmatrix\n| currentmiterlimit\n| currentpoint\n| currentrgbcolor\n| currentscreen\n| currenttransfer\n| curveto\n| cvi\n| cvlit\n| cvn\n| cvrs\n| cvr\n| cvs\n| cvx\n| defaultmatrix\n| definefont\n| defineusername\n| def\n| detach\n| deviceinfo\n| dictfull\n| dictstackoverflow\n| dictstackunderflow\n| dictstack\n| dict\n| div\n| dtransform\n| dup\n| echo\n| eexec\n| end\n| eoclip\n| eofill\n| eoviewclip\n| eq\n| erasepage\n| errordict\n| exch\n| execstackoverflow\n| execstack\n| executeonly\n| executive\n| exec\n| exitserver\n| exit\n| exp\n| false\n| file\n| fill\n| findfont\n| flattenpath\n| floor\n| flushfile\n| flush\n| forall\n| fork\n| for\n| getinterval\n| get\n| ge\n| grestoreall\n| grestore\n| gsave\n| gt\n| handleerror\n| identmatrix\n| idiv\n| idtransform\n| ifelse\n| if\n| imagemask\n| image\n| index\n| initclip\n| initgraphics\n| initmatrix\n| initviewclip\n| internaldict\n| interrupt\n| invalidaccess\n| invalidcontext\n| invalidexit\n| invalidfileaccess\n| invalidfont\n| invalidid\n| invalidrestore\n| invertmatrix\n| ioerror\n| itransform\n| known\n| kshow\n| length\n| le\n| limitcheck\n| lineto\n| ln\n| load\n| lock\n| log\n| loop\n| lt\n| makefont\n| mark\n| matrix\n| maxlength\n| mod\n| monitor\n| moveto\n| mul\n| neg\n| newpath\n| ne\n| noaccess\n| nocurrentpoint\n| notify\n| not\n| nulldevice\n| null\n| or\n| pathbbox\n| pathforall\n| pdfmark\n| pop\n| print\n| prompt\n| pstack\n| putinterval\n| put\n| quit\n| rand\n| rangecheck\n| rcheck\n| rcurveto\n| readhexstring\n| readline\n| readonly\n| readstring\n| read\n| rectviewclip\n| repeat\n| resetfile\n| restore\n| reversepath\n| rlineto\n| rmoveto\n| roll\n| rotate\n| round\n| rrand\n| run\n| save\n| scalefont\n| scale\n| search\n| serverdict\n| setcachedevice\n| setcachelimit\n| setcharwidth\n| setdash\n| setflat\n| setfont\n| setgray\n| sethalftonephase\n| sethsbcolor\n| setlinecap\n| setlinejoin\n| setlinewidth\n| setmatrix\n| setmiterlimit\n| setrgbcolor\n| setscreen\n| settransfer\n| showpage\n| show\n| sin\n| sqrt\n| srand\n| stackoverflow\n| stackunderflow\n| stack\n| start\n| statusdict\n| status\n| stopped\n| stop\n| store\n| stringwidth\n| string\n| strokepath\n| stroke\n| sub\n| syntaxerror\n| systemdict\n| timeout\n| token\n| transform\n| translate\n| true\n| truncate\n| typecheck\n| type\n| undefinedfilename\n| undefinedresult\n| undefined\n| unmatchedmark\n| unregistered\n| userdict\n| usertime\n| version\n| viewclippath\n| viewclip\n| vmstatus\n| wait\n| wcheck\n| where\n| widthshow\n| writehexstring\n| writestring\n| write\n| wtranslation\n| xcheck\n| xor\n| yield\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])\n|\n# Stuff that starts with a non-word character\n(?\u003c=^|[/\\s{}()\u003c\u003e\\[\\]%])\n(=?=|\\$error)\n(?=$|[/\\s{}()\u003c\u003e\\[\\]%])"}]},"procedure":{"name":"meta.procedure.postscript","begin":"{","end":"}","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.procedure.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.procedure.end.postscript"}}},"radix":{"name":"constant.numeric.radix.postscript","match":"[0-3]?[0-9]#[0-9a-zA-Z]+"},"specialFiles":{"patterns":[{"name":"constant.language.device-name.$2-device.postscript","match":"\\G(%)([-\\w]+)(?=%|\\)|$)(%)?","captures":{"1":{"name":"punctuation.definition.device-name.begin.postscript"},"3":{"name":"punctuation.definition.device-name.end.postscript"}}},{"name":"constant.language.special-file.stdio.$2.postscript","match":"\\G(%)(stderr|stdin|stdout)(?=\\)|$)","captures":{"1":{"name":"punctuation.definition.special-file.begin.postscript"},"3":{"name":"punctuation.definition.special-file.end.postscript"}}},{"name":"constant.language.special-file.interactive.$2.postscript","match":"\\G(%)(lineedit|statementedit)(?=\\)|$)","captures":{"1":{"name":"punctuation.definition.special-file.begin.postscript"},"3":{"name":"punctuation.definition.special-file.end.postscript"}}}]},"string":{"name":"string.other.postscript","begin":"\\(","end":"\\)","patterns":[{"include":"#stringInnards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},"stringInnards":{"patterns":[{"include":"#specialFiles"},{"name":"constant.numeric.octal.postscript","match":"\\\\[0-7]{1,3}"},{"name":"constant.character.escape.postscript","match":"\\\\(\\\\|[bfnrt()]|[0-7]{1,3}|\\r?\\n)"},{"name":"invalid.illegal.unknown-escape.postscript.ignored","match":"\\\\"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#stringInnards"}]}]}},"injections":{"L:source.postscript meta.ai-prefs.postscript - (comment | string | source.embedded | text.embedded)":{"patterns":[{"name":"meta.obfuscated-setting.ai-prefs.postscript","contentName":"meta.array.postscript","begin":"^\\s*(/(?:\\\\.|[^()\u003c\u003e\\[\\]{}/%\\s])*) ((\\[) (?!0\\b)(\\d+)(?:$|\\r))","end":"^\\s*(\\])|\\G(?!$)|(?!\\G)^(?!\\s*(?:\\]|[A-Fa-f0-9]+$))","patterns":[{"name":"string.other.hexadecimal.postscript","match":"[A-Fa-f0-9]+"}],"beginCaptures":{"1":{"patterns":[{"include":"$self"}]},"2":{"name":"meta.array.postscript"},"3":{"name":"punctuation.definition.array.begin.postscript"},"4":{"name":"constant.numeric.postscript"}},"endCaptures":{"0":{"name":"meta.array.postscript"},"1":{"name":"punctuation.definition.array.end.postscript"}}},{"name":"variable.other.constant.literal.postscript","match":"(/)((?:\\\\.|[^()\u003c\u003e\\[\\]{}/%\\s])*)","captures":{"1":{"name":"punctuation.definition.name.postscript"},"2":{"patterns":[{"name":"constant.character.escape.postscript","match":"(\\\\).","captures":{"1":{"name":"punctuation.definition.escape.backslash.postscript"}}}]}}},{"name":"constant.numeric.integer.long.postscript","match":"[0-9]+L"}]},"L:source.postscript meta.document.pdf - (meta.encrypted-source | source.embedded | text.embedded)":{"patterns":[{"name":"meta.encrypted-source.stream.pdf","begin":"(?:^|(?\u003c=\u003e\u003e)\\s*)(?=stream$)","end":"endstream|(?=endobj\\b)","patterns":[{"begin":"\\G(stream)\\s*$\\s*","end":"(?=endstream|(?=endobj\\b))","patterns":[{"contentName":"text.embedded.xml","begin":"(\u003c\\?xpacket(?=\\s)[^\u003e]+\\?\u003e)(?=$|\u003cx:xmpmeta)","end":"(\u003c\\?xpacket(?=\\s)[^\u003e]*end\\b[^\u003e]*\\?\u003e)|(?=\\s*(?:endstream|endobj\\b))","patterns":[{"include":"text.xml"}],"beginCaptures":{"1":{"name":"text.embedded.xml","patterns":[{"include":"text.xml"}]}},"endCaptures":{"1":{"name":"text.embedded.xml","patterns":[{"include":"text.xml"}]}}},{"name":"string.other.base85.pdf","begin":"(?!endstream)[!-uz]{50,80}\\s*$","end":"~\u003e|(?=\\s*(?:endstream|endobj\\b))","endCaptures":{"0":{"name":"punctuation.definition.string.end.pdf"}}},{"name":"string.other.raw.binary.pdf","contentName":"sublimelinter.gutter-mark","begin":"(?!endstream|[!-uz]{50,80}\\s*$)(?:(?\u003c=[\\n\\r]|\\G|^))(?=.)","end":"(?=\\s*(?:endstream|endobj\\b))"}],"beginCaptures":{"1":{"name":"keyword.control.stream.begin.pdf"}}}],"endCaptures":{"0":{"name":"keyword.control.stream.end.pdf"}}},{"match":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(obj)\\s*(?=\u003c\u003c|$)|(?\u003c=^|\\n|\u003e\u003e)(endobj)","captures":{"1":{"name":"keyword.control.object.begin.pdf"},"2":{"name":"keyword.control.object.end.pdf"}}},{"name":"keyword.control.$1.pdf","match":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(trailer|startxref)(?![^/\\s{}()\u003c\u003e\\[\\]%])"}]},"L:source.postscript meta.procedure.postscript - (comment | string | text.embedded)":{"patterns":[{"match":"\\s*(?\u003c=^|\\G|[\\[{\\s])\\b(currentfile)\\b(?=[\\[{\\s])","captures":{"1":{"name":"keyword.operator.postscript"}}}]}}}
|
1
|
+
{"name":"PostScript","scopeName":"source.postscript","patterns":[{"name":"meta.document.pdf","begin":"\\A(?=%PDF)","end":"(?=A)B","patterns":[{"include":"#main"}]},{"name":"meta.ai-prefs.postscript","begin":"\\A(?=/(?:(?:Menus|collection1|precision) {|textImportantVisualLinesSnapping \\d)(?:\\r|$))","end":"(?=A)B","patterns":[{"include":"#main"}]},{"include":"#main"}],"repository":{"array":{"name":"meta.array.postscript","begin":"\\[","end":"\\]","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.postscript"}}},"base85":{"name":"string.other.base85.postscript","begin":"\u003c~","end":"~\u003e","patterns":[{"name":"invalid.illegal.base85.char.postscript","match":"(?:[^!-uz\\s]|~(?!\u003e))++"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},"comment":{"patterns":[{"name":"punctuation.whitespace.comment.leading.postscript","match":"^[ \\t]+(?=%)"},{"include":"#dsc"},{"name":"comment.line.percentage.postscript","begin":"%","end":"(?=$|\\r|\\f)","beginCaptures":{"0":{"name":"punctuation.definition.comment.postscript"}}}]},"compatibility":{"name":"keyword.operator.level-1.compatibility.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) (?:\\b|(?=\\.))\n( 11x17tray\n| 11x17\n| a3tray\n| a3\n| a4small\n| a4tray\n| a4\n| accuratescreens\n| appletalktype\n| b5tray\n| b5\n| buildtime\n| byteorder\n| checkpassword\n| checkscreen\n| defaulttimeouts\n| devdismount\n| devforall\n| devformat\n| devmount\n| devstatus\n| diskonline\n| diskstatus\n| doprinterrors\n| dostartpage\n| dosysstart\n| duplexmode\n| emulate\n| firstside\n| hardwareiomode\n| initializedisk\n| jobname\n| jobtimeout\n| ledgertray\n| ledger\n| legaltray\n| legal\n| lettersmall\n| lettertray\n| letter\n| manualfeedtimeout\n| manualfeed\n| margins\n| mirrorprint\n| newsheet\n| note\n| pagecount\n| pagemargin\n| pageparams\n| pagestackorder\n| printername\n| processcolors\n| ramsize\n| realformat\n| resolution\n| sccbatch\n| sccinteractive\n| setaccuratescreens\n| setdefaulttimeouts\n| setdoprinterrors\n| setdostartpage\n| setdosysstart\n| setduplexmode\n| sethardwareiomode\n| setjobtimeout\n| setmargins\n| setmirrorprint\n| setpagemargin\n| setpageparams\n| setpagestackorder\n| setpage\n| setprintername\n| setresolution\n| setsccbatch\n| setsccinteractive\n| setsoftwareiomode\n| settumble\n| setuserdiskpercent\n| softwareiomode\n| tumble\n| userdiskpercent\n| waittimeout\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])"},"dictionary":{"name":"meta.dictionary.postscript","begin":"\u003c\u003c","end":"\u003e\u003e","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.postscript"}}},"dsc":{"name":"meta.Document-Structuring-Comment.postscript","contentName":"string.unquoted.DSC.postscript","begin":"(?x) ^ (%%)\n( BeginBinary\n| BeginCustomColor\n| BeginData\n| BeginDefaults\n| BeginDocument\n| BeginEmulation\n| BeginExitServer\n| BeginFeature\n| BeginFile\n| BeginFont\n| BeginObject\n| BeginPageSetup\n| BeginPaperSize\n| BeginPreview\n| BeginProcSet\n| BeginProcessColor\n| BeginProlog\n| BeginResource\n| BeginSetup\n| BoundingBox\n| CMYKCustomColor\n| ChangeFont\n| Copyright\n| CreationDate\n| Creator\n| DocumentCustomColors\n| DocumentData\n| DocumentFonts\n| DocumentMedia\n| DocumentNeededFiles\n| DocumentNeededFonts\n| DocumentNeededProcSets\n| DocumentNeededResources\n| DocumentPaperColors\n| DocumentPaperForms\n| DocumentPaperSizes\n| DocumentPaperWeights\n| DocumentPrinterRequired\n| DocumentProcSets\n| DocumentProcessColors\n| DocumentSuppliedFiles\n| DocumentSuppliedFonts\n| DocumentSuppliedProcSets\n| DocumentSuppliedResources\n| EOF\n| Emulation\n| EndBinary\n| EndComments\n| EndCustomColor\n| EndData\n| EndDefaults\n| EndDocument\n| EndEmulation\n| EndExitServer\n| EndFeature\n| EndFile\n| EndFont\n| EndObject\n| EndPageSetup\n| EndPaperSize\n| EndPreview\n| EndProcSet\n| EndProcessColor\n| EndProlog\n| EndResource\n| EndSetup\n| ExecuteFile\n| Extensions\n| Feature\n| For\n| IncludeDocument\n| IncludeFeature\n| IncludeFile\n| IncludeFont\n| IncludeProcSet\n| IncludeResource\n| LanguageLevel\n| OperatorIntervention\n| OperatorMessage\n| Orientation\n| PageBoundingBox\n| PageCustomColors\n| PageFiles\n| PageFonts\n| PageMedia\n| PageOrder\n| PageOrientation\n| PageProcessColors\n| PageRequirements\n| PageResources\n| PageTrailer\n| Pages\n| Page\n| PaperColor\n| PaperForm\n| PaperSize\n| PaperWeight\n| ProofMode\n| RGBCustomColor\n| Requirements\n| Routing\n| Title\n| Trailer\n| VMlocation\n| VMusage\n| Version\n| \\+\n| \\?BeginFeatureQuery\n| \\?BeginFileQuery\n| \\?BeginFontListQuery\n| \\?BeginFontQuery\n| \\?BeginPrinterQuery\n| \\?BeginProcSetQuery\n| \\?BeginQuery\n| \\?BeginResourceListQuery\n| \\?BeginResourceQuery\n| \\?BeginVMStatus\n| \\?EndFeatureQuery\n| \\?EndFileQuery\n| \\?EndFontListQuery\n| \\?EndFontQuery\n| \\?EndPrinterQuery\n| \\?EndProcSetQuery\n| \\?EndQuery\n| \\?EndResourceListQuery\n| \\?EndResourceQuery\n| \\?EndVMStatus\n) (:)? [^\\S\\r\\n]*","end":"(?=$|\\r|\\f)","beginCaptures":{"0":{"name":"keyword.other.DSC.postscript"},"1":{"name":"punctuation.definition.keyword.DSC.postscript"},"3":{"name":"keyword.operator.assignment.key-value.colon.postscript"}}},"embedded":{"patterns":[{"contentName":"string.unquoted.heredoc.postscript","begin":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(currentfile)\\s+((?=\\S)[^{}%]+?)\\s+(readline)(?!\\s*})\\b(?![^/\\s{}()\u003c\u003e\\[\\]%])(?:$\\s*)?","end":"(?!\\G)$","beginCaptures":{"1":{"name":"keyword.operator.postscript"},"2":{"patterns":[{"include":"#main"}]},"3":{"name":"keyword.operator.postscript"}}},{"name":"meta.encrypted-source.base85.postscript","contentName":"string.other.base85.postscript","begin":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(currentfile)\\s*((/)ASCII85Decode)\\s+(filter)\\b(?![^/\\s{}()\u003c\u003e\\[\\]%])([^}\u003e\\]%]*?(?:exec|image|readstring)\\s*)$\\s*+","end":"~\u003e|(?=cleartomark|closefile)","beginCaptures":{"1":{"name":"keyword.operator.postscript"},"2":{"name":"variable.other.literal.postscript"},"3":{"name":"punctuation.definition.name.postscript"},"4":{"name":"keyword.operator.postscript"},"5":{"patterns":[{"include":"#main"}]}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},{"name":"meta.encrypted-source.eexec.postscript","begin":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(currentfile)\\s+(eexec)(?:$|(?=.*[\\0-\\x08\\x14-\\x31\\x7F\\x80-\\x9F])(?=.{0,3}?[^A-Fa-f0-9]|\\b[A-Fa-f0-9]))","end":"(cleartomark|closefile)\\b(?![^/\\s{}()\u003c\u003e\\[\\]%])|(?\u003c=\\G)(?=[^\\s0-9A-Fa-f])","patterns":[{"begin":"\\G(?=\\s*$)","end":"(?=\\s*\\S)"},{"begin":"(?:\\G|(?\u003c=\\n|^))\\s*(?=\\S)","end":"(?!\\G)","patterns":[{"name":"string.other.raw.binary.postscript","contentName":"sublimelinter.gutter-mark","begin":"\\G(?!cleartomark|closefile)(?=.{0,3}?[^A-Fa-f0-9])","end":"(?=\\s*(?:cleartomark|closefile))"},{"name":"string.other.hexadecimal.postscript","begin":"\\G(?!cleartomark|closefile)(?=\\s{0,3}?(?:[A-Fa-f0-9]))","end":"(?=\\s*[^A-Fa-f0-9\\s]|cleartomark|closefile)"}]}],"beginCaptures":{"1":{"name":"keyword.operator.postscript"},"2":{"name":"keyword.operator.postscript"}},"endCaptures":{"1":{"name":"keyword.operator.postscript"}}}]},"embeddedRow":{"patterns":[{"name":"string.other.base85.postscript","match":"^[!-uz]{0,78}(~\u003e)","captures":{"1":{"name":"punctuation.definition.string.end.postscript"}}},{"name":"string.other.base85.postscript","begin":"(?x) ^\n(?= [^%\\[]*? \\]\n| [^%(]*? \\)\n| [^%\u003c]*? \u003e\n| .*? \u003c(?!~|\u003c) [A-Fa-f0-9]* [^~\u003eA-Fa-f0-9]\n) [!-uz]{60,80} [^\\S\\r\\n]* $","end":"^[!-uz]{0,78}(~\u003e)","endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}}]},"extensions":{"patterns":[{"name":"keyword.operator.distiller.postscript","match":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b((?:current|set)distillerparams)\\b(?![^/\\s{}()\u003c\u003e\\[\\]%])"},{"name":"keyword.operator.ghostscript.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) (?:\\b|(?=\\.))\n( \\.activatepathcontrol\n| \\.addcontrolpath\n| \\.begintransparencygroup\n| \\.begintransparencymaskgroup\n| \\.bind\n| \\.bindnow\n| \\.currentalphaisshape\n| \\.currentblendmode\n| \\.currentfillconstantalpha\n| \\.currentopacityalpha\n| \\.currentoverprintmode\n| \\.currentpathcontrolstate\n| \\.currentshapealpha\n| \\.currentstrokeconstantalpha\n| \\.currenttextknockout\n| \\.dicttomark\n| \\.endtransparencygroup\n| \\.endtransparencymask\n| \\.fileposition\n| \\.genordered\n| \\.knownget\n| \\.locksafe\n| \\.max\n| \\.min\n| \\.PDFClose\n| \\.PDFDrawAnnots\n| \\.PDFDrawPage\n| \\.PDFFile\n| \\.PDFInfo\n| \\.PDFInit\n| \\.PDFMetadata\n| \\.PDFPageInfo\n| \\.PDFPageInfoExt\n| \\.PDFStream\n| \\.popdf14devicefilter\n| \\.pushpdf14devicefilter\n| \\.setalphaisshape\n| \\.setblendmode\n| \\.setdebug\n| \\.setfillconstantalpha\n| \\.setopacityalpha\n| \\.setoverprintmode\n| \\.setsafe\n| \\.setshapealpha\n| \\.setstrokeconstantalpha\n| \\.settextknockout\n| \\.shellarguments\n| \\.tempfile\n| %Type1BuildChar\n| %Type1BuildGlyph\n| arccos\n| arcsin\n| copydevice\n| copyscanlines\n| currentdevice\n| dopdfpages\n| finddevice\n| findlibfile\n| findprotodevice\n| getdeviceprops\n| getenv\n| makeimagedevice\n| pdfclose\n| pdfgetpage\n| pdfopen\n| pdfshowpage\n| pdfshowpage_finish\n| pdfshowpage_init\n| pdfshowpage_setpage\n| putdeviceprops\n| runpdf\n| runpdfbegin\n| runpdfend\n| runpdfpagerange\n| setdevice\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])"}]},"hex":{"name":"string.other.hexadecimal.postscript","begin":"\u003c","end":"\u003e","patterns":[{"name":"invalid.illegal.hexadecimal.char.postscript","match":"[^\u003e0-9A-Fa-f\\s]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},"main":{"patterns":[{"include":"#string"},{"include":"#comment"},{"include":"#dictionary"},{"include":"#array"},{"include":"#procedure"},{"include":"#base85"},{"include":"#hex"},{"include":"#radix"},{"include":"#number"},{"include":"#embedded"},{"include":"#operators"},{"include":"#extensions"},{"include":"#compatibility"},{"include":"#embeddedRow"},{"include":"#names"}]},"names":{"patterns":[{"name":"variable.other.constant.immediately-evaluated.postscript","match":"(//)[^()\u003c\u003e\\[\\]{}/%\\s]*","captures":{"1":{"name":"punctuation.definition.name.postscript"}}},{"name":"variable.other.constant.literal.postscript","match":"(/)[^()\u003c\u003e\\[\\]{}/%\\s]*","captures":{"1":{"name":"punctuation.definition.name.postscript"}}},{"name":"variable.other.executable.postscript","match":"[^()\u003c\u003e\\[\\]{}/%\\s]+"}]},"number":{"name":"constant.numeric.postscript","match":"[-+]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[Ee][-+]?\\d+)?(?=$|[\\s\\[\\]{}(/%\u003c])"},"operators":{"patterns":[{"name":"keyword.operator.level-3.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) \\b\n( GetHalftoneName\n| GetPageDeviceName\n| GetSubstituteCRD\n| StartData\n| StartData\n| addglyph\n| beginbfchar\n| beginbfrange\n| begincidchar\n| begincidrange\n| begincmap\n| begincodespacerange\n| beginnotdefchar\n| beginnotdefrange\n| beginrearrangedfont\n| beginusematrix\n| cliprestore\n| clipsave\n| composefont\n| currentsmoothness\n| currenttrapparams\n| endbfchar\n| endbfrange\n| endcidchar\n| endcidrange\n| endcmap\n| endcodespacerange\n| endnotdefchar\n| endnotdefrange\n| endrearrangedfont\n| endusematrix\n| findcolorrendering\n| removeall\n| removeglyphs\n| setsmoothness\n| settrapparams\n| settrapzone\n| shfill\n| usecmap\n| usefont\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])"},{"name":"keyword.operator.level-2.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) \\b\n( GlobalFontDirectory\n| ISOLatin1Encoding\n| SharedFontDirectory\n| UserObjects\n| arct\n| colorimage\n| configurationerror\n| cshow\n| currentblackgeneration\n| currentcacheparams\n| currentcmykcolor\n| currentcolorrendering\n| currentcolorscreen\n| currentcolorspace\n| currentcolortransfer\n| currentcolor\n| currentdevparams\n| currentglobal\n| currentgstate\n| currenthalftone\n| currentobjectformat\n| currentoverprint\n| currentpacking\n| currentpagedevice\n| currentshared\n| currentstrokeadjust\n| currentsystemparams\n| currentundercolorremoval\n| currentuserparams\n| defineresource\n| defineuserobject\n| deletefile\n| execform\n| execuserobject\n| filenameforall\n| fileposition\n| filter\n| findencoding\n| findresource\n| gcheck\n| globaldict\n| glyphshow\n| gstate\n| ineofill\n| infill\n| instroke\n| inueofill\n| inufill\n| inustroke\n| languagelevel\n| makepattern\n| packedarray\n| printobject\n| product\n| realtime\n| rectclip\n| rectfill\n| rectstroke\n| renamefile\n| resourceforall\n| resourcestatus\n| revision\n| rootfont\n| scheck\n| selectfont\n| serialnumber\n| setbbox\n| setblackgeneration\n| setcachedevice2\n| setcacheparams\n| setcmykcolor\n| setcolorrendering\n| setcolorscreen\n| setcolorspace\n| setcolortransfer\n| setcolor\n| setdevparams\n| setfileposition\n| setglobal\n| setgstate\n| sethalftone\n| setobjectformat\n| setoverprint\n| setpacking\n| setpagedevice\n| setpattern\n| setshared\n| setstrokeadjust\n| setsystemparams\n| setucacheparams\n| setundercolorremoval\n| setuserparams\n| setvmthreshold\n| shareddict\n| startjob\n| uappend\n| ucachestatus\n| ucache\n| ueofill\n| ufill\n| undefinedresource\n| undefinefont\n| undefineresource\n| undefineuserobject\n| undef\n| upath\n| ustrokepath\n| ustroke\n| vmreclaim\n| writeobject\n| xshow\n| xyshow\n| yshow\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])"},{"name":"keyword.operator.level-1.postscript","match":"(?x) (?\u003c![^/\\s{}()\u003c\u003e\\[\\]%]) \\b\n( FontDirectory\n| StandardEncoding\n| VMerror\n| abs\n| add\n| aload\n| anchorsearch\n| and\n| arcn\n| arcto\n| arc\n| array\n| ashow\n| astore\n| atan\n| awidthshow\n| begin\n| bind\n| bitshift\n| bytesavailable\n| cachestatus\n| ceiling\n| charpath\n| cleardictstack\n| cleartomark\n| clear\n| clippath\n| clip\n| closefile\n| closepath\n| colorimage\n| concatmatrix\n| concat\n| condition\n| copypage\n| copy\n| cos\n| countdictstack\n| countexecstack\n| counttomark\n| count\n| currentcontext\n| currentdash\n| currentdict\n| currentfile\n| currentflat\n| currentfont\n| currentgray\n| currenthalftonephase\n| currenthsbcolor\n| currentlinecap\n| currentlinejoin\n| currentlinewidth\n| currentmatrix\n| currentmiterlimit\n| currentpoint\n| currentrgbcolor\n| currentscreen\n| currenttransfer\n| curveto\n| cvi\n| cvlit\n| cvn\n| cvrs\n| cvr\n| cvs\n| cvx\n| defaultmatrix\n| definefont\n| defineusername\n| def\n| detach\n| deviceinfo\n| dictfull\n| dictstackoverflow\n| dictstackunderflow\n| dictstack\n| dict\n| div\n| dtransform\n| dup\n| echo\n| eexec\n| end\n| eoclip\n| eofill\n| eoviewclip\n| eq\n| erasepage\n| errordict\n| exch\n| execstackoverflow\n| execstack\n| executeonly\n| executive\n| exec\n| exitserver\n| exit\n| exp\n| false\n| file\n| fill\n| findfont\n| flattenpath\n| floor\n| flushfile\n| flush\n| forall\n| fork\n| for\n| getinterval\n| get\n| ge\n| grestoreall\n| grestore\n| gsave\n| gt\n| handleerror\n| identmatrix\n| idiv\n| idtransform\n| ifelse\n| if\n| imagemask\n| image\n| index\n| initclip\n| initgraphics\n| initmatrix\n| initviewclip\n| internaldict\n| interrupt\n| invalidaccess\n| invalidcontext\n| invalidexit\n| invalidfileaccess\n| invalidfont\n| invalidid\n| invalidrestore\n| invertmatrix\n| ioerror\n| itransform\n| known\n| kshow\n| length\n| le\n| limitcheck\n| lineto\n| ln\n| load\n| lock\n| log\n| loop\n| lt\n| makefont\n| mark\n| matrix\n| maxlength\n| mod\n| monitor\n| moveto\n| mul\n| neg\n| newpath\n| ne\n| noaccess\n| nocurrentpoint\n| notify\n| not\n| nulldevice\n| null\n| or\n| pathbbox\n| pathforall\n| pdfmark\n| pop\n| print\n| prompt\n| pstack\n| putinterval\n| put\n| quit\n| rand\n| rangecheck\n| rcheck\n| rcurveto\n| readhexstring\n| readline\n| readonly\n| readstring\n| read\n| rectviewclip\n| repeat\n| resetfile\n| restore\n| reversepath\n| rlineto\n| rmoveto\n| roll\n| rotate\n| round\n| rrand\n| run\n| save\n| scalefont\n| scale\n| search\n| serverdict\n| setcachedevice\n| setcachelimit\n| setcharwidth\n| setdash\n| setflat\n| setfont\n| setgray\n| sethalftonephase\n| sethsbcolor\n| setlinecap\n| setlinejoin\n| setlinewidth\n| setmatrix\n| setmiterlimit\n| setrgbcolor\n| setscreen\n| settransfer\n| showpage\n| show\n| sin\n| sqrt\n| srand\n| stackoverflow\n| stackunderflow\n| stack\n| start\n| statusdict\n| status\n| stopped\n| stop\n| store\n| stringwidth\n| string\n| strokepath\n| stroke\n| sub\n| syntaxerror\n| systemdict\n| timeout\n| token\n| transform\n| translate\n| true\n| truncate\n| typecheck\n| type\n| undefinedfilename\n| undefinedresult\n| undefined\n| unmatchedmark\n| unregistered\n| userdict\n| usertime\n| version\n| viewclippath\n| viewclip\n| vmstatus\n| wait\n| wcheck\n| where\n| widthshow\n| writehexstring\n| writestring\n| write\n| wtranslation\n| xcheck\n| xor\n| yield\n) \\b (?![^/\\s{}()\u003c\u003e\\[\\]%])\n|\n# Stuff that starts with a non-word character\n(?\u003c=^|[/\\s{}()\u003c\u003e\\[\\]%])\n(=?=|\\$error)\n(?=$|[/\\s{}()\u003c\u003e\\[\\]%])"}]},"procedure":{"name":"meta.procedure.postscript","begin":"{","end":"}","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.procedure.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.procedure.end.postscript"}}},"radix":{"name":"constant.numeric.radix.postscript","match":"[0-3]?[0-9]#[0-9a-zA-Z]+"},"specialFiles":{"patterns":[{"name":"constant.language.device-name.$2-device.postscript","match":"\\G(%)([-\\w]+)(?=%|\\)|$)(%)?","captures":{"1":{"name":"punctuation.definition.device-name.begin.postscript"},"3":{"name":"punctuation.definition.device-name.end.postscript"}}},{"name":"constant.language.special-file.stdio.$2.postscript","match":"\\G(%)(stderr|stdin|stdout)(?=\\)|$)","captures":{"1":{"name":"punctuation.definition.special-file.begin.postscript"},"3":{"name":"punctuation.definition.special-file.end.postscript"}}},{"name":"constant.language.special-file.interactive.$2.postscript","match":"\\G(%)(lineedit|statementedit)(?=\\)|$)","captures":{"1":{"name":"punctuation.definition.special-file.begin.postscript"},"3":{"name":"punctuation.definition.special-file.end.postscript"}}}]},"string":{"name":"string.other.postscript","begin":"\\(","end":"\\)","patterns":[{"include":"#stringInnards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.postscript"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.postscript"}}},"stringInnards":{"patterns":[{"include":"#specialFiles"},{"name":"constant.numeric.octal.postscript","match":"\\\\[0-7]{1,3}"},{"name":"constant.character.escape.postscript","match":"\\\\(\\\\|[bfnrt()]|[0-7]{1,3}|\\r?\\n)"},{"name":"invalid.illegal.unknown-escape.postscript.ignored","match":"\\\\"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#stringInnards"}]}]}},"injections":{"L:source.postscript meta.ai-prefs.postscript - (comment | string | source.embedded | text.embedded)":{"patterns":[{"name":"meta.obfuscated-setting.ai-prefs.postscript","contentName":"meta.array.postscript","begin":"^\\s*(/(?:\\\\.|[^()\u003c\u003e\\[\\]{}/%\\s])*) ((\\[) (?!0\\b)(\\d+)(?:$|\\r))","end":"^\\s*(\\])|\\G(?!$)|(?!\\G)^(?!\\s*(?:\\]|[A-Fa-f0-9]+$))","patterns":[{"name":"string.other.hexadecimal.postscript","match":"[A-Fa-f0-9]+"}],"beginCaptures":{"1":{"patterns":[{"include":"$self"}]},"2":{"name":"meta.array.postscript"},"3":{"name":"punctuation.definition.array.begin.postscript"},"4":{"name":"constant.numeric.postscript"}},"endCaptures":{"0":{"name":"meta.array.postscript"},"1":{"name":"punctuation.definition.array.end.postscript"}}},{"name":"variable.other.constant.literal.postscript","match":"(/)((?:\\\\.|[^()\u003c\u003e\\[\\]{}/%\\s])*)","captures":{"1":{"name":"punctuation.definition.name.postscript"},"2":{"patterns":[{"name":"constant.character.escape.postscript","match":"(\\\\).","captures":{"1":{"name":"punctuation.definition.escape.backslash.postscript"}}}]}}},{"name":"constant.numeric.integer.long.postscript","match":"[0-9]+L"}]},"L:source.postscript meta.document.pdf - (meta.encrypted-source | source.embedded | text.embedded)":{"patterns":[{"name":"meta.encrypted-source.stream.pdf","begin":"(?:^|(?\u003c=\u003e\u003e)\\s*)(?=stream$)","end":"endstream|(?=endobj\\b)","patterns":[{"begin":"\\G(stream)\\s*$\\s*","end":"(?=endstream|(?=endobj\\b))","patterns":[{"contentName":"text.embedded.xml","begin":"(\u003c\\?xpacket(?=\\s)[^\u003e]+\\?\u003e)(?=$|\u003cx:xmpmeta)","end":"(\u003c\\?xpacket(?=\\s)[^\u003e]*end\\b[^\u003e]*\\?\u003e)|(?=\\s*(?:endstream|endobj\\b))","patterns":[{"include":"text.xml"}],"beginCaptures":{"1":{"name":"text.embedded.xml","patterns":[{"include":"text.xml"}]}},"endCaptures":{"1":{"name":"text.embedded.xml","patterns":[{"include":"text.xml"}]}}},{"name":"string.other.base85.pdf","begin":"(?!endstream)[!-uz]{50,80}\\s*$","end":"~\u003e|(?=\\s*(?:endstream|endobj\\b))","endCaptures":{"0":{"name":"punctuation.definition.string.end.pdf"}}},{"name":"string.other.raw.binary.pdf","contentName":"sublimelinter.gutter-mark","begin":"(?!endstream|[!-uz]{50,80}\\s*$)(?:(?\u003c=[\\n\\r]|\\G|^))(?=.)","end":"(?=\\s*(?:endstream|endobj\\b))"}],"beginCaptures":{"1":{"name":"keyword.control.stream.begin.pdf"}}}],"endCaptures":{"0":{"name":"keyword.control.stream.end.pdf"}}},{"match":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(obj)\\s*(?=\u003c\u003c|$)|(?\u003c=^|\\n|\u003e\u003e)(endobj)","captures":{"1":{"name":"keyword.control.object.begin.pdf"},"2":{"name":"keyword.control.object.end.pdf"}}},{"name":"keyword.control.$1.pdf","match":"(?\u003c![^/\\s{}()\u003c\u003e\\[\\]%])\\b(trailer|startxref)(?![^/\\s{}()\u003c\u003e\\[\\]%])"}]},"L:source.postscript meta.procedure.postscript - (comment | string | text.embedded)":{"patterns":[{"match":"\\s*(?\u003c=^|\\G|[\\[{\\s])\\b(currentfile)\\b(?=[\\[{\\s])","captures":{"1":{"name":"keyword.operator.postscript"}}}]}}}
|