github-linguist 7.25.0 → 7.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/ext/linguist/lex.linguist_yy.c +14 -17
  3. data/ext/linguist/lex.linguist_yy.h +2 -2
  4. data/ext/linguist/tokenizer.l +0 -1
  5. data/grammars/inline.graphql.scala.json +1 -0
  6. data/grammars/markdown.curry.codeblock.json +1 -1
  7. data/grammars/markdown.d2.codeblock.json +1 -0
  8. data/grammars/markdown.talon.codeblock.json +1 -0
  9. data/grammars/source.abap.json +1 -1
  10. data/grammars/source.abl.json +1 -1
  11. data/grammars/source.acucobol.json +1 -1
  12. data/grammars/source.aidl.json +1 -1
  13. data/grammars/source.apex.json +1 -0
  14. data/grammars/source.astro.json +1 -1
  15. data/grammars/source.ballerina.json +1 -1
  16. data/grammars/source.bicep.json +1 -1
  17. data/grammars/source.brs.json +1 -1
  18. data/grammars/source.bsl.json +1 -1
  19. data/grammars/source.cds.json +1 -1
  20. data/grammars/source.clar.json +1 -1
  21. data/grammars/source.cobol.json +1 -1
  22. data/grammars/source.cs.json +1 -1
  23. data/grammars/source.d2.json +1 -0
  24. data/grammars/source.dart.json +1 -1
  25. data/grammars/source.denizenscript.json +1 -1
  26. data/grammars/source.did.json +1 -0
  27. data/grammars/source.directivesmf.json +1 -0
  28. data/grammars/source.dm.json +1 -1
  29. data/grammars/source.earthfile.json +1 -1
  30. data/grammars/source.emacs.lisp.json +1 -1
  31. data/grammars/source.fsharp.json +1 -1
  32. data/grammars/source.gfm.blade.json +1 -1
  33. data/grammars/source.gleam.json +1 -1
  34. data/grammars/source.igor.json +1 -1
  35. data/grammars/source.julia.json +1 -1
  36. data/grammars/source.kotlin.json +1 -1
  37. data/grammars/source.lolcode.json +1 -0
  38. data/grammars/source.matlab.json +1 -1
  39. data/grammars/source.mdx.json +1 -0
  40. data/grammars/source.mo.json +1 -1
  41. data/grammars/source.move.json +1 -1
  42. data/grammars/source.nasal.json +1 -0
  43. data/grammars/source.nim.json +1 -1
  44. data/grammars/source.nushell.json +1 -0
  45. data/grammars/source.pact.json +1 -0
  46. data/grammars/source.pddl.json +1 -1
  47. data/grammars/source.pic.json +1 -1
  48. data/grammars/source.pnlgrp.json +1 -1
  49. data/grammars/source.prisma.json +1 -1
  50. data/grammars/source.ql.json +1 -1
  51. data/grammars/source.raku.json +1 -1
  52. data/grammars/source.rbs.json +1 -0
  53. data/grammars/source.rescript.json +1 -1
  54. data/grammars/source.rez.json +1 -0
  55. data/grammars/source.rmcobol.json +1 -0
  56. data/grammars/source.rpgle.json +1 -1
  57. data/grammars/source.scala.json +1 -1
  58. data/grammars/source.scenic.json +1 -1
  59. data/grammars/source.smithy.json +1 -1
  60. data/grammars/source.solidity.json +1 -1
  61. data/grammars/source.soql.json +1 -0
  62. data/grammars/source.stan.json +1 -1
  63. data/grammars/source.talon.json +1 -1
  64. data/grammars/source.tlverilog.json +1 -0
  65. data/grammars/source.toc.json +1 -1
  66. data/grammars/source.ts.json +1 -1
  67. data/grammars/source.tsx.json +1 -1
  68. data/grammars/source.turtle.json +1 -1
  69. data/grammars/source.typst.json +1 -0
  70. data/grammars/source.vba.json +1 -0
  71. data/grammars/source.vyper.json +1 -1
  72. data/grammars/source.wgsl.json +1 -0
  73. data/grammars/source.wit.json +1 -0
  74. data/grammars/source.wwb.json +1 -0
  75. data/grammars/source.yul.json +1 -1
  76. data/grammars/text.adblock.json +1 -1
  77. data/grammars/text.haml.json +1 -1
  78. data/grammars/text.hash-commented.json +1 -1
  79. data/grammars/text.html.markdown.d2.json +1 -0
  80. data/grammars/text.marko.json +1 -1
  81. data/grammars/text.md.json +1 -0
  82. data/grammars/text.pseudoxml.json +1 -0
  83. data/grammars/text.tex.latex.sweave.json +1 -0
  84. data/grammars/text.xml.svg.json +1 -1
  85. data/grammars/version +1 -1
  86. data/lib/linguist/VERSION +1 -1
  87. data/lib/linguist/generated.rb +10 -0
  88. data/lib/linguist/heuristics.rb +2 -0
  89. data/lib/linguist/heuristics.yml +83 -42
  90. data/lib/linguist/languages.json +1 -1
  91. data/lib/linguist/languages.yml +203 -19
  92. data/lib/linguist/samples.json +1 -1
  93. data/lib/linguist/vendor.yml +4 -1
  94. metadata +39 -16
  95. data/grammars/source.gfm.json +0 -1
  96. data/grammars/source.nim_filter.json +0 -1
  97. data/grammars/source.nimcfg.json +0 -1
@@ -0,0 +1 @@
1
+ {"name":"Nasal","scopeName":"source.nasal","patterns":[{"name":"keyword.control.nasal","match":"\\b(if|else|elsif|while|for|foreach|forindex|break|continue)\\b"},{"name":"keyword.operator.nasal","match":"!|\\*|\\-|\\+|~|/|==|=|!=|\u003c=|\u003e=|\u003c|\u003e|!|\\?|\\:|\\*=|/=|\\+=|\\-=|~=|\\.\\.\\.|\\b(and|or)\\b"},{"name":"variable.language.nasal","match":"\\b(me|arg|parents|obj)\\b"},{"name":"storage.type.nas","match":"\\b(func|return|var)\\b"},{"name":"constant.language","match":"\\b(nil)\\b"},{"name":"string.quoted.single.nasal","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.nasal","match":"\\\\'"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nasal"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nasal"}}},{"name":"string.quoted.double.nasal","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.nasal","match":"\\\\(x[[:xdigit:]]{2}|[0-2][0-7]{,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|r|n|t|\\\\|\")"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nasal"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nasal"}}},{"name":"string.other","begin":"`","end":"`","patterns":[{"name":"constant.character.escape.nasal"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nasal"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nasal"}}},{"name":"comment.line.hash.nasal","match":"(#).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.nasal"}}},{"name":"constant.numeric.nasal","match":"((\\b[0-9]+)?\\.)?\\b[0-9]+([eE][-+]?[0-9]+)?\\b"},{"name":"constant.numeric.nasal","match":"0[x|X][0-9a-fA-F]+"},{"name":"meta.brace.curly.nasal","match":"\\{|\\}"},{"name":"meta.brace.round.nasal","match":"\\(|\\)"},{"name":"meta.brace.square.nasal","match":"\\[|\\]"},{"name":"invalid.illegal","match":"%|\\$|@|\u0026|\\^|\\||\\\\|`"},{},{"name":"entity.name.function.nasal","match":"\\b(append|bind|call|caller|chr|closure|cmp|compile|contains|delete|die|find|ghosttype|id|int|keys|left|num|pop|right|setsize|size|sort|split|sprintf|streq|substr|subvec|typeof)\\b"},{"name":"entity.name.function.nasal","match":"\\b(abort|abs|aircraftToCart|addcommand|airportinfo|airwaysRoute|assert|carttogeod|cmdarg|courseAndDistance|createDiscontinuity|createViaTo|createWP|createWPFrom|defined|directory|fgcommand|findAirportsByICAO|findAirportsWithinRange|findFixesByID|findNavaidByFrequency|findNavaidsByFrequency|findNavaidsByID|findNavaidsWithinRange|finddata|flightplan|geodinfo|geodtocart|get_cart_ground_intersection|getprop|greatCircleMove|interpolate|isa|logprint|magvar|maketimer|start|stop|restart|maketimestamp|md5|navinfo|parse_markdown|parsexml|print|printf|printlog|rand|registerFlightPlanDelegate|removecommand|removelistener|resolvepath|setlistener|_setlistener|setprop|srand|systime|thisfunc|tileIndex|tilePath|values)\\b"},{"name":"variable.language.nasal","match":"\\b(singleShot|isRunning|simulatedTime)\\b"},{"name":"constant.language.nasal","match":"\\b(D2R|FPS2KT|FT2M|GAL2L|IN2M|KG2LB|KT2FPS|KT2MPS|LG2GAL|LB2KG|M2FT|M2IN|M2NM|MPS2KT|NM2M|R2D)\\b"},{"name":"support.function.nasal","match":"\\b(abs|acos|asin|atan2|avg|ceil|clamp|cos|exp|floor|fmod|in|log10|max|min|mod|periodic|pow|round|sin|sgn|sqrt|tan)\\b"},{"name":"support.class.nasal","match":"\\b(math)\\b"},{"name":"variable.language.nasal","match":"\\b(e|pi)\\b"},{"name":"entity.name.function.nasal","match":"\\b(new|addChild|addChildren|alias|clearValue|equals|getAliasTarget|getAttribute|getBoolValue|getChild|getChildren|getIndex|getName|getNode|getParent|getPath|getType|getValue|getValues|initNode|remove|removeAllChildren|removeChild|removeChildren|setAttribute|setBoolValue|setDoubleValue|setIntValue|setValue|setValues|unalias|compileCondition|condition|copy|dump|getNode|nodeList|runBinding|setAll|wrap|wrapNode)\\b"},{"name":"support.class.nasal","match":"\\b(Node)\\b"},{"name":"variable.language.nasal","match":"\\b(props|globals)\\b"},{"name":"entity.name.function.nasal","match":"\\b(getText|setText)\\b"},{"name":"support.class.nasal","match":"\\b(clipboard)\\b"},{"name":"constant.language.nasal","match":"\\b(CLIPBOARD|SELECTION)\\b"},{"name":"entity.name.function.nasal","match":"\\b(new|set|set_lat|set_lon|set_alt|set_latlon|set_x|set_y|set_z|set_xyz|lat|lon|alt|latlon|x|y|z|xyz|is_defined|dump|course_to|distance_to|direct_distance_to|apply_course_distance|test|update|_equals|aircraft_position|click_position|elevation|format|normdeg|normdeg180|put_model|tile_index|tile_path|viewer_position)\\b"},{"name":"support.class.nasal","match":"\\b(geo|PositionedSearch|Coord)\\b"},{"name":"constant.language.nasal","match":"\\b(ERAD)\\b"},{"name":"entity.name.function.nasal","match":"\\b(basename|close|dirname|flush|include|load_nasal|open|read|read_airport_properties|read_properties|readfile|readln|readxml|seek|stat|tell|write|write_properties|writexml)\\b"},{"name":"support.class.nasal","match":"\\b(io)\\b"},{"name":"constant.language.nasal","match":"\\b(SEEK_CUR|SEEK_END|SEEK_SET)\\b"},{"name":"entity.name.function.nasal","match":"\\b(new|set|append|concat|exists|canRead|canWrite|isFile|isDir|isRelative|isAbsolute|isNull|create_dir|remove|rename|realpath|file|dir|base|file_base|extension|lower_extension|complete_lower_extension|str|mtime)\\b"},{"name":"support.class.nasal","match":"\\b(os\\.path)\\b"},{"name":"entity.name.function.nasal","match":"\\b(popupTip|showDialog|menuEnable|menuBind|setCursor|findElementByName|fpsDisplay|latencyDisplay|popdown|set|setColor|setFont|setBinding|state|del|load|toggle|is_open|reinit|rescan|select|next|previous|set_title|set_button|set_directory|set_file|set_dotfiles|set_pattern|save_flight|load_flight|set_screenshotdir|property_browser|dialog_apply|dialog_update|enable_widgets|nextStyle|setWeight|setWeightOpts|weightChangeHandler|showWeightDialog|showHelpDialog)\\b"},{"name":"support.class.nasal","match":"\\b(gui|Widget|Dialog|OverlaySelector|FileSelector|DirSelector)\\b"}]}
@@ -1 +1 @@
1
- {"name":"Nim","scopeName":"source.nim","patterns":[{"include":"#type-defs"},{"include":"#const-defs"},{"include":"#var-let-using-defs"},{"include":"#pragmas"},{"include":"#brackets"},{"include":"#punctuations"},{"include":"#block-doc-comments"},{"include":"#comments"},{"include":"#for-stmts"},{"include":"#asm-stmts"},{"include":"#routines"},{"include":"#fmt-strs"},{"include":"#operators"},{"include":"#literals"},{"include":"#keywords"},{"include":"#do-stmts"},{"include":"#calls"},{"include":"#types"},{"include":"#builtins"},{"include":"#generic-symbols"}],"repository":{"asm-stmt-1":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","patterns":[{"include":"#interpolation"}],"captures":{"1":{"name":"storage.type.string.nim"},"2":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}},{"contentName":"string.quoted.double.nim","begin":"([Rr])(\")","end":"(\")|(\\n)","patterns":[{"include":"#interpolation"}],"beginCaptures":{"1":{"name":"storage.type.string.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"},"2":{"name":"invalid.illegal.nim"}}},{"name":"string.quoted.double.nim","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"},{"include":"#interpolation"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"asm-stmts":{"patterns":[{"begin":"asm\\b","end":"(?=[^\"Rr{\\s])|(?\u003c=\")","patterns":[{"include":"#pragmas"},{"include":"#asm-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.flow.nim"}}}]},"block-comments":{"patterns":[{"name":"comment.block.number-sign.nim","begin":"#\\[","end":"]#","patterns":[{"include":"#block-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim"}}}]},"block-doc-comments":{"patterns":[{"name":"comment.block.documentation.nim","begin":"##\\[","end":"]##","patterns":[{"include":"#block-doc-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim"}}}]},"brackets":{"patterns":[{"include":"#square-brackets"},{"name":"meta.braces.nim","begin":"\\{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.braces.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.braces.end.nim"}}},{"name":"meta.parens.nim","begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.nim"}}}]},"builtins":{"patterns":[{"name":"variable.language.nim","match":"\\bresult\\b"},{"name":"support.function.builtin.expl","match":"\\b(?x: abs|add(?:[Ee]scapedChar|Float|Int|QuitProc|Quoted)?|alignof|allocCStringArray|arrayWith |ashr|astToStr|assert |atomic(?:AddFetch|AlwaysLockFree|(?:And|Nand|Or|Sub|Xor)Fetch|Clear |(?:Compare)?ExchangeN?|Dec|Fetch(?:A[dn]d|Nand|Or|Sub|Xor)|Inc |IsLockFree|LoadN?|(?:Signal|Thread)Fence|StoreN?|TestAndSet) |card|cas|chr|clamp|close|cmp(?:Mem)?|compile(?:Option|s)|contains|copyMem |cpuRelax|create(?:(?:Shared)?U?|Thread)|cstringArrayToSeq |dealloc(?:CStringArray|Heap|(?:Shared)?(?:Impl)?)|debugEcho|dec |declared(?:InScope)?|deepCopy|default|defined|del(?:ete)?|dispose|doAssert(?:Raises)?|echo|endOfFile |equalMem|excl|failedAssertImpl|field(?:s|Pairs)|find|finished|flushFile|freeShared |GC_(?:collectZct|disable(?:MarkAndSweep)?|fullCollect|getStatistics|(?:un)?ref) |gcInvariant|getAllocStats |get(?:CurrentException(?:Msg)?|File(?:Pos|Size)|Frame(?:State)? |(?:(?:Free|Occupied|Total)(?:Shared)?|Max)Mem|GCFrame|OsFileHandle |StackTrace(?:Entries)?|TypeInfo|ThreadId) |gorge(?:Ex)?|handle|high|incl?|insert|instantiationInfo|internalNew |isNil|isNotForeign|iterToProc|joinThreads?|len|lines|locals|low|max|min |m?(?:items|pairs)|move(?:Mem)? |new(?:Seq(?:OfCap|Uninitialized)?|String(?:OfCap)?|Exception|WideCString)? |onFailedAssert|onThreadDestruction|open|ord|peek|pinToCpu|pop(?:GcFrame)?|pred |prepareMutation|procCall|protect|pushGcFrame|quit|raiseAssert|raw(?:Env|Proc) |ready|read(?:All|Buffer|Bytes|Chars?|File|Lines?) |(?:re)?alloc(?:Shared)?0?(?:Impl)?|recv|repr(?:Discriminant)?|reset |resize(?:Shared)?|runnableExamples |set(?:ControlCHook|CurrentException|FilePos|Frame(?:State)?|GcFrame|Inheritable|Len|StdIoUnbuffered|upForeignThreadGc) |shallow(?:Copy)?|sizeof|slurp|stackTraceAvailable|static(?:Exec|Read)|stdmsg |substr|succ|swap|tearDownForeignThreadGc |to(?:Biggest?(?:Float|Int)|OpenArray(?:Byte)?|U(?:8|16|32))|try(?:Recv|Send) |typeof|unsafe(?:Addr|New)|unsetControlCHook|wasMoved|writeStackTrace |ze(?:64)?|zero(?:Default|Mem)|count(?:down|up)|varargsLen|closureScope |currentSourcePath|disarm|dumpAllocStats|excl|fence|format(?:ErrorIndexBound|FieldDefect) |incl|offsetOf|once|rangeCheck|(?:un)?likely|unown|write(?:Buffer|Bytes|Chars|File|Line)? )\\b"},{"name":"support.function.builtin.expl","match":"`(?:addr|and|div|is(?:not)?|mod|not|of|sh[lr]|x?or|(?:not)?in|=(?:copy|destroy|sink|trace)|\\$|%%|[-*+/\u003c]%?=?|\u003c=%|[\u0026=]=?|\\.\\.|@|\\[]=?)`"},{"name":"storage.type.primitive.expl","match":"\\b(?x:any|array|auto|bool|byte |c(?:double|float|u?(?:long(?:long)?|char|int|short)|longdouble|schar |size(?:_t)?|string(?:[Aa]rray)?) |char|float(?:32|64)?|iterable|lent|open[Aa]rray|owned|pointer|ptr|range|ref|se[qt] |sink|static|string|typed?|type[Dd]esc|u?int(?:8|16|32|64)?|untyped|varargs|void)\\b"},{"name":"support.constant.builtin.expl","match":"\\b(?x:appType|Compile(?:Date|Time)|(?:big|cpu|little)Endian |fm(Append|Read(?:Write(?:Existing)?)?|Write)|fsp(?:Set|Cur|End) |gc(?:Throughput|Responsiveness|Optimize(?:Space|Time))|host(?:CPU|OS) |isMainModule|NaN|(?:Neg)?Inf|Nim(?:Major|Minor|Patch|Version)|nimvm|off|on |Quit(?:Failure|Success)|typeOf(?:Iter|Proc))\\b"},{"name":"support.variable.builtin.expl","match":"\\b(?x: ATOMIC_(?:ACQ_REL|ACQUIRE|CONSUME|RELAXED|RELEASE|SEQ_CST)|errorMessageWriter |(?:global|local)RaiseHook|nimThreadDestructionHandlers|onUnhandledException |outOfMemHook|programResult|std(?:err|out|in)|unhandledExceptionHook )\\b"}]},"calls":{"patterns":[{"begin":"(?x: (?= (?: (?!(?:out|ptr|ref|tuple)\\b) [A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+` ) (?:\\[.*])? (?: \\( |\" |[ ]+ (?: [_\\d\"'`\\[\\(] |(?!\\.|(?:\\*?[ ]*)[:=]|=[^=])[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+[^\\-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔\\s] |(?!as|asm|and|bind|break|concept|const|continue|converter |defer|discard|distinct|div|elif|else|end|except|export|finally|from|import |include|interface|is(?:not)?|let|macro|method|mixin|mod|(?:not)?in|of |raise|sh[lr]|template|using|while|yield|x?or)[A-Za-z\\x80-\\xff] |\\{(?!\\.) ) ) ) )","end":"(?=[^\\[\\(`\\w\\x{80}-\\x{ff}])|(?\u003c=[\"\\)])","patterns":[{"name":"variable.function.nim","begin":"(?=[`_A-Za-z\\x80-\\xff])","end":"(?=[^`_A-Za-z\\x80-\\xff])","patterns":[{"include":"#builtins"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},{"name":"meta.function-call.nim meta.generic.nim","begin":"\\[:?","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.generic.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.generic.end.nim"}}},{"name":"meta.function-call.arguments.nim","begin":"\\(","end":"(\\))","patterns":[{"match":"(?x: (?= (?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) [ ]* [:=](?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]) ) (?!(?x:addr|asm|bind|block|break|case|cast|concept|const|continue|converter |defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for |from|func|if|import|include|interface|iterator|let|macro|method|mixin |object|of|out|proc|ptr|raise|ref|return|static|template|try|tuple|type |using|var|when|while|yield)\\b ) ([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?:[ ]*(:))? )","captures":{"1":{"name":"variable.parameter.nim"},"2":{"name":"punctuation.separator.key-value.nim"}}},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.arguments.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.arguments.end.nim"}}},{"include":"#triplestr_lit"},{"name":"string.quoted.double.nim","begin":"\"","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\"\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.unclosed-string.nim"}}}]}]},"characters":{"patterns":[{"match":"'(?:[^\\\\']|(\\\\(?:[ABCEFLNRTVabceflnrtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2})))'","captures":{"0":{"name":"constant.character.nim"},"1":{"name":"constant.character.escape.nim"}}},{"name":"invalid.illegal.nim","match":"'[^']+'"}]},"comments":{"patterns":[{"include":"#block-comments"},{"include":"#line-comments"}]},"const-defs":{"patterns":[{"begin":"\\b(const) +(?=[A-Za-z\\x80-\\xff]|\\(|`|_\\b)","end":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?|(?=[^\\(])","patterns":[{"include":"#const-name"}],"beginCaptures":{"1":{"name":"storage.modifier.nim"}},"endCaptures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"begin":"^const\\b","end":"^(?! |$)","patterns":[{"begin":"^ (?=[A-Za-z\\x80-\\xff]|\\(|`|_\\b)","end":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?|(?=[^\\(])","patterns":[{"include":"#const-name"}],"endCaptures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"include":"$self"}],"beginCaptures":{"0":{"name":"storage.modifier.nim keyword.declaration.constant.nim"}}}]},"const-name":{"patterns":[{"begin":"\\(","end":"(\\))|(?=[^{_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"match":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","captures":{"1":{"name":"entity.name.constant.expl"},"2":{"name":"storage.modifier.expl"}}},{"name":"punctuation.separator.nim","match":","},{"include":"#pragmas"},{"include":"#doc-comments"},{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.nim"}}}]},"do-stmts":{"patterns":[{"begin":"\\bdo\\b","end":"(-\u003e)|(?=[^\\-\\( ])","patterns":[{"include":"#param-list"}],"beginCaptures":{"0":{"name":"storage.type.function.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.return.nim"}}}]},"doc-comments":{"patterns":[{"include":"#block-doc-comments"},{"include":"#line-doc-comments"}]},"fmt-strs":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"(?:(fmt)|(\u0026))(\"\"\")","end":"\"\"\"(?!\")","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}"},{"name":"meta.embedded.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(?=\"\"\"[^\"])","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim variable.function.nim"},"2":{"name":"keyword.operator.nim"},"3":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}},{"contentName":"string.quoted.triple.nim","begin":"(fmt)(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}|\"\""},{"name":"meta.embedded.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"},"3":{"name":"invalid.illegal.nim"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim variable.function.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}},{"contentName":"string.quoted.double.nim","begin":"(\u0026)(\")","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}"},{"name":"meta.embedded.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"},"3":{"name":"invalid.illegal.nim"}}},{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"}],"beginCaptures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"for-stmt-1":{"patterns":[{"name":"punctuation.separator.nim","match":","},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#pragmas"},{"include":"#comments"}]},"for-stmts":{"patterns":[{"begin":"for\\b","end":"(in\\b)|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"begin":"\\(","end":"(in\\b)|(\\))|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim"},"2":{"name":"punctuation.section.parens.end.nim"}}},{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.loop.for.nim"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim"}}}]},"generic-param-list":{"patterns":[{"name":"meta.generic.nim","begin":"(?\u003c=[`*\\w\\x{80}-\\x{ff}]) *(\\[)","end":"(])|(?=[^#_`:=,;A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#generic-param-list-0"}],"beginCaptures":{"1":{"name":"punctuation.section.generic.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.generic.end.nim"}}}]},"generic-param-list-0":{"patterns":[{"name":"variable.parameter.nim","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"name":"punctuation.separator.nim","match":"[,;]"},{"begin":"(:)|(=)","end":"([,;])|(?=\\])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim"},"2":{"name":"keyword.operator.assignment.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.nim"}}},{"include":"#comments"}]},"generic-symbols":{"patterns":[{"name":"support.constant.expl","match":"[A-Z](_?[A-Z\\d_])+\\b"},{"name":"support.type.expl","match":"[A-Z][\\dA-Za-z]+\\b"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},"interpolation":{"patterns":[{"match":"(`) *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_) *(`)","captures":{"0":{"name":"source.nim.embedded"},"1":{"name":"punctuation.section.embedded.begin.nim"},"2":{"name":"punctuation.section.embedded.end.nim"}}}]},"invalid-names":{"patterns":[{"name":"invalid.illegal.nim","match":"(?x:addr|asm|bind|block|break|case|cast|concept|const|continue|converter |defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for |from|func|if|import|include|interface|iterator|let|macro|method|mixin |object|of|out|proc|ptr|raise|ref|return|static|template|try|tuple|type |using|var|when|while|yield)\\b"}]},"keywords":{"patterns":[{"name":"keyword.operator.word.expl","match":"\\b(?:addr|cast)\\b"},{"name":"comment.block.expl","begin":"\\bdiscard +\"\"\"","end":"\"\"\"(?!\")","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.expl"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.expl"}}},{"name":"keyword.other.expl","match":"\\b(?:distinct|discard)\\b"},{"name":"keyword.control.flow.expl","match":"\\b(?:asm|end|break|continue|raise|return|yield)\\b"},{"name":"storage.type.expl","match":"\\b(?:concept|enum|interface)\\b"},{"match":"\\b(object)\\b(?: *(of)\\b)?","captures":{"1":{"name":"storage.type.expl"},"2":{"name":"keyword.other.expl"}}},{"name":"keyword.control.loop.while.expl","match":"\\bwhile\\b"},{"name":"keyword.control.conditional.switch.expl","match":"\\bcase\\b"},{"name":"keyword.control.conditional.case.expl","match":"^ *(of)\\b"},{"name":"keyword.control.conditional.if.expl","match":"\\bif\\b"},{"name":"keyword.control.conditional.when.expl","match":"\\bwhen\\b"},{"name":"keyword.control.conditional.elseif.expl","match":"\\belif\\b"},{"match":"\\b(else)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.conditional.else.expl"},"1":{"name":"keyword.control.conditional.else.expl"},"2":{"name":"punctuation.section.block.conditional.else.expl"}}},{"match":"\\b(try)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.try.expl"},"1":{"name":"keyword.control.exception.try.expl"},"2":{"name":"punctuation.section.block.exception.expl"}}},{"match":"\\b(finally)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.finally.expl"},"1":{"name":"keyword.control.exception.finally.expl"},"2":{"name":"punctuation.section.block.exception.finally.expl"}}},{"match":"\\b(defer)\\b(?: *(:))?","captures":{"1":{"name":"keyword.control.flow.defer.expl"},"2":{"name":"punctuation.section.block.begin.expl"}}},{"match":"\\b(block)\\b(?:(?: *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`))? *(:))?","captures":{"1":{"name":"keyword.declaration.block.expl"},"2":{"name":"punctuation.section.block.begin.expl"}}},{"name":"keyword.control.expl","match":"\\b(?:as|(?:ex|im)port|include|bind|mixin|from|except)\\b"},{"name":"storage.modifier.expl keyword.declaration.expl","match":"\\b(?:const|let|using)\\b"},{"name":"storage.modifier.expl","match":"\\bvar\\b"}]},"language-constants":{"patterns":[{"name":"constant.language.nim","match":"\\b(?:true|false|nil)\\b"}]},"line-comments":{"patterns":[{"name":"comment.line.number-sign.nim","begin":"(#)(?: *(TODO|todo)\\b)?","end":"$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.nim"},"2":{"name":"invalid.deprecated.nim"}}}]},"line-doc-comments":{"patterns":[{"name":"comment.line.documentation.nim","begin":"##","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim"}}}]},"literals":{"patterns":[{"include":"#str_lits"},{"include":"#numbers"},{"include":"#characters"},{"include":"#language-constants"}]},"numbers":{"patterns":[{"match":"(?x: \\b(\\d(?:_?\\d)*) (?: (?: ((\\.)\\d(?:_?\\d)*) ([Ee][-+]?\\d(?:_?\\d)*)? |([Ee][-+]?\\d(?:_?\\d)*) ) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd]))? |('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) ) )","captures":{"0":{"name":"meta.number.float.decimal.nim"},"1":{"name":"constant.numeric.value.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"punctuation.separator.decimal.nim"},"4":{"name":"constant.numeric.value.exponent.nim"},"5":{"name":"constant.numeric.value.exponent.nim"},"6":{"name":"constant.numeric.suffix.nim"},"7":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|[Ff](?:32|64)) )","captures":{"0":{"name":"meta.number.float.hexadecimal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.octal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.binary.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.hexadecimal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.octal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.binary.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(\\d(?:_?\\d)*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.decimal.nim"},"1":{"name":"constant.numeric.value.nim"},"2":{"name":"constant.numeric.suffix.nim"}}}]},"operators":{"patterns":[{"name":"keyword.operator.logical.nim","match":"\\b(?:and|not|x?or)\\b"},{"name":"keyword.operator.word.nim","match":"\\b(?:of|(?:not)?in|is(?:not)?)\\b"},{"name":"keyword.operator.bitwise.nim","match":"\\bsh[lr]\\b"},{"name":"keyword.operator.arithmetic.nim","match":"\\b(?:div|mod)\\b"},{"name":"keyword.operator.comparison.nim","match":"==|\u003c=?|\u003e=?|!="},{"name":"keyword.operator.assignment.nim","match":"(?:[-+*/@$\u0026%|^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔][-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]*)?=(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"name":"keyword.operator.nim","match":"[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+"}]},"param-list":{"patterns":[{"name":"meta.function.parameters","begin":"\\(","end":"\\)","patterns":[{"name":"variable.parameter.nim","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"name":"punctuation.separator.nim","match":"[,;]"},{"begin":"(:)|(=)","end":"(?=[,;\\)])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim"},"2":{"name":"keyword.operator.assignment.nim"}}},{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.parameters.end.nim"}}}]},"patterns":{"patterns":[{"name":"meta.pattern.nim","begin":"\\{(?!\\.)","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.pattern.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.pattern.end.nim"}}}]},"pragmas":{"patterns":[{"name":"meta.annotation.nim","begin":"\\{\\.(?!\\.})","end":"\\.?}","patterns":[{"name":"entity.other.attribute-name.pragma.nim","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#square-brackets"},{"begin":"(?=\\S)","end":"(,)|(?=\\S)","patterns":[{"begin":":","end":"(,)|(?=\\.?})","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.sequence.nim"}}}],"endCaptures":{"1":{"name":"punctuation.separator.sequence.nim"}}}],"beginCaptures":{"0":{"name":"punctuation.section.annotation.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.annotation.end.nim"}}}]},"punctuations":{"patterns":[{"name":"punctuation.terminator.statement.nim","match":";"},{"name":"punctuation.separator.nim","match":","},{"name":"punctuation.section.block.begin.nim","match":":"},{"name":"punctuation.accessor.dot.nim","match":"\\.(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"match":"(\\*) *(:|(?=,|#|\\{\\.))","captures":{"1":{"name":"storage.modifier.nim"},"2":{"name":"punctuation.separator.annotation.nim"}}},{"name":"invalid.illegal.nim","match":"\\)|]|}"}]},"routines":{"patterns":[{"name":"meta.function.nim","begin":"(?x: (proc|template|iterator|func|method|macro|converter)\\b (?:[ ]*([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?:[ ]*(\\*))?)? )","end":"(:)|(?=[^#\\(\\[:\\s]|##)","patterns":[{"include":"#comments"},{"include":"#patterns"},{"include":"#generic-param-list"},{"include":"#param-list"}],"beginCaptures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"entity.name.function.nim"},"3":{"name":"storage.modifier.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.nim"}}}]},"rstr_lit":{"patterns":[{"contentName":"string.quoted.double.nim","begin":"([Rr])(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\"\""}],"beginCaptures":{"1":{"name":"storage.type.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"string.quoted.double.nim invalid.illegal.unclosed-string.nim"}}}]},"square-brackets":{"patterns":[{"name":"meta.brackets.nim","begin":"\\[","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.nim"}}}]},"str_lit":{"patterns":[{"name":"string.quoted.double.nim","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"str_lits":{"patterns":[{"include":"#triplestr_lit"},{"include":"#rstr_lit"},{"include":"#str_lit"}]},"triplestr_lit":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","beginCaptures":{"1":{"name":"storage.type.nim"},"2":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}}]},"type-defs":{"patterns":[{"begin":"^ *(type) +(?:(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) *(\\.))?([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","end":"(?=[^\\[ ])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"1":{"name":"storage.modifier.nim"},"2":{"name":"punctuation.accessor.dot.nim"},"3":{"name":"entity.name.type.nim"},"4":{"name":"storage.modifier.nim"}}},{"begin":"^type\\b","end":"^(?! |$)","patterns":[{"begin":"^ (?:(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`) *(\\.))?([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","end":"(?![\\[\\s])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"1":{"name":"punctuation.accessor.dot.nim"},"2":{"name":"entity.name.type.nim"},"3":{"name":"storage.modifier.nim"}}},{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.declaration.type.nim"}}}]},"types":{"patterns":[{"begin":"\\btuple(?=\\[)","end":"(?=[^\\[ ])","patterns":[{"include":"#generic-param-list"}],"beginCaptures":{"0":{"name":"storage.type.primitive.nim"}}},{"contentName":"meta.generic.nim","begin":"(?=(?:[A-Za-z](?:_?[\\dA-Za-z])*)\\[)(?x:(out|ptr|ref|array |cstring[Aa]rray|iterable|lent|open[Aa]rray|owned|ptr|range|ref|se[qt] |sink|static|type(?:[Dd]esc)?|varargs)|([A-Z][\\dA-Za-z]+))(\\[)","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.type.primitive.nim"},"2":{"name":"support.type.nim"},"3":{"name":"meta.generic.nim punctuation.section.generic.begin.nim"}},"endCaptures":{"0":{"name":"meta.generic.nim punctuation.section.generic.nim"}}},{"name":"storage.type.primitive.expl","match":"\\b(?:out|tuple|ref|ptr)\\b"}]},"var-let-using-defs":{"patterns":[{"begin":"(?:^|(;)) *(var|let|using) +(?=[\\(`A-Za-z\\x80-\\xff]|_\\b)","end":"(?=[^\\({_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name"}],"beginCaptures":{"1":{"name":"punctuation.terminator.nim"},"2":{"name":"storage.modifier.nim keyword.declaration.variable.nim"}}},{"begin":"^(?:var|let|using)\\b","end":"^(?! |$)","patterns":[{"begin":"^ (?=[\\(`A-Za-z\\x80-\\xff]|_\\b)","end":"(?=[^\\({_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name"}]},{"include":"$self"}],"beginCaptures":{"0":{"name":"storage.type.nim"}}}]},"var-name":{"patterns":[{"begin":"\\(","end":"(\\))|(?=[^{_`,#A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#var-name-0"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.nim"}}},{"include":"#var-name-0"}]},"var-name-0":{"patterns":[{"match":"([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?: *(\\*))?","captures":{"1":{"name":"variable.other.expl"},"2":{"name":"storage.modifier.expl"}}},{"name":"punctuation.separator.nim","match":","},{"include":"#pragmas"},{"include":"#doc-comments"},{"include":"#comments"}]}}}
1
+ {"name":"Nim","scopeName":"source.nim","patterns":[{"include":"#pragmas"},{"include":"#brackets"},{"include":"#punctuations"},{"include":"#block-doc-comments"},{"include":"#comments"},{"include":"#for-stmts"},{"include":"#asm-stmts"},{"include":"#routines"},{"include":"#fmt-strs"},{"include":"#operators"},{"include":"#literals"},{"include":"#keywords"},{"include":"#do-stmts"},{"include":"#calls"},{"include":"#types"},{"include":"#builtins"},{"include":"#generic-symbols"}],"repository":{"asm-stmt-1":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","patterns":[{"include":"#interpolation"}],"captures":{"1":{"name":"storage.type.string.nim"},"2":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}},{"contentName":"string.quoted.double.nim","begin":"([Rr])(\")","end":"(\")|(\\n)","patterns":[{"include":"#interpolation"}],"beginCaptures":{"1":{"name":"storage.type.string.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"},"2":{"name":"invalid.illegal.nim"}}},{"name":"string.quoted.double.nim","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"},{"include":"#interpolation"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"asm-stmts":{"patterns":[{"begin":"asm\\b","end":"(?=[^\"Rr{\\s])|(?\u003c=\")","patterns":[{"include":"#pragmas"},{"include":"#asm-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.flow.nim"}}}]},"block-comments":{"patterns":[{"name":"comment.block.number-sign.nim","begin":"#\\[","end":"]#","patterns":[{"include":"#block-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim"}}}]},"block-doc-comments":{"patterns":[{"name":"comment.block.documentation.nim","begin":"##\\[","end":"]##","patterns":[{"include":"#block-doc-comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim"}}}]},"brackets":{"patterns":[{"include":"#square-brackets"},{"name":"meta.braces.nim","begin":"\\{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.braces.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.braces.end.nim"}}},{"name":"meta.parens.nim","begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.nim"}}}]},"builtins":{"patterns":[{"name":"variable.language.nim","match":"\\bresult\\b"},{"name":"storage.type.primitive.nim","match":"\\b(?x:any|array|auto|bool|byte |c(?:double|float|u?(?:long(?:long)?|char|int|short)|longdouble|schar |size(?:_t)?|string(?:[Aa]rray)?) |char|float(?:32|64)?|iterable|lent|open[Aa]rray|owned|pointer|ptr|range|ref|se[qt] |sink|static|string|typed?|type[Dd]esc|u?int(?:8|16|32|64)?|untyped|varargs|void)\\b"}]},"calls":{"patterns":[{"begin":"(?x: (?= (?: (?!(?:out|ptr|ref|tuple)\\b) [A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+` ) (?:\\[.*])? (?: \\( |\" |[ ]+ (?: [_\\d\"'`\\[\\(] |(?!\\.|(?:\\*?[ ]*)[:=]|=[^=])[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+[^\\-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔\\s] |(?!as|asm|and|bind|break|concept|const|continue|converter |defer|discard|distinct|div|elif|else|end|except|export|finally|from|import |include|interface|is(?:not)?|let|macro|method|mixin|mod|(?:not)?in|of |raise|sh[lr]|template|using|while|yield|x?or)[A-Za-z\\x80-\\xff] |\\{(?!\\.) ) ) ) )","end":"(?=[^\\[\\(`\\w\\x{80}-\\x{ff}])|(?\u003c=[\"\\)])","patterns":[{"name":"entity.name.function.nim","begin":"(?=[`_A-Za-z\\x80-\\xff])","end":"(?=[^`_A-Za-z\\x80-\\xff])","patterns":[{"include":"#builtins"},{"name":"support.type.nim","match":"[A-Z][\\dA-Za-z]+\\b"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},{"name":"meta.function-call.nim meta.generic.nim","begin":"\\[:?","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.generic.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.generic.end.nim"}}},{"name":"meta.function-call.arguments.nim","begin":"\\(","end":"(\\))","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.arguments.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.arguments.end.nim"}}},{"include":"#triplestr_lit"},{"name":"string.quoted.double.nim","begin":"\"","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\"\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.unclosed-string.nim"}}}]}]},"characters":{"patterns":[{"match":"'(?:[^\\\\']|(\\\\(?:[ABCEFLNRTVabceflnrtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2})))'","captures":{"0":{"name":"constant.character.nim"},"1":{"name":"constant.character.escape.nim"}}},{"name":"invalid.illegal.nim","match":"'[^']+'"}]},"comments":{"patterns":[{"include":"#block-comments"},{"include":"#line-comments"}]},"do-stmts":{"patterns":[{"begin":"\\bdo\\b","end":"(-\u003e)|(?=[^\\-\\( ])","patterns":[{"include":"#param-list"}],"beginCaptures":{"0":{"name":"storage.type.function.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.return.nim"}}}]},"doc-comments":{"patterns":[{"include":"#block-doc-comments"},{"include":"#line-doc-comments"}]},"fmt-strs":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"(?:(fmt)|(\u0026))(\"\"\")","end":"\"\"\"(?!\")","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}"},{"name":"source.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(?=\"\"\"[^\"])","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim variable.function.nim"},"2":{"name":"keyword.operator.nim"},"3":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}},{"contentName":"string.quoted.triple.nim","begin":"(fmt)(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}|\"\""},{"name":"source.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"},"3":{"name":"invalid.illegal.nim"}}}],"beginCaptures":{"1":{"name":"meta.function-call.nim variable.function.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}},{"contentName":"string.quoted.double.nim","begin":"(\u0026)(\")","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"{{|}}"},{"name":"source.nim","begin":"{","end":"(=?(?: *:[^}]*)?) *(})|(\\n)|(?=\")","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nim"}},"endCaptures":{"1":{"name":"constant.other.format-spec.nim"},"2":{"name":"punctuation.section.embedded.end.nim"},"3":{"name":"invalid.illegal.nim"}}},{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"}],"beginCaptures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"for-stmt-1":{"patterns":[{"name":"punctuation.separator.nim","match":","},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#pragmas"},{"include":"#comments"}]},"for-stmts":{"patterns":[{"begin":"for\\b","end":"(in\\b)|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"begin":"\\(","end":"(in\\b)|(\\))|(?=[^#,{_`A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.nim"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim"},"2":{"name":"punctuation.section.parens.end.nim"}}},{"include":"#for-stmt-1"}],"beginCaptures":{"0":{"name":"keyword.control.loop.for.nim"}},"endCaptures":{"1":{"name":"keyword.control.loop.for.in.nim"}}}]},"generic-param-list":{"patterns":[{"name":"meta.generic.nim","begin":"(?\u003c=[`*\\w\\x{80}-\\x{ff}]) *(\\[)","end":"(])|(?=[^#_`:=,;A-Za-z\\x80-\\xff\\s])","patterns":[{"include":"#generic-param-list-0"}],"beginCaptures":{"1":{"name":"punctuation.section.generic.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.section.generic.end.nim"}}}]},"generic-param-list-0":{"patterns":[{"name":"punctuation.separator.nim","match":"[,;]"},{"begin":"(:)|(=)","end":"([,;])|(?=\\])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim"},"2":{"name":"keyword.operator.assignment.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.nim"}}},{"include":"#comments"}]},"generic-symbols":{"patterns":[{"name":"support.constant.nim","match":"[A-Z](_?[A-Z\\d_])+\\b"},{"name":"support.type.nim","match":"[A-Z][\\dA-Za-z]+\\b"},{"match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"}]},"interpolation":{"patterns":[{"match":"(`) *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_) *(`)","captures":{"0":{"name":"source.nim.embedded"},"1":{"name":"punctuation.section.embedded.begin.nim"},"2":{"name":"punctuation.section.embedded.end.nim"}}}]},"keywords":{"patterns":[{"name":"keyword.operator.word.nim","match":"\\b(?:addr|cast)\\b"},{"name":"comment.block.nim","begin":"\\bdiscard +\"\"\"","end":"\"\"\"(?!\")","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.nim"}}},{"name":"keyword.other.nim","match":"\\b(?:distinct|discard)\\b"},{"name":"keyword.control.flow.nim","match":"\\b(?:asm|end|break|continue|raise|return|yield)\\b"},{"name":"storage.type.nim","match":"\\b(?:concept|enum|interface)\\b"},{"match":"\\b(object)\\b(?: *(of)\\b)?","captures":{"1":{"name":"storage.type.nim"},"2":{"name":"keyword.other.nim"}}},{"name":"keyword.control.loop.while.nim","match":"\\bwhile\\b"},{"name":"keyword.control.conditional.switch.nim","match":"\\bcase\\b"},{"name":"keyword.control.conditional.case.nim","match":"^ *(of)\\b"},{"name":"keyword.control.conditional.if.nim","match":"\\bif\\b"},{"name":"keyword.control.conditional.when.nim","match":"\\bwhen\\b"},{"name":"keyword.control.conditional.elseif.nim","match":"\\belif\\b"},{"match":"\\b(else)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.conditional.else.nim"},"1":{"name":"keyword.control.conditional.else.nim"},"2":{"name":"punctuation.section.block.conditional.else.nim"}}},{"match":"\\b(try)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.try.nim"},"1":{"name":"keyword.control.exception.try.nim"},"2":{"name":"punctuation.section.block.exception.nim"}}},{"match":"\\b(finally)\\b(?: *(:))?","captures":{"0":{"name":"meta.statement.exception.finally.nim"},"1":{"name":"keyword.control.exception.finally.nim"},"2":{"name":"punctuation.section.block.exception.finally.nim"}}},{"match":"\\b(defer)\\b(?: *(:))?","captures":{"1":{"name":"keyword.control.flow.defer.nim"},"2":{"name":"punctuation.section.block.begin.nim"}}},{"match":"\\b(block)\\b(?:(?: *(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`))? *(:))?","captures":{"1":{"name":"keyword.declaration.block.nim"},"2":{"name":"punctuation.section.block.begin.nim"}}},{"name":"keyword.control.nim","match":"\\b(?:as|(?:ex|im)port|include|bind|mixin|from|except)\\b"},{"name":"storage.modifier.nim","match":"\\b(?:const|let|var|using)\\b"}]},"language-constants":{"patterns":[{"name":"constant.language.nim","match":"\\b(?:true|false|nil)\\b"}]},"line-comments":{"patterns":[{"name":"comment.line.number-sign.nim","begin":"(#)(?: *(TODO|todo)\\b)?","end":"$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.nim"},"2":{"name":"invalid.deprecated.nim"}}}]},"line-doc-comments":{"patterns":[{"name":"comment.line.documentation.nim","begin":"##","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim"}}}]},"literals":{"patterns":[{"include":"#str_lits"},{"include":"#numbers"},{"include":"#characters"},{"include":"#language-constants"}]},"numbers":{"patterns":[{"match":"(?x: \\b(\\d(?:_?\\d)*) (?: (?: ((\\.)\\d(?:_?\\d)*) ([Ee][-+]?\\d(?:_?\\d)*)? |([Ee][-+]?\\d(?:_?\\d)*) ) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd]))? |('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) ) )","captures":{"0":{"name":"meta.number.float.decimal.nim"},"1":{"name":"constant.numeric.value.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"punctuation.separator.decimal.nim"},"4":{"name":"constant.numeric.value.exponent.nim"},"5":{"name":"constant.numeric.value.exponent.nim"},"6":{"name":"constant.numeric.suffix.nim"},"7":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|[Ff](?:32|64)) )","captures":{"0":{"name":"meta.number.float.hexadecimal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.octal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[Ff](?:32|64)|[Dd])) )","captures":{"0":{"name":"meta.number.float.binary.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Xx]) ([[:xdigit:]](?:_?[[:xdigit:]])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.hexadecimal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0o) ([0-7](?:_?[0-7])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.octal.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(0[Bb]) ([01](?:_?[01])*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.binary.nim"},"1":{"name":"constant.numeric.base.nim"},"2":{"name":"constant.numeric.value.nim"},"3":{"name":"constant.numeric.suffix.nim"}}},{"match":"(?x: \\b(\\d(?:_?\\d)*) ('(?:[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_)|(?:[IUiu](?:8|16|32|64)|[Uu]))? )","captures":{"0":{"name":"meta.number.integer.decimal.nim"},"1":{"name":"constant.numeric.value.nim"},"2":{"name":"constant.numeric.suffix.nim"}}}]},"operators":{"patterns":[{"name":"keyword.operator.logical.nim","match":"\\b(?:and|not|x?or)\\b"},{"name":"keyword.control.conditional.case.nim","match":"^of\\b"},{"name":"keyword.operator.word.nim","match":"\\b(?:of|(?:not)?in|is(?:not)?)\\b"},{"name":"keyword.operator.bitwise.nim","match":"\\bsh[lr]\\b"},{"name":"keyword.operator.arithmetic.nim","match":"\\b(?:div|mod)\\b"},{"name":"keyword.operator.comparison.nim","match":"==|\u003c=?|\u003e=?|!="},{"name":"keyword.operator.assignment.nim","match":"(?:[-+*/@$\u0026%|^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔][-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]*)?=(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"name":"keyword.operator.nim","match":"[-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔]+"}]},"param-list":{"patterns":[{"name":"meta.function.parameters","begin":"\\(","end":"\\)","patterns":[{"name":"punctuation.separator.nim","match":"[,;]"},{"begin":"(:)|(=)","end":"(?=[,;\\)])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.annotation.nim"},"2":{"name":"keyword.operator.assignment.nim"}}},{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.parameters.end.nim"}}}]},"patterns":{"patterns":[{"name":"meta.pattern.nim","begin":"\\{(?!\\.)","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.pattern.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.pattern.end.nim"}}}]},"pragmas":{"patterns":[{"name":"meta.annotation.nim","begin":"\\{\\.(?!\\.})","end":"\\.?}","patterns":[{"include":"#calls"},{"name":"entity.other.attribute-name.pragma.nim","match":"[A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`"},{"include":"#square-brackets"},{"begin":"(?=\\S)","end":"(,)|(?=\\.?})","patterns":[{"begin":":","end":"(?=,|\\.?})","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.nim"}}}],"endCaptures":{"1":{"name":"punctuation.separator.sequence.nim"}}}],"beginCaptures":{"0":{"name":"punctuation.section.annotation.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.annotation.end.nim"}}}]},"punctuations":{"patterns":[{"name":"punctuation.terminator.statement.nim","match":";"},{"name":"punctuation.separator.nim","match":","},{"name":"punctuation.section.block.begin.nim","match":":"},{"name":"punctuation.accessor.dot.nim","match":"\\.(?![-=+*/\u003c\u003e@$~\u0026%|!?^.:\\\\∙∘×★⊗⊘⊙⊛⊠⊡∩∧⊓±⊕⊖⊞⊟∪∨⊔])"},{"match":"(\\*) *(:|(?=,|#|\\{\\.))","captures":{"1":{"name":"storage.modifier.nim"},"2":{"name":"punctuation.separator.annotation.nim"}}},{"name":"invalid.illegal.nim","match":"\\)|]|}"}]},"routines":{"patterns":[{"name":"meta.function.nim","begin":"(?x: (proc|template|iterator|func|method|macro|converter)\\b (?:[ ]*([A-Za-z\\x80-\\xff](?:_?[\\dA-Za-z\\x80-\\xff])*|_|`[^;,\\n`]+`)(?:[ ]*(\\*))?)? )","end":"(:)|(?=[^#\\(\\[:\\s]|##)","patterns":[{"include":"#comments"},{"include":"#patterns"},{"include":"#generic-param-list"},{"include":"#param-list"}],"beginCaptures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"entity.name.function.nim"},"3":{"name":"storage.modifier.nim"}},"endCaptures":{"1":{"name":"punctuation.separator.annotation.nim"}}}]},"rstr_lit":{"patterns":[{"contentName":"string.quoted.double.nim","begin":"([Rr])(\")","end":"(\"(?!\"))|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\"\""}],"beginCaptures":{"1":{"name":"storage.type.nim"},"2":{"name":"string.quoted.double.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"string.quoted.double.nim punctuation.definition.string.end.nim"},"2":{"name":"string.quoted.double.nim invalid.illegal.unclosed-string.nim"}}}]},"square-brackets":{"patterns":[{"name":"meta.brackets.nim","begin":"\\[","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.nim"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.nim"}}}]},"str_lit":{"patterns":[{"name":"string.quoted.double.nim","begin":"\"","end":"(\")|(\\n)","patterns":[{"name":"constant.character.escape.nim","match":"\\\\(?:[ABCEFLNPRTVabceflnprtv\"'\\\\]|\\d+|[Xx][[:xdigit:]]{2}|[Uu](?:[[:xdigit:]]{4}|\\{[[:xdigit:]]+}))"},{"name":"invalid.illegal.lone-escape.nim","match":"\\\\"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.nim"},"2":{"name":"invalid.illegal.nim"}}}]},"str_lits":{"patterns":[{"include":"#triplestr_lit"},{"include":"#rstr_lit"},{"include":"#str_lit"}]},"triplestr_lit":{"patterns":[{"contentName":"string.quoted.triple.nim","begin":"([Rr])?(\"\"\")","end":"\"\"\"(?!\")","beginCaptures":{"1":{"name":"storage.type.nim"},"2":{"name":"string.quoted.triple.nim punctuation.definition.string.begin.nim"}},"endCaptures":{"0":{"name":"string.quoted.triple.nim punctuation.definition.string.end.nim"}}}]},"types":{"patterns":[{"contentName":"meta.generic.nim","begin":"(?=(?:[A-Za-z](?:_?[\\dA-Za-z])*)\\[)(?x:(out|ptr|ref|array |cstring[Aa]rray|iterable|lent|open[Aa]rray|owned|ptr|range|ref|se[qt] |sink|static|type(?:[Dd]esc)?|varargs)|([A-Z][\\dA-Za-z]+))(\\[)","end":"]","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.type.primitive.nim"},"2":{"name":"support.type.nim"},"3":{"name":"meta.generic.nim punctuation.section.generic.begin.nim"}},"endCaptures":{"0":{"name":"meta.generic.nim punctuation.section.generic.nim"}}},{"name":"storage.type.primitive.nim","match":"\\b(?:out|tuple|ref|ptr)\\b"}]}}}
@@ -0,0 +1 @@
1
+ {"name":"nushell","scopeName":"source.nushell","patterns":[{"include":"#define-variable"},{"include":"#define-alias"},{"include":"#function"},{"include":"#extern"},{"include":"#module"},{"include":"#use-module"},{"include":"#expression"},{"include":"#comment"}],"repository":{"binary":{"name":"constant.binary.nushell","begin":"\\b(0x)(\\[)","end":"\\]","patterns":[{"name":"constant.numeric.nushell","match":"[0-9a-fA-F]{2}"}],"beginCaptures":{"1":{"name":"constant.numeric.nushell"},"2":{"name":"meta.brace.square.begin.nushell"}},"endCaptures":{"0":{"name":"meta.brace.square.begin.nushell"}}},"braced-expression":{"name":"meta.expression.braced.nushell","begin":"(\\{)(?:\\s*\\|([\\w, ]*)\\|)?","end":"\\}","patterns":[{"name":"meta.record-entry.nushell","begin":"((?:(?:[^$\\(\\{\\[\"'#\\s][^\\(\\{\\[\"'#\\s]*)|\\$?(?:\"[^\"]+\"|'[^']+')))\\s*(:)\\s*","end":"(?=,|\\s|\\})","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"variable.other.nushell","patterns":[{"include":"#paren-expression"}]},"2":{"patterns":[{"include":"#operators"}]}}},{"include":"source.nushell"}],"beginCaptures":{"1":{"name":"punctuation.section.block.begin.bracket.curly.nushell"},"2":{"patterns":[{"include":"#function-parameter"},{"name":"punctuation.separator.nushell","match":","}]}},"endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.nushell"}}},"command":{"name":"meta.command.nushell","begin":"(?\u003c!\\w)(?:(\\^)|(?![0-9]|\\$))([\\w.!]+(?:(?: (?!-)[\\w\\-.!]+(?:(?= |\\))|$)|[\\w\\-.!]+))*|(?\u003c=\\^)\\$?(?:\"[^\"]+\"|'[^']+'))","end":"(?=\\||\\)|\\}|;)|$","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"keyword.operator.nushell"},"2":{"patterns":[{"include":"#control-keywords"},{"match":"(?:ansi|char) \\w+","captures":{"0":{"name":"keyword.other.builtin.nushell"}}},{"match":"(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:its(?: (?:and|not|or|ro(?:l|r)|sh(?:l|r)|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|har|lear|o(?:l(?:lect|umns)|m(?:mandline|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug|code(?: (?:base64|hex))?|f(?:-env|ault)?|scribe|tect columns)|fr (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:ache|o(?:l(?:lect|umns)?|n(?:cat(?:-str|enate)|tains)|unt(?:-null)?)|umulative)|d(?:rop(?:-(?:duplicates|nulls))?|types|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:nto-(?:df|lazy|nu)|s-(?:duplicated|in|n(?:ot-null|ull)|unique))|join|l(?:ast|i(?:st|t)|owercase|s)|m(?:ax|e(?:an|dian|lt)|in)|n(?:-unique|ot)|o(?:pen|therwise)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:ample|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|r(?:-(?:lengths|slice)|ftime))|um(?:mary)?)|t(?:ake|o-(?:arrow|csv|parquet))|u(?:nique|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column))|o|rop(?: (?:column|nth))?|u)|e(?:ach(?: while)?|cho|n(?:code(?: (?:base64|hex))?|ter|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|def(?:-env)?|extern|old-alias|use)|-env)?)|tern))|f(?:i(?:l(?:l|ter)|nd|rst)|latten|mt|or(?:mat(?: filesize)?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|y(?:aml|ml)))?)|g(?:et|lob|r(?:id|oup(?:-by)?)|stat)?|h(?:ash(?: (?:base64|md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|externs|modules|operators))?)|i(?:de(?:-env)?|st(?:o(?:gram|ry(?: session)?))?)|ttp(?: (?:delete|get|head|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put|s(?:ert|pect)|to(?: (?:b(?:inary|ool)|d(?:atetime|ecimal|uration)|filesize|int|record|s(?:qlite|tring)))?)|s-(?:admin|empty)|tems)|j(?:oin|son path)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cos(?:h)?|sin(?:h)?|tan(?:h)?)|vg)|c(?:eil|os(?:h)?)|e(?:val|xp)?|floor|l(?:n|og)|m(?:ax|edian|in|ode)|p(?:i|roduct)|round|s(?:in(?:h)?|qrt|tddev|um)|ta(?:n(?:h)?|u)|variance))?)|e(?:rge|tadata)|kdir|o(?:dule|ve)|ut|v)|n(?:u-(?:check|highlight))?|o(?:ld-alias|pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|eriodic-table|lot|net|ort|r(?:epend|int|ofile)|s)?|query(?: (?:db|json|web|xml))?|r(?:an(?:dom(?: (?:bool|chars|d(?:ecimal|ice)|integer|uuid))?|ge)|e(?:duce|g(?:ex|ist(?:er|ry query))|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|chema|e(?:lect|q(?: (?:char|date))?)|h(?:ells|uffle)|ize|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:hars|olumn)|list|row|words)|-by)?|t(?:art|r(?: (?:c(?:a(?:mel-case|pitalize)|o(?:llect|ntains))|d(?:istance|owncase)|ends-with|find-replace|index-of|join|kebab-case|l(?:ength|pad)|pascal-case|r(?:e(?:place|verse)|pad)|s(?:creaming-snake-case|nake-case|tarts-with|ubstring)|t(?:itle-case|o-(?:d(?:atetime|ecimal)|int)|rim)|upcase))?)|ys)|t(?:a(?:ble|ke(?: (?:until|while))?)|erm size|imeit|o(?: (?:csv|html|json|md|nuon|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:niq(?:-by)?|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le))|i(?:ndow|th-env)|rap)|xyplot|zip)(?![\\w-])( (.*))?","captures":{"1":{"name":"keyword.other.builtin.nushell"},"2":{"patterns":[{"include":"#value"}]}}},{"name":"entity.name.type.external.nushell","match":"(?\u003c=\\^)(?:\\$(\"[^\"]+\"|'[^']+')|\"[^\"]+\"|'[^']+')","captures":{"1":{"patterns":[{"include":"#paren-expression"}]}}},{"match":"([\\w.]+(?:-[\\w.!]+)*)(?: (.*))?","captures":{"1":{"name":"entity.name.type.external.nushell"},"2":{"patterns":[{"include":"#value"}]}}},{"include":"#value"}]}}},"comment":{"name":"comment.nushell","match":"(#.*)$"},"constant-keywords":{"name":"constant.language.nushell","match":"\\b(?:true|false|null)\\b"},"constant-value":{"patterns":[{"include":"#constant-keywords"},{"include":"#datetime"},{"include":"#numbers"},{"include":"#numbers-hexa"},{"include":"#binary"}]},"control-keywords":{"name":"keyword.control.nushell","match":"(?\u003c![0-9a-zA-Z_\\-.\\/:\\\\])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![0-9a-zA-Z_\\-.\\/:\\\\])"},"datetime":{"name":"constant.numeric.nushell","match":"\\b\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:\\+\\d{2}:?\\d{2}|Z)?)?\\b"},"define-alias":{"match":"((?:export )?alias)\\s+([\\w\\-!]+)\\s*(=)","captures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.type.nushell"},"3":{"patterns":[{"include":"#operators"}]}}},"define-extern":{"match":"((?:export\\s+)?extern)\\s+([\\w\\-!]+|\"[\\w\\-! ]+\")","captures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.type.nushell"}}},"define-function":{"match":"((?:export\\s+)?def(?:-env)?)\\s+([\\w\\-!]+|\"[\\w\\-! ]+\")","captures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.type.nushell"}}},"define-variable":{"match":"(let(?:-env)?|mut|const)\\s+(\\w+)\\s*(=)","captures":{"1":{"name":"keyword.other.nushell"},"2":{"name":"variable.other.nushell"},"3":{"patterns":[{"include":"#operators"}]}}},"expression":{"patterns":[{"include":"#pre-command"},{"include":"#for-loop"},{"include":"#operators"},{"include":"#control-keywords"},{"include":"#constant-value"},{"include":"#command"},{"include":"#value"}]},"extern":{"begin":"((?:export\\s+)?extern)\\s+([\\w\\-]+|\"[\\w\\- ]+\")","end":"(?\u003c=\\])","patterns":[{"include":"#function-parameters"}],"beginCaptures":{"0":{"patterns":[{"include":"#define-extern"}]}},"endCaptures":{"0":{"name":"punctuation.definition.function.end.nushell"}}},"for-loop":{"name":"meta.for-loop.nushell","begin":"(for)\\s+(\\$?\\w+)\\s+(in)\\s+(.+)\\s*(\\{)","end":"\\}","patterns":[{"include":"source.nushell"}],"beginCaptures":{"1":{"name":"keyword.other.nushell"},"2":{"name":"variable.other.nushell"},"3":{"name":"keyword.other.nushell"},"4":{"patterns":[{"include":"#value"}]},"5":{"name":"punctuation.section.block.begin.bracket.curly.nushell"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.nushell"}}},"function":{"begin":"((?:export\\s+)?def(?:-env)?)\\s+([\\w\\-]+|\"[\\w\\- ]+\")","end":"(?\u003c=\\})","patterns":[{"include":"#function-parameters"},{"include":"#function-body"}],"beginCaptures":{"0":{"patterns":[{"include":"#define-function"},{"include":"#define-extern"}]}},"endCaptures":{"0":{"name":"punctuation.definition.function.end.nushell"}}},"function-body":{"name":"meta.function.body.nushell","begin":"\\{","end":"\\}","patterns":[{"include":"source.nushell"}],"beginCaptures":{"0":{"name":"punctuation.definition.function.begin.nushell"}},"endCaptures":{"0":{"name":"punctuation.definition.function.end.nushell"}}},"function-parameter":{"patterns":[{"include":"#function-parameter-declare"},{"include":"#function-parameter-default-value"}]},"function-parameter-declare":{"match":"(-{0,2}[\\w-]+|\\.{3})(?:\\((-[\\w?])\\))?(?:\\s*(\\??:)\\s*(\\w+)(?:@((?:\"[^\"]+\")|(?:'[^']+')))?)?","captures":{"1":{"name":"variable.parameter.nushell"},"2":{"name":"variable.parameter.nushell"},"3":{"name":"keyword.operator.nushell"},"4":{"name":"entity.name.type.nushell"},"5":{"name":"string.quoted.nushell"}}},"function-parameter-default-value":{"begin":"=\\s*","end":"(?=\\])|,|$","patterns":[{"include":"#value"}],"captures":{"1":{"name":"variable.parameter.nushell"},"2":{"name":"variable.parameter.nushell"},"3":{"name":"keyword.operator.nushell"},"4":{"name":"entity.name.type.nushell"}}},"function-parameters":{"name":"meta.function.parameters.nushell","begin":"\\[","end":"\\]","patterns":[{"include":"#function-parameter"},{"include":"#comment"}],"beginCaptures":{"0":{"name":"meta.brace.square.begin.nushell"}},"endCaptures":{"0":{"name":"meta.brace.square.end.nushell"}}},"internal-variables":{"name":"variable.language.nushell","match":"\\$(?:nu|env)\\b"},"keyword":{"name":"keyword.other.nushell","match":"(?:def(?:-env)?)"},"module":{"name":"meta.module.nushell","begin":"(module)\\s+([\\w\\-]+)\\s*\\{","end":"\\}","patterns":[{"include":"source.nushell"}],"beginCaptures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.namespace.nushell"}},"endCaptures":{"0":{"name":"punctuation.definition.module.end.nushell"}}},"numbers":{"name":"constant.numeric.nushell","match":"(?\u003c![\\w-])[-+]?(?:\\d+|\\d{1,3}(?:_\\d{3})*)(?:\\.\\d*)?(?i:ns|us|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\\w.])|(?=\\.\\.))"},"numbers-hexa":{"name":"constant.numeric.nushell","match":"(?\u003c![\\w-])0x[0-9a-fA-F]+(?![\\w.])"},"operators":{"patterns":[{"include":"#operators-word"},{"include":"#operators-symbols"},{"include":"#ranges"}]},"operators-symbols":{"name":"keyword.control.nushell","match":"(?\u003c= )(?:\\+|\\-|\\*|\\/|\\/\\/|\\*\\*|!=|[\u003c\u003e=]=?|[!=]~|\u0026\u0026|\\|\\||\\||\\+\\+=?)(?= |$)"},"operators-word":{"name":"keyword.control.nushell","match":"(?\u003c= |\\()(?:mod|in|not-in|not|and|or|xor|bit-or|bit-and|bit-xor|bit-shl|bit-shr|starts-with|ends-with)(?= |\\)|$)"},"parameters":{"name":"variable.parameter.nushell","match":"\\b-{1,2}[\\w-]*"},"paren-expression":{"name":"meta.expression.parenthesis.nushell","begin":"\\(","end":"\\)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"meta.brace.round.begin.nushell"}},"endCaptures":{"0":{"name":"meta.brace.round.end.nushell"}}},"pre-command":{"begin":"(\\w+)(=)","end":"(?=\\s+)","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"variable.other.nushell"},"2":{"patterns":[{"include":"#operators"}]}}},"ranges":{"name":"keyword.control.nushell","match":"\\.\\.\u003c?|:"},"string":{"patterns":[{"include":"#string-single-quote"},{"include":"#string-backtick"},{"include":"#string-double-quote"},{"include":"#string-interpolated-double"},{"include":"#string-interpolated-single"},{"include":"#string-bare"}]},"string-backtick":{"name":"string.quoted.single.nushell","begin":"`","end":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}}},"string-bare":{"name":"string.bare.nushell","match":"[^$\\[{(\"',|#\\s|][^\\[\\]{}()\"'\\s#,|]*"},"string-double-quote":{"name":"string.quoted.double.nushell","begin":"\"","end":"\"","patterns":[{"match":"\\w+"},{"include":"#string-escape"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}}},"string-escape":{"name":"constant.character.escape.nushell","match":"\\\\(?:[bfrnt\\\\'\"/]|u[0-9a-fA-F]{4})"},"string-interpolated-double":{"name":"string.interpolated.double.nushell","begin":"\\$\"","end":"\"","patterns":[{"name":"constant.character.escape.nushell","match":"\\\\[()]"},{"include":"#string-escape"},{"include":"#paren-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}}},"string-interpolated-single":{"name":"string.interpolated.single.nushell","begin":"\\$'","end":"'","patterns":[{"include":"#paren-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}}},"string-single-quote":{"name":"string.quoted.single.nushell","begin":"'","end":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}}},"table":{"name":"meta.table.nushell","begin":"\\[","end":"\\]","patterns":[{"include":"#value"},{"name":"punctuation.separator.nushell","match":","},{"include":"#comment"}],"beginCaptures":{"0":{"name":"meta.brace.square.begin.nushell"}},"endCaptures":{"0":{"name":"meta.brace.square.end.nushell"}}},"use-module":{"patterns":[{"match":"^\\s*((?:export )?use)\\s+([\\w\\-]+|\"[\\w\\- ]+\"|'[\\w\\- ]+')(?:\\s+([\\w\\-]+|\"[\\w\\- ]+\"|'[\\w\\- ]+'|\\*))?\\s*;?$","captures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.namespace.nushell"},"3":{"name":"keyword.other.nushell"}}},{"begin":"^\\s*((?:export )?use)\\s+([\\w\\-]+|\"[\\w\\- ]+\"|'[\\w\\- ]+')\\s*\\[","end":"(\\])\\s*;?\\s*$","patterns":[{"match":"([\\w\\-]+|\"[\\w\\- ]+\"|'[\\w\\- ]+'|\\*),?","captures":{"1":{"name":"keyword.other.nushell"}}},{"include":"#comment"}],"beginCaptures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.namespace.nushell"}},"endCaptures":{"1":{"name":"meta.brace.square.end.nushell"}}},{"match":"(?\u003cpath\u003e(?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\w\\- ]+(?:\\.nu)?){0}^\\s*((?:export )?use)\\s+(\"\\g\u003cpath\u003e\"|'\\g\u003cpath\u003e\\'|(?![\"'])\\g\u003cpath\u003e)(?:\\s+([\\w\\-]+|\"[\\w\\- ]+\"|'[^']+'|\\*))?\\s*;?$","captures":{"2":{"name":"entity.name.function.nushell"},"3":{"name":"string.bare.nushell","patterns":[{"match":"([\\w\\- ]+)(?:\\.nu)?(?=$|\"|')","captures":{"1":{"name":"entity.name.namespace.nushell"}}}]},"4":{"name":"keyword.other.nushell"}}},{"begin":"(?\u003cpath\u003e(?:/|\\\\|~[\\/\\\\]|\\.\\.?[\\/\\\\])?(?:[^\\/\\\\]+[\\/\\\\])*[\\w\\- ]+(?:\\.nu)?){0}^\\s*((?:export )?use)\\s+(\"\\g\u003cpath\u003e\"|'\\g\u003cpath\u003e\\'|(?![\"'])\\g\u003cpath\u003e)\\s+\\[","end":"(\\])\\s*;?\\s*$","patterns":[{"match":"([\\w\\-]+|\"[\\w\\- ]+\"|'[\\w\\- ]+'|\\*),?","captures":{"0":{"name":"keyword.other.nushell"}}},{"include":"#comment"}],"beginCaptures":{"2":{"name":"entity.name.function.nushell"},"3":{"name":"string.bare.nushell","patterns":[{"match":"([\\w\\- ]+)(?:\\.nu)?(?=$|\"|')","captures":{"1":{"name":"entity.name.namespace.nushell"}}}]}},"endCaptures":{"1":{"name":"meta.brace.square.end.nushell"}}},{"match":"^\\s*(?:export )?use\\b","captures":{"0":{"name":"entity.name.function.nushell"}}}]},"value":{"patterns":[{"include":"#variables"},{"include":"#variable-fields"},{"include":"#control-keywords"},{"include":"#constant-value"},{"include":"#table"},{"include":"#parameters"},{"include":"#operators"},{"include":"#paren-expression"},{"include":"#braced-expression"},{"include":"#string"},{"include":"#comment"}]},"variable-fields":{"name":"variable.other.nushell","match":"(?\u003c=\\)|\\}|\\])(?:\\.(?:[\\w-]+|\"[\\w\\- ]+\"))+"},"variables":{"match":"(\\$[a-zA-Z0-9_]+)((?:\\.(?:[\\w-]+|\"[\\w\\- ]+\"))*)","captures":{"1":{"patterns":[{"include":"#internal-variables"},{"name":"variable.other.nushell","match":"\\$.+"}]},"2":{"name":"variable.other.nushell"}}}}}
@@ -0,0 +1 @@
1
+ {"name":"Pact","scopeName":"source.pact","patterns":[{"include":"#comment"},{"include":"#sexp"},{"include":"#reserved"},{"include":"#type"},{"include":"#string"},{"include":"#list"},{"include":"#object"},{"include":"#literal"},{"include":"#symbol"},{"include":"#metas"},{"include":"#let"}],"repository":{"arglist":{"begin":"(?\u003c=\\()","end":"(?=\\))","patterns":[{"name":"variable.name.arg.pact","match":"([\\w%#+\\-_\u0026\\$@\u003c\u003e=\\?\\*!\\|/]+)"},{"include":"#type"}]},"atom":{"patterns":[{"match":"([\\w%#+-_\u0026\\$@\u003c\u003e=\\?\\*!\\|/]+)"}]},"comment":{"name":"comment.line.semicolon.pact","match":"(;).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.pact"}}},"deflam":{"name":"meta.definition.global.pact","begin":"(?\u003c=\\()(defun|defpact|defcap)\\s+([\\w%#+\\-_\u0026\\$@\u003c\u003e=\\?\\*!\\|/]+)","end":"\\)","patterns":[{"include":"#arglist"},{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.reserved.pact"},"2":{"name":"entity.function.name.pact"}}},"defsimple":{"name":"meta.definition.global.pact","begin":"(?\u003c=\\()(defconst|defschema|deftable|module|interface)\\s+([\\w%#+-_\u0026\\$@\u003c\u003e=\\?\\*!\\|/]+)\\b","end":"(?=\\))","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.reserved.pact"},"2":{"name":"entity.function.name.pact"}}},"let":{"name":"meta.let.declaration.pact","begin":"\\((let\\*?)\\s","end":"\\)","patterns":[{"name":"meta.let.bindings.pact","begin":"\\(","end":"(?=\\))","patterns":[{"name":"meta.let.binding.pact","begin":"\\(([\\w%#+\\-_\u0026\\$@\u003c\u003e=\\?\\*!\\|/]+)\\b","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"variable.let.pact"}}}]}],"beginCaptures":{"1":{"name":"keyword.let.pact"}}},"list":{"name":"meta.list.pact","begin":"(\\[)","end":"(\\](?=[\\}\\]\\)\\s]*(?:;|$)))|(\\])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.section.list.begin.pact"}},"endCaptures":{"1":{"name":"punctuation.section.list.end.trailing.pact"},"2":{"name":"punctuation.section.list.end.pact"}}},"literal":{"patterns":[{"name":"constant.language.boolean.pact","match":"(true|false)"},{"name":"constant.numeric.double.pact","match":"\\b(-?\\d+\\.\\d+)\\b"},{"name":"constant.numeric.integer.pact","match":"\\b(-?\\d+)\\b"},{"name":"constant.language.binder.pact","match":"(:=?)"}]},"metas":{"patterns":[{"name":"variable.language.metas.pact","match":"@\\w+"}]},"object":{"name":"meta.object.pact","begin":"(\\{)","end":"(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})","patterns":[{"begin":"(:=)","end":"([\\w%#+\\-_\u0026\\$@\u003c\u003e=\\?\\*!\\|/]+)","beginCaptures":{"1":{"name":"constant.binder.pact"}},"endCaptures":{"1":{"name":"variable.binder.pact"}}},{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.section.object.begin.pact"}},"endCaptures":{"1":{"name":"punctuation.section.object.end.trailing.pact"},"2":{"name":"punctuation.section.object.end.pact"}}},"reserved":{"patterns":[{"name":"keyword.reserved.pact","match":"\\b(module|interface|list|let|let\\*|defun|defpact|defconst|defschema|deftable|defcap|step|use|step-with-rollback|invariants?|properties|property|defproperty|bless|implements)\\b"}]},"sexp":{"name":"meta.expression.pact","begin":"(\\()","end":"(\\))(\\n)|(\\)(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\))","patterns":[{"include":"#deflam"},{"include":"#defsimple"},{"include":"#string"},{"include":"#reserved"},{"include":"#literal"},{"include":"#list"},{"include":"#object"},{"include":"#let"},{"include":"#sexp"},{"match":"(?\u003c=\\()(.+?)(?=\\s|\\))","patterns":[{"include":"$self"}],"captures":{"1":{"name":"entity.name.function.pact"}}},{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.section.expression.begin.pact"}},"endCaptures":{"1":{"name":"punctuation.section.expression.end.trailing.pact"},"2":{"name":"meta.after-expression.pact"},"3":{"name":"punctuation.section.expression.end.trailing.pact"},"4":{"name":"punctuation.section.expression.end.pact"}}},"string":{"name":"string.quoted.double.pact","begin":"(?\u003c!\\\\)(\")","end":"(?\u003c!\\\\)(\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.pact"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.pact"}}},"symbol":{"patterns":[{"name":"string.quoted.symbol.pact","begin":"'","end":"(?=\\s|[],:\"'.)])"}]},"type":{"patterns":[{"match":"(?:[:])(integer|decimal|time|bool|string|list|value|keyset|guard|(object|table)?\\{[\\w%#+\\-\\._\u0026\\$@\u003c\u003e=\\?\\*!\\|/]+\\}|object|table)","captures":{"1":{"name":"keyword.reserved.type.pact"}}}]}}}
@@ -1 +1 @@
1
- {"name":"PDDL","scopeName":"source.pddl","patterns":[{"include":"#meta"},{"include":"#keywords"},{"include":"#comments"},{"include":"#scalars"},{"include":"#time-qualifiers"},{"include":"#operators"},{"include":"#parameters"},{"include":"#unexpected"}],"repository":{"comments":{"patterns":[{"name":"comment.line","match":";.*$"}]},"keywords":{"patterns":[{"name":"keyword.control.pddl.header","match":"\\b(define|domain|problem)\\b"},{"name":"keyword.control.pddl.requirements","match":":(strips|typing|negative-preconditions|disjunctive-preconditions|equality|existential-preconditions|universal-preconditions|quantified-preconditions|conditional-effects|fluents|numeric-fluents|object-fluents|adl|durative-actions|duration-inequalities|continuous-effects|derived-predicates|derived-functions|timed-initial-literals|timed-effects|preferences|constraints|action-costs|timed-initial-fluents|time|supply-demand)\\b"},{"name":"keyword.control.pddl.global","match":":(requirements|types|constants|predicates|functions|derived|action|durative-action|event|process|domain|objects|init|goal|metric)\\b"},{"name":"keyword.control.pddl.action","match":":(parameters|precondition|effect)\\b"},{"name":"keyword.control.pddl.action.durative","match":":(parameters|duration|condition|effect)\\b"}]},"meta":{"patterns":[{"name":"meta.preprocessor.pre-parsing","match":"^;;\\s*!pre-parsing:\\s*{\\s*type:\\s*\"(command|nunjucks|jinja2|python)\"\\s*,\\s*(command:\\s*\"([\\w:\\-/\\\\\\. ]+)\"\\s*(,\\s*args:\\s*\\[([^\\]]*)\\])?|data:\\s*\"([\\w:\\-/\\\\\\. ]+)\")\\s*}","captures":{"1":{"name":"variable.parameter.pre-parsing.type"},"3":{"name":"variable.parameter.pre-parsing.command"},"5":{"patterns":[{"name":"variable.parameter.pre-parsing.data","begin":"\"","end":"\""}]},"6":{"name":"variable.parameter.pre-parsing.data"}}},{"name":"meta.preprocessor","match":"^;;\\s*!"},{"name":"meta.preprocessor.template.flow-control","match":"{%[^%]+%}"},{"name":"meta.preprocessor.template.literal","match":"{{[^}]+}}"}]},"operators":{"patterns":[{"name":"keyword.operator.logical","match":"\\b(and|not|or|either)\\b"},{"name":"keyword.other.numeric","match":"(\u003e|\u003c|\u003e=|\u003c=|=|/|\\*|\\+)"},{"name":"keyword.other.effects","match":"\\b(assign|increase|decrease|forall|exists)\\b"},{"name":"keyword.other.undefined","match":"\\b(undefined)\\b"},{"name":"keyword.other.metric","match":"\\b(minimize|maximize)\\b"}]},"parameters":{"patterns":[{"name":"variable.parameter","match":"\\?\\w+\\b"}]},"scalars":{"patterns":[{"name":"constant.numeric","match":"\\b[-+]?([0-9]*\\.[0-9]+|[0-9]+)\\b"}]},"time-qualifiers":{"patterns":[{"name":"keyword.other.pddl_qualifier","match":"\\b(at start|at end|over all)\\b"},{"name":"keyword.other.delta_t","match":"#t\\b"}]},"unexpected":{"patterns":[{"name":"invalid.illegal","match":":[\\w-]+\\b"}]}}}
1
+ {"name":"PDDL","scopeName":"source.pddl","patterns":[{"include":"#meta"},{"include":"#keywords"},{"include":"#comments"},{"include":"#scalars"},{"include":"#time-qualifiers"},{"include":"#operators"},{"include":"#parameters"},{"include":"#unexpected"}],"repository":{"comments":{"patterns":[{"name":"comment.line","match":";.*$"}]},"keywords":{"patterns":[{"name":"keyword.control.pddl.header","match":"\\b(define|domain|problem)\\b"},{"name":"keyword.control.pddl.requirements","match":":(strips|typing|negative-preconditions|disjunctive-preconditions|equality|existential-preconditions|universal-preconditions|quantified-preconditions|conditional-effects|fluents|numeric-fluents|object-fluents|adl|durative-actions|duration-inequalities|continuous-effects|derived-predicates|derived-functions|timed-initial-literals|timed-effects|preferences|constraints|action-costs|timed-initial-fluents|time|supply-demand|job-scheduling)\\b"},{"name":"keyword.control.pddl.global","match":":(requirements|types|constants|predicates|functions|derived|action|durative-action|event|process|job|domain|objects|init|goal|metric)\\b"},{"name":"keyword.control.pddl.action","match":":(parameters|precondition|effect)\\b"},{"name":"keyword.control.pddl.action.durative","match":":(parameters|duration|condition|effect)\\b"},{"name":"keyword.control.pddl.action.job","match":":(parameters|duration|condition|effect)\\b"}]},"meta":{"patterns":[{"name":"meta.preprocessor.pre-parsing","match":"^;;\\s*!pre-parsing:\\s*{\\s*type:\\s*\"(command|nunjucks|jinja2|python)\"\\s*,\\s*(command:\\s*\"([\\w:\\-/\\\\\\. ]+)\"\\s*(,\\s*args:\\s*\\[([^\\]]*)\\])?|data:\\s*\"([\\w:\\-/\\\\\\. ]+)\")\\s*}","captures":{"1":{"name":"variable.parameter.pre-parsing.type"},"3":{"name":"variable.parameter.pre-parsing.command"},"5":{"patterns":[{"name":"variable.parameter.pre-parsing.data","begin":"\"","end":"\""}]},"6":{"name":"variable.parameter.pre-parsing.data"}}},{"name":"meta.preprocessor","match":"^;;\\s*!"},{"name":"meta.preprocessor.template.flow-control","match":"{%[^%]+%}"},{"name":"meta.preprocessor.template.literal","match":"{{[^}]+}}"}]},"operators":{"patterns":[{"name":"keyword.operator.logical","match":"\\b(and|not|or|either)\\b"},{"name":"keyword.other.numeric","match":"(\u003e|\u003c|\u003e=|\u003c=|=|/|\\*|\\+)"},{"name":"keyword.other.effects","match":"\\b(assign|increase|decrease|forall|exists)\\b"},{"name":"keyword.other.undefined","match":"\\b(undefined)\\b"},{"name":"keyword.other.metric","match":"\\b(minimize|maximize)\\b"}]},"parameters":{"patterns":[{"name":"variable.parameter","match":"\\?\\w+\\b"}]},"scalars":{"patterns":[{"name":"constant.numeric","match":"\\b[-+]?([0-9]*\\.[0-9]+|[0-9]+)\\b"}]},"time-qualifiers":{"patterns":[{"name":"keyword.other.pddl_qualifier","match":"\\b(at start|at end|over all)\\b"},{"name":"keyword.other.delta_t","match":"#t\\b"}]},"unexpected":{"patterns":[{"name":"invalid.illegal","match":":[\\w-]+\\b"}]}}}
@@ -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|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|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"}}}]}}}