github-linguist 9.5.0 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/grammars/etc.json +1 -1
- data/grammars/gno.mod.json +1 -0
- data/grammars/markdown.mojo.codeblock.json +1 -0
- data/grammars/markdown.move.codeblock.json +1 -1
- data/grammars/source.4dm.json +1 -1
- data/grammars/source.abl.json +1 -1
- data/grammars/source.aleo.json +1 -0
- data/grammars/source.apex.json +1 -1
- data/grammars/source.astro.json +1 -1
- data/grammars/source.baml.json +1 -0
- data/grammars/source.bb.json +1 -1
- data/grammars/source.bird2.json +1 -0
- data/grammars/source.blueprint.json +1 -0
- data/grammars/source.bnd.json +1 -1
- data/grammars/source.brs.embedded.xml.json +1 -0
- data/grammars/source.bsl.json +1 -1
- data/grammars/source.c++.json +1 -1
- data/grammars/source.c.json +1 -1
- data/grammars/source.c3.json +1 -1
- data/grammars/source.carbon.json +1 -0
- data/grammars/source.cel.json +1 -0
- data/grammars/source.cl.json +1 -1
- data/grammars/source.clar.json +1 -1
- data/grammars/source.cmake.json +1 -1
- data/grammars/source.cmd.json +1 -1
- data/grammars/source.comment-string.wesl.json +1 -1
- data/grammars/source.comment-string.wgsl.json +1 -1
- data/grammars/source.cs.json +1 -1
- data/grammars/source.csswg.json +1 -1
- data/grammars/source.csv.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.daslang.json +1 -1
- data/grammars/source.data-weave.json +1 -1
- data/grammars/source.dds.dspf.json +1 -1
- data/grammars/source.dds.icff.json +1 -1
- data/grammars/source.dds.lf.json +1 -1
- data/grammars/source.dds.pf.json +1 -1
- data/grammars/source.dds.prtf.json +1 -1
- data/grammars/source.deq.json +1 -0
- data/grammars/source.emacs.lisp.json +1 -1
- data/grammars/source.fift.json +1 -0
- data/grammars/source.flix.json +1 -1
- data/grammars/source.fpp.json +1 -0
- data/grammars/source.func.json +1 -0
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gedcom.json +1 -1
- data/grammars/source.gimprc.json +1 -0
- data/grammars/source.gimpres.json +1 -0
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.gno.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.gtkrc.json +1 -0
- data/grammars/source.hack.json +1 -1
- data/grammars/source.hosts.json +1 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.hxml.json +1 -1
- data/grammars/source.il.json +1 -0
- data/grammars/source.interp.json +1 -0
- data/grammars/source.jac.json +1 -1
- data/grammars/source.jactoml.json +1 -0
- data/grammars/source.jai.json +1 -1
- data/grammars/source.jass.json +1 -0
- data/grammars/source.julia.json +1 -1
- data/grammars/source.just.json +1 -1
- data/grammars/source.kcl.json +1 -1
- data/grammars/source.koka.json +1 -1
- data/grammars/source.lean4.markdown.json +1 -1
- data/grammars/source.leo.json +1 -1
- data/grammars/source.lobster.json +1 -0
- data/grammars/source.logos.json +1 -1
- data/grammars/source.luau.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.m3u.json +1 -1
- data/grammars/source.matlab.json +1 -1
- data/grammars/source.mdx.astro.json +1 -1
- data/grammars/source.mi.json +1 -1
- data/grammars/source.mo.json +1 -1
- data/grammars/source.mojo.json +1 -1
- data/grammars/source.moonbit.config.json +1 -0
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.move.json +1 -1
- data/grammars/source.ms.json +1 -0
- data/grammars/source.nim.json +1 -1
- data/grammars/source.openqasm.json +1 -1
- data/grammars/source.opy.json +1 -0
- data/grammars/source.paperspecs.json +1 -0
- data/grammars/source.pic.json +1 -1
- data/grammars/source.pkgconf.json +1 -0
- data/grammars/source.pl.json +1 -0
- data/grammars/source.pnlgrp.json +1 -1
- data/grammars/source.powerquery.json +1 -0
- data/grammars/source.powershell.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.qsharp.json +1 -1
- data/grammars/source.quint.json +1 -0
- data/grammars/source.rarlist.json +1 -0
- data/grammars/source.rascript.json +1 -1
- data/grammars/source.record-jar.json +1 -1
- data/grammars/source.redscript.json +1 -0
- data/grammars/source.rego.json +1 -1
- data/grammars/source.rhai.json +1 -0
- data/grammars/source.rpg.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.rust.json +1 -1
- data/grammars/source.scala.json +1 -1
- data/grammars/source.slang.json +1 -1
- data/grammars/source.slint.json +1 -1
- data/grammars/source.smithy.json +1 -1
- data/grammars/source.soql.json +1 -1
- data/grammars/source.spicedb-yaml.json +1 -0
- data/grammars/source.spicedb.json +1 -0
- data/grammars/source.stan.json +1 -1
- data/grammars/source.stim.json +1 -0
- data/grammars/source.surrealql.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.tasm.json +1 -0
- data/grammars/source.tlb.json +1 -0
- data/grammars/source.tolk.json +1 -0
- data/grammars/source.ucode-template.json +1 -0
- data/grammars/source.ucode.json +1 -0
- data/grammars/source.uri-list.json +1 -0
- data/grammars/source.v.json +1 -1
- data/grammars/source.vento.json +1 -1
- data/grammars/source.verse.json +1 -0
- data/grammars/source.vespaSchema.json +1 -0
- data/grammars/source.vhs.json +1 -0
- data/grammars/source.wgsl.json +1 -1
- data/grammars/source.yaml.salt.json +1 -1
- data/grammars/spicedb-yaml.injection.json +1 -0
- data/grammars/text.bbcode.json +1 -0
- data/grammars/text.cachedir.json +1 -0
- data/grammars/text.cookie-jar.json +1 -0
- data/grammars/text.html.handlebars.json +1 -1
- data/grammars/text.html.vue.json +1 -1
- data/grammars/text.mac-tts.json +1 -0
- data/grammars/text.recfile.json +1 -0
- data/grammars/text.roff.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +19 -0
- data/lib/linguist/classifier.rb +2 -1
- data/lib/linguist/generated.rb +40 -0
- data/lib/linguist/generic.yml +3 -0
- data/lib/linguist/heuristics.yml +97 -5
- data/lib/linguist/language.rb +13 -9
- data/lib/linguist/languages.yml +368 -37
- data/lib/linguist/languages_data.rb +7663 -0
- data/lib/linguist/lazy_blob.rb +25 -2
- data/lib/linguist/samples.rb +4 -10
- data/lib/linguist/samples_data.rb +196100 -0
- data/lib/linguist/vendor.yml +3 -0
- metadata +54 -18
- data/grammars/markdown.bicep.codeblock.json +0 -1
- data/lib/linguist/languages.json +0 -1
- data/lib/linguist/samples.json +0 -1
data/grammars/source.pic.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Pic","scopeName":"source.pic","patterns":[{"include":"#binary"},{"include":"#tags"},{"include":"#embedded-roff"},{"include":"#embedded-latex"},{"include":"#main"}],"repository":{"attributes":{"patterns":[{"name":"entity.other.attribute-name.same-as.pikchr.pic","match":"\\bsame\\s+as\\b"},{"name":"entity.other.attribute-name.$1.pic","match":"(?x)\\b (chop|cw|dashed|diameter|diam|dotted|down|height|ht|invisible |invis|left|radius|rad|right|same|up|width|wid)\\b"},{"name":"entity.other.attribute-name.$1.pic","begin":"\\b(colou?r(?:ed)?|outlined?|shaded|fill)\\b[ \\t]*(?=\\w)","end":"(?=\\S)|(?\u003c=\\S)","patterns":[{"name":"constant.numeric.hexadecimal.hex.pikchr.pic","match":"\\G0[Xx][0-9A-Fa-f]{6}"},{"name":"support.constant.no-colour.pikchr.pic","match":"(?i)\\G(None|Off)\\b"},{"name":"support.constant.colour.pikchr.pic","match":"(?xi)\\G (AliceBlue|AntiqueWhite|Aquamarine|Aqua|Azure|Beige|Bisque|Black|BlanchedAlmond|BlueViolet|Blue|Brown|BurlyWood|CadetBlue |Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenrod|DarkGreen|DarkGr[ae]y |DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y |DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|Firebrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro |GhostWhite|Goldenrod|Gold|Gr[ae]y|GreenYellow|Green|Honeydew|HotPink|IndianRed|Indigo|Ivory|Khaki|LavenderBlush|Lavender |LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenrodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon |LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|LimeGreen|Lime|Linen|Magenta|Maroon|MediumAquamarine |MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed |MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|OliveDrab|Olive|OrangeRed|Orange|Orchid |PaleGoldenrod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple |Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|Seashell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow |SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Turquoise|Violet|Wheat|WhiteSmoke|White|YellowGreen|Yellow)\\b"}],"applyEndPatternLast":true},{"name":"entity.other.attribute-name.$1.pikchr.pic","match":"\\b(aligned|big|bold|fit|italic|mono(?:space)?|small|(?:thickness|color|fill)(?!\\s*(?:[-:+/*%=!\u003c\u003e]?=|\u003c|\u003e))|thick|thin)\\b"},{"name":"entity.other.attribute-name.$1.dpic.pic","match":"\\b(scaled)\\b"}]},"backref":{"patterns":[{"name":"variable.language.backreference.pic","match":"\\b(last|(?:\\d*1[1-3]th|\\d*0th|(?:(?!11st)\\d)*1st|\\d*2nd|(?:(?!13rd)\\d*)3rd|\\d*[4-9]th)(?:[ \\t]+last)?)\\b"},{"name":"meta.backreference.computed.pic","match":"((')([^']*)('))(th)","captures":{"1":{"name":"string.quoted.single.pic"},"2":{"name":"punctuation.definition.string.begin.pic"},"3":{"name":"meta.expression.pic","patterns":[{"include":"#main"}]},"4":{"name":"punctuation.definition.string.end.pic"},"5":{"name":"constant.language.ordinal-suffix.pic"}}},{"name":"variable.language.backreference.pikchr.pic","match":"\\b(first|previous)\\b"}]},"binary":{"name":"raw.binary.data","begin":"^(?=.*(?![\\x02-\\x07\\f\\x7F])[\\x00-\\x06\\x{FFFD}])","end":"(?=A)B"},"boolean":{"name":"constant.boolean.$1.dformat.pic","match":"\\b(true|false|on|off)\\b"},"brackets":{"patterns":[{"begin":"\\(","end":"(?=\\))|^(?=\\.P[EF]\\b)","patterns":[{"name":"variable.language.global.pikchr.pic","match":"\\b(?:color|fill|thickness)\\b"},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.pic"}}},{"begin":"\\[","end":"(?=\\])|^(?=\\.P[EF]\\b)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.pic"}}},{"begin":"\\{","end":"(?=\\})|^(?=\\.P[EF]\\b)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.pic"}}}]},"chem":{"patterns":[{"include":"#label"},{"match":"\\b(?:(?:(double|triple|front|back)[ \\t]+)?\\b(bond))\\b","captures":{"1":{"name":"storage.modifier.$1.pic.chem"},"2":{"name":"storage.type.bond.pic.chem"}}},{"match":"(?:\\b(aromatic)[ \\t]+)?\\b(benzene|(?:flat)?ring\\d*)","captures":{"1":{"name":"storage.modifier.aromatic.pic.chem"},"2":{"name":"storage.type.ring.pic.chem"}}},{"name":"storage.modifier.direction.pic.chem","match":"\\b(pointing)\\b"},{"name":"meta.set-size.pic.chem","match":"\\b(size)\\b[ \\t]*(\\d+)","captures":{"1":{"name":"entity.other.attribute-name.size.pic.chem"},"2":{"name":"constant.numeric.parameter.pic.chem"}}},{"name":"keyword.control.branch-point.pic.chem","match":"\\bBP\\b"},{"name":"string.unquoted.group-name.pic.chem","match":"(?=[A-Z])(?!BP)([\\w\\(\\).]+)","captures":{"1":{"patterns":[{"include":"#punctuation"},{"name":"punctuation.delimiter.period.full-stop.chem.pic","match":"\\."}]}}},{"begin":"\\(","end":"(?=\\))|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.chem.pic"}}},{"begin":"\\[","end":"(?=\\])|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.chem.pic"}}},{"begin":"\\{","end":"(?=\\})|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.chem.pic"}}},{"include":"$self"}]},"comment":{"patterns":[{"name":"comment.line.number-sign.pic","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.pic"}}},{"name":"comment.line.double-slash.non-standard.pikchr.pic","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.pic"}}},{"name":"comment.block.non-standard.pikchr.pic","begin":"/\\*","end":"\\*/|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.pic"}}}]},"dformat":{"patterns":[{"include":"#pic-line"},{"name":"meta.format.dformat.pic","begin":"^style\\b","end":"$","patterns":[{"include":"#boolean"},{"name":"constant.language.dformat.pic","match":"(?x)\\b\n(addr|addrdelta|addrht|bitwid|charwid|fill|linedisp\n|linethrutext|recht|recspread|reset|textht)\\b"},{"include":"#number"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.style.dformat.pic"}}},{"name":"meta.record.dformat.pic","begin":"^\\S.*$\\R?","end":"^(?=\\S)","patterns":[{"match":"^([ \\t]+[^:\\s]+:)?(?:(?\u003c=:)|[ \\t]+)(\\S+)\\s+(.*)$","captures":{"0":{"name":"markup.list.unnumbered.dformat.pic"},"1":{"patterns":[{"include":"#main"}]},"2":{"patterns":[{"name":"punctuation.separator.dash.dformat.pic","match":"-"},{"include":"#number"}]},"3":{"patterns":[{"contentName":"source.embedded.eqn.roff","begin":"@","end":"@","patterns":[{"include":"text.roff#eqn"}],"beginCaptures":{"0":{"name":"punctuation.definition.section.begin.eqn"}},"endCaptures":{"0":{"name":"punctuation.definition.section.end.eqn"}}}]}}}],"beginCaptures":{"0":{"name":"markup.bold.heading.dformat.pic"}}}]},"embedded-latex":{"name":"source.embedded.tex.pic","match":"^(?:\\\\\\w|%).*$","captures":{"0":{"patterns":[{"include":"text.tex"}]}}},"embedded-roff":{"begin":"^(?=[.'][ \\t]*(?:\\w|\\\\))","end":"(?\u003c!\\\\)$|(\\\\\".*)$","patterns":[{"include":"text.roff"}],"endCaptures":{"1":{"patterns":[{"include":"text.roff"}]}}},"escaped-newline":{"name":"constant.character.escape.newline.pic","begin":"\\\\$\\R?","end":"^(?:[.'])?","beginCaptures":{"0":{"name":"punctuation.definition.escape.pic"}}},"function-call":{"contentName":"meta.function-call.pic","begin":"\\b(?!\\d)(\\w+)(?=\\()","end":"(?!\\G)","patterns":[{"name":"meta.arguments.pic","begin":"\\G\\(","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.definition.arguments.end.pic"}}}],"beginCaptures":{"1":{"patterns":[{"include":"#function-name"}]}}},"function-name":{"patterns":[{"name":"support.function.$1.pic","match":"(?:\\G|^)(atan2|cos|exp|int|log|max|min|s?rand|sin|sqrt|sprintf)$"},{"name":"entity.name.function.user-defined.pic","match":"(?:\\G|^)\\S+"}]},"globals":{"patterns":[{"name":"variable.language.global.pic","match":"(?x)\\b\n(arcrad|arrowhead|arrowht|arrowwid|boxht|boxwid|circlerad|dashwid\n|ellipseht|ellipsewid|fillval|lineht|linewid|maxpsht|maxpswid\n|moveht|movewid|scale|textht|textwid)\\b"},{"name":"variable.language.global.pikchr.pic","match":"\\b((?:left|right|top|bottom)?margin|charht|charwid|color|fill|fontscale|thickness)\\b"}]},"grap":{"patterns":[{"name":"variable.language.process-id.pic.grap","match":"\\bpid\\b"},{"name":"keyword.control.then.pic.grap","match":"\\bthen\\b"},{"name":"keyword.operator.pic.grap","match":"\\b(in|out|through)\\b"},{"include":"#comment"},{"include":"#string"},{"include":"#number"},{"include":"#boolean"},{"include":"#punctuation"},{"include":"#operators"},{"include":"#function-call"},{"include":"#macros"},{"include":"#pic-line"},{"name":"keyword.function.pic.grap","match":"(?x)\\b\n(assignment|circle|coord|copy|draw|for|frame|graph|grid|if|label\n|line|new|next|numberlist|pic|plot|print|sh|ticks?)\\b","captures":{"0":{"name":"entity.function.name.pic.grap"}}},{"name":"variable.other.property.$1.pic.grap","match":"(?x)\\b\n(above|arrow|below|bot|bottom|dashed|dotted|down|ht|invis\n|left|log|radius|right|[lr]just|size|solid|top|up|wid|x|y)\\b"},{"name":"support.function.grap.pic","match":"(?x)\\b\n(atan2|cos|exp|int|log|max|min|rand|sin|sqrt|bullet\n|plus|box|star|dot|times|htick|vtick|square|delta)\\b"},{"begin":"\\(","end":"(?=\\))|^(?=\\.P[EF]\\b|^[.']\\s*G2\\b)","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.chem.pic"}}},{"begin":"\\[","end":"(?=\\])|^(?=\\.P[EF]\\b|^[.']\\s*G2\\b)","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.chem.pic"}}},{"begin":"\\{","end":"(?=\\})|^(?=\\.P[EF]\\b|^[.']\\s*G2\\b)","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.chem.pic"}}},{"include":"#keywords"}]},"keywords":{"patterns":[{"name":"keyword.control.$1.pic","match":"\\b(for|do|if|then(?=\\s*\\{)|else)\\b"},{"name":"keyword.operator.$1.pic","match":"\\b(and|at|by|copy|from|reset|sh|then|thru|to|with|of(?:\\s+the\\s+way\\s+between)?)\\b"},{"name":"keyword.operator.$1.dpic.pic","match":"\\b(continue|exec)\\b"},{"name":"keyword.operator.$1.pikchr.pic","match":"\\b(above|below|close|go|heading|until\\s+even\\s+with|vertex\\s+of)\\b"}]},"label":{"match":"([A-Z][^#(\"\\s:]*)(:)","captures":{"1":{"name":"storage.type.label.pic"},"2":{"name":"punctuation.separator.key-value.pic"}}},"macros":{"patterns":[{"name":"meta.function.$1.pic","match":"(define|undef)\\b\\s*(\\w*)","captures":{"1":{"name":"storage.type.function.pic"},"2":{"name":"entity.name.function.pic"}}},{"name":"variable.other.positional.pic","match":"(\\$)\\d+","captures":{"1":{"name":"punctuation.definition.variable"}}},{"begin":"(until)[ \\t]+((\")([^\"]+)(\"))\\s*$\\R?","end":"^[ ]*(\\4)\\b","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.control.until.pic"},"2":{"name":"string.quoted.double.pic"},"3":{"name":"punctuation.definition.string.begin.pic"},"5":{"name":"punctuation.definition.string.end.pic"}},"endCaptures":{"1":{"name":"keyword.control.terminator.pic"}}}]},"main":{"patterns":[{"include":"#comment"},{"include":"#shell-command"},{"include":"#keywords"},{"include":"#positions"},{"include":"#backref"},{"include":"#macros"},{"include":"#string"},{"include":"#number"},{"include":"#escaped-newline"},{"include":"#operators"},{"include":"#brackets"},{"include":"#punctuation"},{"include":"#primitives"},{"include":"#attributes"},{"include":"#globals"},{"include":"#function-call"},{"include":"#label"},{"include":"#name"}]},"name":{"patterns":[{"name":"variable.positional.other.pic","match":"(\\$)(?!0)\\d+\\b","captures":{"1":{"name":"punctuation.definition.variable.pic"}}},{"name":"variable.other.user-defined.non-standard.pikchr.pic","match":"([$@])\\w+","captures":{"1":{"name":"punctuation.definition.variable.pikchr.pic"}}},{"name":"variable.other.user-defined.pic","match":"(?!\\d)\\w+\\b"}]},"number":{"name":"constant.numeric.pic","match":"(?:(?\u003c!\\d)-)?(?:\\d+(?:\\.(?:\\d+|(?=[Ee][-+]?\\d)))?)(?:[Ee][-+]?\\d+)?(?:(%)|(cm|in|mm|pc|pt|px)\\b)?","captures":{"1":{"name":"constant.other.unit.percentage.pikchr.pic"},"2":{"name":"constant.other.unit.$2.pikchr.pic"}}},"operators":{"patterns":[{"name":"keyword.operator.arrow.pic","match":"\u003c-\u003e|\u003c-|-\u003e"},{"name":"keyword.operator.arrow.unicode.pikchr.pic","match":"←|→|↔"},{"name":"keyword.operator.logical.boolean.pic","match":"\u0026\u0026|\\|{2}"},{"name":"keyword.operator.comparison.relational.numeric.pic","match":"[\u003c\u003e]=?"},{"name":"keyword.operator.comparison.relational.boolean.pic","match":"[!=]="},{"name":"keyword.operator.assignment.compound.pic","match":"[-+*/]="},{"name":"keyword.operator.assignment.pic","match":":?="},{"name":"keyword.operator.arithmetic.pic","match":"[-/+*%^]"},{"name":"keyword.operator.logical.not.negation.pic","match":"!"},{"name":"keyword.operator.arrow.html-entity.pikchr.pic","match":"\u0026(?:(?:left|right|leftright)arrow|[lr]arr);","captures":{"0":{"patterns":[{"include":"text.html.basic#character-reference"}]}}}]},"pic-line":{"begin":"^(pic)\\b","end":"$","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"keyword.control.dformat.pic"}}},"positions":{"patterns":[{"name":"entity.other.attribute-name.corner.pic","match":"(?\u003c=\\.)(?:bottom|bot|center|end|left|right|start|top|[ns][ew]|[bcelnrstw])\\b"},{"name":"variable.language.placement.pic","match":"(?x) \\b\n( (?:bottom|center|east|end|north|south|start|top|west|Here)\n| (?:lower|upper) \\s+ (?:left|right)\n| (?:left|right) (?=\\s+ of \\b)\n) \\b"},{"name":"meta.position.pic","match":"(?\u003cbalance\u003e\u003c([^\u003c\u003e]++|\\g\u003cbalance\u003e)*+\u003e){0}\\g\u003cbalance\u003e","captures":{"0":{"patterns":[{"name":"punctuation.definition.position.bracket.angle.begin.pic","match":"\u003c"},{"name":"punctuation.definition.position.bracket.angle.end.pic","match":"\u003e"},{"name":"punctuation.separator.coordinates.comma.pic","match":","},{"include":"#main"}]}}}]},"primitives":{"patterns":[{"name":"storage.type.primitive.$1.pic","match":"\\b(box|line|arrow|circle|ellipse|arc|move|spline|print|command|plot)\\b"},{"name":"storage.type.primitive.$1.pikchr.pic","match":"\\b(oval|cylinder|file|dot|text)\\b"}]},"punctuation":{"patterns":[{"name":"punctuation.definition.bracket.curly.pic","match":"\\}"},{"name":"punctuation.definition.bracket.round.pic","match":"\\)"},{"name":"punctuation.definition.bracket.square.pic","match":"\\]"},{"name":"punctuation.terminator.statement.pic","match":";"},{"name":"punctuation.separator.comma.pic","match":","},{"name":"punctuation.definition.bracket.angle.pic","match":"\u003c|\u003e"},{"name":"punctuation.delimiter.period.full-stop.pic","match":"\\.(?!\\d)"}]},"shell-braces":{"name":"meta.scope.group.shell","begin":"{","end":"}","patterns":[{"include":"#shell-braces"},{"include":"source.shell"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.shell.begin.shell"}},"endCaptures":{"0":{"name":"punctuation.definition.group.shell.end.shell"}}},"shell-command":{"name":"meta.shell-command.pic","begin":"\\b(sh)\\b[ \\t]*","end":"(?!\\G)","patterns":[{"contentName":"source.embedded.shell","begin":"\\G{","end":"}","patterns":[{"include":"#shell-braces"},{"include":"source.shell"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.brace.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.brace.end.pic"}},"applyEndPatternLast":true},{"contentName":"source.embedded.shell","begin":"\\G(.)","end":"\\1","patterns":[{"include":"source.shell"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.arbitrary-delimiter.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.arbitrary-delimiter.end.pic"}}}],"beginCaptures":{"1":{"name":"keyword.operator.$1.pic"}}},"string":{"name":"string.quoted.double.pic","begin":"\"","end":"\"","patterns":[{"include":"#string-escapes"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.pic"}}},"string-escapes":{"patterns":[{"name":"constant.character.escape.pic","match":"(\\\\)[\\\\\"]","captures":{"1":{"name":"punctuation.definition.escape.pic"}}},{"match":"(?:[^\"\\\\]|\\\\[^\"])+","captures":{"0":{"patterns":[{"include":"text.roff#escapes"}]}}}]},"tags":{"patterns":[{"name":"invalid.deprecated.function.picture.macro.roff","match":"^([.'])[ \\t]*(PS)[ \\t]*(\u003c)(.*)(?=$|\\\\\")","captures":{"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"},"3":{"name":"punctuation.definition.filename.roff"},"4":{"patterns":[{"include":"text.roff#params"}]}}},{"contentName":"source.embedded.pic","begin":"^([.'])[ \\t]*(PS)\\b([\\d \\t]*(?:#.*)?)?(\\\\[#\"].*)?$","end":"^([.'])[ \\t]*(P[EFY])\\b","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"meta.function.begin.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"},"3":{"patterns":[{"include":"source.pic"}]},"4":{"patterns":[{"include":"text.roff#escapes"}]}},"endCaptures":{"0":{"name":"meta.function.end.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.name.function.roff"}}},{"contentName":"source.embedded.chem.pic","begin":"^([.'])[ \\t]*(cstart)\\b\\s*(\\S.*)?","end":"^([.'])[ \\t]*(cend)\\b","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"meta.function.begin.chemical.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.chem"},"2":{"name":"entity.function.name.roff"},"3":{"name":"invalid.illegal.unexpected-characters.pic.chem"}},"endCaptures":{"0":{"name":"meta.function.end.chemical.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"}}},{"contentName":"source.embedded.dformat.pic","begin":"^([.'])[ \\t]*(begin[ \\t]+dformat)\\b","end":"^([.'])[ \\t]*(end)\\b","patterns":[{"include":"#dformat"}],"beginCaptures":{"0":{"name":"meta.function.begin.dformat.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.dformat"},"2":{"name":"entity.function.name.roff"}},"endCaptures":{"0":{"name":"meta.function.end.dformat.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"}}},{"contentName":"source.embedded.grap.pic","begin":"^([.'])[ \\t]*(G1)\\b(\\s*\\d+)?(\\s*\\\\\".*$)?","end":"^([.'])[ \\t]*(G2)\\b","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"meta.function.begin.graph.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.grap"},"2":{"name":"entity.function.name.roff"},"3":{"name":"constant.numeric.parameter.pic.grap"},"4":{"patterns":[{"include":"text.roff#escapes"}]}},"endCaptures":{"0":{"name":"meta.function.end.graph.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.grap"},"2":{"name":"entity.function.name.roff"}}}]}}}
|
|
1
|
+
{"name":"Pic","scopeName":"source.pic","patterns":[{"include":"#binary"},{"include":"#tags"},{"include":"#embedded-roff"},{"include":"#embedded-latex"},{"include":"#main"}],"repository":{"attributes":{"patterns":[{"name":"entity.other.attribute-name.same-as.pikchr.pic","match":"\\bsame\\s+as\\b"},{"name":"entity.other.attribute-name.$1.pic","match":"(?x)\\b (chop|cw|dashed|diameter|diam|dotted|down|figname|height|ht |invisible|invis|left|radius|rad|right|same|up|width|wid)\\b"},{"name":"entity.other.attribute-name.$1.pic","begin":"\\b(colou?r(?:ed)?|outlined?|shaded|fill)\\b[ \\t]*(?=\\w)","end":"(?=\\S)|(?\u003c=\\S)","patterns":[{"name":"constant.numeric.hexadecimal.hex.pikchr.pic","match":"\\G0[Xx][0-9A-Fa-f]{6}"},{"name":"support.constant.no-colour.pikchr.pic","match":"(?i)\\G(None|Off)\\b"},{"name":"support.constant.colour.pikchr.pic","match":"(?xi)\\G (AliceBlue|AntiqueWhite|Aquamarine|Aqua|Azure|Beige|Bisque|Black|BlanchedAlmond|BlueViolet|Blue|Brown|BurlyWood|CadetBlue |Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenrod|DarkGreen|DarkGr[ae]y |DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y |DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|Firebrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro |GhostWhite|Goldenrod|Gold|Gr[ae]y|GreenYellow|Green|Honeydew|HotPink|IndianRed|Indigo|Ivory|Khaki|LavenderBlush|Lavender |LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenrodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon |LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|LimeGreen|Lime|Linen|Magenta|Maroon|MediumAquamarine |MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed |MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|OliveDrab|Olive|OrangeRed|Orange|Orchid |PaleGoldenrod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple |Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|Seashell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow |SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Turquoise|Violet|Wheat|WhiteSmoke|White|YellowGreen|Yellow)\\b"}],"applyEndPatternLast":true},{"name":"entity.other.attribute-name.$1.pikchr.pic","match":"\\b(aligned|big|bold|fit|italic|mono(?:space)?|small|(?:thickness|color|fill)(?!\\s*(?:[-:+/*%=!\u003c\u003e]?=|\u003c|\u003e))|thick|thin)\\b"},{"name":"entity.other.attribute-name.$1.dpic.pic","match":"\\b(scaled)\\b"}]},"backref":{"patterns":[{"name":"variable.language.backreference.pic","match":"\\b(last|(?:\\d*1[1-3]th|\\d*0th|(?:(?!11st)\\d)*1st|\\d*2nd|(?:(?!13rd)\\d*)3rd|\\d*[4-9]th)(?:[ \\t]+last)?)\\b"},{"name":"meta.backreference.computed.pic","match":"((')([^']*)('))(th)","captures":{"1":{"name":"string.quoted.single.pic"},"2":{"name":"punctuation.definition.string.begin.pic"},"3":{"name":"meta.expression.pic","patterns":[{"include":"#main"}]},"4":{"name":"punctuation.definition.string.end.pic"},"5":{"name":"constant.language.ordinal-suffix.pic"}}},{"name":"variable.language.backreference.pikchr.pic","match":"\\b(first|previous)\\b"}]},"binary":{"name":"raw.binary.data","begin":"^(?=.*(?![\\x02-\\x07\\f\\x7F])[\\x00-\\x06\\x{FFFD}])","end":"(?=A)B"},"boolean":{"name":"constant.boolean.$1.dformat.pic","match":"\\b(true|false|on|off)\\b"},"brackets":{"patterns":[{"begin":"\\(","end":"(?=\\))|^(?=\\.P[EF]\\b)","patterns":[{"name":"variable.language.global.pikchr.pic","match":"\\b(?:color|fill|thickness)\\b"},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.pic"}}},{"begin":"\\[","end":"(?=\\])|^(?=\\.P[EF]\\b)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.pic"}}},{"begin":"\\{","end":"(?=\\})|^(?=\\.P[EF]\\b)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.pic"}}}]},"chem":{"patterns":[{"include":"#label"},{"match":"\\b(?:(?:(double|triple|front|back)[ \\t]+)?\\b(bond))\\b","captures":{"1":{"name":"storage.modifier.$1.pic.chem"},"2":{"name":"storage.type.bond.pic.chem"}}},{"match":"(?:\\b(aromatic)[ \\t]+)?\\b(benzene|(?:flat)?ring\\d*)","captures":{"1":{"name":"storage.modifier.aromatic.pic.chem"},"2":{"name":"storage.type.ring.pic.chem"}}},{"name":"storage.modifier.direction.pic.chem","match":"\\b(pointing)\\b"},{"name":"meta.set-size.pic.chem","match":"\\b(size)\\b[ \\t]*(\\d+)","captures":{"1":{"name":"entity.other.attribute-name.size.pic.chem"},"2":{"name":"constant.numeric.parameter.pic.chem"}}},{"name":"keyword.control.branch-point.pic.chem","match":"\\bBP\\b"},{"name":"string.unquoted.group-name.pic.chem","match":"(?=[A-Z])(?!BP)([\\w\\(\\).]+)","captures":{"1":{"patterns":[{"include":"#punctuation"},{"name":"punctuation.delimiter.period.full-stop.chem.pic","match":"\\."}]}}},{"begin":"\\(","end":"(?=\\))|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.chem.pic"}}},{"begin":"\\[","end":"(?=\\])|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.chem.pic"}}},{"begin":"\\{","end":"(?=\\})|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.chem.pic"}}},{"include":"$self"}]},"comment":{"patterns":[{"name":"comment.line.number-sign.pic","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.pic"}}},{"name":"comment.line.double-slash.non-standard.pikchr.pic","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.pic"}}},{"name":"comment.block.non-standard.pikchr.pic","begin":"/\\*","end":"\\*/|^(?=\\.P[EF]\\b|^[.']\\s*cend\\b)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.pic"}}}]},"dformat":{"patterns":[{"include":"#pic-line"},{"name":"meta.format.dformat.pic","begin":"^style\\b","end":"$","patterns":[{"include":"#boolean"},{"name":"constant.language.dformat.pic","match":"(?x)\\b\n(addr|addrdelta|addrht|bitwid|charwid|fill|linedisp\n|linethrutext|recht|recspread|reset|textht)\\b"},{"include":"#number"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.style.dformat.pic"}}},{"name":"meta.record.dformat.pic","begin":"^\\S.*$\\R?","end":"^(?=\\S)","patterns":[{"match":"^([ \\t]+[^:\\s]+:)?(?:(?\u003c=:)|[ \\t]+)(\\S+)\\s+(.*)$","captures":{"0":{"name":"markup.list.unnumbered.dformat.pic"},"1":{"patterns":[{"include":"#main"}]},"2":{"patterns":[{"name":"punctuation.separator.dash.dformat.pic","match":"-"},{"include":"#number"}]},"3":{"patterns":[{"contentName":"source.embedded.eqn.roff","begin":"@","end":"@","patterns":[{"include":"text.roff#eqn"}],"beginCaptures":{"0":{"name":"punctuation.definition.section.begin.eqn"}},"endCaptures":{"0":{"name":"punctuation.definition.section.end.eqn"}}}]}}}],"beginCaptures":{"0":{"name":"markup.bold.heading.dformat.pic"}}}]},"embedded-latex":{"name":"source.embedded.tex.pic","match":"^(?:\\\\\\w|%).*$","captures":{"0":{"patterns":[{"include":"text.tex"}]}}},"embedded-roff":{"begin":"^(?=[.'][ \\t]*(?:\\w|\\\\))","end":"(?\u003c!\\\\)$|(\\\\\".*)$","patterns":[{"include":"text.roff"}],"endCaptures":{"1":{"patterns":[{"include":"text.roff"}]}}},"escaped-newline":{"name":"constant.character.escape.newline.pic","begin":"\\\\$\\R?","end":"^(?:[.'])?","beginCaptures":{"0":{"name":"punctuation.definition.escape.pic"}}},"function-call":{"contentName":"meta.function-call.pic","begin":"\\b(?!\\d)(\\w+)(?=\\()","end":"(?!\\G)","patterns":[{"name":"meta.arguments.pic","begin":"\\G\\(","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.definition.arguments.end.pic"}}}],"beginCaptures":{"1":{"patterns":[{"include":"#function-name"}]}}},"function-name":{"patterns":[{"name":"support.function.$1.pic","match":"(?:\\G|^)(atan2|cos|exp|int|log|max|min|s?rand|sin|sqrt|sprintf)$"},{"name":"entity.name.function.user-defined.pic","match":"(?:\\G|^)\\S+"}]},"globals":{"patterns":[{"name":"variable.language.global.pic","match":"(?x)\\b\n(arcrad|arrowhead|arrowht|arrowwid|boxht|boxwid|circlerad|dashwid\n|ellipseht|ellipsewid|fillval|lineht|linewid|maxpsht|maxpswid\n|moveht|movewid|scale|textht|textwid)\\b"},{"name":"variable.language.global.pikchr.pic","match":"\\b((?:left|right|top|bottom)?margin|charht|charwid|color|diamond(?:ht|wid)|fill|fontscale|thickness)\\b"}]},"grap":{"patterns":[{"name":"variable.language.process-id.pic.grap","match":"\\bpid\\b"},{"name":"keyword.control.then.pic.grap","match":"\\bthen\\b"},{"name":"keyword.operator.pic.grap","match":"\\b(in|out|through)\\b"},{"include":"#comment"},{"include":"#string"},{"include":"#number"},{"include":"#boolean"},{"include":"#punctuation"},{"include":"#operators"},{"include":"#function-call"},{"include":"#macros"},{"include":"#pic-line"},{"name":"keyword.function.pic.grap","match":"(?x)\\b\n(assignment|circle|coord|copy|draw|for|frame|graph|grid|if|label\n|line|new|next|numberlist|pic|plot|print|sh|ticks?)\\b","captures":{"0":{"name":"entity.function.name.pic.grap"}}},{"name":"variable.other.property.$1.pic.grap","match":"(?x)\\b\n(above|arrow|below|bot|bottom|dashed|dotted|down|ht|invis\n|left|log|radius|right|[lr]just|size|solid|top|up|wid|x|y)\\b"},{"name":"support.function.grap.pic","match":"(?x)\\b\n(atan2|cos|exp|int|log|max|min|rand|sin|sqrt|bullet\n|plus|box|star|dot|times|htick|vtick|square|delta)\\b"},{"begin":"\\(","end":"(?=\\))|^(?=\\.P[EF]\\b|^[.']\\s*G2\\b)","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.chem.pic"}}},{"begin":"\\[","end":"(?=\\])|^(?=\\.P[EF]\\b|^[.']\\s*G2\\b)","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.chem.pic"}}},{"begin":"\\{","end":"(?=\\})|^(?=\\.P[EF]\\b|^[.']\\s*G2\\b)","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.chem.pic"}}},{"include":"#keywords"}]},"keywords":{"patterns":[{"name":"keyword.control.$1.pic","match":"\\b(for|do|if|then(?=\\s*\\{)|else)\\b"},{"name":"keyword.operator.$1.pic","match":"\\b(and|at|by|copy|from|reset|sh|then|thru|to|with|of(?:\\s+the\\s+way\\s+between)?)\\b"},{"name":"keyword.operator.$1.dpic.pic","match":"\\b(continue|exec)\\b"},{"name":"keyword.operator.$1.pikchr.pic","match":"\\b(above|below|close|go|heading|until\\s+even\\s+with|vertex\\s+of)\\b"}]},"label":{"match":"([A-Z][^#(\"\\s:]*)(:)","captures":{"1":{"name":"storage.type.label.pic"},"2":{"name":"punctuation.separator.key-value.pic"}}},"macros":{"patterns":[{"name":"meta.function.$1.pic","match":"(define|undef)\\b\\s*(\\w*)","captures":{"1":{"name":"storage.type.function.pic"},"2":{"name":"entity.name.function.pic"}}},{"name":"variable.other.positional.pic","match":"(\\$)\\d+","captures":{"1":{"name":"punctuation.definition.variable"}}},{"begin":"(until)[ \\t]+((\")([^\"]+)(\"))\\s*$\\R?","end":"^[ ]*(\\4)\\b","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.control.until.pic"},"2":{"name":"string.quoted.double.pic"},"3":{"name":"punctuation.definition.string.begin.pic"},"5":{"name":"punctuation.definition.string.end.pic"}},"endCaptures":{"1":{"name":"keyword.control.terminator.pic"}}}]},"main":{"patterns":[{"include":"#comment"},{"include":"#shell-command"},{"include":"#keywords"},{"include":"#positions"},{"include":"#backref"},{"include":"#macros"},{"include":"#string"},{"include":"#number"},{"include":"#escaped-newline"},{"include":"#operators"},{"include":"#brackets"},{"include":"#punctuation"},{"include":"#primitives"},{"include":"#attributes"},{"include":"#globals"},{"include":"#function-call"},{"include":"#label"},{"include":"#name"}]},"name":{"patterns":[{"name":"variable.positional.other.pic","match":"(\\$)(?!0)\\d+\\b","captures":{"1":{"name":"punctuation.definition.variable.pic"}}},{"name":"variable.other.user-defined.non-standard.pikchr.pic","match":"([$@])\\w+","captures":{"1":{"name":"punctuation.definition.variable.pikchr.pic"}}},{"name":"variable.other.user-defined.pic","match":"(?!\\d)\\w+\\b"}]},"number":{"name":"constant.numeric.pic","match":"(?:(?\u003c!\\d)-)?(?:\\d+(?:\\.(?:\\d+|(?=[Ee][-+]?\\d)))?)(?:[Ee][-+]?\\d+)?(?:(%)|(cm|in|mm|pc|pt|px)\\b)?","captures":{"1":{"name":"constant.other.unit.percentage.pikchr.pic"},"2":{"name":"constant.other.unit.$2.pikchr.pic"}}},"operators":{"patterns":[{"name":"keyword.operator.arrow.pic","match":"\u003c-\u003e|\u003c-|-\u003e"},{"name":"keyword.operator.arrow.unicode.pikchr.pic","match":"←|→|↔"},{"name":"keyword.operator.logical.boolean.pic","match":"\u0026\u0026|\\|{2}"},{"name":"keyword.operator.comparison.relational.numeric.pic","match":"[\u003c\u003e]=?"},{"name":"keyword.operator.comparison.relational.boolean.pic","match":"[!=]="},{"name":"keyword.operator.assignment.compound.pic","match":"[-+*/]="},{"name":"keyword.operator.assignment.pic","match":":?="},{"name":"keyword.operator.arithmetic.pic","match":"[-/+*%^]"},{"name":"keyword.operator.logical.not.negation.pic","match":"!"},{"name":"keyword.operator.arrow.html-entity.pikchr.pic","match":"\u0026(?:(?:left|right|leftright)arrow|[lr]arr);","captures":{"0":{"patterns":[{"include":"text.html.basic#character-reference"}]}}}]},"pic-line":{"begin":"^(pic)\\b","end":"$","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"keyword.control.dformat.pic"}}},"positions":{"patterns":[{"name":"entity.other.attribute-name.corner.pic","match":"(?\u003c=\\.)(?:bottom|bot|center|end|left|right|start|top|[ns][ew]|[bcelnrstw])\\b"},{"name":"variable.language.placement.pic","match":"(?x) \\b\n( (?:bottom|center|east|end|north|south|start|top|west|Here)\n| (?:lower|upper) \\s+ (?:left|right)\n| (?:left|right) (?=\\s+ of \\b)\n) \\b"},{"name":"meta.position.pic","match":"(?\u003cbalance\u003e\u003c([^\u003c\u003e]++|\\g\u003cbalance\u003e)*+\u003e){0}\\g\u003cbalance\u003e","captures":{"0":{"patterns":[{"name":"punctuation.definition.position.bracket.angle.begin.pic","match":"\u003c"},{"name":"punctuation.definition.position.bracket.angle.end.pic","match":"\u003e"},{"name":"punctuation.separator.coordinates.comma.pic","match":","},{"include":"#main"}]}}}]},"primitives":{"patterns":[{"name":"storage.type.primitive.$1.pic","match":"\\b(box|line|arrow|circle|ellipse|arc|move|spline|polygon|print|command|plot)\\b"},{"name":"storage.type.primitive.$1.pikchr.pic","match":"\\b(oval|diamond|cylinder|file|dot|text)\\b"}]},"punctuation":{"patterns":[{"name":"punctuation.definition.bracket.curly.pic","match":"\\}"},{"name":"punctuation.definition.bracket.round.pic","match":"\\)"},{"name":"punctuation.definition.bracket.square.pic","match":"\\]"},{"name":"punctuation.terminator.statement.pic","match":";"},{"name":"punctuation.separator.comma.pic","match":","},{"name":"punctuation.definition.bracket.angle.pic","match":"\u003c|\u003e"},{"name":"punctuation.delimiter.period.full-stop.pic","match":"\\.(?!\\d)"}]},"shell-braces":{"name":"meta.scope.group.shell","begin":"{","end":"}","patterns":[{"include":"#shell-braces"},{"include":"source.shell"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.shell.begin.shell"}},"endCaptures":{"0":{"name":"punctuation.definition.group.shell.end.shell"}}},"shell-command":{"name":"meta.shell-command.pic","begin":"\\b(sh)\\b[ \\t]*","end":"(?!\\G)","patterns":[{"contentName":"source.embedded.shell","begin":"\\G{","end":"}","patterns":[{"include":"#shell-braces"},{"include":"source.shell"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.brace.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.brace.end.pic"}},"applyEndPatternLast":true},{"contentName":"source.embedded.shell","begin":"\\G(.)","end":"\\1","patterns":[{"include":"source.shell"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.arbitrary-delimiter.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.balanced-text.arbitrary-delimiter.end.pic"}}}],"beginCaptures":{"1":{"name":"keyword.operator.$1.pic"}}},"string":{"name":"string.quoted.double.pic","begin":"\"","end":"\"","patterns":[{"include":"#string-escapes"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.pic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.pic"}}},"string-escapes":{"patterns":[{"name":"constant.character.escape.pic","match":"(\\\\)[\\\\\"]","captures":{"1":{"name":"punctuation.definition.escape.pic"}}},{"match":"(?:[^\"\\\\]|\\\\[^\"])+","captures":{"0":{"patterns":[{"include":"text.roff#escapes"}]}}}]},"tags":{"patterns":[{"name":"invalid.deprecated.function.picture.macro.roff","match":"^([.'])[ \\t]*(PS)[ \\t]*(\u003c)(.*)(?=$|\\\\\")","captures":{"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"},"3":{"name":"punctuation.definition.filename.roff"},"4":{"patterns":[{"include":"text.roff#params"}]}}},{"contentName":"source.embedded.pic","begin":"^([.'])[ \\t]*(PS)\\b([\\d \\t]*(?:#.*)?)?(\\\\[#\"].*)?$","end":"^([.'])[ \\t]*(P[EFY])\\b","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"meta.function.begin.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"},"3":{"patterns":[{"include":"source.pic"}]},"4":{"patterns":[{"include":"text.roff#escapes"}]}},"endCaptures":{"0":{"name":"meta.function.end.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.name.function.roff"}}},{"contentName":"source.embedded.chem.pic","begin":"^([.'])[ \\t]*(cstart)\\b\\s*(\\S.*)?","end":"^([.'])[ \\t]*(cend)\\b","patterns":[{"include":"#chem"}],"beginCaptures":{"0":{"name":"meta.function.begin.chemical.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.chem"},"2":{"name":"entity.function.name.roff"},"3":{"name":"invalid.illegal.unexpected-characters.pic.chem"}},"endCaptures":{"0":{"name":"meta.function.end.chemical.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"}}},{"contentName":"source.embedded.dformat.pic","begin":"^([.'])[ \\t]*(begin[ \\t]+dformat)\\b","end":"^([.'])[ \\t]*(end)\\b","patterns":[{"include":"#dformat"}],"beginCaptures":{"0":{"name":"meta.function.begin.dformat.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.dformat"},"2":{"name":"entity.function.name.roff"}},"endCaptures":{"0":{"name":"meta.function.end.dformat.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.roff"},"2":{"name":"entity.function.name.roff"}}},{"contentName":"source.embedded.grap.pic","begin":"^([.'])[ \\t]*(G1)\\b(\\s*\\d+)?(\\s*\\\\\".*$)?","end":"^([.'])[ \\t]*(G2)\\b","patterns":[{"include":"#grap"}],"beginCaptures":{"0":{"name":"meta.function.begin.graph.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.grap"},"2":{"name":"entity.function.name.roff"},"3":{"name":"constant.numeric.parameter.pic.grap"},"4":{"patterns":[{"include":"text.roff#escapes"}]}},"endCaptures":{"0":{"name":"meta.function.end.graph.picture.section.macro.roff"},"1":{"name":"punctuation.definition.macro.pic.grap"},"2":{"name":"entity.function.name.roff"}}}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Package Config","scopeName":"source.pkgconf","patterns":[{"include":"#main"}],"repository":{"comments":{"patterns":[{"name":"comment.block.c.pkgconf","begin":"^\\s*(/\\*)","end":"\\*/","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c.pkgconf"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.c.pkgconf"}}},{"include":"etc#comment"}]},"escape":{"patterns":[{"name":"constant.character.escape.backslash.pkgconf","match":"(\\\\)\\\\","captures":{"1":{"name":"punctuation.definition.escape.backslash.pkgconf"}}},{"name":"constant.character.escape.comment.pkgconf","match":"(\\\\)#","captures":{"1":{"name":"punctuation.definition.escape.backslash.pkgconf"}}},{"name":"constant.character.escape.whitespace.pkgconf","match":"(\\\\)[ \\t]","captures":{"1":{"name":"punctuation.definition.escape.backslash.pkgconf"}}},{"name":"meta.line-continuation.pkgconf","begin":"(\\\\)$\\s*","end":"^[ \\t]*","beginCaptures":{"0":{"name":"constant.character.escape.newline.pkgconf"},"1":{"name":"punctuation.definition.escape.backslash.pkgconf"}}}]},"interpolation":{"patterns":[{"name":"constant.character.escape.interpolation.pkgconf","match":"\\$\\${?"},{"name":"variable.other.bracket.shell.pkgconf","match":"((\\$\\{))[^}]+((\\}))","captures":{"1":{"name":"punctuation.definition.variable.shell.begin.pkgconf"},"2":{"name":"brackethighlighter.curly"},"3":{"name":"punctuation.definition.variable.shell.end.pkgconf"},"4":{"name":"brackethighlighter.curly"}}}]},"keyword":{"patterns":[{"name":"meta.field.${2:/downcase}.pkgconf","contentName":"string.unquoted.pkgconf","begin":"(?i)^(\\s*)(Name|Description)(:)[ \\t]*","end":"^(?!\\1\\s+\\S)|(?=\\s*#)","patterns":[{"include":"#keywordInnards"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.pkgconf"},"2":{"name":"variable.keyword.field-name.pkgconf"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.field.${2:/downcase}.pkgconf","contentName":"constant.other.reference.link","begin":"(?i)^(\\s*)(URL|Source|Licen[cs]e\\.file)(:)[ \\t]*","end":"^(?!\\1\\s+\\S)|(?=\\s*#)","patterns":[{"include":"#keywordInnards"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.pkgconf"},"2":{"name":"variable.keyword.field-name.pkgconf"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.field.maintainer.pkgconf","begin":"(?i)^(\\s*)(Maintainer)(:)[ \\t]*","end":"^(?!\\1\\s+\\S)|(?=\\s*#)","patterns":[{"begin":"\\G([^\\s\u003c\u003e][^\u003c\u003e]*)\\s+(?=\u003c)","end":"(?!\\G)","patterns":[{"match":"\\G((\u003c))([^@\u003e]+@[^@\u003e]+)((\u003e))","captures":{"1":{"name":"punctuation.definition.bracket.angle.ascii.begin.pkgconf"},"2":{"name":"brackethighlighter.angle"},"3":{"patterns":[{"include":"etc#emailUnquoted"}]},"4":{"name":"punctuation.definition.bracket.angle.ascii.end.pkgconf"},"5":{"name":"brackethighlighter.angle"}}},{"match":"\\G((\u003c))([^\u003c\u003e]+)((\u003e))","captures":{"1":{"name":"punctuation.definition.bracket.angle.ascii.begin.pkgconf"},"2":{"name":"brackethighlighter.angle"},"3":{"name":"constant.other.reference.link"},"4":{"name":"punctuation.definition.bracket.angle.ascii.end.pkgconf"},"5":{"name":"brackethighlighter.angle"}}}],"beginCaptures":{"1":{"name":"entity.name.author.pkgconf","patterns":[{"include":"#escape"},{"include":"#interpolation"}]}},"applyEndPatternLast":true}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.pkgconf"},"2":{"name":"variable.keyword.field-name.pkgconf"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.field.version.pkgconf","contentName":"constant.other.version-string.pkgconf","begin":"(?i)^(\\s*)(Version)(:)[ \\t]*","end":"^(?!\\1\\s+\\S)|(?=\\s*#)","patterns":[{"include":"#keywordInnards"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.pkgconf"},"2":{"name":"variable.keyword.field-name.pkgconf"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.field.${2:/downcase}.pkgconf","begin":"(?i)^(\\s*)(Conflicts|Provides|Requires(?:\\.(?:internal|shared|private))?)(:)[ \\t]*","end":"^(?!\\1\\s+\\S)|(?=\\s*#)","patterns":[{"name":"meta.package-spec.pkgconf","match":"\\s*([-\\w+./]+)(?:\\s*(\u003e=|\u003c=|==?|!=|\u003c|\u003e)\\s*(\\d+(?:\\.\\d+)*[-\\w]*))?","captures":{"1":{"name":"entity.name.package.pkgconf"},"2":{"patterns":[{"include":"etc#opCmp"},{"name":"keyword.operator.logical.comparison.equal-to.equals.pkgconf","match":"(?:^|\\G)=$"}]},"3":{"name":"constant.other.version-string.pkgconf"}}},{"include":"etc#comma"},{"include":"#keywordInnards"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.pkgconf"},"2":{"name":"variable.keyword.field-name.pkgconf"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.field.${2:/downcase}.pkgconf","begin":"(?i)^(\\s*)((?:Cflags|Libs)(?:\\.(?:internal|shared|private))?)(:)[ \\t]*","end":"^(?!\\1\\s+\\S)|(?=\\s*#)","patterns":[{"name":"meta.flag.pkgconf","match":"((-)W)\\s*(a|l|p)(?=,)((?:[^#\\s\\\\]|\\\\.)++)","captures":{"1":{"name":"storage.type.flag.pkgconf"},"2":{"name":"punctuation.definition.option.name.dash.pkgconf"},"3":{"name":"constant.other.bareword.pkgconf"},"4":{"patterns":[{"include":"etc#comma"},{"name":"storage.type.flag.pkgconf","match":"(?:^|(?\u003c=,))(--?)((?:[^#,\\s\\\\]|\\\\.)++)","captures":{"1":{"name":"punctuation.definition.option.name.dash.pkgconf"},"2":{"patterns":[{"include":"#escape"},{"include":"#interpolation"}]}}}]}}},{"name":"meta.flag.pkgconf","match":"((-)(?:framework(?=\\s)|no(?=(?:\\s*|-)\\w)|\\w))\\s*((?:[^#\\s\\\\]|\\\\.)++)?","captures":{"1":{"name":"storage.type.flag.pkgconf"},"2":{"name":"punctuation.definition.option.name.dash.pkgconf"},"3":{"name":"constant.other.bareword.pkgconf","patterns":[{"include":"#escape"},{"include":"#interpolation"}]}}},{"name":"constant.other.bareword.pkgconf","match":"(?:[^#\\s\\\\]|\\\\.)++","captures":{"0":{"patterns":[{"include":"#escape"},{"include":"#interpolation"}]}}},{"include":"#escape"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.pkgconf"},"2":{"name":"variable.keyword.field-name.pkgconf"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.field.other.pkgconf","contentName":"string.unquoted.field.pkgconf","begin":"^(\\s*)([^\\s:]+)(:)[ \\t]*","end":"^(?!\\1\\s+\\S)|(?=\\s*#)","patterns":[{"include":"#keywordInnards"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indent.pkgconf"},"2":{"name":"variable.keyword.field-name.pkgconf"},"3":{"patterns":[{"include":"etc#kolon"}]}}}]},"keywordInnards":{"patterns":[{"include":"#escape"},{"include":"#interpolation"}]},"main":{"patterns":[{"include":"#comments"},{"include":"#variable"},{"include":"#keyword"}]},"variable":{"name":"meta.variable.pkgconf","contentName":"string.unquoted.pkgconf","begin":"^(?!\\d)(\\w+)\\s*(=)[ \\t]*","end":"(?=\\s*(?:$|#))","patterns":[{"include":"#escape"},{"include":"#interpolation"}],"beginCaptures":{"1":{"name":"variable.assignment.pkgconf"},"2":{"patterns":[{"include":"etc#eql"}]}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"pl","scopeName":"source.pl","patterns":[{"include":"#toplevel-statements"},{"include":"#operators"}],"repository":{"attributes":{"name":"meta.attribute.block.pl","begin":"(\\[\\[)","end":"(\\]\\])","patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_:]*)\\b","captures":{"1":{"name":"entity.name.attribute.pl"}}},{"name":"meta.attribute.arguments.pl","begin":"\\(","end":"\\)","patterns":[{"include":"#statements"},{"name":"punctuation.separator.argument.pl","match":","}]},{"name":"punctuation.separator.attribute.pl","match":","}],"beginCaptures":{"1":{"name":"punctuation.bracket.square.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.square.close.pl"}}},"binary-integer":{"name":"constant.numeric.integer.binary.pl","match":"\\b(0(b|B)[01]+)\\b"},"character-literal":{"name":"string.quoted.single.pl","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.pl","match":"\\\\."}]},"comment":{"name":"comment.block.pl","begin":"\\/\\*","end":"\\*\\/"},"decimal-integer":{"name":"constant.numeric.integer.decimal.pl","match":"\\b(0|[1-9][0-9]*)\\b"},"else-statement":{"name":"keyword.control.else.pl","match":"\\b(else)\\b","captures":{"1":{"name":"keyword.control.else.pl"}}},"enum-definition":{"contentName":"meta.enum.pl","begin":"(enum)\\s+([a-zA-Z0-9_]+)\\s*((\\:)\\s*([a-zA-Z0-9_]+))\\s*(\\{)","end":"(\\})\\s*","patterns":[{"include":"#enum-member"}],"beginCaptures":{"1":{"name":"keyword.control.enum.pl"},"2":{"name":"entity.name.type.enum.pl"},"5":{"name":"entity.name.type.base.pl"},"6":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"enum-member":{"match":"([a-zA-Z_][a-zA-Z0-9_]*)\\s*((=)\\s*([a-zA-Z0-9_]+)(\\s*\\.\\.\\.\\s*([a-zA-Z0-9_]+))?)?(,)?","captures":{"1":{"name":"variable.other.enum-member.pl"},"3":{"name":"keyword.operator.assignment.pl"},"4":{"patterns":[{"include":"#literal"}]},"6":{"patterns":[{"include":"#literal"}]},"7":{"name":"punctuation.separator.comma.pl"}}},"floating-point-number":{"name":"constant.numeric.float.pl","match":"\\b([+-]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([eE][+-]?[0-9]+)?)\\b"},"for-statement":{"name":"meta.for.pl","begin":"\\b(for)\\s*(\\()","end":"(\\))","patterns":[{"include":"#type-usage"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.for.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"function-definition":{"name":"meta.function.definition.pl","begin":"\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*(\\()","end":"(\\))","patterns":[{"include":"#variable-definition"},{"include":"#statements"}],"beginCaptures":{"1":{"name":"keyword.control.function.pl"},"2":{"name":"entity.name.function.pl"},"3":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"hexadecimal-integer":{"name":"constant.numeric.integer.hexadecimal.pl","match":"\\b(0(x|X)[0-9a-fA-F]+)\\b"},"identifier":{"name":"variable.other.identifier.pl","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b"},"if-statement":{"name":"meta.if.pl","begin":"\\b(if)\\s*(\\()","end":"(\\))","patterns":[{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.if.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"import-statement":{"match":"\\s*(import)\\s*([a-zA-Z0-9_\\.]+|\\*)\\s*((from)\\s*([a-zA-Z0-9_\\.]+))?\\s*((as)?\\s*([a-zA-Z0-9_\\.]+))","captures":{"1":{"name":"keyword.control.import.pl"},"2":{"name":"variable.other.import.pl"},"4":{"name":"keyword.control.from.pl"},"5":{"name":"variable.other.import.pl"},"7":{"name":"keyword.control.as.pl"},"8":{"name":"variable.other.import.pl"}}},"keywords":{"patterns":[{"name":"keyword.control.pl","match":"\\b(break|continue|return|catch|try|if|else|match)\\b"}]},"line-comment":{"name":"comment.line.double-slash.pl","match":"\\/\\/.*"},"literal":{"patterns":[{"include":"#decimal-integer"},{"include":"#hexadecimal-integer"},{"include":"#binary-integer"},{"include":"#octal-integer"},{"include":"#floating-point-number"},{"include":"#string-literal"},{"include":"#character-literal"},{"name":"constant.language.boolean.pl","match":"\\b(true|false|null)\\b"},{"name":"constant.language.special.pl","match":"\\b(this|parent|\\$)\\b"}]},"match-statement":{"name":"meta.match.pl","begin":"\\b(match)\\s*(\\()","end":"(\\))","patterns":[{"include":"#type-usage"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.match.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"namespace-definition":{"name":"meta.namespace.pl","begin":"\\b(namespace)\\s+((auto)\\s+)?(([a-zA-Z_][a-zA-Z0-9_:]*))+\\s*(\\{)","end":"(\\})","patterns":[{"include":"#toplevel-statements"}],"beginCaptures":{"1":{"name":"keyword.control.namespace.pl"},"3":{"name":"storage.type.builtin.pl"},"5":{"name":"entity.name.namespace.pl"},"6":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"octal-integer":{"name":"constant.numeric.integer.octal.pl","match":"\\b(0(o|O)[0-7]+)\\b"},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.addition.pl","match":"\\+"},{"name":"keyword.operator.arithmetic.subtraction.pl","match":"-"},{"name":"keyword.operator.arithmetic.multiplication.pl","match":"\\*"},{"name":"keyword.operator.arithmetic.division.pl","match":"\\/"},{"name":"keyword.operator.arithmetic.modulus.pl","match":"%"},{"name":"keyword.operator.comparison.pl","match":"\u003c=|\u003e=|\u003c|\u003e|==|!=|\u0026\u0026|\\|\\||!"},{"name":"keyword.operator.bitwise.pl","match":"\u0026|\\||\\^"},{"name":"keyword.operator.special.pl","match":"@"},{"name":"keyword.operator.range.pl","match":"\\.\\.\\."},{"name":"punctuation.bracket.round.pl","match":"\\(|\\)"},{"name":"punctuation.bracket.square.pl","match":"\\[|\\]"},{"name":"punctuation.separator.period.pl","match":"\\."},{"name":"punctuation.separator.comma.pl","match":","},{"name":"punctuation.terminator.semicolon.pl","match":";"},{"name":"keyword.operator.ternary.question.pl","match":"\\?"},{"name":"keyword.operator.ternary.colon.pl","match":":"},{"name":"keyword.operator.function.pl","match":"sizeof|addressof|typenameof"},{"name":"keyword.operator.assignment.pl","match":"\\+=|-=|\\*=|/=|%=|\u0026=|\\^=|\\|="}]},"padding-definition":{"name":"keyword.other.padding.pl","match":"padding"},"preprocessor-directive":{"match":"^\\s*(#[a-zA-Z0-9_]+)\\s*(.*)$","captures":{"1":{"name":"keyword.control.import.preprocessor.pl."},"2":{"name":"string.unquoted.directive.pl"}}},"scope":{"name":"meta.scope.pl","begin":"\\s*(\\{)","end":"(\\})","patterns":[{"include":"#statements"}],"beginCaptures":{"1":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"statements":{"patterns":[{"include":"#attributes"},{"include":"#variable-definition"},{"include":"#padding-definition"},{"include":"#comment"},{"include":"#line-comment"},{"include":"#literal"},{"include":"#if-statement"},{"include":"#else-statement"},{"include":"#for-statement"},{"include":"#while-statement"},{"include":"#match-statement"},{"include":"#try-catch-statement"},{"include":"#operators"},{"include":"#identifier"},{"include":"#scope"},{"name":"punctuation.terminator.semicolon.pl","match":"\\;"}]},"string-literal":{"name":"string.quoted.double.pl","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.pl","match":"\\\\."}]},"struct-definition":{"contentName":"meta.struct.pl","begin":"(struct|union|bitfield)\\s+([a-zA-Z0-9_]+)(\\s*\u003c([^\\\u003e]*)\u003e)?\\s*((\\:)\\s*([a-zA-Z0-9_]+))?\\s*(\\{)","end":"(\\})\\s*","patterns":[{"include":"#statements"}],"beginCaptures":{"1":{"name":"keyword.control.struct.pl"},"2":{"name":"entity.name.type.struct.pl"},"4":{"patterns":[{"include":"#type-usage"},{"include":"#variable-definition"}]},"7":{"name":"entity.name.type.base.pl"},"8":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"toplevel-statements":{"patterns":[{"include":"#namespace-definition"},{"include":"#import-statement"},{"include":"#preprocessor-directive"},{"include":"#using-declaration"},{"include":"#struct-definition"},{"include":"#enum-definition"},{"include":"#function-definition"},{"include":"#statements"}]},"try-catch-statement":{"name":"keyword.control.try-catch.pl","match":"\\b((try)|(catch))\\b","captures":{"2":{"name":"keyword.control.try.pl"},"3":{"name":"keyword.control.catch.pl"}}},"type-usage":{"match":"\\b(const|ref|be|le\\s+)?((u|s)(8|16|24|32|48|64|96|128)|(float|double|str|auto|bool|char|char16|unsigned|signed)|([A-Za-z_][A-Za-z0-9_]*))\\b","captures":{"1":{"name":"keyword.other.ref.pl"},"2":{"name":"storage.type.builtin.pl"},"5":{"name":"storage.type.builtin.pl"}}},"using-declaration":{"match":"\\b(using)\\s+([a-zA-Z0-9_]+)\\s*((=)\\s*([a-zA-Z0-9_]+))?","captures":{"1":{"name":"keyword.control.using.pl"},"2":{"name":"variable.other.using.pl"},"5":{"patterns":[{"include":"#type-usage"}]}}},"variable-definition":{"match":"\\s*(ref\\s+)?((?!else)\\b[a-zA-Z_][a-zA-Z0-9_]*)\\s+([a-zA-Z_][a-zA-Z0-9_]*)(\\s+(in|out))?","captures":{"1":{"patterns":[{"include":"#type-usage"}]},"2":{"patterns":[{"include":"#type-usage"}]},"3":{"name":"variable.other.definition.pl"},"5":{"name":"keyword.other.inout.pl"}}},"while-statement":{"name":"meta.while.pl","begin":"\\b(while)\\s*(\\()","end":"(\\))","patterns":[{"include":"#type-usage"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.while.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}}}}
|
data/grammars/source.pnlgrp.json
CHANGED
|
@@ -1 +1 @@
|
|
|
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","begin":"(?i)(?\u003c=(:(MENUI)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.menui","match":"(?i)\\b(:(MENUI)[ ])"},{"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.mi","begin":"(?i)(?\u003c=(:(MI)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.mi","match":"(?i)\\b(:(MI)[ ])"},{"name":"support.function.pnlgrp.mi.attribute.name","match":"(?i)\\b(HELP|OPTION|ACTION|NAME|COND|AVAIL|AVLMSGID|AVLMSGF|MARKER|ITEM)[=]"},{"name":"support.variable.pnlgrp.mi.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).?)"}]}}}
|
|
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)\\b([A-Z]{3}[0-9A-F]{4})\\b"},{"name":"support.variable.pnlgrp.check.attribute.value","begin":"'","end":"'","patterns":[{"name":"keyword.operator.pnlgrp.check","match":"(?i)(\\*EQ|\\*NE|\\*GT|\\*LT|\\*GE|\\*LE|¬=|\u003e=|\u003c=|=|\u003e|\u003c)"},{"name":"string.quoted.double.pnlgrp","match":"\"[^\"]*\""}]}]},{"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","begin":"'","end":"'","patterns":[{"name":"keyword.control.pnlgrp.link.action","match":"(?i)\\b(DSPHELP)\\b"},{"name":"support.function.pnlgrp.link.builtin","match":"(?i)\\b(CHKOBJ|CHKPGM|CHKUSRCLS)\\b"},{"name":"keyword.operator.pnlgrp.link","match":"(?i)(\\*AND|\\*OR|\\*NOT|\u0026|\\||¬)"},{"name":"string.quoted.double.pnlgrp","match":"\"[^\"]*\""}]}]},{"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","begin":"(?i)(?\u003c=(:(MENUI)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.menui","match":"(?i)\\b(:(MENUI)[ ])"},{"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.mi","begin":"(?i)(?\u003c=(:(MI)[ ]))","end":"\\.","patterns":[{"name":"support.function.pnlgrp.mi","match":"(?i)\\b(:(MI)[ ])"},{"name":"support.function.pnlgrp.mi.attribute.name","match":"(?i)\\b(HELP|OPTION|ACTION|NAME|COND|AVAIL|AVLMSGID|AVLMSGF|MARKER|ITEM)[=]"},{"name":"support.variable.pnlgrp.mi.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).?)"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"powerquery","scopeName":"source.powerquery","patterns":[{"include":"#Noise"},{"include":"#LiteralExpression"},{"include":"#Keywords"},{"include":"#ImplicitVariable"},{"include":"#IntrinsicVariable"},{"include":"#Operators"},{"include":"#DotOperators"},{"include":"#TypeName"},{"include":"#RecordExpression"},{"include":"#Punctuation"},{"include":"#QuotedIdentifier"},{"include":"#Identifier"}],"repository":{"BlockComment":{"name":"comment.block.powerquery","begin":"/\\*","end":"\\*/"},"DecimalNumber":{"name":"constant.numeric.decimal.powerquery","match":"(?\u003c![\\d\\w])(\\d*\\.\\d+)\\b"},"DotOperators":{"match":"(?\u003c!\\.)(?:(\\.\\.\\.)|(\\.\\.))(?!\\.)","captures":{"1":{"name":"keyword.operator.ellipsis.powerquery"},"2":{"name":"keyword.operator.list.powerquery"}}},"EscapeSequence":{"name":"constant.character.escapesequence.powerquery","begin":"#\\(","end":"\\)","patterns":[{"match":"(#|[[:xdigit:]]{4}|[[:xdigit:]]{8}|cr|lf|tab)(?:,(#|[[:xdigit:]]{4}|[[:xdigit:]]{8}|cr|lf|tab))*"},{"name":"invalid.illegal.escapesequence.powerquery","match":"[^\\)]"}],"beginCaptures":{"0":{"name":"punctuation.definition.escapesequence.begin.powerquery"}},"endCaptures":{"0":{"name":"punctuation.definition.escapesequence.end.powerquery"}}},"FloatNumber":{"name":"constant.numeric.float.powerquery","match":"(\\d*\\.)?\\d+(e|E)(\\+|-)?\\d+"},"HexNumber":{"name":"constant.numeric.integer.hexadecimal.powerquery","match":"0(x|X)[[:xdigit:]]+"},"Identifier":{"match":"(?x:(?\u003c![\\._\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Nd}\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}])(@?)([_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}][_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Nd}\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}]*(?:\\.[_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}][_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Nd}\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}])*)\\b)","captures":{"1":{"name":"keyword.operator.inclusiveidentifier.powerquery"},"2":{"name":"entity.name.powerquery"}}},"ImplicitVariable":{"name":"keyword.operator.implicitvariable.powerquery","match":"\\b_\\b"},"InclusiveIdentifier":{"match":"@","captures":{"0":{"name":"inclusiveidentifier.powerquery"}}},"IntNumber":{"match":"\\b(\\d+)\\b","captures":{"1":{"name":"constant.numeric.integer.powerquery"}}},"IntrinsicVariable":{"match":"(?\u003c![\\d\\w])(#sections|#shared)\\b","captures":{"1":{"name":"constant.language.intrinsicvariable.powerquery"}}},"Keywords":{"match":"\\b(?:(and|or|not)|(if|then|else)|(try|otherwise)|(as|each|in|is|let|meta|type|error)|(section|shared))\\b","captures":{"1":{"name":"keyword.operator.word.logical.powerquery"},"2":{"name":"keyword.control.conditional.powerquery"},"3":{"name":"keyword.control.exception.powerquery"},"4":{"name":"keyword.other.powerquery"},"5":{"name":"keyword.powerquery"}}},"LineComment":{"name":"comment.line.double-slash.powerquery","match":"//.*"},"LiteralExpression":{"patterns":[{"include":"#String"},{"include":"#NumericConstant"},{"include":"#LogicalConstant"},{"include":"#NullConstant"},{"include":"#FloatNumber"},{"include":"#DecimalNumber"},{"include":"#HexNumber"},{"include":"#IntNumber"}]},"LogicalConstant":{"name":"constant.language.logical.powerquery","match":"\\b(true|false)\\b"},"Noise":{"patterns":[{"include":"#BlockComment"},{"include":"#LineComment"},{"include":"#Whitespace"}]},"NullConstant":{"name":"constant.language.null.powerquery","match":"\\b(null)\\b"},"NumericConstant":{"match":"(?\u003c![\\d\\w])(#infinity|#nan)\\b","captures":{"1":{"name":"constant.language.numeric.float.powerquery"}}},"Operators":{"match":"(=\u003e)|(=)|(\u003c\u003e|\u003c|\u003e|\u003c=|\u003e=)|(\u0026)|(\\+|-|\\*|\\/)|(!)|(\\?)","captures":{"1":{"name":"keyword.operator.function.powerquery"},"2":{"name":"keyword.operator.assignment-or-comparison.powerquery"},"3":{"name":"keyword.operator.comparison.powerquery"},"4":{"name":"keyword.operator.combination.powerquery"},"5":{"name":"keyword.operator.arithmetic.powerquery"},"6":{"name":"keyword.operator.sectionaccess.powerquery"},"7":{"name":"keyword.operator.optional.powerquery"}}},"Punctuation":{"match":"(,)|(\\()|(\\))|({)|(})","captures":{"1":{"name":"punctuation.separator.powerquery"},"2":{"name":"punctuation.section.parens.begin.powerquery"},"3":{"name":"punctuation.section.parens.end.powerquery"},"4":{"name":"punctuation.section.braces.begin.powerquery"},"5":{"name":"punctuation.section.braces.end.powerquery"}}},"QuotedIdentifier":{"name":"entity.name.powerquery","begin":"#\"","end":"\"(?!\")","patterns":[{"name":"constant.character.escape.quote.powerquery","match":"\"\""},{"include":"#EscapeSequence"}],"beginCaptures":{"0":{"name":"punctuation.definition.quotedidentifier.begin.powerquery"}},"endCaptures":{"0":{"name":"punctuation.definition.quotedidentifier.end.powerquery"}}},"RecordExpression":{"contentName":"meta.recordexpression.powerquery","begin":"\\[","end":"\\]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.powerquery"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.powerquery"}}},"String":{"name":"string.quoted.double.powerquery","begin":"\"","end":"\"(?!\")","patterns":[{"name":"constant.character.escape.quote.powerquery","match":"\"\""},{"include":"#EscapeSequence"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powerquery"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powerquery"}}},"TypeName":{"match":"\\b(?:(optional|nullable)|(action|any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|null|number|record|table|text|type))\\b","captures":{"1":{"name":"storage.modifier.powerquery"},"2":{"name":"storage.type.powerquery"}}},"Whitespace":{"match":"\\s+"}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"PowerShell","scopeName":"source.powershell","patterns":[{"name":"comment.block.powershell","begin":"\u003c#","end":"#\u003e","patterns":[{"include":"#commentEmbeddedDocs"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.powershell"}}},{"name":"keyword.operator.redirection.powershell","match":"[2-6]\u003e\u00261|\u003e\u003e|\u003e|\u003c\u003c|\u003c|\u003e|\u003e\\||[1-6]\u003e|[1-6]\u003e\u003e"},{"include":"#commands"},{"include":"#commentLine"},{"include":"#variable"},{"include":"#subexpression"},{"include":"#function"},{"include":"#attribute"},{"include":"#UsingDirective"},{"include":"#type"},{"include":"#hashtable"},{"include":"#doubleQuotedString"},{"include":"#scriptblock"},{"include":"#doubleQuotedStringEscapes"},{"name":"string.quoted.single.powershell","begin":"['\\x{2018}-\\x{201B}]","end":"['\\x{2018}-\\x{201B}]","patterns":[{"name":"constant.character.escape.powershell","match":"['\\x{2018}-\\x{201B}]{2}"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"applyEndPatternLast":true},{"name":"string.quoted.double.heredoc.powershell","begin":"(@[\"\\x{201C}-\\x{201E}])\\s*$","end":"^[\"\\x{201C}-\\x{201E}]@","patterns":[{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"include":"#interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}}},{"name":"string.quoted.single.heredoc.powershell","begin":"(@['\\x{2018}-\\x{201B}])\\s*$","end":"^['\\x{2018}-\\x{201B}]@","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}}},{"include":"#numericConstant"},{"name":"meta.group.array-expression.powershell","begin":"(@)(\\()","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.array.begin.powershell"},"2":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}},{"name":"meta.group.complex.subexpression.powershell","begin":"((\\$))(\\()","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.subexpression.powershell"},"3":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}},{"name":"support.function.powershell","match":"(\\b(([A-Za-z0-9\\-_\\.]+)\\.(?i:exe|com|cmd|bat))\\b)"},{"name":"keyword.control.powershell","match":"(?\u003c!\\w|-|\\.)((?i:begin|break|catch|clean|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\\?)(?!\\w)"},{"name":"keyword.control.powershell","match":"(?\u003c!\\w|-|[^\\)]\\.)((?i:(foreach|where)(?!-object))|%|\\?)(?!\\w)"},{"begin":"(?\u003c!\\w)(--%)(?!\\w)","end":"$","patterns":[{"name":"string.unquoted.powershell","match":".+"}],"beginCaptures":{"1":{"name":"keyword.control.powershell"}}},{"name":"storage.modifier.powershell","match":"(?\u003c!\\w)((?i:hidden|static))(?!\\w)"},{"match":"(?\u003c!\\w|-)((?i:class)|%|\\?)(?:\\s)+((?:\\p{L}|\\d|_|-|)+)\\b","captures":{"1":{"name":"storage.type.powershell"},"2":{"name":"entity.name.function"}}},{"name":"keyword.operator.comparison.powershell","match":"(?\u003c!\\w)-(?i:is(?:not)?|as)\\b"},{"name":"keyword.operator.comparison.powershell","match":"(?\u003c!\\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))(?!\\p{L})"},{"name":"keyword.operator.unary.powershell","match":"(?\u003c!\\w)-(?i:join|split)(?!\\p{L})|!"},{"name":"keyword.operator.logical.powershell","match":"(?\u003c!\\w)-(?i:and|or|not|xor)(?!\\p{L})|!"},{"name":"keyword.operator.bitwise.powershell","match":"(?\u003c!\\w)-(?i:band|bor|bnot|bxor|shl|shr)(?!\\p{L})"},{"name":"keyword.operator.string-format.powershell","match":"(?\u003c!\\w)-(?i:f)(?!\\p{L})"},{"name":"keyword.operator.assignment.powershell","match":"[+%*/-]?=|[+/*%-]"},{"name":"punctuation.terminator.statement.powershell","match":"\\|{2}|\u0026{2}|;"},{"name":"keyword.operator.other.powershell","match":"\u0026|(?\u003c!\\w)\\.(?= )|`|,|\\|"},{"name":"keyword.operator.range.powershell","match":"(?\u003c!\\s|^)\\.\\.(?=\\-?\\d|\\(|\\$)"}],"repository":{"RequiresDirective":{"name":"meta.requires.powershell","begin":"(?\u003c=#)(?i:(requires))\\s","end":"$","patterns":[{"name":"keyword.other.powershell","match":"\\-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version|Assembly|PSEdition)"},{"name":"variable.parameter.powershell","match":"(?\u003c!-)\\b\\p{L}+|\\d+(?:\\.\\d+)*"},{"include":"#hashtable"}],"beginCaptures":{"0":{"name":"keyword.control.requires.powershell"}}},"UsingDirective":{"match":"(?\u003c!\\w)(?i:(using))\\s+(?i:(namespace|module))\\s+(?i:((?:\\w+(?:\\.)?)+))","captures":{"1":{"name":"keyword.control.using.powershell"},"2":{"name":"keyword.other.powershell"},"3":{"name":"variable.parameter.powershell"}}},"attribute":{"name":"meta.attribute.powershell","begin":"(\\[)\\s*\\b(?i)(cmdletbinding|alias|outputtype|parameter|validatenotnull|validatenotnullorempty|validatecount|validateset|allownull|allowemptycollection|allowemptystring|validatescript|validaterange|validatepattern|validatelength|supportswildcards)\\b","end":"(\\])","patterns":[{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"},{"match":"(?i)\\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\\b(?:\\s+)?(=)?","captures":{"1":{"name":"variable.parameter.attribute.powershell"},"2":{"name":"keyword.operator.assignment.powershell"}}}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}}],"beginCaptures":{"1":{"name":"punctuation.section.bracket.begin.powershell"},"2":{"name":"support.function.attribute.powershell"}},"endCaptures":{"1":{"name":"punctuation.section.bracket.end.powershell"}}},"commands":{"patterns":[{"name":"support.function.powershell","match":"(?:(\\p{L}|\\d|_|-|\\\\|\\:)*\\\\)?\\b(?i:Add|Approve|Assert|Backup|Block|Build|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Deploy|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Mount|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Write)\\-.+?(?:\\.(?i:exe|cmd|bat|ps1))?\\b"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:foreach-object)(?!\\w)"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:where-object)(?!\\w)"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:sort-object)(?!\\w)"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:tee-object)(?!\\w)"}]},"commentEmbeddedDocs":{"patterns":[{"name":"comment.documentation.embedded.powershell","match":"(?:^|\\G)(?i:\\s*(\\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\\s*$","captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"}}},{"name":"comment.documentation.embedded.powershell","match":"(?:^|\\G)(?i:\\s*(\\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE))\\s+(.+?)\\s*$","captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"},"3":{"name":"keyword.operator.documentation.powershell"}}}]},"commentLine":{"name":"comment.line.powershell","begin":"(?\u003c![`\\\\-])(#)#*","end":"$\\n?","patterns":[{"include":"#commentEmbeddedDocs"},{"include":"#RequiresDirective"}],"captures":{"1":{"name":"punctuation.definition.comment.powershell"}}},"doubleQuotedString":{"name":"string.quoted.double.powershell","begin":"[\"\\x{201C}-\\x{201E}]","end":"[\"\\x{201C}-\\x{201E}]","patterns":[{"match":"(?i)\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,64}\\b"},{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"name":"constant.character.escape.powershell","match":"[\"\\x{201C}-\\x{201E}]{2}"},{"include":"#interpolation"},{"name":"keyword.other.powershell","match":"`\\s*$"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"applyEndPatternLast":true},"doubleQuotedStringEscapes":{"patterns":[{"name":"constant.character.escape.powershell","match":"`[`0abefnrtv'\"\\x{2018}-\\x{201E}$]"},{"include":"#unicodeEscape"}]},"function":{"begin":"^(?:\\s*+)(?i)(function|filter|configuration|workflow)\\s+(?:(global|local|script|private):)?((?:\\p{L}|\\d|_|-|\\.)+)","end":"(?=\\{|\\()","patterns":[{"include":"#commentLine"}],"beginCaptures":{"0":{"name":"meta.function.powershell"},"1":{"name":"storage.type.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"3":{"name":"entity.name.function.powershell"}}},"hashtable":{"name":"meta.hashtable.powershell","begin":"(@)(\\{)","end":"(\\})","patterns":[{"name":"meta.hashtable.assignment.powershell","match":"\\b((?:\\'|\\\")?)(\\w+)((?:\\'|\\\")?)(?:\\s+)?(=)(?:\\s+)?","captures":{"1":{"name":"punctuation.definition.string.begin.powershell"},"2":{"name":"variable.other.readwrite.powershell"},"3":{"name":"punctuation.definition.string.end.powershell"},"4":{"name":"keyword.operator.assignment.powershell"}}},{"include":"#scriptblock"},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.hashtable.begin.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"}},"endCaptures":{"1":{"name":"punctuation.section.braces.end.powershell"}}},"interpolation":{"name":"meta.embedded.substatement.powershell","contentName":"interpolated.complex.source.powershell","begin":"(((\\$)))((\\())","end":"(\\))","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.substatement.powershell"},"3":{"name":"punctuation.section.embedded.substatement.begin.powershell"},"4":{"name":"punctuation.section.group.begin.powershell"},"5":{"name":"punctuation.section.embedded.substatement.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"},"1":{"name":"punctuation.section.embedded.substatement.end.powershell"}}},"numericConstant":{"patterns":[{"match":"(?\u003c!\\w)([-+]?0(?:x|X)[0-9a-fA-F_]+(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.hex.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?(?:[0-9_]+)?\\.[0-9_]+(?:(?:e|E)[0-9]+)?(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?0(?:b|B)[01_]+(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.octal.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+(?:e|E)(?:[0-9_])?+(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+\\.(?:e|E)(?:[0-9_])?+(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+[\\.]?(?:F|f|D|d|M|m))((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+[\\.]?(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}}]},"scriptblock":{"name":"meta.scriptblock.powershell","begin":"\\{","end":"\\}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.braces.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.braces.end.powershell"}}},"subexpression":{"name":"meta.group.simple.subexpression.powershell","begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}},"type":{"begin":"\\[","end":"\\]","patterns":[{"name":"storage.type.powershell","match":"(?!\\d+|\\.)(?:\\p{L}|\\p{N}|\\.)+"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.bracket.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.bracket.end.powershell"}}},"unicodeEscape":{"patterns":[{"name":"constant.character.escape.powershell","match":"`u\\{(?:(?:10)?([0-9a-fA-F]){1,4}|0?\\g\u003c1\u003e{1,5})}"},{"name":"invalid.character.escape.powershell","match":"`u(?:\\{[0-9a-fA-F]{,6}.)?"}]},"variable":{"patterns":[{"match":"(\\$)(?i:(False|Null|True))\\b","captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}}},{"match":"(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b","captures":{"0":{"name":"support.constant.variable.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)((?:[$^?])|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\b)((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b","captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$|@)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"storage.modifier.scope.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$|@)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}}}]},"variableNoProperty":{"patterns":[{"match":"(\\$)(?i:(False|Null|True))\\b","captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}}},{"match":"(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\\b","captures":{"0":{"name":"support.constant.variable.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)((?:[$^?])|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\b)","captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))\\b","captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"keyword.other.powershell"},"5":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end"}}}]}}}
|
|
1
|
+
{"name":"PowerShell","scopeName":"source.powershell","patterns":[{"name":"comment.block.powershell","begin":"\u003c#","end":"#\u003e","patterns":[{"include":"#commentEmbeddedDocs"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.powershell"}}},{"name":"keyword.operator.redirection.powershell","match":"[2-6]\u003e\u00261|\u003e\u003e|\u003e|\u003c\u003c|\u003c|\u003e|\u003e\\||[1-6]\u003e|[1-6]\u003e\u003e"},{"include":"#commands"},{"include":"#commentLine"},{"include":"#variable"},{"include":"#subexpression"},{"include":"#function"},{"include":"#attribute"},{"include":"#UsingDirective"},{"include":"#type"},{"include":"#hashtable"},{"include":"#doubleQuotedString"},{"include":"#scriptblock"},{"include":"#doubleQuotedStringEscapes"},{"name":"string.quoted.single.powershell","begin":"['\\x{2018}-\\x{201B}]","end":"['\\x{2018}-\\x{201B}]","patterns":[{"name":"constant.character.escape.powershell","match":"['\\x{2018}-\\x{201B}]{2}"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"applyEndPatternLast":true},{"name":"string.quoted.double.heredoc.powershell","begin":"(@[\"\\x{201C}-\\x{201E}])\\s*$","end":"^[\"\\x{201C}-\\x{201E}]@","patterns":[{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"include":"#interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}}},{"name":"string.quoted.single.heredoc.powershell","begin":"(@['\\x{2018}-\\x{201B}])\\s*$","end":"^['\\x{2018}-\\x{201B}]@","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}}},{"include":"#numericConstant"},{"name":"meta.group.array-expression.powershell","begin":"(@)(\\()","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.array.begin.powershell"},"2":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}},{"name":"meta.group.complex.subexpression.powershell","begin":"((\\$))(\\()","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.subexpression.powershell"},"3":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}},{"name":"support.function.powershell","match":"(\\b(([A-Za-z0-9\\-_\\.]+)\\.(?i:exe|com|cmd|bat))\\b)"},{"name":"keyword.control.powershell","match":"(?\u003c!\\w|-|\\.)((?i:begin|break|catch|clean|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|%|\\?)(?!\\w)"},{"name":"keyword.control.powershell","match":"(?\u003c!\\w|-|[^\\)]\\.)((?i:(foreach|where)(?!-object))|%|\\?)(?!\\w)"},{"begin":"(?\u003c!\\w)(--%)(?!\\w)","end":"$","patterns":[{"name":"string.unquoted.powershell","match":".+"}],"beginCaptures":{"1":{"name":"keyword.control.powershell"}}},{"name":"storage.modifier.powershell","match":"(?\u003c!\\w)((?i:hidden|static))(?!\\w)"},{"match":"(?\u003c!\\w|-)((?i:class)|%|\\?)(?:\\s)+((?:\\p{L}|\\d|_|-|)+)\\b","captures":{"1":{"name":"storage.type.powershell"},"2":{"name":"entity.name.function"}}},{"name":"keyword.operator.comparison.powershell","match":"(?\u003c!\\w)-(?i:is(?:not)?|as)\\b"},{"name":"keyword.operator.comparison.powershell","match":"(?\u003c!\\w)-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains|in)|replace))(?!\\p{L})"},{"name":"keyword.operator.unary.powershell","match":"(?\u003c!\\w)-(?i:join|split)(?!\\p{L})|!"},{"name":"keyword.operator.logical.powershell","match":"(?\u003c!\\w)-(?i:and|or|not|xor)(?!\\p{L})|!"},{"name":"keyword.operator.bitwise.powershell","match":"(?\u003c!\\w)-(?i:band|bor|bnot|bxor|shl|shr)(?!\\p{L})"},{"name":"keyword.operator.string-format.powershell","match":"(?\u003c!\\w)-(?i:f)(?!\\p{L})"},{"name":"keyword.operator.assignment.powershell","match":"[+%*/-]?=|[+/*%-]"},{"name":"punctuation.terminator.statement.powershell","match":"\\|{2}|\u0026{2}|;"},{"name":"keyword.operator.other.powershell","match":"\u0026|(?\u003c!\\w)\\.(?= )|`|,|\\|"},{"name":"keyword.operator.range.powershell","match":"(?\u003c!\\s|^)\\.\\.(?=\\-?\\d|\\(|\\$)"}],"repository":{"RequiresDirective":{"name":"meta.requires.powershell","begin":"(?\u003c=#)(?i:(requires))\\s","end":"$","patterns":[{"name":"keyword.other.powershell","match":"\\-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version|Assembly|PSEdition)"},{"name":"variable.parameter.powershell","match":"(?\u003c!-)\\b\\p{L}+|\\d+(?:\\.\\d+)*"},{"include":"#hashtable"}],"beginCaptures":{"0":{"name":"keyword.control.requires.powershell"}}},"UsingDirective":{"match":"(?\u003c!\\w)(?i:(using))\\s+(?i:(namespace|module))\\s+(?i:((?:\\w+(?:\\.)?)+))","captures":{"1":{"name":"keyword.control.using.powershell"},"2":{"name":"keyword.other.powershell"},"3":{"name":"variable.parameter.powershell"}}},"attribute":{"name":"meta.attribute.powershell","begin":"(\\[)\\s*\\b(?i)(cmdletbinding|alias|outputtype|parameter|validatenotnull|validatenotnullorempty|validatecount|validateset|allownull|allowemptycollection|allowemptystring|validatescript|validaterange|validatepattern|validatelength|supportswildcards)\\b","end":"(\\])","patterns":[{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"},{"match":"(?i)\\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\\b(?:\\s+)?(=)?","captures":{"1":{"name":"variable.parameter.attribute.powershell"},"2":{"name":"keyword.operator.assignment.powershell"}}}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}}],"beginCaptures":{"1":{"name":"punctuation.section.bracket.begin.powershell"},"2":{"name":"support.function.attribute.powershell"}},"endCaptures":{"1":{"name":"punctuation.section.bracket.end.powershell"}}},"commands":{"patterns":[{"name":"support.function.powershell","match":"(?:(\\p{L}|\\d|_|-|\\\\|\\:)*\\\\)?\\b(?i:Add|Approve|Assert|Backup|Block|Build|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Deploy|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Mount|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Write)\\-.+?(?:\\.(?i:exe|cmd|bat|ps1))?\\b"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:foreach-object)(?!\\w)"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:where-object)(?!\\w)"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:sort-object)(?!\\w)"},{"name":"support.function.powershell","match":"(?\u003c!\\w)(?i:tee-object)(?!\\w)"}]},"commentEmbeddedDocs":{"patterns":[{"name":"comment.documentation.embedded.powershell","match":"(?:^|\\G)(?i:\\s*(\\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\\s*$","captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"}}},{"name":"comment.documentation.embedded.powershell","match":"(?:^|\\G)(?i:\\s*(\\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE))\\s+(.+?)\\s*$","captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"},"3":{"name":"keyword.operator.documentation.powershell"}}}]},"commentLine":{"name":"comment.line.powershell","begin":"(?\u003c![`\\\\-])(#)#*","end":"$\\n?","patterns":[{"include":"#commentEmbeddedDocs"},{"include":"#RequiresDirective"}],"captures":{"1":{"name":"punctuation.definition.comment.powershell"}}},"doubleQuotedString":{"name":"string.quoted.double.powershell","begin":"[\"\\x{201C}-\\x{201E}]","end":"[\"\\x{201C}-\\x{201E}]","patterns":[{"match":"(?i)\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,64}\\b"},{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"name":"constant.character.escape.powershell","match":"[\"\\x{201C}-\\x{201E}]{2}"},{"include":"#interpolation"},{"name":"keyword.other.powershell","match":"`\\s*$"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"applyEndPatternLast":true},"doubleQuotedStringEscapes":{"patterns":[{"name":"constant.character.escape.powershell","match":"`[`0abefnrtv'\"\\x{2018}-\\x{201E}$]"},{"include":"#unicodeEscape"}]},"function":{"begin":"^(?:\\s*+)(?i)(function|filter|configuration|workflow)\\s+(?:(global|local|script|private):)?((?:\\p{L}|\\d|_|-|\\.)+)","end":"(?=\\{|\\()","patterns":[{"include":"#commentLine"}],"beginCaptures":{"0":{"name":"meta.function.powershell"},"1":{"name":"storage.type.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"3":{"name":"entity.name.function.powershell"}}},"hashtable":{"name":"meta.hashtable.powershell","begin":"(@)(\\{)","end":"(\\})","patterns":[{"name":"meta.hashtable.assignment.powershell","match":"\\b((?:\\'|\\\")?)(\\w+)((?:\\'|\\\")?)(?:\\s+)?(=)(?:\\s+)?","captures":{"1":{"name":"punctuation.definition.string.begin.powershell"},"2":{"name":"variable.other.readwrite.powershell"},"3":{"name":"punctuation.definition.string.end.powershell"},"4":{"name":"keyword.operator.assignment.powershell"}}},{"include":"#scriptblock"},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.hashtable.begin.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"}},"endCaptures":{"1":{"name":"punctuation.section.braces.end.powershell"}}},"interpolation":{"name":"meta.embedded.substatement.powershell","contentName":"interpolated.complex.source.powershell","begin":"(((\\$)))((\\())","end":"(\\))","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.substatement.powershell"},"3":{"name":"punctuation.section.embedded.substatement.begin.powershell"},"4":{"name":"punctuation.section.group.begin.powershell"},"5":{"name":"punctuation.section.embedded.substatement.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"},"1":{"name":"punctuation.section.embedded.substatement.end.powershell"}}},"numericConstant":{"patterns":[{"match":"(?\u003c!\\w)([-+]?0(?:x|X)[0-9a-fA-F_]+(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.hex.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?(?:[0-9_]+)?\\.[0-9_]+(?:(?:e|E)[0-9]+)?(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?0(?:b|B)[01_]+(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.octal.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+(?:e|E)(?:[0-9_])?+(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+\\.(?:e|E)(?:[0-9_])?+(?:F|f|D|d|M|m)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+[\\.]?(?:F|f|D|d|M|m))((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}},{"match":"(?\u003c!\\w)([-+]?[0-9_]+[\\.]?(?:U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[kmgtp]b)?)\\b","captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}}}]},"scriptblock":{"name":"meta.scriptblock.powershell","begin":"\\{","end":"\\}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.braces.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.braces.end.powershell"}}},"subexpression":{"name":"meta.group.simple.subexpression.powershell","begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}}},"type":{"begin":"\\[","end":"\\]","patterns":[{"name":"storage.type.powershell","match":"(?!\\d+|\\.)(?:\\p{L}|\\p{N}|\\.)+"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.bracket.begin.powershell"}},"endCaptures":{"0":{"name":"punctuation.section.bracket.end.powershell"}}},"unicodeEscape":{"patterns":[{"name":"constant.character.escape.powershell","match":"`u\\{(?:(?:10)?([0-9a-fA-F]){1,4}|0?\\g\u003c1\u003e{1,5})}"},{"name":"invalid.character.escape.powershell","match":"`u(?:\\{[0-9a-fA-F]{,6}.)?"}]},"variable":{"patterns":[{"match":"(\\$)(?i:(False|Null|True))\\b","captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}}},{"match":"(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b","captures":{"0":{"name":"variable.other.constant.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)((?:[$^?])|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\b)((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?\\b","captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$|@)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"storage.modifier.scope.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$|@)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))((?:\\.(?:\\p{L}|\\d|_)+)*\\b)?","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}}}]},"variableNoProperty":{"patterns":[{"match":"(\\$)(?i:(False|Null|True))\\b","captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}}},{"match":"(\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\\b","captures":{"0":{"name":"variable.other.constant.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)((?:[$^?])|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\b)","captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))\\b","captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(global|local|private|script|using|workflow):((?:\\p{L}|\\d|_)+))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)(global|local|private|script|using|workflow):([^}]*[^}`])(\\}))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"keyword.other.powershell"},"5":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)((?:\\p{L}|\\d|_)+:)?((?:\\p{L}|\\d|_)+))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}}},{"match":"(?i:(\\$)(\\{)((?:\\p{L}|\\d|_)+:)?([^}]*[^}`])(\\}))","captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end"}}}]}}}
|
data/grammars/source.prisma.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Prisma","scopeName":"source.prisma","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#model_block_definition"},{"include":"#config_block_definition"},{"include":"#enum_block_definition"},{"include":"#type_definition"}],"repository":{"array":{"name":"source.prisma.array","begin":"\\[","end":"\\]","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"assignment":{"patterns":[{"begin":"^\\s*(\\w+)\\s*(=)\\s*","end":"\\n","patterns":[{"include":"#value"},{"include":"#double_comment_inline"}],"beginCaptures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"keyword.operator.terraform"}}}]},"attribute":{"name":"source.prisma.attribute","match":"(@@?[\\w\\.]+)","captures":{"1":{"name":"entity.name.function.attribute.prisma"}}},"attribute_with_arguments":{"name":"source.prisma.attribute.with_arguments","begin":"(@@?[\\w\\.]+)(\\()","end":"\\)","patterns":[{"include":"#named_argument"},{"include":"#value"}],"beginCaptures":{"1":{"name":"entity.name.function.attribute.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"boolean":{"name":"constant.language.boolean.prisma","match":"\\b(true|false)\\b"},"config_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(generator|datasource)\\s+([A-Za-z][\\w]*)\\s+({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#assignment"}],"beginCaptures":{"1":{"name":"storage.type.config.prisma"},"2":{"name":"entity.name.type.config.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"double_comment":{"name":"comment.prisma","begin":"//","end":"$\\n?"},"double_comment_inline":{"name":"comment.prisma","match":"//[^\\n]*"},"double_quoted_string":{"name":"unnamed","begin":"\"","end":"\"","patterns":[{"include":"#string_interpolation"},{"name":"string.quoted.double.prisma","match":"([\\w\\-\\/\\._\\\\%@:\\?=]+)"}],"beginCaptures":{"0":{"name":"string.quoted.double.start.prisma"}},"endCaptures":{"0":{"name":"string.quoted.double.end.prisma"}}},"enum_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(enum)\\s+([A-Za-z][\\w]*)\\s+({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#enum_value_definition"}],"beginCaptures":{"1":{"name":"storage.type.enum.prisma"},"2":{"name":"entity.name.type.enum.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"enum_value_definition":{"patterns":[{"match":"^\\s*(\\w+)\\s*","captures":{"1":{"name":"variable.other.assignment.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"field_definition":{"name":"scalar.field","patterns":[{"match":"^\\s*(\\w+)(\\s*:)?\\s+((?!(?:Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)\\b)\\b\\w+)?(Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)?(\\[\\])?(\\?)?(\\!)?","captures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"invalid.illegal.colon.prisma"},"3":{"name":"variable.language.relations.prisma"},"4":{"name":"support.type.primitive.prisma"},"5":{"name":"keyword.operator.list_type.prisma"},"6":{"name":"keyword.operator.optional_type.prisma"},"7":{"name":"invalid.illegal.required_type.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"functional":{"name":"source.prisma.functional","begin":"(\\w+)(\\()","end":"\\)","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"support.function.functional.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"identifier":{"patterns":[{"name":"support.constant.constant.prisma","match":"\\b(\\w)+\\b"}]},"literal":{"name":"source.prisma.literal","patterns":[{"include":"#boolean"},{"include":"#number"},{"include":"#double_quoted_string"},{"include":"#identifier"}]},"map_key":{"name":"source.prisma.key","patterns":[{"match":"(\\w+)\\s*(:)\\s*","captures":{"1":{"name":"variable.parameter.key.prisma"},"2":{"name":"punctuation.definition.separator.key-value.prisma"}}}]},"model_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(model|type|view)\\s+([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#field_definition"}],"beginCaptures":{"1":{"name":"storage.type.model.prisma"},"2":{"name":"entity.name.type.model.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"multi_line_comment":{"name":"comment.prisma","begin":"/\\*","end":"\\*/"},"named_argument":{"name":"source.prisma.named_argument","patterns":[{"include":"#map_key"},{"include":"#value"}]},"number":{"name":"constant.numeric.prisma","match":"((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"},"string_interpolation":{"patterns":[{"name":"source.tag.embedded.source.prisma","begin":"\\$\\{","end":"\\s*\\}","patterns":[{"include":"#value"}],"beginCaptures":{"0":{"name":"keyword.control.interpolation.start.prisma"}},"endCaptures":{"0":{"name":"keyword.control.interpolation.end.prisma"}}}]},"triple_comment":{"name":"comment.prisma","begin":"///","end":"$\\n?"},"type_definition":{"patterns":[{"match":"^\\s*(type)\\s+(\\w+)\\s*=\\s*(\\w+)","captures":{"1":{"name":"storage.type.type.prisma"},"2":{"name":"entity.name.type.type.prisma"},"3":{"name":"support.type.primitive.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"value":{"name":"source.prisma.value","patterns":[{"include":"#array"},{"include":"#functional"},{"include":"#literal"}]}}}
|
|
1
|
+
{"name":"Prisma","scopeName":"source.prisma","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#types_block_definition"},{"include":"#namespace_block_definition"},{"include":"#model_block_definition"},{"include":"#config_block_definition"},{"include":"#enum_block_definition"},{"include":"#type_definition"}],"repository":{"array":{"name":"source.prisma.array","begin":"\\[","end":"\\]","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"assignment":{"patterns":[{"begin":"^\\s*(\\w+)\\s*(=)\\s*","end":"\\n","patterns":[{"include":"#value"},{"include":"#double_comment_inline"}],"beginCaptures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"keyword.operator.terraform"}}}]},"attribute":{"name":"source.prisma.attribute","match":"(@@?[\\w\\.]+)","captures":{"1":{"name":"entity.name.function.attribute.prisma"}}},"attribute_with_arguments":{"name":"source.prisma.attribute.with_arguments","begin":"(@@?[\\w\\.]+)(\\()","end":"\\)","patterns":[{"include":"#named_argument"},{"include":"#value"}],"beginCaptures":{"1":{"name":"entity.name.function.attribute.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"boolean":{"name":"constant.language.boolean.prisma","match":"\\b(true|false)\\b"},"config_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(generator|datasource)\\s+([A-Za-z][\\w]*)\\s+({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#assignment"}],"beginCaptures":{"1":{"name":"storage.type.config.prisma"},"2":{"name":"entity.name.type.config.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"double_comment":{"name":"comment.prisma","begin":"//","end":"$\\n?"},"double_comment_inline":{"name":"comment.prisma","match":"//[^\\n]*"},"double_quoted_string":{"name":"unnamed","begin":"\"","end":"\"","patterns":[{"include":"#string_interpolation"},{"name":"string.quoted.double.prisma","match":"([\\w\\-\\/\\._\\\\%@:\\?=]+)"}],"beginCaptures":{"0":{"name":"string.quoted.double.start.prisma"}},"endCaptures":{"0":{"name":"string.quoted.double.end.prisma"}}},"enum_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(enum)\\s+([A-Za-z][\\w]*)\\s+({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#enum_value_definition"}],"beginCaptures":{"1":{"name":"storage.type.enum.prisma"},"2":{"name":"entity.name.type.enum.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"enum_value_definition":{"patterns":[{"match":"^\\s*(\\w+)\\s*","captures":{"1":{"name":"variable.other.assignment.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"field_definition":{"name":"scalar.field","patterns":[{"match":"^\\s*(\\w+)(\\s*:)?\\s+((?!(?:Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)\\b)\\b\\w+)?(Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)?(\\[\\])?(\\?)?(\\!)?","captures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"invalid.illegal.colon.prisma"},"3":{"name":"variable.language.relations.prisma"},"4":{"name":"support.type.primitive.prisma"},"5":{"name":"keyword.operator.list_type.prisma"},"6":{"name":"keyword.operator.optional_type.prisma"},"7":{"name":"invalid.illegal.required_type.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"functional":{"name":"source.prisma.functional","begin":"(\\w+)(\\()","end":"\\)","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"support.function.functional.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"identifier":{"patterns":[{"name":"support.constant.constant.prisma","match":"\\b(\\w)+\\b"}]},"literal":{"name":"source.prisma.literal","patterns":[{"include":"#boolean"},{"include":"#number"},{"include":"#double_quoted_string"},{"include":"#identifier"}]},"map_key":{"name":"source.prisma.key","patterns":[{"match":"(\\w+)\\s*(:)\\s*","captures":{"1":{"name":"variable.parameter.key.prisma"},"2":{"name":"punctuation.definition.separator.key-value.prisma"}}}]},"model_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(model|type|view)\\s+([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#field_definition"}],"beginCaptures":{"1":{"name":"storage.type.model.prisma"},"2":{"name":"entity.name.type.model.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"multi_line_comment":{"name":"comment.prisma","begin":"/\\*","end":"\\*/"},"named_argument":{"name":"source.prisma.named_argument","patterns":[{"include":"#map_key"},{"include":"#value"}]},"namespace_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(namespace)\\s+([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#model_block_definition"},{"include":"#enum_block_definition"},{"include":"#type_definition"}],"beginCaptures":{"1":{"name":"storage.type.namespace.prisma"},"2":{"name":"entity.name.type.namespace.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"number":{"name":"constant.numeric.prisma","match":"((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"},"string_interpolation":{"patterns":[{"name":"source.tag.embedded.source.prisma","begin":"\\$\\{","end":"\\s*\\}","patterns":[{"include":"#value"}],"beginCaptures":{"0":{"name":"keyword.control.interpolation.start.prisma"}},"endCaptures":{"0":{"name":"keyword.control.interpolation.end.prisma"}}}]},"triple_comment":{"name":"comment.prisma","begin":"///","end":"$\\n?"},"type_alias_definition":{"patterns":[{"match":"^\\s*(\\w+)\\s*(=)\\s*(\\w+)","captures":{"1":{"name":"entity.name.type.alias.prisma"},"2":{"name":"keyword.operator.assignment.prisma"},"3":{"name":"support.type.primitive.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"type_definition":{"patterns":[{"match":"^\\s*(type)\\s+(\\w+)\\s*=\\s*(\\w+)","captures":{"1":{"name":"storage.type.type.prisma"},"2":{"name":"entity.name.type.type.prisma"},"3":{"name":"support.type.primitive.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"types_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(types)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#type_alias_definition"}],"beginCaptures":{"1":{"name":"storage.type.types.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"value":{"name":"source.prisma.value","patterns":[{"include":"#array"},{"include":"#functional"},{"include":"#literal"}]}}}
|