github-linguist 7.18.0 → 7.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/github-linguist +1 -0
- data/grammars/liquid.injection.json +1 -0
- data/grammars/markdown.curry.codeblock.json +1 -0
- data/grammars/markdown.textproto.codeblock.json +1 -0
- data/grammars/source.2da.json +1 -0
- data/grammars/source.aidl.json +1 -1
- data/grammars/source.ballerina.json +1 -1
- data/grammars/source.bnd.json +1 -0
- data/grammars/source.cl.json +1 -0
- data/grammars/source.clar.json +1 -0
- data/grammars/source.clarion.json +1 -1
- data/grammars/source.clojure.json +1 -1
- data/grammars/source.cmd.json +1 -0
- data/grammars/source.cs.json +1 -1
- data/grammars/source.csound.json +1 -1
- data/grammars/source.curry.json +1 -0
- data/grammars/source.data-weave.json +1 -1
- data/grammars/source.dds.dspf.json +1 -0
- data/grammars/source.dds.icff.json +1 -0
- data/grammars/source.dds.lf.json +1 -0
- data/grammars/source.dds.pf.json +1 -0
- data/grammars/source.dds.prtf.json +1 -0
- data/grammars/source.deb-control.json +1 -0
- data/grammars/source.debian.makefile.json +1 -0
- data/grammars/source.denizenscript.json +1 -0
- data/grammars/source.elixir.json +1 -1
- data/grammars/source.euphoria.json +1 -0
- data/grammars/source.fsharp.json +1 -1
- data/grammars/source.gitignore.json +1 -1
- data/grammars/source.gleam.json +1 -0
- data/grammars/source.gsc.json +1 -0
- data/grammars/source.hoon.json +1 -0
- data/grammars/source.icurry.json +1 -0
- data/grammars/source.janet.json +1 -0
- data/grammars/source.js.json +1 -1
- data/grammars/source.julia.json +1 -1
- data/grammars/source.mi.json +1 -0
- data/grammars/source.miniyaml.json +1 -0
- data/grammars/source.mint.json +1 -0
- data/grammars/source.mlir.json +1 -1
- data/grammars/source.pcb.schematic.json +1 -1
- data/grammars/source.pcb.sexp.json +1 -1
- data/grammars/source.pnlgrp.json +1 -0
- data/grammars/source.procfile.json +1 -0
- data/grammars/source.proto.json +1 -1
- data/grammars/source.python.kivy.json +1 -0
- data/grammars/source.qsharp.json +1 -1
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.rescript.json +1 -1
- data/grammars/source.rpg.json +1 -0
- data/grammars/source.rpgle.json +1 -0
- data/grammars/source.shellcheckrc.json +1 -1
- data/grammars/source.smali.json +1 -1
- data/grammars/source.solidity.json +1 -1
- data/grammars/source.textproto.json +1 -0
- data/grammars/source.ts.json +1 -1
- data/grammars/source.tsx.json +1 -1
- data/grammars/source.vyper.json +1 -1
- data/grammars/source.witcherscript.json +1 -0
- data/grammars/source.wsd.json +1 -1
- data/grammars/text.html.liquid.json +1 -1
- data/grammars/text.rtf.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +13 -1
- data/lib/linguist/heuristics.yml +51 -1
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +179 -1
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/vendor.yml +1 -1
- metadata +67 -34
data/grammars/source.vyper.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Vyper","scopeName":"source.vyper","patterns":[{"name":"comment","match":"\\#.*"},{"name":"comment","begin":"(\\\"\\\"\\\")","end":"(\\\"\\\"\\\")"},{"name":"keyword.control","match":"\\b(event|
|
1
|
+
{"name":"Vyper","scopeName":"source.vyper","patterns":[{"name":"comment","match":"\\#.*"},{"name":"comment","begin":"(\\\"\\\"\\\")","end":"(\\\"\\\"\\\")"},{"name":"keyword.control","match":"\\b(event|indexed)\\b"},{"name":"keyword.control","match":"\\b(contract|interface|library|using|struct|constructor|modifier)(\\s+[A-Za-z_]\\w*)?(?:\\s+is\\s+((?:[A-Za-z_][\\,\\s]*)*))?\\b","captures":{"2":{"name":"entity.name.function"},"3":{"name":"entity.name.function"}}},{"name":"keyword","match":"\\b(def)(\\s+[A-Za-z_]\\w*)?\\b","captures":{"2":{"name":"entity.name.function"},"3":{"name":"entity.name.function"}}},{"name":"constant.language","match":"\\b(True|False)\\b"},{"name":"markup.italic","match":"\\bself\\b"},{"name":"support.type","match":"\\b(address(?:\\s+payable)?|string|bytes?\\d*|int\\d*|uint\\d*|bool|u?fixed\\d+x\\d+)\\b"},{"name":"keyword.control","match":"\\b(import|constant|map|raise|payable|storage|memory|calldata|if|else|for|while|do|break|continue|return|private|public|immutable|pure|view|internal|external|this|suicide|selfdestruct|delegatecall|emit|new|is|throw|revert|assert|require|\\_)\\b"},{"name":"keyword","match":"\\b(not|and|or|pass|from|import|as)\\b"},{"name":"markup.italic","match":"(@[A-Za-z_]\\w*)\\b"},{"name":"keyword.operator","match":"(=|!|\u003e|\u003c|\\||\u0026|\\?|\\^|~|\\*|\\+|\\-|\\/|\\%|\\bhex\\b)"},{"match":"\\b(msg|block|tx)\\.([A-Za-z_]\\w*)\\b","captures":{"1":{"name":"support.type"},"2":{"name":"support.type"}}},{"match":"\\b(blockhash|gasleft|addmod|mulmod|keccak256|sha256|sha3|ripemd160|ecrecover)\\s*\\(","captures":{"1":{"name":"markup.italic"}}},{"match":"\\b([A-Za-z_]\\w*)(?:\\[(\\d*)\\])?(?:\\[(\\d*)\\])?\\(","captures":{"1":{"name":"entity.name.function"},"2":{"name":"constant.numeric"},"3":{"name":"constant.numeric"}}},{"match":"\\b\\.(length|selector)\\b","captures":{"1":{"name":"support.type"}}},{"match":"\\b(wei|gwei|ether|seconds|minutes|hours|days|weeks)\\b","captures":{"1":{"name":"constant.numeric"}}},{"name":"string.quoted","match":"([\\\"\\'].*?[\\\"\\'])"},{"name":"constant.numeric","match":"\\b(?:[+-]?\\.?\\d[\\d_eE]*)(?:\\.\\d+[\\deE]*)?\\b"},{"name":"constant.numeric","match":"\\b(0[xX][a-fA-F0-9]+)\\b"}]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"Witcher Script","scopeName":"source.witcherscript","patterns":[{"name":"comment.block.witcherscript","begin":"/\\*","end":"\\*/"},{"name":"comment.double-slash.witcherscript","match":"//.*"},{"name":"string.quoted.double.witcherscript","begin":"\"","end":"\""},{"name":"string.quoted.single.witcherscript","begin":"'","end":"'"},{"name":"keyword.control.witcherscript","match":"\\b(break|case|continue|else|for|if|return|switch|while)\\b"},{"name":"keyword.other.witcherscript","match":"\\b(out|inlined|autobind|editable|entry|exec|hint|import|latent|optional|out|quest|saved|statemachine|timer)\\b"},{"name":"keyword.operator.new.witcherscript","match":"\\b(=|!|\u003c|\u003e|\u0026|\\+|-|\\^|\\*|\\/|\\|)\\b"},{"name":"constant.numeric.witcherscript","match":"\\b(\\d+|\\d+.?(f)?)\\b"},{"name":"constant.rgb-value.witcherscript","match":"(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?\u003c!@){)"},{"name":"constant.language.witcherscript","match":"\\b(false|NULL|true)\\b"},{"name":"storage.type.witcherscript","match":"\\b(enum|struct|state|array)\\b"},{"name":"storage.modifier.witcherscript","match":"\\b(abstract|const|final|private|protected|public)\\b"},{"name":"support.class.witcherscript","match":"\\b(theGame|theInput|thePlayer|theSound)\\b"},{"name":"variable.language.witcherscript","match":"\\b(this|parent|super)\\b"},{"begin":"(function|event)\\s*(\\/\\*.*\\*\\/)?\\s*(\\w+)\\s*\\(","end":"\\)(\\s*:\\s*(array\\s*\u003c\\s*\\w+\\s*\u003e|\\w*))?","patterns":[{"match":"\\s*(out|optional)?\\s*(\\w+)\\s*:\\s*(array\\s*\u003c\\s*\\w+\\s*\u003e|\\w*|),?","captures":{"1":{"name":"keyword.other.witcherscript"},"2":{"name":"support.variable.witcherscript"},"3":{"patterns":[{"include":"#witcherscript-var-types"}]}}}],"beginCaptures":{"1":{"name":"support.type.witcherscript"},"2":{"name":"comment.block.witcherscript"},"3":{"name":"support.function.witcherscript"}},"endCaptures":{"2":{"patterns":[{"include":"#witcherscript-var-types"}]}}},{"begin":"\\b(var)\\b\\s*","end":":\\s*(array\\s*\u003c\\s*\\w+\\s*\u003e|\\w*)\\s*;","patterns":[{"name":"support.variable.witcherscript","match":"(\\w+)\\s*,?"}],"beginCaptures":{"1":{"name":"storage.type.witcherscript"}},"endCaptures":{"1":{"patterns":[{"include":"#witcherscript-var-types"}]}}},{"match":"(default)\\s*(\\w+)","captures":{"1":{"name":"keyword.control.witcherscript"},"2":{"name":"support.variable"}}},{"match":"(extends|class)\\s*(\\w*)","captures":{"1":{"name":"keyword.other.witcherscript"},"2":{"name":"support.class.witcherscript"}}},{"match":"\\(\\s*(\\s*[A-Z]\\w+\\s*)\\s*\\)\\s*\\(","captures":{"1":{"name":"support.class.witcherscript"}}},{"match":"\\(\\s*\\(\\s*([A-Z]\\w+)\\s*\\)","captures":{"1":{"name":"support.class.witcherscript"}}},{"match":"(new)\\s*(\\w+)\\s*(in)\\s*(this)","captures":{"1":{"name":"variable.language.witcherscript"},"2":{"name":"support.class.witcherscript"},"3":{"name":"variable.language.witcherscript"},"4":{"name":"variable.language.witcherscript"}}},{"include":"#witcherscript-data-types"}],"repository":{"witcherscript-data-types":{"patterns":[{"name":"storage.type.witcherscript","match":"\\b(string|int|integer|bool|float|name|range)\\b"}]},"witcherscript-object-types":{"patterns":[{"name":"support.class.witcherscript","match":"[A-Z]\\w+"}]},"witcherscript-var-types":{"patterns":[{"include":"#witcherscript-object-types"},{"match":"(array)\\s*\u003c\\s*(\\w+)\\s*\u003e","captures":{"1":{"name":"storage.type.witcherscript"},"2":{"patterns":[{"include":"#witcherscript-object-types"},{"include":"#witcherscript-data-types"}]}}},{"include":"#witcherscript-data-types"}]}}}
|
data/grammars/source.wsd.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Diagram","scopeName":"source.wsd","patterns":[{"name":"diagram.source.wsd","begin":"(?i)^\\s*(@start[a-z]+)((\\s+)(.+?))?\\s*$","end":"(?i)^\\s*(@end[a-z]+)\\s*$","patterns":[{"include":"#Quoted"},{"include":"#Comment"},{"include":"#Style"},{"include":"#Class"},{"include":"#Object"},{"include":"#Activity"},{"include":"#Sequence"},{"include":"#State"},{"include":"#Keywords"},{"include":"#General"}],"beginCaptures":{"1":{"name":"keyword.control.diagram.source.wsd"},"5":{"name":"entity.name.function.diagram.source.wsd"}},"endCaptures":{"1":{"name":"keyword.control.diagram.source.wsd"}}},{"include":"#Quoted"},{"include":"#Comment"},{"include":"#Style"},{"include":"#Class"},{"include":"#Object"},{"include":"#Activity"},{"include":"#Sequence"},{"include":"#State"},{"include":"#Keywords"},{"include":"#General"}],"repository":{"Activity":{"patterns":[{"match":"(?i)^\\s*(else *if|if)\\s?\\((.+?)\\)\\s?(then)(\\s?\\((.+?)\\))?\\s*$","captures":{"1":{"name":"keyword.other.activity.if.source.wsd"},"2":{"name":"string.quoted.double.activity.if.source.wsd"},"3":{"name":"keyword.other.activity.if.source.wsd"},"5":{"name":"meta.comment.activity.if.source.wsd"}}},{"match":"(?i)^\\s*(else)(\\s?\\((.+?)\\))?\\s*$","captures":{"1":{"name":"keyword.other.activity.else.source.wsd"},"3":{"name":"meta.comment.activity.else.source.wsd"}}},{"match":"(?i)^\\s*(repeat\\s+)?(while)\\s*\\((.+?)\\)(\\s*(is)(\\s*\\((.+?)\\))?)?\\s*$","captures":{"1":{"name":"keyword.other.activity.while.source.wsd"},"2":{"name":"keyword.other.activity.while.source.wsd"},"3":{"name":"string.quoted.double.activity.while.source.wsd"},"5":{"name":"keyword.other.activity.while.source.wsd"},"7":{"name":"meta.comment.activity.while.source.wsd"}}},{"match":"(?i)^\\s*(end)\\s?(while)(\\s*\\((.+?)\\))?\\s*$","captures":{"1":{"name":"keyword.other.activity.endwhile.source.wsd"},"2":{"name":"keyword.other.activity.endwhile.source.wsd"},"4":{"name":"meta.comment.activity.endwhile.source.wsd"}}}]},"Class":{"patterns":[{"begin":"(?i)^\\s*(enum|abstract\\s+class|abstract|class)\\s+([\\w\\d_\\.]+|\"[^\"]+\")(\\s*(\u003c\u003c.+?\u003e\u003e))?(\\s+(as)\\s+([\\w\\d_\\.]+|\"[^\"]+\")(\\s*(\u003c\u003c.+?\u003e\u003e))?)?(\\s+#(([\\w\\|\\\\\\/\\-]+)))?\\s*\\{\\s*$","end":"^\\s*(?\u003c!\\\\)\\}\\s*$","patterns":[{"match":"(?i)^\\s*([.=_-]{2,})\\s*((.+?)\\s*([.=_-]{2,}))?","captures":{"1":{"name":"meta.comment.class.group.separator.source.wsd"},"3":{"name":"string.quoted.double.class.group.separator.source.wsd"},"4":{"name":"meta.comment.class.group.separator.source.wsd"}}},{"match":"(?i)^\\s*(\\s*\\{(static|abstract)\\}\\s*)?(\\s*[~#+-]\\s*)?(([\\p{L}0-9_]+(\\[\\])?\\s+)?([\\p{L}0-9_]+)(\\(\\))|([\\p{L}0-9_]+)(\\(\\))\\s*:\\s*([\\p{L}0-9_]+)?)\\s*$","captures":{"1":{"name":"storage.modifier.class.function.source.wsd"},"11":{"name":"support.type.class.function.source.wsd"},"3":{"name":"keyword.other.class.function.source.wsd"},"5":{"name":"support.type.class.function.source.wsd"},"7":{"name":"support.variable.class.function.source.wsd"},"9":{"name":"support.variable.class.function.source.wsd"}}},{"match":"(?i)^\\s*(\\s*\\{(static|abstract)\\}\\s*)?(\\s*[~#+-]\\s*)?(([\\p{L}0-9_]+(\\[\\])?\\s+)?([\\p{L}0-9_]+)|([\\p{L}0-9_]+)\\s*:\\s*(\\w+)?)\\s*$","captures":{"1":{"name":"storage.modifier.class.fields.source.wsd"},"3":{"name":"keyword.other.class.fields.source.wsd"},"5":{"name":"support.type.class.fields.source.wsd"},"7":{"name":"support.variable.class.fields.source.wsd"},"8":{"name":"support.variable.class.fields.source.wsd"},"9":{"name":"support.type.class.fields.source.wsd"}}},{"match":"(?i)^\\s*(\\s*\\{(static|abstract)\\}\\s*)?(\\s*[~#+-]\\s*)?(.+?)\\s*$","captures":{"1":{"name":"storage.modifier.class.fields.source.wsd"},"3":{"name":"keyword.other.class.fields.source.wsd"},"4":{"name":"string.quoted.double.class.other.source.wsd"}}}],"beginCaptures":{"1":{"name":"keyword.other.class.group.source.wsd"},"10":{"name":"constant.numeric.class.definition.source.wsd"},"2":{"name":"support.variable.class.group.source.wsd"},"4":{"name":"string.quoted.double.class.definition.source.wsd"},"6":{"name":"keyword.other.class.group.source.wsd"},"7":{"name":"support.variable.class.group.source.wsd"},"9":{"name":"string.quoted.double.class.definition.source.wsd"}}},{"match":"(?i)^\\s*(hide|show)\\s+(([\\w\\d_\\.]+|\"[^\"]+\")|\u003c\u003c.+?\u003e\u003e|Stereotypes|class|interface|enum)(\\s+(empty fields|empty methods|fields|attributes|methods|members|circle))?\\s*$","captures":{"1":{"name":"keyword.other.class.hideshow.source.wsd"},"2":{"name":"support.variable.class.hideshow.source.wsd"},"5":{"name":"constant.numeric.class.hideshow.source.wsd"}}}]},"Comment":{"patterns":[{"name":"comment.line.comment.source.wsd","begin":"(?i)^\\s*(')","end":"(?i)\\n"},{"name":"comment.block.source.wsd","begin":"(?i)\\s*(/')","end":"(?i)('/)\\s*"}]},"General":{"patterns":[{"begin":"(?i)^\\s*(title)\\s*$","end":"(?i)^\\s*\\b(end\\s+title)\\b","patterns":[{"match":"(?i)^\\s*(.+?)\\s*$","captures":{"1":{"name":"entity.name.function.title.source.wsd"}}}],"beginCaptures":{"1":{"name":"keyword.other.title.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.title.source.wsd"}}},{"match":"(?i)^\\s*(title)\\s+(.+?)\\s*$","captures":{"1":{"name":"keyword.other.title.source.wsd"},"2":{"name":"entity.name.function.title.source.wsd"}}},{"name":"keyword.other.scale.source.wsd","match":"(?i)^\\s*(scale)\\s+((max)\\s+)?(\\d+(\\.?\\d+)?)\\s*((([\\*/])\\s*(\\d+\\.?(\\.?\\d+)?))|(width|height))?\\s*$","captures":{"1":{"name":"keyword.other.scale.source.wsd"},"11":{"name":"keyword.other.scale.source.wsd"},"3":{"name":"keyword.other.scale.source.wsd"},"4":{"name":"constant.numeric.scale.source.wsd"},"8":{"name":"keyword.operator.scale.source.wsd"},"9":{"name":"constant.numeric.scale.source.wsd"}}},{"match":"(?i)^\\s*(caption)\\s+(.+)\\s*$","captures":{"1":{"name":"keyword.other.note.source.wsd"},"2":{"name":"constant.numeric.caption.source.wsd"}}},{"match":"(?i)^\\s*(note\\s(left|right))\\s*:\\s*(.+)\\s*$","captures":{"1":{"name":"keyword.other.note.source.wsd"},"3":{"name":"meta.comment.note.source.wsd"}}},{"begin":"(?i)^\\s*(note\\s(left|right))\\s*$","end":"(?i)^\\s*(end\\s*note)","patterns":[{"name":"meta.comment.multiple.note.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"keyword.other.note.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.note.source.wsd"}}},{"match":"(?i)^\\s*([rh]?note)(?:\\s+(right|left|top|bottom))?\\s+(?:(?:(of|over)\\s*(?:[^\\s\\w\\d]([\\w\\s]+)[^\\s\\w\\d]|(?:(\".+?\"|\\w+)(?:,\\s*(\".+?\"|\\w+))*)))|(on\\s+link))\\s*(#\\w+)?\\s*:\\s*(.+)$","captures":{"1":{"name":"keyword.other.noteof.source.wsd"},"2":{"name":"constant.numeric.noteof.source.wsd"},"3":{"name":"keyword.other.noteof.source.wsd"},"4":{"name":"support.variable.noteof.source.wsd"},"5":{"name":"support.variable.noteof.source.wsd"},"6":{"name":"support.variable.noteof.source.wsd"},"7":{"name":"keyword.other.noteof.source.wsd"},"8":{"name":"constant.numeric.noteof.source.wsd"},"9":{"name":"meta.comment.noteof.source.wsd"}}},{"begin":"(?i)^\\s*([rh]?note)(?:\\s+(right|left|top|bottom))?\\s+(?:(?:(of|over)\\s*(?:[^\\s\\w\\d]([\\w\\s]+)[^\\s\\w\\d]|(?:(\".+?\"|\\w+)(?:,\\s*(\".+?\"|\\w+))*)))|(on\\s+link))\\s*(#\\w+)?\\s*$","end":"(?i)^\\s*(end\\s*[rh]?note)","patterns":[{"name":"meta.comment.multline.noteof.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"keyword.other.noteof.source.wsd"},"2":{"name":"constant.numeric.noteof.source.wsd"},"3":{"name":"keyword.other.noteof.source.wsd"},"4":{"name":"support.variable.noteof.source.wsd"},"5":{"name":"support.variable.noteof.source.wsd"},"6":{"name":"support.variable.noteof.source.wsd"},"7":{"name":"keyword.other.noteof.source.wsd"},"8":{"name":"constant.numeric.noteof.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.multline.noteof.source.wsd"}}},{"match":"(?i)^\\s*(note)\\s+(\".+?\")\\s+(as)\\s+([\\w\\d]+)\\s*$","captures":{"1":{"name":"keyword.other.noteas.source.wsd"},"2":{"name":"meta.comment.noteas.source.wsd"},"3":{"name":"keyword.other.noteas.source.wsd"},"4":{"name":"support.variable.noteas.source.wsd"}}},{"begin":"(?i)^\\s*(?:(center|left|right)\\s+)?(header|legend|footer)\\s*\\n","end":"(?i)^\\s*(end\\s?(header|legend|footer))","patterns":[{"name":"meta.comment.header_legend_footer.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"constant.numeric.header_legend_footer.source.wsd"},"2":{"name":"keyword.other.header_legend_footer.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.header_legend_footer.source.wsd"}}},{"match":"(?i)^\\s*(?:(center|left|right)\\s+)?(header|legend|footer)\\s+(.+?)\\s*$","captures":{"1":{"name":"constant.numeric.header_legend_footer.source.wsd"},"2":{"name":"keyword.other.header_legend_footer.source.wsd"},"3":{"name":"meta.comment.header_legend_footer.source.wsd"}}},{"name":"entity.name.function.preprocessings.source.wsd","match":"(?i)(!includesub|!include|!enddefinelong|!definelong|!define|!startsub|!endsub|!ifdef|!else|!endif|!ifndef|!if|!elseif|!endif|!while|!endwhile|!(unquoted\\s|final\\s)*procedure|!(unquoted\\s|final\\s)*function|!end\\s*(function|procedure)|!return|!import|!includedef|!includeurl|!include_many|!include_once|!log|!dump_memory|!theme|!pragma|!assume\\s+transparent\\s+(dark|light))"},{"begin":"(?i)((?:(?:(?:\\s+[ox]|[+*])?(?:\u003c\u003c|\u003c\\|?|\\\\\\\\|\\\\|//|\\}|\\^|#|0|0\\))?)(?=[-.~=]))[-.~=]+(\\[(?:\\#(?:[0-9a-f]{6}|[0-9a-f]{3}|\\w+)(?:[-\\\\/](?:[0-9a-f]{6}|[0-9a-f]{3}|\\w+))?\\b)\\])?(?:(left|right|up|down)(?:[-.~=]))?[-.]*(?:(?:\u003e\u003e|\\|?\u003e|\\\\\\\\|\\\\|//|\\{|\\^|#|0|\\(0)?(?:[ox]\\s+|[+*])?))","end":"$","patterns":[{"include":"#General"},{"match":"(?i):([^:]+):\\s*:(.+)$","captures":{"1":{"name":"support.variable.actor.link.source.wsd"},"2":{"name":"meta.comment.message.link.source.wsd"}}},{"match":"(?i):(.+)$","captures":{"1":{"name":"meta.comment.message.link.source.wsd"}}}],"beginCaptures":{"1":{"name":"keyword.control.note.source.wsd"},"2":{"name":"constant.numeric.link.color.source.wsd"},"3":{"name":"constant.language.link.source.wsd"}}},{"name":"constant.numeric.colors.source.wsd","match":"(?i)#(?:[0-9a-f]{6}|[0-9a-f]{3}|\\w+)"},{"name":"support.variable.source.wsd","match":"\\b[\\w_]+"}]},"Keywords":{"patterns":[{"name":"keyword.other.linebegin.source.wsd","match":"(?i)^\\s*(usecase|actor|object|participant|boundary|control|entity|database|create|component|interface|package|node|folder|frame|cloud|annotation|enum|abstract\\s+class|abstract|class|state|autonumber(\\s+stop|\\s+resume|\\s+inc)?|activate|deactivate|return|destroy|newpage|alt|else|opt|loop|par|break|critical|group|box|rectangle|namespace|partition|agent|artifact|card|circle|collections|file|hexagon|label|person|queue|stack|storage|mainframe|map|repeat|backward|diamond)\\b"},{"name":"keyword.other.wholeline.source.wsd","match":"(?i)^\\s*(split( again)?|endif|repeat|start|stop|end|end\\s+fork|end\\s+split|fork( again)?|detach|end\\s+box|top\\s+to\\s+bottom\\s+direction|left\\s+to\\s+right\\s+direction|kill|end\\s+merge|allow(_)?mixing)\\s*$"},{"name":"keyword.other.other.source.wsd","match":"(?i)\\b(as|{(static|abstract)\\})\\b"}]},"Object":{"patterns":[{"match":"(?i)^\\s*([\\w\\d_]+)\\s+:\\s+s*$","captures":{"1":{"name":"support.variable.object.addfields.source.wsd"},"2":{"name":"meta.comment.object.addfields.source.wsd"}}}]},"Quoted":{"patterns":[{"name":"support.variable.definitions.source.wsd","begin":"(?i)^\\s*(:)","end":"(?i)(:)|[\\];|\u003c\u003e/}]?\\s*$"},{"name":"string.quoted.double.source.wsd","begin":"\"","end":"\""}]},"Sequence":{"patterns":[{"match":"(?i)^\\s*(={2,})\\s*(.+?)\\s*(={2,})\\s*$","captures":{"1":{"name":"keyword.operator.sequence.divider.source.wsd"},"2":{"name":"string.quoted.double.sequence.divider.source.wsd"},"3":{"name":"keyword.operator.sequence.divider.source.wsd"}}},{"match":"(?i)^\\s*(\\.{3,})\\s*$","captures":{"1":{"name":"keyword.operator.sequence.omission.source.wsd"}}},{"match":"(?i)^\\s*(ref\\s+over)\\s+(.+?)\\s*:\\s*(.+)\\s*$","captures":{"1":{"name":"keyword.other.sequence.ref.source.wsd"},"2":{"name":"support.variable.sequence.ref.source.wsd"},"3":{"name":"meta.comment.sequence.ref.source.wsd"}}},{"begin":"(?i)^\\s*(ref\\s+over)\\s+(.+?)\\s*$","end":"(?i)end\\s+ref","patterns":[{"name":"meta.comment.sequence.ref.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"keyword.other.sequence.ref.source.wsd"},"2":{"name":"support.variable.sequence.ref.source.wsd"}},"endCaptures":{"0":{"name":"keyword.other.sequence.ref.source.wsd"}}},{"match":"(?i)^\\s*(\\.{3,})\\s*(.+)\\s*(\\.{3,})\\s*$","captures":{"1":{"name":"keyword.operator.sequence.delay.source.wsd"},"2":{"name":"meta.comment.sequence.delay.source.wsd"},"3":{"name":"keyword.operator.sequence.delay.source.wsd"}}},{"match":"(?i)(\\|{2,})(\\d+)?(\\|{1,})","captures":{"1":{"name":"keyword.operator.sequence.space.source.wsd"},"2":{"name":"constant.numeric.sequence.space.source.wsd"},"3":{"name":"keyword.operator.sequence.space.source.wsd"}}}]},"State":{"patterns":[{"match":"(?i)^\\s*(-{2,})\\s*$","captures":{"1":{"name":"keyword.other.state.concurrent.source.wsd"}}}]},"Style":{"patterns":[{"match":"(?i)^\\s*(skinparam)\\s+(\\w+)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?\\s+([^\\{\\}]+?)\\s*$","captures":{"1":{"name":"keyword.other.skinparam.source.wsd"},"2":{"name":"keyword.other.skinparam.keyword.source.wsd"},"3":{"name":"constant.numeric.skinparam.keyword.source.wsd"},"4":{"name":"string.quoted.double.skinparam.value.source.wsd"}}},{"begin":"(?i)^\\s*(?:(skinparam)(?:\\s+(\\w+?)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?)?|(\\w+)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?)\\s*\\{\\s*$","end":"^\\s*(?\u003c!\\\\)\\}\\s*$","patterns":[{"match":"(?i)^\\s*(\\w+)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?\\s+([^\\{\\}]+?)\\s*$","captures":{"1":{"name":"keyword.other.skinparam.keyword.source.wsd"},"2":{"name":"constant.numeric.skinparam.keyword.source.wsd"},"3":{"name":"string.quoted.double.skinparam.value.source.wsd"}}},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.skinparam.source.wsd"},"2":{"name":"keyword.other.skinparam.keyword.source.wsd"},"3":{"name":"constant.numeric.skinparam.keyword.source.wsd"},"4":{"name":"keyword.other.skinparam.keyword.source.wsd"},"5":{"name":"constant.numeric.skinparam.keyword.source.wsd"}}}]}}}
|
1
|
+
{"name":"Diagram","scopeName":"source.wsd","patterns":[{"name":"diagram.source.wsd","begin":"(?i)^\\s*(@start[a-z]+)((\\s+)(.+?))?\\s*$","end":"(?i)^\\s*(@end[a-z]+)\\s*$","patterns":[{"include":"#Quoted"},{"include":"#Comment"},{"include":"#Style"},{"include":"#Class"},{"include":"#Object"},{"include":"#Activity"},{"include":"#Sequence"},{"include":"#State"},{"include":"#Keywords"},{"include":"#General"}],"beginCaptures":{"1":{"name":"keyword.control.diagram.source.wsd"},"5":{"name":"entity.name.function.diagram.source.wsd"}},"endCaptures":{"1":{"name":"keyword.control.diagram.source.wsd"}}},{"include":"#Quoted"},{"include":"#Comment"},{"include":"#Style"},{"include":"#Class"},{"include":"#Object"},{"include":"#Activity"},{"include":"#Sequence"},{"include":"#State"},{"include":"#Keywords"},{"include":"#General"}],"repository":{"Activity":{"patterns":[{"match":"(?i)^\\s*(else *if|if)\\s?\\((.+?)\\)\\s?(then)(\\s?\\((.+?)\\))?\\s*$","captures":{"1":{"name":"keyword.other.activity.if.source.wsd"},"2":{"name":"string.quoted.double.activity.if.source.wsd"},"3":{"name":"keyword.other.activity.if.source.wsd"},"5":{"name":"meta.comment.activity.if.source.wsd"}}},{"match":"(?i)^\\s*(else)(\\s?\\((.+?)\\))?\\s*$","captures":{"1":{"name":"keyword.other.activity.else.source.wsd"},"3":{"name":"meta.comment.activity.else.source.wsd"}}},{"match":"(?i)^\\s*(repeat\\s+)?(while)\\s*\\((.+?)\\)(\\s*(is)(\\s*\\((.+?)\\))?)?\\s*$","captures":{"1":{"name":"keyword.other.activity.while.source.wsd"},"2":{"name":"keyword.other.activity.while.source.wsd"},"3":{"name":"string.quoted.double.activity.while.source.wsd"},"5":{"name":"keyword.other.activity.while.source.wsd"},"7":{"name":"meta.comment.activity.while.source.wsd"}}},{"match":"(?i)^\\s*(end)\\s?(while)(\\s*\\((.+?)\\))?\\s*$","captures":{"1":{"name":"keyword.other.activity.endwhile.source.wsd"},"2":{"name":"keyword.other.activity.endwhile.source.wsd"},"4":{"name":"meta.comment.activity.endwhile.source.wsd"}}}]},"Class":{"patterns":[{"begin":"(?i)^\\s*(enum|abstract\\s+class|abstract|class)\\s+([\\w\\d_\\.]+|\"[^\"]+\")(\\s*(\u003c\u003c.+?\u003e\u003e))?(\\s+(as)\\s+([\\w\\d_\\.]+|\"[^\"]+\")(\\s*(\u003c\u003c.+?\u003e\u003e))?)?(\\s+#(([\\w\\|\\\\\\/\\-]+)))?\\s*\\{\\s*$","end":"^\\s*(?\u003c!\\\\)\\}\\s*$","patterns":[{"match":"(?i)^\\s*([.=_-]{2,})\\s*((.+?)\\s*([.=_-]{2,}))?","captures":{"1":{"name":"meta.comment.class.group.separator.source.wsd"},"3":{"name":"string.quoted.double.class.group.separator.source.wsd"},"4":{"name":"meta.comment.class.group.separator.source.wsd"}}},{"match":"(?i)^\\s*(\\s*\\{(static|abstract)\\}\\s*)?(\\s*[~#+-]\\s*)?(([\\p{L}0-9_]+(\\[\\])?\\s+)?([\\p{L}0-9_]+)(\\(\\))|([\\p{L}0-9_]+)(\\(\\))\\s*:\\s*([\\p{L}0-9_]+)?)\\s*$","captures":{"1":{"name":"storage.modifier.class.function.source.wsd"},"11":{"name":"support.type.class.function.source.wsd"},"3":{"name":"keyword.other.class.function.source.wsd"},"5":{"name":"support.type.class.function.source.wsd"},"7":{"name":"support.variable.class.function.source.wsd"},"9":{"name":"support.variable.class.function.source.wsd"}}},{"match":"(?i)^\\s*(\\s*\\{(static|abstract)\\}\\s*)?(\\s*[~#+-]\\s*)?(([\\p{L}0-9_]+(\\[\\])?\\s+)?([\\p{L}0-9_]+)|([\\p{L}0-9_]+)\\s*:\\s*(\\w+)?)\\s*$","captures":{"1":{"name":"storage.modifier.class.fields.source.wsd"},"3":{"name":"keyword.other.class.fields.source.wsd"},"5":{"name":"support.type.class.fields.source.wsd"},"7":{"name":"support.variable.class.fields.source.wsd"},"8":{"name":"support.variable.class.fields.source.wsd"},"9":{"name":"support.type.class.fields.source.wsd"}}},{"match":"(?i)^\\s*(\\s*\\{(static|abstract)\\}\\s*)?(\\s*[~#+-]\\s*)?(.+?)\\s*$","captures":{"1":{"name":"storage.modifier.class.fields.source.wsd"},"3":{"name":"keyword.other.class.fields.source.wsd"},"4":{"name":"string.quoted.double.class.other.source.wsd"}}}],"beginCaptures":{"1":{"name":"keyword.other.class.group.source.wsd"},"10":{"name":"constant.numeric.class.definition.source.wsd"},"2":{"name":"support.variable.class.group.source.wsd"},"4":{"name":"string.quoted.double.class.definition.source.wsd"},"6":{"name":"keyword.other.class.group.source.wsd"},"7":{"name":"support.variable.class.group.source.wsd"},"9":{"name":"string.quoted.double.class.definition.source.wsd"}}},{"match":"(?i)^\\s*(hide|show)\\s+(([\\w\\d_\\.]+|\"[^\"]+\")|\u003c\u003c.+?\u003e\u003e|Stereotypes|class|interface|enum)(\\s+(empty fields|empty methods|fields|attributes|methods|members|circle))?\\s*$","captures":{"1":{"name":"keyword.other.class.hideshow.source.wsd"},"2":{"name":"support.variable.class.hideshow.source.wsd"},"5":{"name":"constant.numeric.class.hideshow.source.wsd"}}}]},"Comment":{"patterns":[{"name":"comment.line.comment.source.wsd","begin":"(?i)^\\s*(')","end":"(?i)\\n"},{"name":"comment.block.source.wsd","begin":"(?i)\\s*(/')","end":"(?i)('/)\\s*"}]},"General":{"patterns":[{"begin":"(?i)^\\s*(title)\\s*$","end":"(?i)^\\s*\\b(end\\s+title)\\b","patterns":[{"match":"(?i)^\\s*(.+?)\\s*$","captures":{"1":{"name":"entity.name.function.title.source.wsd"}}}],"beginCaptures":{"1":{"name":"keyword.other.title.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.title.source.wsd"}}},{"match":"(?i)^\\s*(title)\\s+(.+?)\\s*$","captures":{"1":{"name":"keyword.other.title.source.wsd"},"2":{"name":"entity.name.function.title.source.wsd"}}},{"name":"keyword.other.scale.source.wsd","match":"(?i)^\\s*(scale)\\s+((max)\\s+)?(\\d+(\\.?\\d+)?)\\s*((([\\*/])\\s*(\\d+\\.?(\\.?\\d+)?))|(width|height))?\\s*$","captures":{"1":{"name":"keyword.other.scale.source.wsd"},"11":{"name":"keyword.other.scale.source.wsd"},"3":{"name":"keyword.other.scale.source.wsd"},"4":{"name":"constant.numeric.scale.source.wsd"},"8":{"name":"keyword.operator.scale.source.wsd"},"9":{"name":"constant.numeric.scale.source.wsd"}}},{"match":"(?i)^\\s*(caption)\\s+(.+)\\s*$","captures":{"1":{"name":"keyword.other.note.source.wsd"},"2":{"name":"constant.numeric.caption.source.wsd"}}},{"match":"(?i)^\\s*(note\\s(left|right))\\s*:\\s*(.+)\\s*$","captures":{"1":{"name":"keyword.other.note.source.wsd"},"3":{"name":"meta.comment.note.source.wsd"}}},{"begin":"(?i)^\\s*(note\\s(left|right))\\s*$","end":"(?i)^\\s*(end\\s*note)","patterns":[{"name":"meta.comment.multiple.note.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"keyword.other.note.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.note.source.wsd"}}},{"match":"(?i)^\\s*([rh]?note)(?:\\s+(right|left|top|bottom))?\\s+(?:(?:(of|over)\\s*(?:[^\\s\\w\\d]([\\w\\s]+)[^\\s\\w\\d]|(?:(\".+?\"|\\w+)(?:,\\s*(\".+?\"|\\w+))*)))|(on\\s+link))\\s*(#\\w+)?\\s*:\\s*(.+)$","captures":{"1":{"name":"keyword.other.noteof.source.wsd"},"2":{"name":"constant.numeric.noteof.source.wsd"},"3":{"name":"keyword.other.noteof.source.wsd"},"4":{"name":"support.variable.noteof.source.wsd"},"5":{"name":"support.variable.noteof.source.wsd"},"6":{"name":"support.variable.noteof.source.wsd"},"7":{"name":"keyword.other.noteof.source.wsd"},"8":{"name":"constant.numeric.noteof.source.wsd"},"9":{"name":"meta.comment.noteof.source.wsd"}}},{"begin":"(?i)^\\s*([rh]?note)(?:\\s+(right|left|top|bottom))?\\s+(?:(?:(of|over)\\s*(?:[^\\s\\w\\d]([\\w\\s]+)[^\\s\\w\\d]|(?:(\".+?\"|\\w+)(?:,\\s*(\".+?\"|\\w+))*)))|(on\\s+link))\\s*(#\\w+)?\\s*$","end":"(?i)^\\s*(end\\s*[rh]?note)","patterns":[{"name":"meta.comment.multline.noteof.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"keyword.other.noteof.source.wsd"},"2":{"name":"constant.numeric.noteof.source.wsd"},"3":{"name":"keyword.other.noteof.source.wsd"},"4":{"name":"support.variable.noteof.source.wsd"},"5":{"name":"support.variable.noteof.source.wsd"},"6":{"name":"support.variable.noteof.source.wsd"},"7":{"name":"keyword.other.noteof.source.wsd"},"8":{"name":"constant.numeric.noteof.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.multline.noteof.source.wsd"}}},{"match":"(?i)^\\s*(note)\\s+(\".+?\")\\s+(as)\\s+([\\w\\d]+)\\s*$","captures":{"1":{"name":"keyword.other.noteas.source.wsd"},"2":{"name":"meta.comment.noteas.source.wsd"},"3":{"name":"keyword.other.noteas.source.wsd"},"4":{"name":"support.variable.noteas.source.wsd"}}},{"begin":"(?i)^\\s*(?:(center|left|right)\\s+)?(header|legend|footer)\\s*\\n","end":"(?i)^\\s*(end\\s?(header|legend|footer))","patterns":[{"name":"meta.comment.header_legend_footer.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"constant.numeric.header_legend_footer.source.wsd"},"2":{"name":"keyword.other.header_legend_footer.source.wsd"}},"endCaptures":{"1":{"name":"keyword.other.header_legend_footer.source.wsd"}}},{"match":"(?i)^\\s*(?:(center|left|right)\\s+)?(header|legend|footer)\\s+(.+?)\\s*$","captures":{"1":{"name":"constant.numeric.header_legend_footer.source.wsd"},"2":{"name":"keyword.other.header_legend_footer.source.wsd"},"3":{"name":"meta.comment.header_legend_footer.source.wsd"}}},{"name":"entity.name.function.preprocessings.source.wsd","match":"(?i)(!includesub|!include|!enddefinelong|!definelong|!define|!startsub|!endsub|!ifdef|!else|!endif|!ifndef|!if|!elseif|!endif|!while|!endwhile|!(unquoted\\s|final\\s)*procedure|!(unquoted\\s|final\\s)*function|!end\\s*(function|procedure)|!return|!import|!includedef|!includeurl|!include_many|!include_once|!log|!dump_memory|!theme|!pragma|!assume\\s+transparent\\s+(dark|light))"},{"begin":"(?i)((?:(?:(?:\\s+[ox]|[+*])?(?:\u003c\u003c|\u003c\\|?|\\\\\\\\|\\\\|//|\\}|\\^|#|0|0\\))?)(?=[-.~=]))[-.~=]+(\\[(?:\\#(?:[0-9a-f]{6}|[0-9a-f]{3}|\\w+)(?:[-\\\\/](?:[0-9a-f]{6}|[0-9a-f]{3}|\\w+))?\\b)\\])?(?:(left|right|up|down)(?:[-.~=]))?[-.]*(?:(?:\u003e\u003e|\\|?\u003e|\\\\\\\\|\\\\|//|\\{|\\^|#|0|\\(0)?(?:[ox]\\s+|[+*])?))","end":"$","patterns":[{"include":"#General"},{"match":"(?i):([^:]+):\\s*:(.+)$","captures":{"1":{"name":"support.variable.actor.link.source.wsd"},"2":{"name":"meta.comment.message.link.source.wsd"}}},{"match":"(?i):(.+)$","captures":{"1":{"name":"meta.comment.message.link.source.wsd"}}}],"beginCaptures":{"1":{"name":"keyword.control.note.source.wsd"},"2":{"name":"constant.numeric.link.color.source.wsd"},"3":{"name":"constant.language.link.source.wsd"}}},{"name":"constant.numeric.colors.source.wsd","match":"(?i)#(?:[0-9a-f]{6}|[0-9a-f]{3}|\\w+)"},{"name":"support.variable.source.wsd","match":"\\b[\\w_]+"}]},"Keywords":{"patterns":[{"name":"keyword.other.linebegin.source.wsd","match":"(?i)^\\s*(usecase|actor|object|participant|boundary|control|entity|database|create|component|interface|package|node|folder|frame|cloud|annotation|enum|abstract\\s+class|abstract|class|state|autonumber(\\s+stop|\\s+resume|\\s+inc)?|activate|deactivate|return|destroy|newpage|alt|else|opt|loop|par|break|critical|group|box|rectangle|namespace|partition|agent|artifact|card|circle|collections|file|hexagon|label|person|queue|stack|storage|mainframe|map|repeat|backward|diamond|goto|binary|clock|concise|robust)\\b"},{"name":"keyword.other.wholeline.source.wsd","match":"(?i)^\\s*(split( again)?|endif|repeat|start|stop|end|end\\s+fork|end\\s+split|fork( again)?|detach|end\\s+box|top\\s+to\\s+bottom\\s+direction|left\\s+to\\s+right\\s+direction|kill|end\\s+merge|allow(_)?mixing)\\s*$"},{"name":"keyword.other.other.source.wsd","match":"(?i)\\b(as|{(static|abstract)\\})\\b"}]},"Object":{"patterns":[{"match":"(?i)^\\s*([\\w\\d_]+)\\s+:\\s+s*$","captures":{"1":{"name":"support.variable.object.addfields.source.wsd"},"2":{"name":"meta.comment.object.addfields.source.wsd"}}}]},"Quoted":{"patterns":[{"name":"support.variable.definitions.source.wsd","begin":"(?i)^\\s*(:)","end":"(?i)(:)|[\\];|\u003c\u003e/}]?\\s*$"},{"name":"string.quoted.double.source.wsd","begin":"\"","end":"\""}]},"Sequence":{"patterns":[{"match":"(?i)^\\s*(={2,})\\s*(.+?)\\s*(={2,})\\s*$","captures":{"1":{"name":"keyword.operator.sequence.divider.source.wsd"},"2":{"name":"string.quoted.double.sequence.divider.source.wsd"},"3":{"name":"keyword.operator.sequence.divider.source.wsd"}}},{"match":"(?i)^\\s*(\\.{3,})\\s*$","captures":{"1":{"name":"keyword.operator.sequence.omission.source.wsd"}}},{"match":"(?i)^\\s*(ref\\s+over)\\s+(.+?)\\s*:\\s*(.+)\\s*$","captures":{"1":{"name":"keyword.other.sequence.ref.source.wsd"},"2":{"name":"support.variable.sequence.ref.source.wsd"},"3":{"name":"meta.comment.sequence.ref.source.wsd"}}},{"begin":"(?i)^\\s*(ref\\s+over)\\s+(.+?)\\s*$","end":"(?i)end\\s+ref","patterns":[{"name":"meta.comment.sequence.ref.source.wsd","match":".+?"}],"beginCaptures":{"1":{"name":"keyword.other.sequence.ref.source.wsd"},"2":{"name":"support.variable.sequence.ref.source.wsd"}},"endCaptures":{"0":{"name":"keyword.other.sequence.ref.source.wsd"}}},{"match":"(?i)^\\s*(\\.{3,})\\s*(.+)\\s*(\\.{3,})\\s*$","captures":{"1":{"name":"keyword.operator.sequence.delay.source.wsd"},"2":{"name":"meta.comment.sequence.delay.source.wsd"},"3":{"name":"keyword.operator.sequence.delay.source.wsd"}}},{"match":"(?i)(\\|{2,})(\\d+)?(\\|{1,})","captures":{"1":{"name":"keyword.operator.sequence.space.source.wsd"},"2":{"name":"constant.numeric.sequence.space.source.wsd"},"3":{"name":"keyword.operator.sequence.space.source.wsd"}}}]},"State":{"patterns":[{"match":"(?i)^\\s*(-{2,})\\s*$","captures":{"1":{"name":"keyword.other.state.concurrent.source.wsd"}}}]},"Style":{"patterns":[{"match":"(?i)^\\s*(skinparam)\\s+(\\w+)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?\\s+([^\\{\\}]+?)\\s*$","captures":{"1":{"name":"keyword.other.skinparam.source.wsd"},"2":{"name":"keyword.other.skinparam.keyword.source.wsd"},"3":{"name":"constant.numeric.skinparam.keyword.source.wsd"},"4":{"name":"string.quoted.double.skinparam.value.source.wsd"}}},{"begin":"(?i)^\\s*(?:(skinparam)(?:\\s+(\\w+?)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?)?|(\\w+)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?)\\s*\\{\\s*$","end":"^\\s*(?\u003c!\\\\)\\}\\s*$","patterns":[{"match":"(?i)^\\s*(\\w+)(\u003c\u003c\\s*.+?\\s*\u003e\u003e)?\\s+([^\\{\\}]+?)\\s*$","captures":{"1":{"name":"keyword.other.skinparam.keyword.source.wsd"},"2":{"name":"constant.numeric.skinparam.keyword.source.wsd"},"3":{"name":"string.quoted.double.skinparam.value.source.wsd"}}},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.skinparam.source.wsd"},"2":{"name":"keyword.other.skinparam.keyword.source.wsd"},"3":{"name":"constant.numeric.skinparam.keyword.source.wsd"},"4":{"name":"keyword.other.skinparam.keyword.source.wsd"},"5":{"name":"constant.numeric.skinparam.keyword.source.wsd"}}}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"HTML (Liquid)","scopeName":"text.html.liquid","patterns":[{"name":"meta.tag.any.html","begin":"(\u003c)([a-zA-Z0-9:]++)(?=[^\u003e]*\u003e\u003c/\\2\u003e)","end":"(\u003e(\u003c)/)(\\2)(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}}},{"name":"meta.tag.preprocessor.xml.html","begin":"(\u003c\\?)(xml)","end":"(\\?\u003e)","patterns":[{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}}},{"name":"comment.block.html","begin":"\u003c!--","end":"--\\s*\u003e","patterns":[{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"--"},{"include":"#embedded-code"}],"captures":{"0":{"name":"punctuation.definition.comment.html"}}},{"name":"meta.tag.sgml.html","begin":"\u003c!","end":"\u003e","patterns":[{"name":"meta.tag.sgml.doctype.html","begin":"(?i:DOCTYPE)","end":"(?=\u003e)","patterns":[{"name":"string.quoted.double.doctype.identifiers-and-DTDs.html","match":"\"[^\"\u003e]*\""}],"captures":{"1":{"name":"entity.name.tag.doctype.html"}}},{"name":"constant.other.inline-data.html","begin":"\\[CDATA\\[","end":"]](?=\u003e)"},{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"(\\s*)(?!--|\u003e)\\S(\\s*)"}],"captures":{"0":{"name":"punctuation.definition.tag.html"}}},{"include":"#embedded-code"},{"include":"#jekyll-frontmatter"},{"name":"source.css.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:style))\\b(?![^\u003e]*/\u003e)","end":"(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(\u003e)","end":"(?=\u003c/(?i:style))","patterns":[{"include":"#embedded-code"},{"include":"source.css"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"}}}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.html"}}},{"name":"source.js.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:script))\\b(?![^\u003e]*/\u003e)","end":"(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)","end":"(\u003c/)((?i:script))","patterns":[{"name":"comment.line.double-slash.js","match":"(//).*?((?=\u003c/script)|$\\n?)","captures":{"1":{"name":"punctuation.definition.comment.js"}}},{"name":"comment.block.js","begin":"/\\*","end":"\\*/|(?=\u003c/script)","captures":{"0":{"name":"punctuation.definition.comment.js"}}},{"include":"#php"},{"include":"#liquid-comment-tag"},{"include":"#liquid-print-tag"},{"include":"#liquid-statement-tag"},{"include":"source.js"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"endCaptures":{"2":{"name":"punctuation.definition.tag.html"}}},{"name":"meta.tag.structure.any.html","begin":"(\u003c/?)((?i:body|head|html)\\b)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.structure.any.html"}}},{"name":"meta.tag.block.any.html","begin":"(\u003c/?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.block.any.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},{"name":"meta.tag.inline.any.html","begin":"(\u003c/?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)","end":"((?: ?/)?\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.inline.any.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},{"name":"meta.tag.other.html","begin":"(\u003c/?)([a-zA-Z0-9:]+)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.other.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}}},{"include":"#entities"},{"name":"invalid.illegal.incomplete.html","match":"\u003c\u003e"},{"name":"invalid.illegal.bad-angle-bracket.html","match":"\u003c"},{"include":"#liquid-comment-tag"},{"include":"#liquid-print-tag"},{"include":"#liquid-statement-tag"}],"repository":{"embedded-code":{"patterns":[{"include":"#ruby"},{"include":"#php"},{"include":"#liquid-comment-tag"},{"include":"#liquid-print-tag"},{"include":"#liquid-statement-tag"},{"include":"#python"}]},"entities":{"patterns":[{"name":"constant.character.entity.html","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)","captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}}},{"name":"invalid.illegal.bad-ampersand.html","match":"\u0026"}]},"jekyll-frontmatter":{"name":"frontmatter.block.liquid","begin":"^---$","end":"^---$","patterns":[{"include":"source.yaml"}],"beginCaptures":{"0":{"name":"punctuation.definition.frontmatter.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.frontmatter.end.liquid"}}},"liquid-arrays":{"name":"meta.array.liquid","begin":"(?\u003c=[\\s\\(\\{\\[:,])\\[","end":"\\]","patterns":[{"include":"#liquid-arrays"},{"include":"#liquid-constants"},{"include":"#liquid-strings"},{"include":"#liquid-objects"},{"include":"#liquid-properties"},{"include":"#liquid-filters"},{"name":"punctuation.separator.object.liquid","match":","}],"beginCaptures":{"0":{"name":"punctuation.section.array.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.section.array.end.liquid"}}},"liquid-comment-tag":{"name":"comment.block.liquid","begin":"\\{%\\s*comment\\s*%\\}","end":"\\{%\\s*endcomment\\s*%\\}","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.liquid"}}},"liquid-constants":{"patterns":[{"name":"constant.language.liquid","match":"(?i)(?\u003c=[\\s\\[\\(\\{:,])(?:true|false|nil)(?=[\\s\\)\\]\\}\\,])"},{"name":"constant.numeric.liquid","match":"(?\u003c=[\\s\\[\\(\\{:,]|\\.\\.|\\*\\*)[0-9]+(?:\\.[0-9]+)?(?=[\\s\\)\\]\\}\\,]|\\.\\.|\\*\\*)"}]},"liquid-filters":{"match":"(?\u003c=\\|)(\\s*(?:join|first|last|concat|index|map|reverse|size|sort|uniq|(?:img|script|stylesheet)_tag|abs|ceil|divided_by|floor|minus|plus|round|times|modulo|money(?:_with_currency|_without_trailing_zeros|_without_currency)?|(?:ap|pre)pend|(?:capita|plural|handle)ize|(?:camel|down|up)case|(?:hmac_)?sha(?:1|256)|(?:remove|replace)(?:_first)?|(?:l|r)strip|strip(?:_html|_newlines)?|truncate(?:words)?|url_(?:encode|(?:param_)?escape)|md5|newline_to_br|slice|split|(?:file|(?:global_|shopify_)?asset|(?:payment_type_|product_|collection_|file_|asset_)?img)_url|within|hex_to_rgba|json|weight_with_unit|customer_login_link|link_to(?:_vendor|_type|(?:_add|_remove)_tag)?|url_for_(?:type|vendor)|default(?:_errors|_pagination)?|highlight(?:_active_tag)?|(?:json|markdown|slug|smart|scss|sass)ify|date(?:_to_(?:xmlschema|rfc822|(?:long)?_string))?|where(?:_exp)?|(?:xml_|cgi_|uri_)?escape|group_by|number_of_words|array_to_sentence_string|normalize_whitepace|sample|to_integer|inspect|push|pop|(?:un)?shift)\\b\\:?\\s*)(?=\\S)","captures":{"1":{"name":"support.function.liquid"}}},"liquid-keywords":{"name":"keyword.control.liquid","match":"(?\u003c=\\s)((?:end)?(?:if|unless|for|case|capture|raw|comment|paginate|form|tablerow|highlight)|else|elsif|in|when|break|continue|include|with|include_relative|cycle|layout|by|assign|(?:in|de)crement|link|post_url|gist)(?=\\s)"},"liquid-objects":{"match":"(?\u003c=[\\s\\{\\[\\(:,])([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(?=[\\s\\}\\[\\]\\(\\)\\.\\|,:])","captures":{"1":{"name":"variable.other.liquid"}}},"liquid-operators":{"patterns":[{"match":"(?\u003c=\\s)(=|~)(?=\\s)","captures":{"1":{"name":"keyword.operator.assignment.liquid"}}},{"match":"(?\u003c=\\s)((?:!|=)=|\u003c=?|\u003e=?|contains)(?=\\s)","captures":{"1":{"name":"keyword.operator.comparison.liquid"}}},{"match":"(?\u003c=\\s)(\\?|:|and|or)(?=\\s)","captures":{"1":{"name":"keyword.operator.logical.liquid"}}},{"match":"(?\u003c=[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\)'\"])\\.\\.(?=[a-zA-Z0-9_\\x{7f}-\\x{ff}'\"])","captures":{"0":{"name":"keyword.operator.other.liquid"}}},{"match":"(?\u003c=[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]\\}\\)'\"])\\|(?=[a-zA-Z_\\x{7f}-\\x{ff}])","captures":{"0":{"name":"keyword.operator.other.liquid"}}}]},"liquid-print-tag":{"name":"meta.tag.template.value.liquid","begin":"\\{\\{-?","end":"-?\\}\\}","patterns":[{"include":"#liquid-constants"},{"include":"#liquid-operators"},{"include":"#liquid-objects"},{"include":"#liquid-properties"},{"include":"#liquid-filters"},{"include":"#liquid-strings"},{"include":"#liquid-arrays"}],"beginCaptures":{"0":{"name":"punctuation.section.tag.liquid"}},"endCaptures":{"0":{"name":"punctuation.section.tag.liquid"}}},"liquid-properties":{"patterns":[{"match":"(?x)\n (?\u003c=[a-zA-Z0-9_\\x{7f}-\\x{ff}])\n (\\.)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n (?=[\\.\\s\\|\\[\\)\\]\\}:,])\n ","captures":{"1":{"name":"punctuation.separator.property.liquid"},"2":{"name":"variable.other.property.liquid"}}},{"contentName":"meta.function.arguments.liquid","begin":"(?x)\n (?\u003c=[a-zA-Z0-9_\\x{7f}-\\x{ff}])\n (\\.)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)\n (\\()\n ","end":"\\)","patterns":[{"include":"#liquid-constants"},{"include":"#liquid-objects"},{"include":"#liquid-properties"},{"include":"#liquid-filters"},{"include":"#liquid-strings"},{"include":"#liquid-arrays"}],"beginCaptures":{"1":{"name":"punctuation.separator.property.liquid"},"2":{"name":"variable.other.property.liquid"},"3":{"name":"punctuation.definition.parameters.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.liquid"}}},{"match":"(?x)\n (?\u003c=[a-zA-Z0-9_\\x{7f}-\\x{ff}\\]])\n (?:\n (\\[)('[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*')(\\])\n |(\\[)(\"[a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*\")(\\])\n |(\\[)([a-zA-Z_\\x{7f}-\\x{ff}][a-zA-Z0-9_\\x{7f}-\\x{ff}]*)(\\])\n )\n ","captures":{"1":{"name":"punctuation.section.array.begin.liquid"},"2":{"name":"variable.other.property.liquid"},"3":{"name":"punctuation.section.array.end.liquid"},"4":{"name":"punctuation.section.array.begin.liquid"},"5":{"name":"variable.other.property.liquid"},"6":{"name":"punctuation.section.array.end.liquid"},"7":{"name":"punctuation.section.array.begin.liquid"},"8":{"name":"variable.other.property.liquid"},"9":{"name":"punctuation.section.array.end.liquid"}}}]},"liquid-statement-tag":{"name":"meta.tag.template.block.liquid","begin":"\\{%-?","end":"-?%\\}","patterns":[{"include":"#liquid-constants"},{"include":"#liquid-keywords"},{"include":"#liquid-operators"},{"include":"#liquid-filters"},{"include":"#liquid-objects"},{"include":"#liquid-properties"},{"include":"#liquid-strings"},{"include":"#liquid-arrays"}],"beginCaptures":{"0":{"name":"punctuation.section.tag.liquid"}},"endCaptures":{"0":{"name":"punctuation.section.tag.liquid"}}},"liquid-strings":{"patterns":[{"name":"string.quoted.single.liquid","begin":"(?:(?\u003c!\\\\)|(?\u003c=\\\\\\\\))'","end":"(?:(?\u003c!\\\\)|(?\u003c=\\\\\\\\))'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.liquid"}}},{"name":"string.quoted.double.liquid","begin":"(?:(?\u003c!\\\\)|(?\u003c=\\\\\\\\))\"","end":"(?:(?\u003c!\\\\)|(?\u003c=\\\\\\\\))\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.liquid"}}}]},"php":{"begin":"(?=(^\\s*)?\u003c\\?)","end":"(?!(^\\s*)?\u003c\\?)","patterns":[{"include":"text.html.php"}]},"python":{"name":"source.python.embedded.html","begin":"(?:^\\s*)\u003c\\?python(?!.*\\?\u003e)","end":"\\?\u003e(?:\\s*$\\n)?","patterns":[{"include":"source.python"}]},"ruby":{"patterns":[{"name":"comment.block.erb","begin":"\u003c%+#","end":"%\u003e","captures":{"0":{"name":"punctuation.definition.comment.erb"}}},{"name":"source.ruby.embedded.html","begin":"\u003c%+(?!\u003e)=?","end":"-?%\u003e","patterns":[{"name":"comment.line.number-sign.ruby","match":"(#).*?(?=-?%\u003e)","captures":{"1":{"name":"punctuation.definition.comment.ruby"}}},{"include":"source.ruby"}],"captures":{"0":{"name":"punctuation.section.embedded.ruby"}}},{"name":"source.ruby.nitro.embedded.html","begin":"\u003c\\?r(?!\u003e)=?","end":"-?\\?\u003e","patterns":[{"name":"comment.line.number-sign.ruby.nitro","match":"(#).*?(?=-?\\?\u003e)","captures":{"1":{"name":"punctuation.definition.comment.ruby.nitro"}}},{"include":"source.ruby"}],"captures":{"0":{"name":"punctuation.section.embedded.ruby.nitro"}}}]},"string-double-quoted":{"name":"string.quoted.double.html","begin":"\"","end":"\"","patterns":[{"include":"#embedded-code"},{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"string-single-quoted":{"name":"string.quoted.single.html","begin":"'","end":"'","patterns":[{"include":"#embedded-code"},{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"tag-generic-attribute":{"name":"entity.other.attribute-name.html","match":"\\b([a-zA-Z\\-:]+)"},"tag-id-attribute":{"name":"meta.attribute-with-value.id.html","begin":"\\b(id)\\b\\s*(=)","end":"(?\u003c='|\")","patterns":[{"name":"string.quoted.double.html","contentName":"meta.toc-list.id.html","begin":"\"","end":"\"","patterns":[{"include":"#embedded-code"},{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},{"name":"string.quoted.single.html","contentName":"meta.toc-list.id.html","begin":"'","end":"'","patterns":[{"include":"#embedded-code"},{"include":"#entities"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}}],"captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"tag-stuff":{"patterns":[{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"},{"include":"#embedded-code"}]}}}
|
1
|
+
{"name":"Liquid HTML","scopeName":"text.html.liquid","patterns":[{"include":"#core"}],"injections":{"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted":{"patterns":[{"include":"#injection"}]}}}
|
data/grammars/text.rtf.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"RTF","scopeName":"text.rtf","patterns":[{"begin":"\\{\\\\\\*","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.operator.begin-ignorable-destination-group.rtf"}},"endCaptures":{"0":{"name":"keyword.operator.end-ignorable-destination-group.rtf"}}},{"begin":"\\{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.operator.begin-group.rtf"}},"endCaptures":{"0":{"name":"keyword.operator.end-group.rtf"}}},{"name":"constant.character.escape.rtf","match":"\\\\[\\\\{}]"},{"name":"keyword.operator.formula.rtf","match":"\\\\\\|"},{"name":"constant.character.escape.non-breaking-space.rtf","match":"\\\\~"},{"name":"constant.character.escape.optional-hyphen.rtf","match":"\\\\-"},{"name":"constant.character.escape.non-breaking-hyphen.rtf","match":"\\\\_"},{"name":"keyword.operator.index-subentry.rtf","match":"\\\\:"},{"name":"keyword.operator.ignorable-destination.rtf","match":"\\\\\\*"},{"name":"support.function.par.rtf","match":"\\\\[\\n\\r]"},{"name":"constant.character.entity.rtf","match":"(\\\\')[0-9A-Fa-f]{2}","captures":{"1":{"name":"punctuation.definition.constant.rtf"}}},{"contentName":"markup.bold.rtf","begin":"\\\\b\\b","end":"(?=\\\\(?:b0|plain
|
1
|
+
{"name":"RTF","scopeName":"text.rtf","patterns":[{"begin":"\\{\\\\\\*","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.operator.begin-ignorable-destination-group.rtf"}},"endCaptures":{"0":{"name":"keyword.operator.end-ignorable-destination-group.rtf"}}},{"begin":"\\{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.operator.begin-group.rtf"}},"endCaptures":{"0":{"name":"keyword.operator.end-group.rtf"}}},{"name":"constant.character.escape.rtf","match":"\\\\[\\\\{}]"},{"name":"keyword.operator.formula.rtf","match":"\\\\\\|"},{"name":"constant.character.escape.non-breaking-space.rtf","match":"\\\\~"},{"name":"constant.character.escape.optional-hyphen.rtf","match":"\\\\-"},{"name":"constant.character.escape.non-breaking-hyphen.rtf","match":"\\\\_"},{"name":"keyword.operator.index-subentry.rtf","match":"\\\\:"},{"name":"keyword.operator.ignorable-destination.rtf","match":"\\\\\\*"},{"name":"support.function.par.rtf","match":"\\\\[\\n\\r]"},{"name":"constant.character.entity.rtf","match":"(\\\\')[0-9A-Fa-f]{2}","captures":{"1":{"name":"punctuation.definition.constant.rtf"}}},{"contentName":"markup.bold.rtf","begin":"\\\\b\\b","end":"(?=\\\\(?:b0(?:\\b|[^\\d])|plain\\b)|})","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"support.function.rtf"}}},{"contentName":"markup.italic.rtf","begin":"\\\\i\\b","end":"(?=\\\\(?:i0(?:\\b|[^\\d])|plain\\b)|})","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"support.function.rtf"}}},{"contentName":"markup.strike.rtf","begin":"\\\\strike\\b","end":"(?=\\\\(?:strike0(?:\\b|[^\\d])|plain\\b)|})","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"support.function.rtf"}}},{"match":"(\\\\[A-Za-z]+)(?:(-?)(\\d+))?","captures":{"1":{"name":"support.function.rtf"},"2":{"name":"keyword.operator.rtf"},"3":{"name":"constant.numeric.rtf"}}},{"name":"invalid.unimplemented.rtf","match":"\\\\[^A-Za-z]"}]}
|
data/grammars/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.
|
1
|
+
7.19.0
|
data/lib/linguist/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.
|
1
|
+
7.19.0
|
data/lib/linguist/generated.rb
CHANGED
@@ -80,6 +80,7 @@ module Linguist
|
|
80
80
|
compiled_cython_file? ||
|
81
81
|
pipenv_lock? ||
|
82
82
|
generated_go? ||
|
83
|
+
generated_protocol_buffer_from_go? ||
|
83
84
|
generated_protocol_buffer? ||
|
84
85
|
generated_javascript_protocol_buffer? ||
|
85
86
|
generated_apache_thrift? ||
|
@@ -321,6 +322,17 @@ module Linguist
|
|
321
322
|
return lines.first(40).any? { |l| l.include? "Code generated by" }
|
322
323
|
end
|
323
324
|
|
325
|
+
# Internal: Is the blob a protocol buffer file generated by the
|
326
|
+
# go-to-protobuf tool?
|
327
|
+
#
|
328
|
+
# Returns true or false
|
329
|
+
def generated_protocol_buffer_from_go?
|
330
|
+
return false unless extname == '.proto'
|
331
|
+
return false unless lines.count > 1
|
332
|
+
|
333
|
+
return lines.first(20).any? { |l| l.include? "This file was autogenerated by go-to-protobuf" }
|
334
|
+
end
|
335
|
+
|
324
336
|
PROTOBUF_EXTENSIONS = ['.py', '.java', '.h', '.cc', '.cpp', '.m', '.rb', '.php']
|
325
337
|
|
326
338
|
# Internal: Is the blob a C++, Java or Python source file generated by the
|
@@ -413,7 +425,7 @@ module Linguist
|
|
413
425
|
#
|
414
426
|
# Returns true or false.
|
415
427
|
def generated_yarn_plugnplay?
|
416
|
-
!!name.match(/(^|\/)\.pnp
|
428
|
+
!!name.match(/(^|\/)\.pnp\..*$/)
|
417
429
|
end
|
418
430
|
|
419
431
|
# Internal: Is the blob part of Godeps/,
|
data/lib/linguist/heuristics.yml
CHANGED
@@ -130,6 +130,10 @@ disambiguations:
|
|
130
130
|
pattern: '![\w\s]+methodsFor: '
|
131
131
|
- language: 'C#'
|
132
132
|
pattern: '^(\s*namespace\s*[\w\.]+\s*{|\s*\/\/)'
|
133
|
+
- extensions: ['.csc']
|
134
|
+
rules:
|
135
|
+
- language: GSC
|
136
|
+
named_pattern: gsc
|
133
137
|
- extensions: ['.csl']
|
134
138
|
rules:
|
135
139
|
- language: XML
|
@@ -157,6 +161,20 @@ disambiguations:
|
|
157
161
|
pattern: '# Microsoft Developer Studio Generated Build File'
|
158
162
|
- language: Faust
|
159
163
|
pattern: '\bprocess\s*[(=]|\b(library|import)\s*\(\s*"|\bdeclare\s+(name|version|author|copyright|license)\s+"'
|
164
|
+
- extensions: ['.e']
|
165
|
+
rules:
|
166
|
+
- language: E
|
167
|
+
pattern:
|
168
|
+
- '^\s*(def|var)\s+(.+):='
|
169
|
+
- '^\s*(def|to)\s+(\w+)(\(.+\))?\s+{'
|
170
|
+
- '^\s*(when)\s+(\(.+\))\s+->\s+{'
|
171
|
+
- language: Eiffel
|
172
|
+
pattern:
|
173
|
+
- '^\s*\w+\s*(?:,\s*\w+)*[:]\s*\w+\s'
|
174
|
+
- '^\s*\w+\s*(?:\(\s*\w+[:][^)]+\))?(?:[:]\s*\w+)?(?:--.+\s+)*\s+(?:do|local)\s'
|
175
|
+
- '^\s*(?:across|deferred|elseif|ensure|feature|from|inherit|inspect|invariant|note|once|require|undefine|variant|when)\s*$'
|
176
|
+
- language: Euphoria
|
177
|
+
named_pattern: euphoria
|
160
178
|
- extensions: ['.ecl']
|
161
179
|
rules:
|
162
180
|
- language: ECLiPSe
|
@@ -169,6 +187,15 @@ disambiguations:
|
|
169
187
|
pattern: '^\s*(?:%%|main\s*\(.*?\)\s*->)'
|
170
188
|
- language: JavaScript
|
171
189
|
pattern: '(?m:\/\/|("|'')use strict\1|export\s+default\s|\/\*.*?\*\/)'
|
190
|
+
- extensions: ['.ex']
|
191
|
+
rules:
|
192
|
+
- language: Elixir
|
193
|
+
pattern:
|
194
|
+
- '^\s*@moduledoc\s'
|
195
|
+
- '^\s*(?:cond|import|quote|unless)\s'
|
196
|
+
- '^\s*def(?:exception|impl|macro|module|protocol)[(\s]'
|
197
|
+
- language: Euphoria
|
198
|
+
named_pattern: euphoria
|
172
199
|
- extensions: ['.f']
|
173
200
|
rules:
|
174
201
|
- language: Forth
|
@@ -229,6 +256,14 @@ disambiguations:
|
|
229
256
|
pattern: '^uses (java|gw)\.'
|
230
257
|
- language: Genie
|
231
258
|
pattern: '^\[indent=[0-9]+\]'
|
259
|
+
- extensions: ['.gsc']
|
260
|
+
rules:
|
261
|
+
- language: GSC
|
262
|
+
named_pattern: gsc
|
263
|
+
- extensions: ['.gsh']
|
264
|
+
rules:
|
265
|
+
- language: GSC
|
266
|
+
named_pattern: gsc
|
232
267
|
- extensions: ['.h']
|
233
268
|
rules:
|
234
269
|
- language: Objective-C
|
@@ -323,7 +358,7 @@ disambiguations:
|
|
323
358
|
- language: 'M4'
|
324
359
|
- extensions: ['.mask']
|
325
360
|
rules:
|
326
|
-
- language:
|
361
|
+
- language: Unity3D Asset
|
327
362
|
pattern: 'tag:unity3d.com'
|
328
363
|
- extensions: ['.md']
|
329
364
|
rules:
|
@@ -618,6 +653,12 @@ disambiguations:
|
|
618
653
|
pattern: '^%(end|ctor|hook|group)\b'
|
619
654
|
- language: Linker Script
|
620
655
|
pattern: 'OUTPUT_ARCH\(|OUTPUT_FORMAT\(|SECTIONS'
|
656
|
+
- extensions: ['.yaml']
|
657
|
+
rules:
|
658
|
+
- language: MiniYAML
|
659
|
+
pattern: '^\t+.*?[^\s:].*?:'
|
660
|
+
negative_pattern: '---'
|
661
|
+
- language: YAML
|
621
662
|
- extensions: ['.yy']
|
622
663
|
rules:
|
623
664
|
- language: JSON
|
@@ -632,7 +673,16 @@ named_patterns:
|
|
632
673
|
- '^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+'
|
633
674
|
- '^[ \t]*(private|public|protected):$'
|
634
675
|
- 'std::\w+'
|
676
|
+
euphoria:
|
677
|
+
- '^\s*namespace\s'
|
678
|
+
- '^\s*(?:public\s+)?include\s'
|
679
|
+
- '^\s*(?:(?:public|export|global)\s+)?(?:atom|constant|enum|function|integer|object|procedure|sequence|type)\s'
|
635
680
|
fortran: '^(?i:[c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)'
|
681
|
+
gsc:
|
682
|
+
- '^\s*#\s*(?:using|insert|include|define|namespace)[ \t]+\w'
|
683
|
+
- '^\s*(?>(?:autoexec|private)\s+){0,2}function\s+(?>(?:autoexec|private)\s+){0,2}\w+\s*\('
|
684
|
+
- '\b(?:level|self)[ \t]+thread[ \t]+(?:\[\[[ \t]*(?>\w+\.)*\w+[ \t]*\]\]|\w+)[ \t]*\([^\r\n\)]*\)[ \t]*;'
|
685
|
+
- '^[ \t]*#[ \t]*(?:precache|using_animtree)[ \t]*\('
|
636
686
|
key_equals_value: '^[^#!;][^=]*='
|
637
687
|
m68k:
|
638
688
|
- '(?im)\bmoveq(?:\.l)?\s+#(?:\$-?[0-9a-f]{1,3}|%[0-1]{1,8}|-?[0-9]{1,3}),\s*d[0-7]\b'
|