github-linguist 7.16.1 → 7.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/etc.json +1 -1
  3. data/grammars/go.mod.json +1 -0
  4. data/grammars/go.sum.json +1 -0
  5. data/grammars/source.abap.json +1 -1
  6. data/grammars/source.ballerina.json +1 -1
  7. data/grammars/source.bc.json +1 -0
  8. data/grammars/source.bicep.json +1 -1
  9. data/grammars/source.cirru.json +1 -1
  10. data/grammars/source.clarion.json +1 -1
  11. data/grammars/source.cs.json +1 -1
  12. data/grammars/source.css.json +1 -1
  13. data/grammars/source.dart.json +1 -1
  14. data/grammars/source.dc.json +1 -0
  15. data/grammars/source.ditroff.json +1 -1
  16. data/grammars/source.fstar.json +1 -1
  17. data/grammars/source.hack.json +1 -1
  18. data/grammars/source.jest.snap.json +1 -0
  19. data/grammars/source.jq.json +1 -1
  20. data/grammars/source.json.json +1 -1
  21. data/grammars/source.julia.json +1 -1
  22. data/grammars/source.matlab.json +1 -1
  23. data/grammars/source.odin.json +1 -1
  24. data/grammars/source.powershell.json +1 -1
  25. data/grammars/source.rascal.json +1 -1
  26. data/grammars/source.rego.json +1 -1
  27. data/grammars/source.sqf.json +1 -1
  28. data/grammars/source.ts.json +1 -1
  29. data/grammars/source.tsx.json +1 -1
  30. data/grammars/source.v.json +1 -1
  31. data/grammars/source.ws.json +1 -0
  32. data/grammars/source.wsd.json +1 -1
  33. data/grammars/source.yara.json +1 -1
  34. data/grammars/source.yasnippet.json +1 -1
  35. data/grammars/version +1 -1
  36. data/lib/linguist/VERSION +1 -1
  37. data/lib/linguist/documentation.yml +1 -0
  38. data/lib/linguist/generated.rb +13 -0
  39. data/lib/linguist/heuristics.yml +1 -1
  40. data/lib/linguist/languages.json +1 -1
  41. data/lib/linguist/languages.yml +69 -20
  42. data/lib/linguist/linguist.so +0 -0
  43. data/lib/linguist/samples.json +1 -1
  44. data/lib/linguist/vendor.yml +3 -0
  45. metadata +8 -2
@@ -1 +1 @@
1
- {"name":"V","scopeName":"source.v","patterns":[{"include":"#comments"},{"include":"#as-is"},{"include":"#attributes"},{"include":"#assignment"},{"include":"#module-decl"},{"include":"#import-decl"},{"include":"#hash-decl"},{"include":"#brackets"},{"include":"#builtin-fix"},{"include":"#escaped-fix"},{"include":"#operators"},{"include":"#function-limited-overload-decl"},{"include":"#function-extend-decl"},{"include":"#function-decl"},{"include":"#function-exist"},{"include":"#generic"},{"include":"#constants"},{"include":"#type"},{"include":"#enum"},{"include":"#interface"},{"include":"#struct"},{"include":"#keywords"},{"include":"#storage"},{"include":"#numbers"},{"include":"#strings"},{"include":"#types"},{"include":"#punctuations"}],"repository":{"as-is":{"begin":"\\s+(as|is)\\s+","end":"([\\w.]*)","beginCaptures":{"1":{"name":"keyword.$1.v"}},"endCaptures":{"1":{"name":"entity.name.alias.v"}}},"assignment":{"name":"meta.definition.variable.v","match":"\\s+((?:\\:|\\+|\\-|\\*|/|\\%|\\\u0026|\\||\\^)?=)\\s+","captures":{"1":{"patterns":[{"include":"#operators"}]}}},"attributes":{"name":"meta.definition.attribute.v","match":"^\\s*((\\[)(deprecated|unsafe_fn|console|heap|debug|manualfree|typedef|live|inline|flag|ref_only|windows_stdcall|direct_array_access)(\\]))","captures":{"1":{"name":"meta.function.attribute.v"},"2":{"name":"punctuation.definition.begin.bracket.square.v"},"3":{"name":"storage.modifier.attribute.v"},"4":{"name":"punctuation.definition.end.bracket.square.v"}}},"brackets":{"patterns":[{"begin":"{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.round.end.v"}}},{"begin":"\\[","end":"\\]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.square.end.v"}}}]},"builtin-fix":{"patterns":[{"patterns":[{"name":"storage.modifier.v","match":"(const)(?=\\s*\\()"},{"name":"keyword.$1.v","match":"\\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)(?=\\s*\\()"},{"name":"keyword.control.v","match":"\\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"meta.expr.numeric.cast.v","match":"(i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64))(?=\\s*\\()","captures":{"1":{"name":"storage.type.numeric.v"}}},{"name":"meta.expr.bool.cast.v","match":"(bool|byte|byteptr|charptr|voidptr|string|rune|size_t)(?=\\s*\\()","captures":{"1":{"name":"storage.type.$1.v"}}}]}]},"comments":{"patterns":[{"name":"comment.block.documentation.v","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.v"}}},{"name":"comment.line.double-slash.v","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}}}]},"constants":{"name":"constant.language.v","match":"\\b(true|false|none)\\b"},"enum":{"name":"meta.definition.enum.v","match":"^\\s*(?:(pub)?\\s+)?(enum)\\s+(?:\\w+\\.)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.enum.v"},"3":{"name":"entity.name.enum.v"}}},"escaped-fix":{"name":"meta.escaped.keyword.v","match":"((?:@)(?:mut|pub|fn|unsafe|module|import|as|const|map|assert|sizeof|__offsetof|typeof|type|struct|interface|enum|in|is|or|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm|i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64)|bool|byte|byteptr|charptr|voidptr|string|ustring|rune))","captures":{"0":{"name":"keyword.other.escaped.v"}}},"function-decl":{"name":"meta.definition.function.v","begin":"^\\s*(pub)?\\s*(fn)\\s+","end":"(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","beginCaptures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.function.v"}},"endCaptures":{"1":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"patterns":[{"include":"#generic"}]}}},"function-exist":{"name":"meta.support.function.v","match":"(\\w+)((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?(?=\\s*\\()","captures":{"0":{"name":"meta.function.call.v"},"1":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"patterns":[{"include":"#generic"}]}}},"function-extend-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.function.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"7":{"patterns":[{"include":"#generic"}]}}},"function-limited-overload-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*([\\+\\-\\*\\/])?\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)","captures":{"1":{"name":"storage.modifier.v"},"10":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"name":"keyword.function.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#operators"}]},"7":{"name":"punctuation.definition.bracket.round.begin.v"},"8":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"9":{"name":"punctuation.definition.bracket.round.end.v"}}},"generic":{"patterns":[{"name":"meta.definition.generic.v","match":"(?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e)","captures":{"1":{"name":"punctuation.definition.bracket.angle.begin.v"},"2":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.generic.v","match":"\\w+"}]},"3":{"name":"punctuation.definition.bracket.angle.end.v"}}}]},"hash-decl":{"name":"markup.bold.v","begin":"^\\s*(#)","end":"$"},"illegal-name":{"name":"invalid.illegal.v","match":"\\d\\w+"},"import-decl":{"name":"meta.import.v","begin":"^\\s*(import)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.import.v"}},"endCaptures":{"1":{"name":"entity.name.import.v"}}},"interface":{"name":"meta.definition.interface.v","match":"^\\s*(?:(pub)?\\s+)?(interface)\\s+(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"keyword.interface.v"},"3":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.interface.v","match":"\\w+"}]}}},"keywords":{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)"},{"name":"keyword.control.v","match":"\\b(as|it|is|in|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b"},{"name":"keyword.$1.v","match":"\\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\\b"}]},"module-decl":{"name":"meta.module.v","begin":"^\\s*(module)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.module.v"}},"endCaptures":{"1":{"name":"entity.name.module.v"}}},"numbers":{"patterns":[{"name":"constant.numeric.exponential.v","match":"([0-9]+(_?))+(\\.)([0-9]+[eE][-+]?[0-9]+)"},{"name":"constant.numeric.float.v","match":"([0-9]+(_?))+(\\.)([0-9]+)"},{"name":"constant.numeric.binary.v","match":"(?:0b)(?:(?:[0-1]+)(?:_?))+"},{"name":"constant.numeric.octal.v","match":"(?:0o)(?:(?:[0-7]+)(?:_?))+"},{"name":"constant.numeric.hex.v","match":"(?:0x)(?:(?:[0-9a-fA-F]+)(?:_?))+"},{"name":"constant.numeric.integer.v","match":"(?:(?:[0-9]+)(?:[_]?))+"}]},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.v","match":"(\\+|\\-|\\*|\\/|\\%|\\+\\+|\\-\\-|\\\u003e\\\u003e|\\\u003c\\\u003c)"},{"name":"keyword.operator.relation.v","match":"(\\=\\=|\\!\\=|\\\u003e|\\\u003c|\\\u003e\\=|\\\u003c\\=)"},{"name":"keyword.operator.assignment.v","match":"(\\:\\=|\\=|\\+\\=|\\-\\=|\\*\\=|\\/\\=|\\%\\=|\\\u0026\\=|\\|\\=|\\^\\=|\\~\\=|\\\u0026\\\u0026\\=|\\|\\|\\=|\\\u003e\\\u003e\\=|\\\u003c\\\u003c\\=)"},{"name":"keyword.operator.bitwise.v","match":"(\\\u0026|\\||\\^|\\~|\u003c(?!\u003c)|\u003e(?!\u003e))"},{"name":"keyword.operator.logical.v","match":"(\\\u0026\\\u0026|\\|\\||\\!)"},{"name":"keyword.operator.optional.v","match":"\\?"}]},"punctuation":{"patterns":[{"name":"punctuation.delimiter.period.dot.v","match":"\\."},{"name":"punctuation.delimiter.comma.v","match":","},{"name":"punctuation.separator.key-value.colon.v","match":":"},{"name":"punctuation.definition.other.semicolon.v","match":";"},{"name":"punctuation.definition.other.questionmark.v","match":"\\?"},{"name":"punctuation.hash.v","match":"#"}]},"punctuations":{"patterns":[{"name":"punctuation.accessor.v","match":"(?:\\.)"}]},"storage":{"name":"storage.modifier.v","match":"\\b(const|mut|pub)\\b"},"string-escaped-char":{"patterns":[{"name":"constant.character.escape.v","match":"\\\\([0-7]{3}|[\\$abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})"},{"name":"invalid.illegal.unknown-escape.v","match":"\\\\[^0-7\\$xuUabfnrtv\\'\"]"}]},"string-interpolation":{"name":"meta.string.interpolation.v","match":"(\\$([\\w.]+|\\{.*?\\}))","captures":{"1":{"patterns":[{"name":"invalid.illegal.v","match":"\\$\\d[\\.\\w]+"},{"name":"variable.other.interpolated.v","match":"\\$([\\.\\w]+|\\{.*?\\})"}]}}},"string-placeholder":{"name":"constant.other.placeholder.v","match":"%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGsp]"},"strings":{"patterns":[{"name":"string.quoted.rune.v","begin":"`","end":"`","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"name":"string.quoted.raw.v","begin":"(r)'","end":"'","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.raw.v","begin":"(r)\"","end":"\"","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)'","end":"'","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)\"","end":"\"","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}}]},"struct":{"patterns":[{"name":"meta.definition.struct.v","begin":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global)\\s+)?(struct|union)\\s+([\\w.]+)\\s*|({)","end":"\\s*|(})","patterns":[{"include":"#struct-access-modifier"},{"match":"\\b(\\w+)\\s+([\\w\\[\\]\\*\u0026.]+)(?:\\s*(=)\\s*((?:.(?=$|//|/\\*))*+))?","captures":{"1":{"name":"variable.other.property.v"},"2":{"patterns":[{"include":"#numbers"},{"include":"#brackets"},{"include":"#types"},{"name":"storage.type.other.v","match":"\\w+"}]},"3":{"name":"keyword.operator.assignment.v"},"4":{"patterns":[{"include":"$self"}]}}},{"include":"#types"},{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.struct.v"},"4":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"1":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"name":"meta.definition.struct.v","match":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global))\\s+?(struct)\\s+(?:\\s+([\\w.]+))?","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.struct.v"}}}]},"struct-access-modifier":{"match":"(?\u003c=\\s|^)(mut|pub(?:\\s+mut)?|__global)(:|\\b)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"punctuation.separator.struct.key-value.v"}}},"type":{"name":"meta.definition.type.v","match":"^\\s*(?:(pub)?\\s+)?(type)\\s+(\\w*)\\s+(?:\\w+\\.+)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.type.v"},"3":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]},"4":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]}}},"types":{"patterns":[{"name":"storage.type.numeric.v","match":"\\b(i(8|16|nt|64|128)|u(8|16|32|64|128)|f(32|64))\\b"},{"name":"storage.type.$1.v","match":"\\b(bool|byte|byteptr|charptr|voidptr|string|ustring|rune)\\b"}]}}}
1
+ {"name":"V","scopeName":"source.v","patterns":[{"include":"#comments"},{"include":"#as-is"},{"include":"#attributes"},{"include":"#assignment"},{"include":"#module-decl"},{"include":"#import-decl"},{"include":"#hash-decl"},{"include":"#brackets"},{"include":"#builtin-fix"},{"include":"#escaped-fix"},{"include":"#operators"},{"include":"#function-limited-overload-decl"},{"include":"#function-extend-decl"},{"include":"#function-decl"},{"include":"#function-exist"},{"include":"#generic"},{"include":"#constants"},{"include":"#type"},{"include":"#enum"},{"include":"#interface"},{"include":"#struct"},{"include":"#keywords"},{"include":"#storage"},{"include":"#numbers"},{"include":"#strings"},{"include":"#types"},{"include":"#punctuations"}],"repository":{"as-is":{"begin":"\\s+(as|is)\\s+","end":"([\\w.]*)","beginCaptures":{"1":{"name":"keyword.$1.v"}},"endCaptures":{"1":{"name":"entity.name.alias.v"}}},"assignment":{"name":"meta.definition.variable.v","match":"\\s+((?:\\:|\\+|\\-|\\*|/|\\%|\\\u0026|\\||\\^)?=)\\s+","captures":{"1":{"patterns":[{"include":"#operators"}]}}},"attributes":{"name":"meta.definition.attribute.v","match":"^\\s*((\\[)(deprecated|unsafe_fn|console|heap|debug|manualfree|typedef|live|inline|flag|ref_only|windows_stdcall|direct_array_access)(\\]))","captures":{"1":{"name":"meta.function.attribute.v"},"2":{"name":"punctuation.definition.begin.bracket.square.v"},"3":{"name":"storage.modifier.attribute.v"},"4":{"name":"punctuation.definition.end.bracket.square.v"}}},"brackets":{"patterns":[{"begin":"{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.round.end.v"}}},{"begin":"\\[","end":"\\]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.square.end.v"}}}]},"builtin-fix":{"patterns":[{"patterns":[{"name":"storage.modifier.v","match":"(const)(?=\\s*\\()"},{"name":"keyword.$1.v","match":"\\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)(?=\\s*\\()"},{"name":"keyword.control.v","match":"\\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"meta.expr.numeric.cast.v","match":"(i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64))(?=\\s*\\()","captures":{"1":{"name":"storage.type.numeric.v"}}},{"name":"meta.expr.bool.cast.v","match":"(bool|byte|byteptr|charptr|voidptr|string|rune|size_t)(?=\\s*\\()","captures":{"1":{"name":"storage.type.$1.v"}}}]}]},"comments":{"patterns":[{"name":"comment.block.documentation.v","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.v"}}},{"name":"comment.line.double-slash.v","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}}}]},"constants":{"name":"constant.language.v","match":"\\b(true|false|none)\\b"},"enum":{"name":"meta.definition.enum.v","match":"^\\s*(?:(pub)?\\s+)?(enum)\\s+(?:\\w+\\.)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.enum.v"},"3":{"name":"entity.name.enum.v"}}},"escaped-fix":{"name":"meta.escaped.keyword.v","match":"((?:@)(?:mut|pub|fn|unsafe|module|import|as|const|map|assert|sizeof|__offsetof|typeof|type|struct|interface|enum|in|is|or|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm|i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64)|bool|byte|byteptr|charptr|voidptr|string|ustring|rune))","captures":{"0":{"name":"keyword.other.escaped.v"}}},"function-decl":{"name":"meta.definition.function.v","begin":"^\\s*(pub)?\\s*(fn)\\s+","end":"(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","beginCaptures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.function.v"}},"endCaptures":{"1":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"patterns":[{"include":"#generic"}]}}},"function-exist":{"name":"meta.support.function.v","match":"(\\w+)((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?(?=\\s*\\()","captures":{"0":{"name":"meta.function.call.v"},"1":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"patterns":[{"include":"#generic"}]}}},"function-extend-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.function.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"7":{"patterns":[{"include":"#generic"}]}}},"function-limited-overload-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*([\\+\\-\\*\\/])?\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)","captures":{"1":{"name":"storage.modifier.v"},"10":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"name":"keyword.function.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#operators"}]},"7":{"name":"punctuation.definition.bracket.round.begin.v"},"8":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"9":{"name":"punctuation.definition.bracket.round.end.v"}}},"generic":{"patterns":[{"name":"meta.definition.generic.v","match":"(?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e)","captures":{"1":{"name":"punctuation.definition.bracket.angle.begin.v"},"2":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.generic.v","match":"\\w+"}]},"3":{"name":"punctuation.definition.bracket.angle.end.v"}}}]},"hash-decl":{"name":"markup.bold.v","begin":"^\\s*(#)","end":"$"},"illegal-name":{"name":"invalid.illegal.v","match":"\\d\\w+"},"import-decl":{"name":"meta.import.v","begin":"^\\s*(import)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.import.v"}},"endCaptures":{"1":{"name":"entity.name.import.v"}}},"interface":{"name":"meta.definition.interface.v","match":"^\\s*(?:(pub)?\\s+)?(interface)\\s+(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"keyword.interface.v"},"3":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.interface.v","match":"\\w+"}]}}},"keywords":{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)"},{"name":"keyword.control.v","match":"\\b(as|it|is|in|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b"},{"name":"keyword.$1.v","match":"\\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\\b"}]},"module-decl":{"name":"meta.module.v","begin":"^\\s*(module)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.module.v"}},"endCaptures":{"1":{"name":"entity.name.module.v"}}},"numbers":{"patterns":[{"name":"constant.numeric.exponential.v","match":"([0-9]+(_?))+(\\.)([0-9]+[eE][-+]?[0-9]+)"},{"name":"constant.numeric.float.v","match":"([0-9]+(_?))+(\\.)([0-9]+)"},{"name":"constant.numeric.binary.v","match":"(?:0b)(?:(?:[0-1]+)(?:_?))+"},{"name":"constant.numeric.octal.v","match":"(?:0o)(?:(?:[0-7]+)(?:_?))+"},{"name":"constant.numeric.hex.v","match":"(?:0x)(?:(?:[0-9a-fA-F]+)(?:_?))+"},{"name":"constant.numeric.integer.v","match":"(?:(?:[0-9]+)(?:[_]?))+"}]},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.v","match":"(\\+|\\-|\\*|\\/|\\%|\\+\\+|\\-\\-|\\\u003e\\\u003e|\\\u003c\\\u003c)"},{"name":"keyword.operator.relation.v","match":"(\\=\\=|\\!\\=|\\\u003e|\\\u003c|\\\u003e\\=|\\\u003c\\=)"},{"name":"keyword.operator.assignment.v","match":"(\\:\\=|\\=|\\+\\=|\\-\\=|\\*\\=|\\/\\=|\\%\\=|\\\u0026\\=|\\|\\=|\\^\\=|\\~\\=|\\\u0026\\\u0026\\=|\\|\\|\\=|\\\u003e\\\u003e\\=|\\\u003c\\\u003c\\=)"},{"name":"keyword.operator.bitwise.v","match":"(\\\u0026|\\||\\^|\\~|\u003c(?!\u003c)|\u003e(?!\u003e))"},{"name":"keyword.operator.logical.v","match":"(\\\u0026\\\u0026|\\|\\||\\!)"},{"name":"keyword.operator.optional.v","match":"\\?"}]},"punctuation":{"patterns":[{"name":"punctuation.delimiter.period.dot.v","match":"\\."},{"name":"punctuation.delimiter.comma.v","match":","},{"name":"punctuation.separator.key-value.colon.v","match":":"},{"name":"punctuation.definition.other.semicolon.v","match":";"},{"name":"punctuation.definition.other.questionmark.v","match":"\\?"},{"name":"punctuation.hash.v","match":"#"}]},"punctuations":{"patterns":[{"name":"punctuation.accessor.v","match":"(?:\\.)"},{"name":"punctuation.separator.comma.v","match":"(?:,)"}]},"storage":{"name":"storage.modifier.v","match":"\\b(const|mut|pub)\\b"},"string-escaped-char":{"patterns":[{"name":"constant.character.escape.v","match":"\\\\([0-7]{3}|[\\$abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})"},{"name":"invalid.illegal.unknown-escape.v","match":"\\\\[^0-7\\$xuUabfnrtv\\'\"]"}]},"string-interpolation":{"name":"meta.string.interpolation.v","match":"(\\$([\\w.]+|\\{.*?\\}))","captures":{"1":{"patterns":[{"name":"invalid.illegal.v","match":"\\$\\d[\\.\\w]+"},{"name":"variable.other.interpolated.v","match":"\\$([\\.\\w]+|\\{.*?\\})"}]}}},"string-placeholder":{"name":"constant.other.placeholder.v","match":"%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGsp]"},"strings":{"patterns":[{"name":"string.quoted.rune.v","begin":"`","end":"`","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"name":"string.quoted.raw.v","begin":"(r)'","end":"'","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.raw.v","begin":"(r)\"","end":"\"","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)'","end":"'","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)\"","end":"\"","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}}]},"struct":{"patterns":[{"name":"meta.definition.struct.v","begin":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global)\\s+)?(struct|union)\\s+([\\w.]+)\\s*|({)","end":"\\s*|(})","patterns":[{"include":"#struct-access-modifier"},{"match":"\\b(\\w+)\\s+([\\w\\[\\]\\*\u0026.]+)(?:\\s*(=)\\s*((?:.(?=$|//|/\\*))*+))?","captures":{"1":{"name":"variable.other.property.v"},"2":{"patterns":[{"include":"#numbers"},{"include":"#brackets"},{"include":"#types"},{"name":"storage.type.other.v","match":"\\w+"}]},"3":{"name":"keyword.operator.assignment.v"},"4":{"patterns":[{"include":"$self"}]}}},{"include":"#types"},{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.struct.v"},"4":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"1":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"name":"meta.definition.struct.v","match":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global))\\s+?(struct)\\s+(?:\\s+([\\w.]+))?","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.struct.v"}}}]},"struct-access-modifier":{"match":"(?\u003c=\\s|^)(mut|pub(?:\\s+mut)?|__global)(:|\\b)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"punctuation.separator.struct.key-value.v"}}},"type":{"name":"meta.definition.type.v","match":"^\\s*(?:(pub)?\\s+)?(type)\\s+(\\w*)\\s+(?:\\w+\\.+)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.type.v"},"3":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]},"4":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]}}},"types":{"patterns":[{"name":"storage.type.numeric.v","match":"(?\u003c!\\.)\\b(i(8|16|nt|64|128)|u(8|16|32|64|128)|f(32|64))\\b"},{"name":"storage.type.$1.v","match":"(?\u003c!\\.)\\b(bool|byte|byteptr|charptr|voidptr|string|ustring|rune)\\b"}]}}}
@@ -0,0 +1 @@
1
+ {"name":"WhiteSpace Esolang","scopeName":"source.ws","patterns":[{"name":"markup.ignored.space.ws","match":" "},{"name":"invalid.illegal.tab.ws","match":"\\t"},{"name":"carriage-return.ws","match":"\\r"}]}
@@ -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|class|abstract\\s+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":"support.class.preprocessings.source.wsd","match":"(?i)(!includesub|!include|!enddefinelong|!definelong|!define|!startsub|!endsub|!ifdef|!else|!endif|!ifndef)"},{"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|class|abstract\\s+class|state|autonumber(\\s+stop|resume)?|activate|deactivate|return|destroy|newpage|alt|else|opt|loop|par|break|critical|group|box|rectangle|namespace|partition)\\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)\\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)"},{"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|resume)?|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)\\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":"YARA","scopeName":"source.yara","patterns":[{"name":"comment.block.yara","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.yara"}}},{"name":"comment.line.yara","begin":"//","end":"$\\n?","patterns":[{"name":"punctuation.separator.continuation.yara","match":"(?\u003e\\\\\\s*\\n)"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.yara"}}},{"name":"keyword.yara","match":"\\b(true|false|private|global|rule|strings|meta|condition|and|or|not|filesize|in|at|of|for|all|any|nocase|fullword|wide|ascii|xor|entrypoint|them|int8|int16|int32|int8be|int16be|int32be|uint8|uint16|uint32|uint8be|uint16be|uint32be|include|import|matches|contains)\\b"},{"name":"constant.numeric.yara","match":"\\b(0(x|X)[0-9a-fA-F]+)(MB|KB)?\\b"},{"name":"variable.other.yara","match":"(\\$|#|@)[a-zA-Z0-9_*]*"},{"name":"string.quoted.double.yara","begin":"\"","end":"\"","patterns":[{"include":"#string_escaped_char"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yara"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yara"}}},{"name":"string.regex.yara","begin":"/","end":"/","patterns":[{"name":"constant.regex.escape.yara","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yara"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yara"}}}],"repository":{"string_escaped_char":{"patterns":[{"name":"constant.character.escape.yara","match":"\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8})"},{"name":"invalid.illegal.unknown-escape.yara","match":"\\\\."}]}}}
1
+ {"name":"YARA","scopeName":"source.yara","patterns":[{"name":"comment.line.double-slash.yara","match":"//.*\\n"},{"name":"comment.block.yara","begin":"/\\*","end":"\\*/"},{"name":"constant.language.boolean.true.yara","match":"(\\btrue\\b|\\bfalse\\b)"},{"name":"constant.numeric.hex.yara","match":"\\b0x[a-fA-F0-9]+\\b"},{"name":"constant.numeric.decimal.yara","match":"\\b[0-9]+(MB|KB)?\\b"},{"name":"keyword.other.all.yara","match":"\\ball\\b"},{"name":"keyword.other.logical.and.yara","match":"\\band\\b"},{"name":"keyword.other.any.yara","match":"\\bany\\b"},{"name":"keyword.other.at.yara","match":"\\bat\\b"},{"name":"keyword.operator.bitwise.yara","match":"(\\\u0026|\\||\\\u003e\\\u003e|\\\u003c\\\u003c|~|\\^)"},{"name":"keyword.other.condition.yara","match":"\\bcondition\\b","end":":"},{"name":"keyword.other.contains.yara","match":"\\bcontains\\b"},{"name":"keyword.other.icontains.yara","match":"\\bicontains\\b"},{"name":"keyword.other.iequals.yara","match":"\\biequals\\b"},{"name":"keyword.other.startswith.yara","match":"\\bstartswith\\b"},{"name":"keyword.other.istartswith.yara","match":"\\bistartswith\\b"},{"name":"keyword.other.endswith.yara","match":"\\bendswith\\b"},{"name":"keyword.other.iendswith.yara","match":"\\biendswith\\b"},{"name":"keyword.other.filesize.yara","match":"\\bfilesize\\b"},{"name":"keyword.other.for.yara","match":"\\bfor\\b"},{"name":"keyword.other.import.yara","match":"\\bimport\\b"},{"name":"keyword.other.in.yara","match":"\\bin\\b"},{"name":"keyword.other.include.yara","match":"\\binclude\\b"},{"name":"keyword.other.matches.yara","match":"\\bmatches\\b"},{"name":"keyword.other.meta.yara","match":"\\bmeta\\b","end":":"},{"name":"keyword.other.none.yara","match":"\\bnone\\b"},{"name":"keyword.other.logical.not.yara","match":"\\bnot\\b"},{"name":"keyword.other.of.yara","match":"\\bof\\b"},{"name":"keyword.other.logical.or.yara","match":"\\bor\\b"},{"name":"keyword.operator.relational.yara","match":"(\\\u003c=?|\\\u003e=?|==|\\!=)"},{"name":"keyword.other.rule.yara","match":"\\brule\\b"},{"name":"keyword.other.strings.yara","match":"\\bstrings\\b","end":":"},{"name":"keyword.other.them.yara","match":"\\bthem\\b"},{"name":"variable.parameter.source.yara","match":"(\\$|\\#|\\@)[a-zA-Z0-9_]*"},{"name":"string.quoted.double.yara","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.yara","match":"\\\\[\"\\\\nrt]"},{"name":"string.quoted.double.hex.yara","match":"\\\\x[a-fA-F0-9]{2}"},{"name":"invalid.illegal.missing.escape.yara","match":"\\\\."}]},{"name":"string.regexp.yara","match":"/.*?[^\\\\]/(i|c|x|t|s|m|p|w|n|J|U|d|b|e|q|x)*"},{"contentName":"entity.name.hex.yara","begin":"=\\s*?{","end":"}","patterns":[{"name":"comment.line.double-slash.hex.yara","match":"//.*\\n"},{"name":"comment.block.hex.yara","begin":"/\\*","end":"\\*/"},{"name":"entity.name.jump.hex.yara","begin":"\\[","end":"\\]","patterns":[{"name":"constant.numeric.jump.hex.yara","match":"[0-9]"},{"name":"entity.other.dash.jump.hex.yara","match":"\\-"},{"name":"invalid.illegal.jump.yara","match":"."}]},{"name":"string.other.hex.yara","match":"[a-fA-F0-9]"},{"name":"constant.other.placeholder.hex.yara","match":"\\?"},{"name":"entity.other.special.hex.yara","match":"[\\[\\]\\(\\)\\s|]"},{"name":"invalid.illegal.hex.yara","match":"[^\\[\\]\\s]"}]},{"name":"storage.type.other.yara","match":"(\\bascii\\b|\\bentrypoint\\b)"},{"name":"storage.modifier.yara","match":"(\\bbase64\\b|\\bbase64wide\\b|\\bfullword\\b|\\bglobal\\b|\\bnocase\\b|\\bprivate\\b|\\bwide\\b|\\bxor\\b)"},{"name":"storage.type.int.yara","match":"(\\bint8\\b|\\bint16\\b|\\bint32\\b)"},{"name":"storage.type.intbe.yara","match":"(\\bint8be\\b|\\bint16be\\b|\\bint32be\\b)"},{"name":"storage.type.uint.yara","match":"(\\buint8\\b|\\buint16\\b|\\buint32\\b)"},{"name":"storage.type.uintbe.yara","match":"(\\buint8be\\b|\\buint16be\\b|\\buint32be\\b)"}]}
@@ -1 +1 @@
1
- {"name":"YASnippet","scopeName":"source.yasnippet","patterns":[{"name":"meta.prologue.yasnippet","begin":"\\A(?=\\s*(?:$|#))","end":"(?:^|\\G)(?=\\s*(?:[^\\s#]|#+\\s*--\\s*$))","patterns":[{"include":"#prologue-lines"}]},{"include":"#body"}],"repository":{"body":{"name":"meta.snippet-body.yasnippet","begin":"^\\s*((#+)\\s*(--)\\s*$\\n?|(?=[^\\s#]))","end":"(?=A)B","patterns":[{"include":"#tab-stops"},{"include":"#indentation-marker"},{"include":"#placeholder-fields"},{"include":"#escaped-characters"},{"include":"#embedded-lisp"}],"beginCaptures":{"1":{"name":"comment.line.number-sign.yasnippet"},"2":{"name":"punctuation.definition.comment.number-sign.yasnippet"},"3":{"name":"punctuation.terminator.double-dash.yasnippet"}}},"directives":{"patterns":[{"name":"meta.directive.snippet-$1.yasnippet","match":"(?\u003c=[\\s#])(key|name|group|uuid)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"string.unquoted.yasnippet"}}},{"name":"meta.directive.snippet-$1.yasnippet","match":"(?\u003c=[\\s#])(condition|expand-env)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"source.embedded.emacs.lisp","patterns":[{"include":"source.emacs.lisp"}]}}},{"name":"meta.directive.keybinding.yasnippet","match":"(?\u003c=[\\s#])(binding)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"patterns":[{"include":"source.emacs.lisp#key-notation"}]}}},{"begin":"(?\u003c=[\\s#])(type)\\s*(:)(?:\\s*(command))(?=\\s*$)","end":"(?=A)B","patterns":[{"begin":"\\G","end":"^(?=\\s*#+\\s*--\\s*$)","patterns":[{"include":"#prologue-lines"}]},{"name":"meta.snippet-body.yasnippet","contentName":"source.embedded.emacs.lisp","begin":"^\\s*(#+)\\s*(--)\\s*$\\n?","end":"(?=A)B","patterns":[{"include":"source.emacs.lisp"}],"beginCaptures":{"0":{"name":"comment.line.number-sign.yasnippet"},"1":{"name":"punctuation.definition.comment.number-sign.yasnippet"},"2":{"name":"punctuation.terminator.double-dash.yasnippet"}}}],"beginCaptures":{"0":{"name":"meta.directive.type.yasnippet"},"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"constant.language.type-specifier.yasnippet"}}},{"name":"meta.directive.type.yasnippet","match":"(?\u003c=[\\s#])(type)\\s*(:)(?:\\s*(?!command\\s*$)(\\S.*))","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"constant.language.type-specifier.yasnippet"}}},{"name":"meta.directive.$1.yasnippet","match":"(?\u003c=[\\s#])(contributor|atom-description-more-url)\\s*(:)(?:\\s*(\\S.*))","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"patterns":[{"contentName":"constant.other.reference.link","begin":"(?:^|\\G)\\s*(?=(?:[a-z][-+a-z0-9]*:\\S))","end":"\\s|$"},{"match":"([^\\s\u003c\u003e,](?:[^\\s\u003c\u003e,]|\\s[^\u003c\u003e,])*+)(?:\\s+((\u003c)([^@\u003e\\s]+@[^\u003c\u003e@\\s]+)(\u003e)))?","captures":{"1":{"name":"entity.name.author.yasnippet"},"2":{"name":"meta.email-address.yasnippet"},"3":{"name":"punctuation.definition.bracket.angle.begin.yasnippet"},"4":{"name":"constant.other.reference.link.underline.email.yasnippet"},"5":{"name":"punctuation.definition.bracket.angle.end.yasnippet"}}},{"name":"meta.email-address.yasnippet","match":"(\u003c)([^@\u003e\\s]+@[^\u003c\u003e@\\s]+)(\u003e)","captures":{"1":{"name":"punctuation.definition.bracket.angle.begin.yasnippet"},"2":{"name":"constant.other.reference.link.underline.email.yasnippet"},"3":{"name":"punctuation.definition.bracket.angle.end.yasnippet"}}},{"name":"punctuation.separator.comma.yasnippet","match":","}]}}},{"name":"meta.directive.other.yasnippet","match":"(?\u003c=[\\s#])([^:\\s#]+)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.custom.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"string.unquoted.yasnippet"}}}]},"embedded-lisp":{"name":"string.interpolated.yasnippet","contentName":"source.embedded.emacs.lisp","begin":"`","end":"`","patterns":[{"include":"source.emacs.lisp"}],"beginCaptures":{"0":{"name":"punctuation.section.begin.embedded.yasnippet"}},"endCaptures":{"0":{"name":"punctuation.section.end.embedded.yasnippet"}}},"escaped-characters":{"patterns":[{"name":"constant.character.escape.backslash.yasnippet","match":"(\\\\)\\\\","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.dollar-sign.yasnippet","match":"(\\\\)\\$","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.backtick.yasnippet","match":"(\\\\)`","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}}]},"indentation-marker":{"name":"keyword.operator.indentation-marker.yasnippet","match":"(\\$)\u003e","captures":{"1":{"name":"punctuation.definition.variable.sigil.dollar-sign.yasnippet"}}},"numbered-placeholder":{"name":"meta.placeholder-field.numbered.$2-nth.yasnippet","contentName":"string.unquoted.default-text.yasnippet","begin":"(\\${)([0-9]+)(:)","end":"}","patterns":[{"include":"#placeholder-innards"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.field.begin.yasnippet"},"2":{"name":"constant.numeric.integer.int.decimal.yasnippet"},"3":{"name":"punctuation.separator.colon.field.yasnippet"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.field.end.yasnippet"}}},"placeholder-fields":{"patterns":[{"include":"#numbered-placeholder"},{"include":"#unnumbered-placeholder"}]},"placeholder-innards":{"patterns":[{"include":"#escaped-characters"},{"include":"#embedded-lisp"},{"include":"#placeholder-fields"},{"name":"meta.transformation.yasnippet","contentName":"source.embedded.emacs.lisp","begin":"\\${1,2}(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"source.emacs.lisp"}],"beginCaptures":{"0":{"name":"keyword.operator.transformation.yasnippet"}}}]},"prologue-lines":{"begin":"^\\s*(#+)(?!\\s*--\\s*$)","end":"$","patterns":[{"contentName":"comment.line.modeline.yasnippet","begin":"(?=-\\*-)","end":"$","patterns":[{"include":"source.emacs.lisp#modeline"}]},{"include":"#directives"}],"beginCaptures":{"1":{"name":"punctuation.definition.comment.number-sign.yasnippet"}}},"tab-stops":{"name":"variable.positional.$2-nth.tab-stop.yasnippet","match":"(\\$)([0-9]+)","captures":{"1":{"name":"punctuation.definition.variable.sigil.dollar-sign.yasnippet"}}},"unnumbered-placeholder":{"name":"meta.placeholder-field.unnumbered.yasnippet","contentName":"string.unquoted.default-text.yasnippet","begin":"(\\${)(:)","end":"}","patterns":[{"include":"#placeholder-innards"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.field.begin.yasnippet"},"2":{"name":"punctuation.separator.colon.field.yasnippet"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.field.end.yasnippet"}}}}}
1
+ {"name":"YASnippet","scopeName":"source.yasnippet","patterns":[{"name":"meta.prologue.yasnippet","begin":"\\A(?=\\s*(?:$|#))","end":"(?:^|\\G)(?=\\s*(?:[^\\s#]|#+\\s*--\\s*$))","patterns":[{"include":"#prologue-lines"}]},{"include":"#body"}],"repository":{"body":{"name":"meta.snippet-body.yasnippet","begin":"^\\s*((#+)\\s*(--)\\s*$\\n?|(?=[^\\s#]))","end":"(?=A)B","patterns":[{"include":"#tab-stops"},{"include":"#indentation-marker"},{"include":"#placeholder-fields"},{"include":"#escaped-characters"},{"include":"#embedded-lisp"}],"beginCaptures":{"1":{"name":"comment.line.number-sign.yasnippet"},"2":{"name":"punctuation.definition.comment.number-sign.yasnippet"},"3":{"name":"punctuation.terminator.double-dash.yasnippet"}}},"directives":{"patterns":[{"name":"meta.directive.snippet-$1.yasnippet","match":"(?\u003c=[\\s#])(key|name|group|uuid)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"string.unquoted.yasnippet"}}},{"name":"meta.directive.snippet-$1.yasnippet","match":"(?\u003c=[\\s#])(condition|expand-env)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"source.embedded.emacs.lisp","patterns":[{"include":"source.emacs.lisp"}]}}},{"name":"meta.directive.keybinding.yasnippet","match":"(?\u003c=[\\s#])(binding)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"patterns":[{"include":"source.emacs.lisp#key-notation"}]}}},{"begin":"(?\u003c=[\\s#])(type)\\s*(:)(?:\\s*(command))(?=\\s*$)","end":"(?=A)B","patterns":[{"begin":"\\G","end":"^(?=\\s*#+\\s*--\\s*$)","patterns":[{"include":"#prologue-lines"}]},{"name":"meta.snippet-body.yasnippet","contentName":"source.embedded.emacs.lisp","begin":"^\\s*(#+)\\s*(--)\\s*$\\n?","end":"(?=A)B","patterns":[{"include":"source.emacs.lisp"}],"beginCaptures":{"0":{"name":"comment.line.number-sign.yasnippet"},"1":{"name":"punctuation.definition.comment.number-sign.yasnippet"},"2":{"name":"punctuation.terminator.double-dash.yasnippet"}}}],"beginCaptures":{"0":{"name":"meta.directive.type.yasnippet"},"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"constant.language.type-specifier.yasnippet"}}},{"name":"meta.directive.type.yasnippet","match":"(?\u003c=[\\s#])(type)\\s*(:)(?:\\s*(?!command\\s*$)(\\S.*))","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"constant.language.type-specifier.yasnippet"}}},{"name":"meta.directive.$1.yasnippet","match":"(?\u003c=[\\s#])(contributor|atom-description-more-url)\\s*(:)(?:\\s*(\\S.*))","captures":{"1":{"name":"variable.assignment.$1.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"patterns":[{"contentName":"constant.other.reference.link","begin":"(?:^|\\G)\\s*(?=(?:[a-z][-+a-z0-9]*:\\S))","end":"\\s|$"},{"match":"([^\\s\u003c\u003e,](?:[^\\s\u003c\u003e,]|\\s[^\u003c\u003e,])*+)(?:\\s+((\u003c)([^@\u003e\\s]+@[^\u003c\u003e@\\s]+)(\u003e)))?","captures":{"1":{"name":"entity.name.author.yasnippet"},"2":{"name":"meta.email-address.yasnippet"},"3":{"name":"punctuation.definition.bracket.angle.begin.yasnippet"},"4":{"name":"constant.other.reference.link.underline.email.yasnippet"},"5":{"name":"punctuation.definition.bracket.angle.end.yasnippet"}}},{"name":"meta.email-address.yasnippet","match":"(\u003c)([^@\u003e\\s]+@[^\u003c\u003e@\\s]+)(\u003e)","captures":{"1":{"name":"punctuation.definition.bracket.angle.begin.yasnippet"},"2":{"name":"constant.other.reference.link.underline.email.yasnippet"},"3":{"name":"punctuation.definition.bracket.angle.end.yasnippet"}}},{"name":"punctuation.separator.comma.yasnippet","match":","}]}}},{"name":"meta.directive.other.yasnippet","match":"(?\u003c=[\\s#])([^:\\s#]+)\\s*(:)(?:\\s*(\\S.*))?","captures":{"1":{"name":"variable.assignment.custom.yasnippet"},"2":{"name":"punctuation.separator.dictionary.key-value.colon.yasnippet"},"3":{"name":"string.unquoted.yasnippet"}}}]},"embedded-lisp":{"name":"string.interpolated.yasnippet","contentName":"source.embedded.emacs.lisp","begin":"`","end":"`","patterns":[{"include":"source.emacs.lisp"}],"beginCaptures":{"0":{"name":"punctuation.section.begin.embedded.yasnippet"}},"endCaptures":{"0":{"name":"punctuation.section.end.embedded.yasnippet"}}},"escaped-characters":{"patterns":[{"name":"constant.character.escape.backslash.yasnippet","match":"(\\\\)\\\\","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.dollar-sign.yasnippet","match":"(\\\\)\\$","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.backtick.yasnippet","match":"(\\\\)`","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.quote.single.yasnippet","match":"(\\\\)'","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.quote.double.yasnippet","match":"(\\\\)\"","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.bracket.curly.brace.yasnippet","match":"(\\\\)[{}]","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}},{"name":"constant.character.escape.bracket.round.parenthesis.yasnippet","match":"(\\\\)[\\(\\)]","captures":{"1":{"name":"punctuation.definition.escape.yasnippet"}}}]},"indentation-marker":{"name":"keyword.operator.indentation-marker.yasnippet","match":"(\\$)\u003e","captures":{"1":{"name":"punctuation.definition.variable.sigil.dollar-sign.yasnippet"}}},"numbered-placeholder":{"name":"meta.placeholder-field.numbered.$2-nth.yasnippet","contentName":"string.unquoted.default-text.yasnippet","begin":"(\\${)([0-9]+)(:)","end":"}","patterns":[{"include":"#placeholder-innards"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.field.begin.yasnippet"},"2":{"name":"constant.numeric.integer.int.decimal.yasnippet"},"3":{"name":"punctuation.separator.colon.field.yasnippet"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.field.end.yasnippet"}}},"placeholder-fields":{"patterns":[{"include":"#numbered-placeholder"},{"include":"#unnumbered-placeholder"}]},"placeholder-innards":{"patterns":[{"include":"#escaped-characters"},{"include":"#embedded-lisp"},{"include":"#placeholder-fields"},{"name":"meta.transformation.yasnippet","contentName":"source.embedded.emacs.lisp","begin":"\\${1,2}(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"source.emacs.lisp"}],"beginCaptures":{"0":{"name":"keyword.operator.transformation.yasnippet"}}}]},"prologue-lines":{"begin":"^\\s*(#+)(?!\\s*--\\s*$)","end":"$","patterns":[{"contentName":"comment.line.modeline.yasnippet","begin":"(?=-\\*-)","end":"$","patterns":[{"include":"source.emacs.lisp#modeline"}]},{"include":"#directives"}],"beginCaptures":{"1":{"name":"punctuation.definition.comment.number-sign.yasnippet"}}},"tab-stops":{"name":"variable.positional.$2-nth.tab-stop.yasnippet","match":"(\\$)([0-9]+)","captures":{"1":{"name":"punctuation.definition.variable.sigil.dollar-sign.yasnippet"}}},"unnumbered-placeholder":{"name":"meta.placeholder-field.unnumbered.yasnippet","contentName":"string.unquoted.default-text.yasnippet","begin":"(\\${)(:)","end":"}","patterns":[{"include":"#placeholder-innards"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.field.begin.yasnippet"},"2":{"name":"punctuation.separator.colon.field.yasnippet"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.field.end.yasnippet"}}}}}
data/grammars/version CHANGED
@@ -1 +1 @@
1
- 7.16.1
1
+ 7.17.0
data/lib/linguist/VERSION CHANGED
@@ -1 +1 @@
1
- 7.16.1
1
+ 7.17.0
@@ -20,6 +20,7 @@
20
20
 
21
21
  ## Documentation files ##
22
22
 
23
+ - (^|/)CITATION(\.cff|(S)?(\.(bib|md))?)$
23
24
  - (^|/)CHANGE(S|LOG)?(\.|$)
24
25
  - (^|/)CONTRIBUTING(\.|$)
25
26
  - (^|/)COPYING(\.|$)
@@ -83,6 +83,7 @@ module Linguist
83
83
  generated_apache_thrift? ||
84
84
  generated_jni_header? ||
85
85
  vcr_cassette? ||
86
+ jest_snapshot? ||
86
87
  generated_antlr? ||
87
88
  generated_module? ||
88
89
  generated_unity3d_meta? ||
@@ -443,6 +444,18 @@ module Linguist
443
444
  return lines[-2].include?("recorded_with: VCR")
444
445
  end
445
446
 
447
+ # Is this a Jest Snapshot?
448
+ #
449
+ # Jest Snapshots always start with:
450
+ # // Jest Snapshot v1 ...
451
+ #
452
+ # Returns true or false
453
+ def jest_snapshot?
454
+ return false unless extname == '.snap'
455
+ return false unless lines.count > 1
456
+ return lines[0].include?("// Jest Snapshot ")
457
+ end
458
+
446
459
  # Is this a generated ANTLR file?
447
460
  #
448
461
  # Returns true or false
@@ -599,7 +599,7 @@ disambiguations:
599
599
  pattern: '\$(?:if|else)[ \t]|^[ \t]*fn\s+[^\s()]+\(.*?\).*?\{|^[ \t]*for\s*\{'
600
600
  - extensions: ['.vba']
601
601
  rules:
602
- - language: Vim script
602
+ - language: Vim Script
603
603
  pattern: '^UseVimball'
604
604
  - language: VBA
605
605
  - extensions: ['.w']