github-linguist 9.1.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/bin/github-linguist +24 -5
  3. data/grammars/etc.json +1 -1
  4. data/grammars/injection.interpolated-ruby.json +1 -0
  5. data/grammars/injections.etc.json +1 -1
  6. data/grammars/inline.edgeql.json +1 -1
  7. data/grammars/liquid.injection.json +1 -1
  8. data/grammars/markdown.move.codeblock.json +1 -1
  9. data/grammars/source.4dm.json +1 -1
  10. data/grammars/source.QB64.json +1 -1
  11. data/grammars/source.abl.json +1 -1
  12. data/grammars/source.aiken.json +1 -0
  13. data/grammars/source.apex.json +1 -1
  14. data/grammars/source.ash.json +1 -0
  15. data/grammars/source.ats.json +1 -1
  16. data/grammars/source.ballerina.json +1 -1
  17. data/grammars/source.brs.json +1 -1
  18. data/grammars/source.bru.json +1 -0
  19. data/grammars/source.c++.json +1 -1
  20. data/grammars/source.c.calendar.json +1 -0
  21. data/grammars/source.c.json +1 -1
  22. data/grammars/source.c.linker.json +1 -1
  23. data/grammars/source.c3.json +1 -0
  24. data/grammars/source.cl.json +1 -1
  25. data/grammars/source.clue.json +1 -0
  26. data/grammars/source.cmake.json +1 -1
  27. data/grammars/source.cobol.json +1 -1
  28. data/grammars/source.cooklang.json +1 -0
  29. data/grammars/source.cs.json +1 -1
  30. data/grammars/source.curlrc.json +1 -1
  31. data/grammars/source.daslang.json +1 -0
  32. data/grammars/source.dds.dspf.json +1 -1
  33. data/grammars/source.dotenv.json +1 -1
  34. data/grammars/source.edgeql.json +1 -1
  35. data/grammars/source.erlang.json +1 -1
  36. data/grammars/source.flix.json +1 -0
  37. data/grammars/source.fsharp.json +1 -1
  38. data/grammars/source.gdscript.json +1 -1
  39. data/grammars/source.git-revlist.json +1 -1
  40. data/grammars/source.gitignore.json +1 -1
  41. data/grammars/source.gleam.json +1 -1
  42. data/grammars/source.harbour.json +1 -1
  43. data/grammars/source.httpspec.json +1 -1
  44. data/grammars/source.hx.json +1 -1
  45. data/grammars/source.ilecobol.json +1 -0
  46. data/grammars/source.inputrc.json +1 -1
  47. data/grammars/source.jai.json +1 -1
  48. data/grammars/source.jq.json +1 -1
  49. data/grammars/source.json.comments.json +1 -1
  50. data/grammars/source.julia.console.json +1 -1
  51. data/grammars/source.julia.json +1 -1
  52. data/grammars/source.just.json +1 -1
  53. data/grammars/source.koka.json +1 -0
  54. data/grammars/source.lean4.json +1 -1
  55. data/grammars/source.leo.json +1 -0
  56. data/grammars/source.livescript.json +1 -1
  57. data/grammars/source.luau.json +1 -1
  58. data/grammars/source.m2.json +1 -1
  59. data/grammars/source.m3u.json +1 -0
  60. data/grammars/source.mermaid.flowchart.json +1 -1
  61. data/grammars/source.mermaid.gantt.json +1 -1
  62. data/grammars/source.mermaid.json +1 -1
  63. data/grammars/source.mermaid.pie-chart.json +1 -1
  64. data/grammars/source.mermaid.quad-chart.json +1 -0
  65. data/grammars/source.mermaid.sankey.json +1 -0
  66. data/grammars/source.mermaid.timeline.json +1 -0
  67. data/grammars/source.mermaid.user-journey.json +1 -1
  68. data/grammars/source.mermaid.zenuml.json +1 -0
  69. data/grammars/source.moonbit.json +1 -1
  70. data/grammars/source.move.json +1 -1
  71. data/grammars/source.nasl.json +1 -1
  72. data/grammars/source.nginx.json +1 -1
  73. data/grammars/source.nickel.json +1 -0
  74. data/grammars/source.nim.json +1 -1
  75. data/grammars/source.nr.json +1 -1
  76. data/grammars/source.nushell.json +1 -1
  77. data/grammars/source.objc.json +1 -1
  78. data/grammars/source.odin-ehr.json +1 -1
  79. data/grammars/source.odin.json +1 -1
  80. data/grammars/source.openqasm.json +1 -0
  81. data/grammars/source.postscript.json +1 -1
  82. data/grammars/source.psl.json +1 -0
  83. data/grammars/source.quakec.json +1 -0
  84. data/grammars/source.record-jar.json +1 -1
  85. data/grammars/source.rescript.json +1 -1
  86. data/grammars/source.roc.json +1 -1
  87. data/grammars/source.rosmsg.json +1 -0
  88. data/grammars/source.rust.json +1 -1
  89. data/grammars/source.sail.json +1 -0
  90. data/grammars/source.sieve.json +1 -1
  91. data/grammars/source.slang.json +1 -1
  92. data/grammars/source.slint.json +1 -1
  93. data/grammars/source.smithy.json +1 -1
  94. data/grammars/source.soql.json +1 -1
  95. data/grammars/source.stan.json +1 -1
  96. data/grammars/source.sway.json +1 -1
  97. data/grammars/source.swift.json +1 -1
  98. data/grammars/source.tact.json +1 -1
  99. data/grammars/source.talon.json +1 -1
  100. data/grammars/source.templ.json +1 -1
  101. data/grammars/source.toc.json +1 -1
  102. data/grammars/source.torrc.json +1 -0
  103. data/grammars/source.typst.json +1 -1
  104. data/grammars/source.uplc.json +1 -0
  105. data/grammars/source.vba.json +1 -1
  106. data/grammars/source.vcl.json +1 -0
  107. data/grammars/source.vento.json +1 -0
  108. data/grammars/source.vhdl.json +1 -1
  109. data/grammars/source.vue.json +1 -1
  110. data/grammars/source.wdl.json +1 -1
  111. data/grammars/source.wesl.json +1 -0
  112. data/grammars/source.wgsl.json +1 -1
  113. data/grammars/source.wit.json +1 -1
  114. data/grammars/source.zmodel.json +1 -0
  115. data/grammars/text.adblock.json +1 -1
  116. data/grammars/text.codeowners.json +1 -1
  117. data/grammars/text.html.jte.json +1 -1
  118. data/grammars/text.html.liquid.json +1 -1
  119. data/grammars/text.html.vento.json +1 -0
  120. data/grammars/text.jira.json +1 -0
  121. data/grammars/text.marko.json +1 -1
  122. data/grammars/text.slim.json +1 -1
  123. data/grammars/text.srt.json +1 -1
  124. data/grammars/text.valve-cfg.json +1 -1
  125. data/grammars/text.xml.svg.json +1 -1
  126. data/grammars/version +1 -1
  127. data/lib/linguist/VERSION +1 -1
  128. data/lib/linguist/generated.rb +28 -6
  129. data/lib/linguist/generic.yml +2 -0
  130. data/lib/linguist/heuristics.yml +47 -9
  131. data/lib/linguist/instrumenter.rb +19 -0
  132. data/lib/linguist/languages.json +1 -1
  133. data/lib/linguist/languages.yml +327 -102
  134. data/lib/linguist/samples.json +1 -1
  135. data/lib/linguist.rb +1 -0
  136. metadata +39 -12
  137. data/grammars/source.c.platform.json +0 -1
  138. data/grammars/source.varnish.vcl.json +0 -1
@@ -1 +1 @@
1
- {"name":"ReScript","scopeName":"source.rescript","patterns":[{"include":"#ffi-single"},{"include":"#ffi"},{"include":"#constant"},{"include":"#commentLine"},{"include":"#commentBlock"},{"include":"#character"},{"include":"#typeParameter"},{"include":"#string"},{"include":"#attribute"},{"include":"#function"},{"include":"#entity-literal"},{"include":"#jsx"},{"include":"#operator"},{"include":"#number"},{"include":"#openOrIncludeModule"},{"include":"#moduleDeclaration"},{"include":"#moduleAccess"},{"include":"#constructor"},{"include":"#keyword"},{"include":"#punctuation"},{"include":"#defaultIdIsVariable"}],"repository":{"RE_CONSTANTS_BOOL":{"name":"constant.language.boolean","match":"\\b(false|true)\\b"},"RE_KEYWORD":{"name":"storage.type","match":"\\b(include|let|module|of|open|type)\\b"},"RE_KEYWORD_CONTROL":{"name":"keyword.control","match":"\\b(and|as|assert|async|await|catch|constraint|downto|else|exception|external|for|if|in|lazy|mutable|rec|switch|to|try|when|while|with|private)\\b"},"RE_TO_DOWNTO_AS_LABELS":{"patterns":[{"match":"(to|downto)\\s*(=)","captures":{"1":{"name":"variable"},"2":{"name":"keyword.operator keyword"}}},{"match":"(to|downto)\\s*(as)","captures":{"1":{"name":"variable"},"2":{"name":"keyword.control"}}}]},"attribute":{"patterns":[{"match":"(%%?|@@?)([A-Za-z_][A-Za-z0-9_\\.]*)","captures":{"1":{"name":"punctuation.decorator"},"2":{"patterns":[{"name":"invalid.deprecated","match":"bs\\.send\\.pipe"},{"name":"invalid.illegal","match":"splice"},{"match":"(bs\\.)?([A-Za-z_][A-Za-z0-9_\\.]*)","captures":{"1":{"name":"invalid.deprecated"},"2":{"name":"entity.name.function"}}},{"name":"entity.name.function","match":"[A-Za-z_][A-Za-z0-9_\\.]*"}]}}}]},"character":{"patterns":[{"name":"string.quoted.single","match":"'[\\x00-\\x7F]'"}]},"commentBlock":{"name":"comment.block","begin":"/\\*","end":"\\*/","patterns":[{"include":"#commentBlock"}]},"commentLine":{"name":"comment.line","match":"//.*"},"constant":{"patterns":[{"include":"#RE_CONSTANTS_BOOL"}]},"constructor":{"patterns":[{"name":"variable.other.enummember","match":"\\b[A-Z][0-9a-zA-Z_]*\\b"},{"match":"(#)\\s*([a-zA-Z][0-9a-zA-Z_]*)\\b","captures":{"1":{"name":"variable.other.enummember"},"2":{"name":"variable.other.enummember"}}},{"match":"(#)\\s*(\\.\\.\\.)\\b","captures":{"1":{"name":"variable.other.enummember"},"2":{"name":"variable.other.enummember"}}},{"match":"(#)","captures":{"1":{"name":"variable.other.enummember"}}}]},"defaultIdIsVariable":{"patterns":[{"name":"variable","match":"[A-Za-z_][A-Za-z0-9_]*"}]},"entity-literal":{"patterns":[{"match":"\\b(list|dict)(\\{)","captures":{"1":{"name":"keyword"},"2":{"name":"punctuation.section.braces.begin"}}},{"name":"punctuation.section.braces.end","match":"\\}"}]},"ffi":{"name":"source.embedded.javascript","contentName":"meta.embedded.block.javascript","begin":"(%|%%)(raw|ffi)(\\()(`)","end":"(`)(\\))","patterns":[{"include":"source.js"}],"beginCaptures":{"1":{"name":"punctuation.decorator"},"2":{"name":"entity.name.function"},"4":{"name":"punctuation.definition.string.template.begin.embedded-js"}},"endCaptures":{"1":{"name":"punctuation.definition.string.template.end.embedded-js"}}},"ffi-single":{"name":"source.embedded.javascript.single","match":"(%|%%)(raw|ffi)(\\()(`)(.*?)(`)(\\))","captures":{"1":{"name":"punctuation.decorator"},"2":{"name":"entity.name.function"},"4":{"name":"punctuation.definition.string.template.begin.embedded-js"},"5":{"patterns":[{"include":"source.js"}]},"6":{"name":"punctuation.definition.string.template.end.embedded-js"}}},"function":{"patterns":[{"name":"storage.type.function keyword.declaration.function","match":"=\u003e"}]},"jsx":{"patterns":[{"name":"punctuation.definition.tag","match":"\u003c\u003e|\u003c/\u003e|\u003c/|/\u003e"},{"match":"\u003c/([A-Z_][0-9a-zA-Z_]*)","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"entity.name.class"}}},{"match":"\u003c/([a-z_][0-9a-zA-Z_]*)","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"variable"}}},{"match":"\u003c([A-Z_][0-9a-zA-Z_]*)","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"entity.name.class"}}}]},"keyword":{"patterns":[{"include":"#RE_TO_DOWNTO_AS_LABELS"},{"include":"#RE_KEYWORD_CONTROL"},{"include":"#RE_KEYWORD"}]},"moduleAccess":{"patterns":[{"match":"\\b([A-Z_][0-9a-zA-Z_]*)(\\.)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"punctuation.accessor"}}}]},"moduleAccessEndsWithModule":{"patterns":[{"name":"entity.name.class","match":"[A-Z_][0-9a-zA-Z_]*"},{"match":"(\\.)([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"punctuation.accessor"},"2":{"name":"entity.name.class"}}}]},"moduleDeclaration":{"patterns":[{"match":"\\b(module)\\s+(type\\s+)?(of\\s+)?([A-Z_][0-9a-zA-Z_]*)","patterns":[{"match":"\\s*:\\s*([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"entity.name.class"}}}],"captures":{"1":{"name":"keyword"},"2":{"name":"keyword"},"3":{"name":"keyword"},"4":{"name":"entity.name.class"}}}]},"number":{"patterns":[{"name":"constant.numeric","match":"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]+)?([eE][-+]?[0-9_]+)?)?)\\b"}]},"openOrIncludeModule":{"patterns":[{"match":"\\b(open|include)\\s+([A-Z_][0-9a-zA-Z_]*((\\.)([A-Z_][0-9a-zA-Z_]*))*)","captures":{"1":{"name":"keyword"},"2":{"patterns":[{"include":"#moduleAccessEndsWithModule"}]}}},{"name":"keyword","match":"\\b(open|include)\\s+"}]},"operator":{"patterns":[{"name":"keyword.operator","match":"-\u003e|\\|\\||\u0026\u0026|\\+\\+|\\*\\*|\\+\\.|\\+|-\\.|-|\\*\\.|\\*|/\\.|/|\\.\\.\\.|\\.\\.|===|==|\\^|:=|!|\u003e=(?! *\\?)|\u003c=|="},{"name":"invalid.deprecated","match":"\\|\u003e"}]},"punctuation":{"patterns":[{"name":"punctuation.definition.keyword","match":"~"},{"name":"punctuation.terminator","match":";"},{"name":"punctuation.accessor","match":"\\."},{"name":"punctuation.separator","match":"\\,"},{"name":"punctuation.separator","match":"\\?|:"},{"name":"punctuation.separator","match":"\\|(?!\\|)"},{"name":"punctuation.section.braces.begin","match":"\\{"},{"name":"punctuation.section.braces.end","match":"\\}"},{"name":"punctuation.section.brackets.begin","match":"\\["},{"name":"punctuation.section.brackets.end","match":"\\]"},{"name":"punctuation.section.parens.begin","match":"\\("},{"name":"punctuation.section.parens.end","match":"\\)"}]},"string":{"patterns":[{"name":"string.quoted.double","begin":"\"","end":"\"","patterns":[{"include":"#string-character-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end"}}},{"name":"string.template","begin":"([a-z_][0-9a-zA-Z_]*)?(`)","end":"(?\u003c!\\\\)`","patterns":[{"include":"#string-character-escape"},{"name":"meta.template.expression","begin":"\\$\\{","end":"\\}","patterns":[{"match":"[a-z_][0-9a-zA-Z_]*"},{"include":"#operator"},{"include":"#punctuation"},{"include":"#string"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end"}}}],"beginCaptures":{"1":{"name":"entity.name.function"},"2":{"name":"punctuation.definition.string.template.begin"}},"endCaptures":{"1":{"name":"punctuation.definition.string.template.end"}}}]},"string-character-escape":{"name":"constant.character.escape","match":"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u{[0-9A-Fa-f]+}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)"},"typeParameter":{"patterns":[{"name":"support.type","match":"'[A-Za-z][A-Za-z0-9_]*"}]}}}
1
+ {"name":"ReScript","scopeName":"source.rescript","patterns":[{"include":"#ffi-single"},{"include":"#ffi"},{"include":"#constant"},{"include":"#commentLine"},{"include":"#commentBlock"},{"include":"#character"},{"include":"#typeParameter"},{"include":"#string"},{"include":"#attribute"},{"include":"#function"},{"include":"#entity-literal"},{"include":"#jsx"},{"include":"#operator"},{"include":"#number"},{"include":"#openOrIncludeModule"},{"include":"#moduleDeclaration"},{"include":"#moduleAccess"},{"include":"#constructor"},{"include":"#keyword"},{"include":"#punctuation"},{"include":"#defaultIdIsVariable"}],"repository":{"RE_CONSTANTS_BOOL":{"name":"constant.language.boolean","match":"\\b(false|true)\\b"},"RE_KEYWORD":{"name":"storage.type","match":"\\b(include|let|module|of|open|type)\\b"},"RE_KEYWORD_CONTROL":{"name":"keyword.control","match":"\\b(and|as|assert|async|await|catch|constraint|downto|else|exception|external|for|if|in|lazy|mutable|rec|switch|to|try|when|while|with|private)\\b"},"RE_TO_DOWNTO_AS_LABELS":{"patterns":[{"match":"~(to|downto)\\s*(=)","captures":{"1":{"name":"variable"},"2":{"name":"keyword.operator keyword"}}},{"match":"~(to|downto)\\s+(as)","captures":{"1":{"name":"variable"},"2":{"name":"keyword.control"}}}]},"attribute":{"patterns":[{"match":"(%%?|@@?)([A-Za-z_][A-Za-z0-9_\\.]*)","captures":{"1":{"name":"punctuation.decorator"},"2":{"patterns":[{"name":"invalid.deprecated","match":"bs\\.send\\.pipe"},{"name":"invalid.illegal","match":"splice"},{"match":"(bs\\.)?([A-Za-z_][A-Za-z0-9_\\.]*)","captures":{"1":{"name":"invalid.deprecated"},"2":{"name":"entity.name.function"}}},{"name":"entity.name.function","match":"[A-Za-z_][A-Za-z0-9_\\.]*"}]}}}]},"character":{"patterns":[{"name":"string.quoted.single","match":"'[\\x00-\\x7F]'"}]},"commentBlock":{"name":"comment.block","begin":"/\\*","end":"\\*/","patterns":[{"include":"#commentBlock"}]},"commentLine":{"name":"comment.line","match":"//.*"},"constant":{"patterns":[{"include":"#RE_CONSTANTS_BOOL"}]},"constructor":{"patterns":[{"name":"variable.other.enummember","match":"\\b[A-Z][0-9a-zA-Z_]*\\b"},{"match":"(#)\\s*([a-zA-Z][0-9a-zA-Z_]*)\\b","captures":{"1":{"name":"variable.other.enummember"},"2":{"name":"variable.other.enummember"}}},{"match":"(#)\\s*(\\.\\.\\.)\\b","captures":{"1":{"name":"variable.other.enummember"},"2":{"name":"variable.other.enummember"}}},{"match":"(#)","captures":{"1":{"name":"variable.other.enummember"}}}]},"defaultIdIsVariable":{"patterns":[{"name":"variable","match":"[A-Za-z_][A-Za-z0-9_]*"}]},"entity-literal":{"patterns":[{"match":"\\b(list|dict)(\\{)","captures":{"1":{"name":"keyword"},"2":{"name":"punctuation.section.braces.begin"}}},{"name":"punctuation.section.braces.end","match":"\\}"}]},"ffi":{"name":"source.embedded.javascript","contentName":"meta.embedded.block.javascript","begin":"(%|%%)(raw|ffi)(\\()(`)","end":"(`)(\\))","patterns":[{"include":"source.js"}],"beginCaptures":{"1":{"name":"punctuation.decorator"},"2":{"name":"entity.name.function"},"4":{"name":"punctuation.definition.string.template.begin.embedded-js"}},"endCaptures":{"1":{"name":"punctuation.definition.string.template.end.embedded-js"}}},"ffi-single":{"name":"source.embedded.javascript.single","match":"(%|%%)(raw|ffi)(\\()(`)(.*?)(`)(\\))","captures":{"1":{"name":"punctuation.decorator"},"2":{"name":"entity.name.function"},"4":{"name":"punctuation.definition.string.template.begin.embedded-js"},"5":{"patterns":[{"include":"source.js"}]},"6":{"name":"punctuation.definition.string.template.end.embedded-js"}}},"function":{"patterns":[{"name":"storage.type.function keyword.declaration.function","match":"=\u003e"}]},"jsx":{"patterns":[{"name":"punctuation.definition.tag","match":"\u003c\u003e|\u003c/\u003e|\u003c/|/\u003e"},{"match":"\u003c/([A-Z_][0-9a-zA-Z_]*)","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"entity.name.class"}}},{"match":"\u003c/([a-z_][0-9a-zA-Z_]*)","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"variable"}}},{"match":"\u003c([A-Z_][0-9a-zA-Z_]*)","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"entity.name.class"}}}]},"keyword":{"patterns":[{"include":"#RE_TO_DOWNTO_AS_LABELS"},{"include":"#RE_KEYWORD_CONTROL"},{"include":"#RE_KEYWORD"}]},"moduleAccess":{"patterns":[{"match":"\\b([A-Z_][0-9a-zA-Z_]*)(\\.)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"punctuation.accessor"}}}]},"moduleAccessEndsWithModule":{"patterns":[{"name":"entity.name.class","match":"[A-Z_][0-9a-zA-Z_]*"},{"match":"(\\.)([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"punctuation.accessor"},"2":{"name":"entity.name.class"}}}]},"moduleDeclaration":{"patterns":[{"match":"\\b(module)\\s+(type\\s+)?(of\\s+)?([A-Z_][0-9a-zA-Z_]*)","patterns":[{"match":"\\s*:\\s*([A-Z_][0-9a-zA-Z_]*)","captures":{"1":{"name":"entity.name.class"}}}],"captures":{"1":{"name":"keyword"},"2":{"name":"keyword"},"3":{"name":"keyword"},"4":{"name":"entity.name.class"}}}]},"number":{"patterns":[{"name":"constant.numeric","match":"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]+)?([eE][-+]?[0-9_]+)?)?)\\b"}]},"openOrIncludeModule":{"patterns":[{"match":"\\b(open|include)\\s+([A-Z_][0-9a-zA-Z_]*((\\.)([A-Z_][0-9a-zA-Z_]*))*)","captures":{"1":{"name":"keyword"},"2":{"patterns":[{"include":"#moduleAccessEndsWithModule"}]}}},{"name":"keyword","match":"\\b(open|include)\\s+"}]},"operator":{"patterns":[{"name":"keyword.operator","match":"-\u003e|\\|\\||\u0026\u0026|\\+\\+|\\*\\*|\\+\\.|\\+|-\\.|-|\\*\\.|\\*|/\\.|/|\\.\\.\\.|\\.\\.|===|==|\\^|:=|!|\u003e=(?! *\\?)|\u003c=|="},{"name":"invalid.deprecated","match":"\\|\u003e"}]},"punctuation":{"patterns":[{"name":"punctuation.definition.keyword","match":"~"},{"name":"punctuation.terminator","match":";"},{"name":"punctuation.accessor","match":"\\."},{"name":"punctuation.separator","match":"\\,"},{"name":"punctuation.separator","match":"\\?|:"},{"name":"punctuation.separator","match":"\\|(?!\\|)"},{"name":"punctuation.section.braces.begin","match":"\\{"},{"name":"punctuation.section.braces.end","match":"\\}"},{"name":"punctuation.section.brackets.begin","match":"\\["},{"name":"punctuation.section.brackets.end","match":"\\]"},{"name":"punctuation.section.parens.begin","match":"\\("},{"name":"punctuation.section.parens.end","match":"\\)"}]},"string":{"patterns":[{"name":"string.quoted.double","begin":"\"","end":"\"","patterns":[{"include":"#string-character-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end"}}},{"name":"string.template","begin":"([a-z_][0-9a-zA-Z_]*)?(`)","end":"(?\u003c!\\\\)`","patterns":[{"include":"#string-character-escape"},{"name":"meta.template.expression","begin":"\\$\\{","end":"\\}","patterns":[{"match":"[a-z_][0-9a-zA-Z_]*"},{"include":"#operator"},{"include":"#punctuation"},{"include":"#string"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end"}}}],"beginCaptures":{"1":{"name":"entity.name.function"},"2":{"name":"punctuation.definition.string.template.begin"}},"endCaptures":{"1":{"name":"punctuation.definition.string.template.end"}}}]},"string-character-escape":{"name":"constant.character.escape","match":"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u{[0-9A-Fa-f]+}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)"},"typeParameter":{"patterns":[{"name":"support.type","match":"'[A-Za-z][A-Za-z0-9_]*"}]}}}
@@ -1 +1 @@
1
- {"name":"Roc","scopeName":"source.roc","patterns":[{"name":"keyword.unused.roc","match":"(\\b_[a-zA-Z0-9_]*\\b)"},{"name":"keyword.control.roc","match":"\\b(dbg|if|then|else|when|is|app|packages|imports?|provides|to|as|expect|exposes)\\s+"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#punctuation"},{"include":"#module-member-access"},{"include":"#language-components"},{"include":"#infix_op"},{"include":"#type-signature"}],"repository":{"arrow":{"name":"punctuation.separator.arrow.roc","match":"-\u003e"},"brackets":{"name":"punctuation.bracket.roc","match":"(\\}|\\{)"},"comma":{"name":"punctuation.separator.comma.roc","match":"(,)"},"comments":{"patterns":[{"name":"comment.line.number-sign.roc","begin":"#","end":"$","captures":{"1":{"name":"punctuation.definition.comment.roc"}}},{"name":"comment.block.documentation.roc","begin":"##","end":"$","captures":{"1":{"name":"punctuation.definition.comment.roc"}}}]},"constructor":{"name":"entity.name.type.roc","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"},"infix_op":{"name":"keyword.operator.roc","match":"(\u003c/\u003e|\u003c\\?\u003e|\u003c\\||\u003c=|\\|\\||\u0026\u0026|\u003e=|\\|\u003e|\\|=|\\|\\.|\\+\\+|::|/=|==|//|\u003e\u003e|\u003c\u003c|\u003c|\u003e|\\^|\\+|-|/|\\*)"},"language-components":{"patterns":[{"include":"#constructor"},{"include":"#unit"},{"include":"#top-level-value"},{"include":"#record-accessor"}]},"module-member-access":{"name":"meta.module.access.roc","begin":"([A-Z][a-zA-Z0-9_]*)(\\.)","end":"\\s","patterns":[{"include":"#module-member-access"},{"include":"#constructor"},{"name":"support.function.roc","match":"\\b[a-z][a-zA-Z0-9_']*\\b"}],"beginCaptures":{"1":{"name":"support.class.roc"},"2":{"name":"keyword.other.period.roc"}}},"numbers":{"patterns":[{"include":"#numbers_float"},{"include":"#numbers_int"}]},"numbers_float":{"name":"constant.numeric.float.roc","match":"\\b([0-9][0-9_]*\\.[0-9_]+(e-?[0-9_]+)?|[0-9][0-9_]*e-?[0-9][0-9_]*)\\b"},"numbers_int":{"name":"constant.numeric.roc","match":"\\b([0-9][0-9_]*)\\b"},"parens":{"name":"punctuation.parens.roc","match":"(\\(|\\))"},"period":{"name":"keyword.other.period.roc","match":"[.]"},"punctuation":{"patterns":[{"include":"#brackets"},{"include":"#sq_brackets"},{"include":"#parens"},{"include":"#comma"},{"include":"#arrow"}]},"record-accessor":{"name":"meta.record.accessor","match":"(\\.)([a-z][a-zA-Z0-9_]*)","captures":{"1":{"name":"keyword.other.period.roc"},"2":{"name":"entity.name.function.record-field.roc"}}},"sq_brackets":{"name":"punctuation.bracket.roc","match":"(\\]|\\[)"},"strings":{"patterns":[{"name":"string.quoted.double.roc","begin":"\"","end":"\"","patterns":[{"name":"invalid.illegal","begin":"\\\\u\\(","end":"\\)","patterns":[{"name":"constant.numeric.roc","match":"[0-9a-fA-F]+"}],"beginCaptures":{"0":{"name":"constant.character.escape.roc"}},"endCaptures":{"0":{"name":"constant.character.escape.roc"}}},{"name":"constant.character.escape.roc","match":"\\\\[nrt\\\\\\\"\\\\]"},{"name":"source.roc","begin":"\\$\\(","end":"\\)","patterns":[{"name":"keyword.control.roc","match":"\\b(dbg|expect|if|then|else|when|is|as)\\s+"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#punctuation"},{"include":"#module-member-access"},{"include":"#language-components"},{"include":"#infix_op"},{"include":"#type-signature"}],"beginCaptures":{"0":{"name":"constant.character.escape.roc"}},"endCaptures":{"0":{"name":"constant.character.escape.roc"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.roc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.roc"}}},{"name":"string.quoted.single.roc","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.roc","match":"\\\\[nrt\\\\'\\\\]"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.roc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.roc"}}}]},"top-level-value":{"name":"entity.name.function.top_level.roc","match":"^[a-z][a-zA-Z0-9_']*\\b"},"type-record":{"name":"meta.function.type-record.roc","begin":"(\\{)","end":"(\\})","patterns":[{"name":"punctuation.spaces.roc","match":"\\s+"},{"name":"keyword.operator.arrow.roc","match":"-\u003e"},{"name":"meta.record.field.roc","match":"([a-z][a-zA-Z0-9_]*)\\s+(\\:)","captures":{"1":{"name":"entity.name.record.field.roc"},"2":{"name":"keyword.other.roc"}}},{"name":"punctuation.separator.comma.roc","match":"\\,"},{"name":"variable.type.roc","match":"\\b[a-z][a-zA-Z0-9_]*\\b"},{"name":"storage.type.roc","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"},{"include":"#comments"},{"include":"#type-record"}],"beginCaptures":{"1":{"name":"punctuation.section.braces.begin"}},"endCaptures":{"1":{"name":"punctuation.section.braces.end"}}},"type-signature":{"name":"meta.function.type-declaration.roc","begin":"^([a-z_][a-zA-Z0-9_']*)\\s+(\\:)","end":"((^(?=[a-z]))|^$)","patterns":[{"name":"punctuation.spaces.roc","match":"\\s+"},{"include":"#module-member-access"},{"name":"variable.type.roc","match":"\\b[a-z][a-zA-Z0-9_]*\\b"},{"name":"storage.type.class.roc","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"},{"include":"#arrow"},{"include":"#unit"},{"include":"#comma"},{"include":"#parens"},{"include":"#comments"},{"include":"#type-record"}],"beginCaptures":{"1":{"name":"entity.name.function.roc"},"2":{"name":"keyword.other.colon.roc"}}},"unit":{"name":"constant.unit.roc","match":"\\(\\)"}}}
1
+ {"name":"Roc","scopeName":"source.roc","patterns":[{"name":"keyword.unused.roc","match":"(\\b_[a-zA-Z0-9_]*\\b)"},{"name":"keyword.control.roc","match":"\\b(dbg|if|then|else|when|is|app|module|package|import|as|exposing|expect)\\s+"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#punctuation"},{"include":"#module-member-access"},{"include":"#language-components"},{"include":"#infix_op"},{"include":"#type-signature"}],"repository":{"arrow":{"name":"punctuation.separator.arrow.roc","match":"-\u003e"},"brackets":{"name":"punctuation.bracket.roc","match":"(\\}|\\{)"},"comma":{"name":"punctuation.separator.comma.roc","match":"(,)"},"comments":{"patterns":[{"name":"comment.line.number-sign.roc","begin":"#","end":"$","captures":{"1":{"name":"punctuation.definition.comment.roc"}}},{"name":"comment.block.documentation.roc","begin":"##","end":"$","captures":{"1":{"name":"punctuation.definition.comment.roc"}}}]},"constructor":{"name":"entity.name.type.roc","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"},"infix_op":{"name":"keyword.operator.roc","match":"(\u003c/\u003e|\u003c\\?\u003e|\u003c\\||\u003c=|\\|\\||\u0026\u0026|\u003e=|\\|\u003e|\\|=|\\|\\.|\\+\\+|::|/=|==|//|\u003e\u003e|\u003c\u003c|\u003c|\u003e|\\^|\\+|-|/|\\*)"},"language-components":{"patterns":[{"include":"#constructor"},{"include":"#unit"},{"include":"#top-level-value"},{"include":"#record-accessor"}]},"module-member-access":{"name":"meta.module.access.roc","begin":"([A-Z][a-zA-Z0-9_]*)(\\.)","end":"\\s","patterns":[{"include":"#module-member-access"},{"include":"#constructor"},{"name":"support.function.roc","match":"\\b[a-z][a-zA-Z0-9_']*\\b"}],"beginCaptures":{"1":{"name":"support.class.roc"},"2":{"name":"keyword.other.period.roc"}}},"numbers":{"patterns":[{"include":"#numbers_float"},{"include":"#numbers_int"}]},"numbers_float":{"name":"constant.numeric.float.roc","match":"\\b([0-9][0-9_]*\\.[0-9_]+(e-?[0-9_]+)?|[0-9][0-9_]*e-?[0-9][0-9_]*)\\b"},"numbers_int":{"name":"constant.numeric.roc","match":"\\b([0-9][0-9_]*)\\b"},"parens":{"name":"punctuation.parens.roc","match":"(\\(|\\))"},"period":{"name":"keyword.other.period.roc","match":"[.]"},"punctuation":{"patterns":[{"include":"#brackets"},{"include":"#sq_brackets"},{"include":"#parens"},{"include":"#comma"},{"include":"#arrow"}]},"record-accessor":{"name":"meta.record.accessor","match":"(\\.)([a-z][a-zA-Z0-9_]*)","captures":{"1":{"name":"keyword.other.period.roc"},"2":{"name":"entity.name.function.record-field.roc"}}},"sq_brackets":{"name":"punctuation.bracket.roc","match":"(\\]|\\[)"},"strings":{"patterns":[{"name":"string.quoted.double.roc","begin":"\"","end":"\"","patterns":[{"name":"invalid.illegal","begin":"\\\\u\\(","end":"\\)","patterns":[{"name":"constant.numeric.roc","match":"[0-9a-fA-F]+"}],"beginCaptures":{"0":{"name":"constant.character.escape.roc"}},"endCaptures":{"0":{"name":"constant.character.escape.roc"}}},{"name":"constant.character.escape.roc","match":"\\\\[nrt\\\\\\\"\\\\]"},{"name":"source.roc","begin":"\\$\\(","end":"\\)","patterns":[{"name":"keyword.control.roc","match":"\\b(dbg|expect|if|then|else|when|is|as)\\s+"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#punctuation"},{"include":"#module-member-access"},{"include":"#language-components"},{"include":"#infix_op"},{"include":"#type-signature"}],"beginCaptures":{"0":{"name":"constant.character.escape.roc"}},"endCaptures":{"0":{"name":"constant.character.escape.roc"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.roc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.roc"}}},{"name":"string.quoted.single.roc","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.roc","match":"\\\\[nrt\\\\'\\\\]"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.roc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.roc"}}}]},"top-level-value":{"name":"entity.name.function.top_level.roc","match":"^[a-z][a-zA-Z0-9_']*\\b"},"type-record":{"name":"meta.function.type-record.roc","begin":"(\\{)","end":"(\\})","patterns":[{"name":"punctuation.spaces.roc","match":"\\s+"},{"name":"keyword.operator.arrow.roc","match":"-\u003e"},{"name":"meta.record.field.roc","match":"([a-z][a-zA-Z0-9_]*)\\s+(\\:)","captures":{"1":{"name":"entity.name.record.field.roc"},"2":{"name":"keyword.other.roc"}}},{"name":"punctuation.separator.comma.roc","match":"\\,"},{"name":"variable.type.roc","match":"\\b[a-z][a-zA-Z0-9_]*\\b"},{"name":"storage.type.roc","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"},{"include":"#comments"},{"include":"#type-record"}],"beginCaptures":{"1":{"name":"punctuation.section.braces.begin"}},"endCaptures":{"1":{"name":"punctuation.section.braces.end"}}},"type-signature":{"name":"meta.function.type-declaration.roc","begin":"^([a-z_][a-zA-Z0-9_']*)\\s+(\\:)","end":"((^(?=[a-z]))|^$)","patterns":[{"name":"punctuation.spaces.roc","match":"\\s+"},{"include":"#module-member-access"},{"name":"variable.type.roc","match":"\\b[a-z][a-zA-Z0-9_]*\\b"},{"name":"storage.type.class.roc","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"},{"include":"#arrow"},{"include":"#unit"},{"include":"#comma"},{"include":"#parens"},{"include":"#comments"},{"include":"#type-record"}],"beginCaptures":{"1":{"name":"entity.name.function.roc"},"2":{"name":"keyword.other.colon.roc"}}},"unit":{"name":"constant.unit.roc","match":"\\(\\)"}}}
@@ -0,0 +1 @@
1
+ {"name":"ROS Interface","scopeName":"source.rosmsg","patterns":[{"include":"#separators"},{"include":"#lines"},{"include":"#comments"}],"repository":{"attributes":{"name":"storage.modifier.attribute.rosmsg","match":"@optional\\b"},"builtin-types":{"name":"storage.type.rosmsg","match":"\\b(?:bool|byte|char|u?int(?:8|16|32|64)|float(?:32|64)|w?string|time|duration)\\b"},"comments":{"name":"comment.line.number-sign.rosmsg","match":"#.*"},"field-other":{"begin":"(?=\\b[a-zA-Z_])","end":"$|(?=#)","patterns":[{"name":"support.type.rosmsg","match":"\\G[a-zA-Z0-9_/]+","captures":{"0":{"patterns":[{"include":"#builtin-types"}]}}},{"name":"constant.numeric.integer.rosmsg","match":"\\d+"},{"begin":"(?=[a-zA-Z_])","end":"$|(?=#)","patterns":[{"include":"#field-other-after-type"}]}]},"field-other-after-type":{"patterns":[{"name":"variable.other.field.rosmsg","match":"\\G[a-zA-Z0-9_]+"},{"end":"$|(?=#)","patterns":[{"include":"#literal-other"},{"include":"#literal-other-array"}]}]},"field-string":{"begin":"(?=\\bw?string\\b)","end":"$|(?=#)","patterns":[{"match":"\\Gw?string\\b","captures":{"0":{"name":"storage.type.rosmsg"}}},{"name":"constant.numeric.integer.rosmsg","match":"\\d+"},{"begin":"(?=[a-zA-Z_])","end":"$|(?=#)","patterns":[{"include":"#field-string-after-type"}]}]},"field-string-after-type":{"patterns":[{"name":"variable.other.field.rosmsg","match":"\\G[a-zA-Z0-9_]+"},{"begin":"=|(?\u003c=\\s)","end":"$|(?=#)","patterns":[{"include":"#literal-string"}]}]},"field-string-array":{"begin":"(?=\\bw?string[\u003c=\\d]*\\[)","end":"$|(?=#)","patterns":[{"name":"support.type.rosmsg","match":"\\Gw?string\\b","captures":{"0":{"name":"storage.type.rosmsg"}}},{"name":"constant.numeric.integer.rosmsg","match":"\\d+"},{"begin":"(?=[a-zA-Z_])","end":"$|(?=#)","patterns":[{"include":"#field-string-array-after-type"}]}]},"field-string-array-after-type":{"patterns":[{"name":"variable.other.field.rosmsg","match":"\\G[a-zA-Z0-9_]+"},{"name":"meta.default-value.rosmsg","begin":"(?\u003c=\\s)","end":"$|(?=#)","patterns":[{"include":"#literal-string-array"}]}]},"lines":{"patterns":[{"include":"#attributes"},{"include":"#field-string-array"},{"include":"#field-string"},{"include":"#field-other"}]},"literal-other":{"patterns":[{"name":"constant.numeric.float.rosmsg","match":"[-+]?(?:(?:\\d+(?:_\\d+)*)?\\.\\d+(?:_\\d+)*|\\d+(?:_\\d+)*\\.)(?:[eE][-+]?\\d+(?:_\\d+)*)?"},{"name":"constant.numeric.integer.rosmsg","match":"[-+]?\\d+(?:_\\d+)*"},{"name":"constant.language.boolean.rosmsg","match":"(?i)\\b(?:true|false)\\b"}]},"literal-other-array":{"patterns":[{"name":"meta.array.rosmsg","begin":"\\[","end":"\\]|$|(?=#)","patterns":[{"include":"#literal-other"}]}]},"literal-string":{"patterns":[{"include":"#literal-string-quoted"},{"include":"#literal-string-unquoted"}]},"literal-string-array":{"patterns":[{"name":"meta.array.rosmsg","begin":"\\[","end":"\\]|$|(?=#)","patterns":[{"include":"#literal-string-quoted"},{"include":"#literal-string-unquoted-in-array"}]}]},"literal-string-escape":{"patterns":[{"name":"constant.character.escape.rosmsg","match":"\\\\[0-7]{3}|\\\\x[0-9a-fA-F]{2}|\\\\u[0-9a-fA-F]{4}|\\\\U[0-9a-fA-F]{8}|\\\\."}]},"literal-string-quoted":{"patterns":[{"name":"string.quoted.double.rosmsg","begin":"\"","end":"\"|$","patterns":[{"include":"#literal-string-escape"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.rosmsg"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.rosmsg"}}},{"name":"string.quoted.single.rosmsg","begin":"'","end":"'|$","patterns":[{"include":"#literal-string-escape"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.rosmsg"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.rosmsg"}}}]},"literal-string-unquoted":{"name":"string.unquoted.rosmsg","begin":"(?=[^\\s\"'])","end":"(?=\\s*(?:#|$))","patterns":[{"include":"#literal-string-escape"}]},"literal-string-unquoted-in-array":{"name":"string.unquoted.rosmsg","begin":"(?=[^\\s\"',\\]])","end":"(?=\\s*(?:$|[,\\]]))","patterns":[{"include":"#literal-string-escape"}]},"separators":{"patterns":[{"name":"meta.separator.rosmsg","match":"^---\\s*$\\n?"},{"name":"meta.separator.rosmsg","match":"^={3,}\\s*$\\n?"},{"name":"meta.separator.rosmsg","match":"^MSG:\\s+([a-zA-Z0-9_/]+)\\s*$\\n?","captures":{"1":{"name":"entity.name.type.class.rosmsg"}}}]}}}
@@ -1 +1 @@
1
- {"name":"Rust","scopeName":"source.rust","patterns":[{"begin":"(\u003c)(\\[)","end":"\u003e","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#gtypes"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"}],"beginCaptures":{"1":{"name":"punctuation.brackets.angle.rust"},"2":{"name":"punctuation.brackets.square.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}}},{"name":"meta.macro.metavariable.type.rust","match":"(\\$)((crate)|([A-Z][A-Za-z0-9_]*))((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?","patterns":[{"include":"#keywords"}],"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"3":{"name":"keyword.other.crate.rust"},"4":{"name":"entity.name.type.metavariable.rust"},"6":{"name":"keyword.operator.key-value.rust"},"7":{"name":"variable.other.metavariable.specifier.rust"}}},{"name":"meta.macro.metavariable.rust","match":"(\\$)([a-z][A-Za-z0-9_]*)((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?","patterns":[{"include":"#keywords"}],"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"2":{"name":"variable.other.metavariable.name.rust"},"4":{"name":"keyword.operator.key-value.rust"},"5":{"name":"variable.other.metavariable.specifier.rust"}}},{"name":"meta.macro.rules.rust","match":"\\b(macro_rules!)\\s+(([a-z0-9_]+)|([A-Z][a-z0-9_]*))\\s+(\\{)","captures":{"1":{"name":"entity.name.function.macro.rules.rust"},"3":{"name":"entity.name.function.macro.rust"},"4":{"name":"entity.name.type.macro.rust"},"5":{"name":"punctuation.brackets.curly.rust"}}},{"match":"(mod)\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][A-Za-z0-9_]*)","captures":{"1":{"name":"storage.type.rust"},"2":{"name":"entity.name.module.rust"}}},{"name":"meta.import.rust","begin":"\\b(extern)\\s+(crate)","end":";","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"storage.type.rust"},"2":{"name":"keyword.other.crate.rust"}},"endCaptures":{"0":{"name":"punctuation.semi.rust"}}},{"name":"meta.use.rust","begin":"\\b(use)\\s","end":";","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#types"},{"include":"#lvariables"}],"beginCaptures":{"1":{"name":"keyword.other.rust"}},"endCaptures":{"0":{"name":"punctuation.semi.rust"}}},{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#types"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#variables"}],"repository":{"attributes":{"name":"meta.attribute.rust","begin":"(#)(\\!?)(\\[)","end":"\\]","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#gtypes"},{"include":"#types"}],"beginCaptures":{"1":{"name":"punctuation.definition.attribute.rust"},"3":{"name":"punctuation.brackets.attribute.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.attribute.rust"}}},"block-comments":{"patterns":[{"name":"comment.block.rust","match":"/\\*\\*/"},{"name":"comment.block.documentation.rust","begin":"/\\*\\*","end":"\\*/","patterns":[{"include":"#block-comments"}]},{"name":"comment.block.rust","begin":"/\\*(?!\\*)","end":"\\*/","patterns":[{"include":"#block-comments"}]}]},"comments":{"patterns":[{"name":"comment.line.documentation.rust","match":"(///).*$","captures":{"1":{"name":"punctuation.definition.comment.rust"}}},{"name":"comment.line.double-slash.rust","match":"(//).*$","captures":{"1":{"name":"punctuation.definition.comment.rust"}}}]},"constants":{"patterns":[{"name":"constant.other.caps.rust","match":"\\b[A-Z]{2}[A-Z0-9_]*\\b"},{"match":"\\b(const)\\s+([A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"storage.type.rust"},"2":{"name":"constant.other.caps.rust"}}},{"name":"constant.numeric.decimal.rust","match":"\\b\\d[\\d_]*(\\.?)[\\d_]*(?:(E|e)([+-]?)([\\d_]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"punctuation.separator.dot.decimal.rust"},"2":{"name":"keyword.operator.exponent.rust"},"3":{"name":"keyword.operator.exponent.sign.rust"},"4":{"name":"constant.numeric.decimal.exponent.mantissa.rust"},"5":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.numeric.hex.rust","match":"\\b0x[\\da-fA-F_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.numeric.oct.rust","match":"\\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.numeric.bin.rust","match":"\\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.language.bool.rust","match":"\\b(true|false)\\b"}]},"escapes":{"name":"constant.character.escape.rust","match":"(\\\\)(?:(?:(x[0-7][\\da-fA-F])|(u(\\{)[\\da-fA-F]{4,6}(\\}))|.))","captures":{"1":{"name":"constant.character.escape.backslash.rust"},"2":{"name":"constant.character.escape.bit.rust"},"3":{"name":"constant.character.escape.unicode.rust"},"4":{"name":"constant.character.escape.unicode.punctuation.rust"},"5":{"name":"constant.character.escape.unicode.punctuation.rust"}}},"functions":{"patterns":[{"match":"\\b(pub)(\\()","captures":{"1":{"name":"keyword.other.rust"},"2":{"name":"punctuation.brackets.round.rust"}}},{"name":"meta.function.definition.rust","begin":"\\b(fn)\\s+((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)((\\()|(\u003c))","end":"(\\{)|(;)","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.other.fn.rust"},"2":{"name":"entity.name.function.rust"},"4":{"name":"punctuation.brackets.round.rust"},"5":{"name":"punctuation.brackets.angle.rust"}},"endCaptures":{"1":{"name":"punctuation.brackets.curly.rust"},"2":{"name":"punctuation.semi.rust"}}},{"name":"meta.function.call.rust","begin":"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(\\()","end":"\\)","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"entity.name.function.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}}},{"name":"meta.function.call.rust","begin":"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(?=::\u003c.*\u003e\\()","end":"\\)","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"entity.name.function.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}}}]},"gtypes":{"patterns":[{"name":"entity.name.type.option.rust","match":"\\b(Some|None)\\b"},{"name":"entity.name.type.result.rust","match":"\\b(Ok|Err)\\b"}]},"interpolations":{"name":"meta.interpolation.rust","match":"({)[^\"{}]*(})","captures":{"1":{"name":"punctuation.definition.interpolation.rust"},"2":{"name":"punctuation.definition.interpolation.rust"}}},"keywords":{"patterns":[{"name":"keyword.control.rust","match":"\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\b"},{"name":"keyword.other.rust storage.type.rust","match":"\\b(extern|let|macro|mod)\\b"},{"name":"storage.modifier.rust","match":"\\b(const)\\b"},{"name":"keyword.declaration.type.rust storage.type.rust","match":"\\b(type)\\b"},{"name":"keyword.declaration.enum.rust storage.type.rust","match":"\\b(enum)\\b"},{"name":"keyword.declaration.trait.rust storage.type.rust","match":"\\b(trait)\\b"},{"name":"keyword.declaration.struct.rust storage.type.rust","match":"\\b(struct)\\b"},{"name":"storage.modifier.rust","match":"\\b(abstract|static)\\b"},{"name":"keyword.other.rust","match":"\\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\b"},{"name":"keyword.other.fn.rust","match":"\\bfn\\b"},{"name":"keyword.other.crate.rust","match":"\\bcrate\\b"},{"name":"storage.modifier.mut.rust","match":"\\bmut\\b"},{"name":"keyword.operator.logical.rust","match":"(\\^|\\||\\|\\||\u0026\u0026|\u003c\u003c|\u003e\u003e|!)(?!=)"},{"name":"keyword.operator.borrow.and.rust","match":"\u0026(?![\u0026=])"},{"name":"keyword.operator.assignment.rust","match":"(\\+=|-=|\\*=|/=|%=|\\^=|\u0026=|\\|=|\u003c\u003c=|\u003e\u003e=)"},{"name":"keyword.operator.assignment.equal.rust","match":"(?\u003c![\u003c\u003e])=(?!=|\u003e)"},{"name":"keyword.operator.comparison.rust","match":"(=(=)?(?!\u003e)|!=|\u003c=|(?\u003c!=)\u003e=)"},{"name":"keyword.operator.math.rust","match":"(([+%]|(\\*(?!\\w)))(?!=))|(-(?!\u003e))|(/(?!/))"},{"match":"(?:\\b|(?:(\\))|(\\])|(\\})))[ \\t]+([\u003c\u003e])[ \\t]+(?:\\b|(?:(\\()|(\\[)|(\\{)))","captures":{"1":{"name":"punctuation.brackets.round.rust"},"2":{"name":"punctuation.brackets.square.rust"},"3":{"name":"punctuation.brackets.curly.rust"},"4":{"name":"keyword.operator.comparison.rust"},"5":{"name":"punctuation.brackets.round.rust"},"6":{"name":"punctuation.brackets.square.rust"},"7":{"name":"punctuation.brackets.curly.rust"}}},{"name":"keyword.operator.namespace.rust","match":"::"},{"match":"(\\*)(?=\\w+)","captures":{"1":{"name":"keyword.operator.dereference.rust"}}},{"name":"keyword.operator.subpattern.rust","match":"@"},{"name":"keyword.operator.access.dot.rust","match":"\\.(?!\\.)"},{"name":"keyword.operator.range.rust","match":"\\.{2}(=|\\.)?"},{"name":"keyword.operator.key-value.rust","match":":(?!:)"},{"name":"keyword.operator.arrow.skinny.rust","match":"-\u003e|\u003c-"},{"name":"keyword.operator.arrow.fat.rust","match":"=\u003e"},{"name":"keyword.operator.macro.dollar.rust","match":"\\$"},{"name":"keyword.operator.question.rust","match":"\\?"}]},"lifetimes":{"patterns":[{"match":"(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b","captures":{"1":{"name":"punctuation.definition.lifetime.rust"},"2":{"name":"entity.name.type.lifetime.rust"}}},{"match":"(\\\u0026)(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b","captures":{"1":{"name":"keyword.operator.borrow.rust"},"2":{"name":"punctuation.definition.lifetime.rust"},"3":{"name":"entity.name.type.lifetime.rust"}}}]},"lvariables":{"patterns":[{"name":"variable.language.self.rust","match":"\\b[Ss]elf\\b"},{"name":"variable.language.super.rust","match":"\\bsuper\\b"}]},"macros":{"patterns":[{"name":"meta.macro.rust","match":"(([a-z_][A-Za-z0-9_]*!)|([A-Z_][A-Za-z0-9_]*!))","captures":{"2":{"name":"entity.name.function.macro.rust"},"3":{"name":"entity.name.type.macro.rust"}}}]},"namespaces":{"patterns":[{"match":"(?\u003c![A-Za-z0-9_])([A-Za-z0-9_]+)((?\u003c!super|self)::)","captures":{"1":{"name":"entity.name.namespace.rust"},"2":{"name":"keyword.operator.namespace.rust"}}}]},"punctuation":{"patterns":[{"name":"punctuation.comma.rust","match":","},{"name":"punctuation.brackets.curly.rust","match":"[{}]"},{"name":"punctuation.brackets.round.rust","match":"[()]"},{"name":"punctuation.semi.rust","match":";"},{"name":"punctuation.brackets.square.rust","match":"[\\[\\]]"},{"name":"punctuation.brackets.angle.rust","match":"(?\u003c!=)[\u003c\u003e]"}]},"strings":{"patterns":[{"name":"string.quoted.double.rust","begin":"(b?)(\")","end":"\"","patterns":[{"include":"#escapes"},{"include":"#interpolations"}],"beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.rust"}},"endCaptures":{"0":{"name":"punctuation.definition.string.rust"}}},{"name":"string.quoted.double.rust","begin":"(b?r)(#*)(\")","end":"(\")(\\2)","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.raw.rust"},"3":{"name":"punctuation.definition.string.rust"}},"endCaptures":{"1":{"name":"punctuation.definition.string.rust"},"2":{"name":"punctuation.definition.string.raw.rust"}}},{"name":"string.quoted.single.char.rust","begin":"(b)?(')","end":"'","patterns":[{"include":"#escapes"}],"beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.char.rust"}},"endCaptures":{"0":{"name":"punctuation.definition.char.rust"}}}]},"types":{"patterns":[{"match":"(?\u003c![A-Za-z])(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"begin":"\\b(_?[A-Z][A-Za-z0-9_]*)(\u003c)","end":"\u003e","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"entity.name.type.rust"},"2":{"name":"punctuation.brackets.angle.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}}},{"name":"entity.name.type.primitive.rust","match":"\\b(bool|char|str)\\b"},{"match":"\\b(trait)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.trait.rust storage.type.rust"},"2":{"name":"entity.name.type.trait.rust"}}},{"match":"\\b(struct)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.struct.rust storage.type.rust"},"2":{"name":"entity.name.type.struct.rust"}}},{"match":"\\b(enum)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.enum.rust storage.type.rust"},"2":{"name":"entity.name.type.enum.rust"}}},{"match":"\\b(type)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.type.rust storage.type.rust"},"2":{"name":"entity.name.type.declaration.rust"}}},{"name":"entity.name.type.rust","match":"\\b_?[A-Z][A-Za-z0-9_]*\\b(?!!)"}]},"variables":{"patterns":[{"name":"variable.other.rust","match":"\\b(?\u003c!(?\u003c!\\.)\\.)(?:r#(?!(crate|[Ss]elf|super)))?[a-z0-9_]+\\b"}]}}}
1
+ {"name":"Rust","scopeName":"source.rust","patterns":[{"begin":"(\u003c)(\\[)","end":"\u003e","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#gtypes"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"}],"beginCaptures":{"1":{"name":"punctuation.brackets.angle.rust"},"2":{"name":"punctuation.brackets.square.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}}},{"name":"meta.macro.metavariable.type.rust","match":"(\\$)((crate)|([A-Z]\\w*))(\\s*(:)\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\b)?","patterns":[{"include":"#keywords"}],"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"3":{"name":"keyword.other.crate.rust"},"4":{"name":"entity.name.type.metavariable.rust"},"6":{"name":"keyword.operator.key-value.rust"},"7":{"name":"variable.other.metavariable.specifier.rust"}}},{"name":"meta.macro.metavariable.rust","match":"(\\$)([a-z]\\w*)(\\s*(:)\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\b)?","patterns":[{"include":"#keywords"}],"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"2":{"name":"variable.other.metavariable.name.rust"},"4":{"name":"keyword.operator.key-value.rust"},"5":{"name":"variable.other.metavariable.specifier.rust"}}},{"name":"meta.macro.rules.rust","match":"\\b(macro_rules!)\\s+(([a-z0-9_]+)|([A-Z][a-z0-9_]*))\\s+(\\{)","captures":{"1":{"name":"entity.name.function.macro.rules.rust"},"3":{"name":"entity.name.function.macro.rust"},"4":{"name":"entity.name.type.macro.rust"},"5":{"name":"punctuation.brackets.curly.rust"}}},{"match":"(mod)\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][A-Za-z0-9_]*)","captures":{"1":{"name":"storage.type.rust"},"2":{"name":"entity.name.module.rust"}}},{"name":"meta.import.rust","begin":"\\b(extern)\\s+(crate)","end":";","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"storage.type.rust"},"2":{"name":"keyword.other.crate.rust"}},"endCaptures":{"0":{"name":"punctuation.semi.rust"}}},{"name":"meta.use.rust","begin":"\\b(use)\\s","end":";","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#types"},{"include":"#lvariables"}],"beginCaptures":{"1":{"name":"keyword.other.rust"}},"endCaptures":{"0":{"name":"punctuation.semi.rust"}}},{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#types"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#variables"}],"repository":{"attributes":{"name":"meta.attribute.rust","begin":"(#)(\\!?)(\\[)","end":"\\]","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#gtypes"},{"include":"#types"}],"beginCaptures":{"1":{"name":"punctuation.definition.attribute.rust"},"3":{"name":"punctuation.brackets.attribute.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.attribute.rust"}}},"block-comments":{"patterns":[{"name":"comment.block.rust","match":"/\\*\\*/"},{"name":"comment.block.documentation.rust","begin":"/\\*\\*","end":"\\*/","patterns":[{"include":"#block-comments"}]},{"name":"comment.block.rust","begin":"/\\*(?!\\*)","end":"\\*/","patterns":[{"include":"#block-comments"}]}]},"comments":{"patterns":[{"name":"comment.line.documentation.rust","match":"(///).*$","captures":{"1":{"name":"punctuation.definition.comment.rust"}}},{"name":"comment.line.double-slash.rust","match":"(//).*$","captures":{"1":{"name":"punctuation.definition.comment.rust"}}}]},"constants":{"patterns":[{"name":"constant.other.caps.rust","match":"\\b[A-Z]{2}[A-Z0-9_]*\\b"},{"match":"\\b(const)\\s+([A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"storage.type.rust"},"2":{"name":"constant.other.caps.rust"}}},{"name":"constant.numeric.decimal.rust","match":"\\b\\d[\\d_]*(\\.?)[\\d_]*(?:(E|e)([+-]?)([\\d_]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"punctuation.separator.dot.decimal.rust"},"2":{"name":"keyword.operator.exponent.rust"},"3":{"name":"keyword.operator.exponent.sign.rust"},"4":{"name":"constant.numeric.decimal.exponent.mantissa.rust"},"5":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.numeric.hex.rust","match":"\\b0x[\\da-fA-F_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.numeric.oct.rust","match":"\\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.numeric.bin.rust","match":"\\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"name":"constant.language.bool.rust","match":"\\b(true|false)\\b"}]},"escapes":{"name":"constant.character.escape.rust","match":"(\\\\)(?:(?:(x[0-7][\\da-fA-F])|(u(\\{)[\\da-fA-F]{4,6}(\\}))|.))","captures":{"1":{"name":"constant.character.escape.backslash.rust"},"2":{"name":"constant.character.escape.bit.rust"},"3":{"name":"constant.character.escape.unicode.rust"},"4":{"name":"constant.character.escape.unicode.punctuation.rust"},"5":{"name":"constant.character.escape.unicode.punctuation.rust"}}},"functions":{"patterns":[{"match":"\\b(pub)(\\()","captures":{"1":{"name":"keyword.other.rust"},"2":{"name":"punctuation.brackets.round.rust"}}},{"name":"meta.function.definition.rust","begin":"\\b(fn)\\s+((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)((\\()|(\u003c))","end":"(\\{)|(;)","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.other.fn.rust"},"2":{"name":"entity.name.function.rust"},"4":{"name":"punctuation.brackets.round.rust"},"5":{"name":"punctuation.brackets.angle.rust"}},"endCaptures":{"1":{"name":"punctuation.brackets.curly.rust"},"2":{"name":"punctuation.semi.rust"}}},{"name":"meta.function.call.rust","begin":"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(\\()","end":"\\)","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"entity.name.function.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}}},{"name":"meta.function.call.rust","begin":"((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(?=::\u003c.*\u003e\\()","end":"\\)","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"entity.name.function.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}}}]},"gtypes":{"patterns":[{"name":"entity.name.type.option.rust","match":"\\b(Some|None)\\b"},{"name":"entity.name.type.result.rust","match":"\\b(Ok|Err)\\b"}]},"interpolations":{"name":"meta.interpolation.rust","match":"({)[^\"{}]*(})","captures":{"1":{"name":"punctuation.definition.interpolation.rust"},"2":{"name":"punctuation.definition.interpolation.rust"}}},"keywords":{"patterns":[{"name":"keyword.control.rust","match":"\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\b"},{"name":"keyword.other.rust storage.type.rust","match":"\\b(extern|let|macro|mod)\\b"},{"name":"storage.modifier.rust","match":"\\b(const)\\b"},{"name":"keyword.declaration.type.rust storage.type.rust","match":"\\b(type)\\b"},{"name":"keyword.declaration.enum.rust storage.type.rust","match":"\\b(enum)\\b"},{"name":"keyword.declaration.trait.rust storage.type.rust","match":"\\b(trait)\\b"},{"name":"keyword.declaration.struct.rust storage.type.rust","match":"\\b(struct)\\b"},{"name":"storage.modifier.rust","match":"\\b(abstract|static)\\b"},{"name":"keyword.other.rust","match":"\\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\b"},{"name":"keyword.other.fn.rust","match":"\\bfn\\b"},{"name":"keyword.other.crate.rust","match":"\\bcrate\\b"},{"name":"storage.modifier.mut.rust","match":"\\bmut\\b"},{"name":"keyword.operator.logical.rust","match":"(\\^|\\||\\|\\||\u0026\u0026|\u003c\u003c|\u003e\u003e|!)(?!=)"},{"name":"keyword.operator.borrow.and.rust","match":"\u0026(?![\u0026=])"},{"name":"keyword.operator.assignment.rust","match":"(\\+=|-=|\\*=|/=|%=|\\^=|\u0026=|\\|=|\u003c\u003c=|\u003e\u003e=)"},{"name":"keyword.operator.assignment.equal.rust","match":"(?\u003c![\u003c\u003e])=(?!=|\u003e)"},{"name":"keyword.operator.comparison.rust","match":"(=(=)?(?!\u003e)|!=|\u003c=|(?\u003c!=)\u003e=)"},{"name":"keyword.operator.math.rust","match":"(([+%]|(\\*(?!\\w)))(?!=))|(-(?!\u003e))|(/(?!/))"},{"match":"(?:\\b|(?:(\\))|(\\])|(\\})))[ \\t]+([\u003c\u003e])[ \\t]+(?:\\b|(?:(\\()|(\\[)|(\\{)))","captures":{"1":{"name":"punctuation.brackets.round.rust"},"2":{"name":"punctuation.brackets.square.rust"},"3":{"name":"punctuation.brackets.curly.rust"},"4":{"name":"keyword.operator.comparison.rust"},"5":{"name":"punctuation.brackets.round.rust"},"6":{"name":"punctuation.brackets.square.rust"},"7":{"name":"punctuation.brackets.curly.rust"}}},{"name":"keyword.operator.namespace.rust","match":"::"},{"match":"(\\*)(?=\\w+)","captures":{"1":{"name":"keyword.operator.dereference.rust"}}},{"name":"keyword.operator.subpattern.rust","match":"@"},{"name":"keyword.operator.access.dot.rust","match":"\\.(?!\\.)"},{"name":"keyword.operator.range.rust","match":"\\.{2}(=|\\.)?"},{"name":"keyword.operator.key-value.rust","match":":(?!:)"},{"name":"keyword.operator.arrow.skinny.rust","match":"-\u003e|\u003c-"},{"name":"keyword.operator.arrow.fat.rust","match":"=\u003e"},{"name":"keyword.operator.macro.dollar.rust","match":"\\$"},{"name":"keyword.operator.question.rust","match":"\\?"}]},"lifetimes":{"patterns":[{"match":"(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b","captures":{"1":{"name":"punctuation.definition.lifetime.rust"},"2":{"name":"entity.name.type.lifetime.rust"}}},{"match":"(\\\u0026)(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\\b","captures":{"1":{"name":"keyword.operator.borrow.rust"},"2":{"name":"punctuation.definition.lifetime.rust"},"3":{"name":"entity.name.type.lifetime.rust"}}}]},"lvariables":{"patterns":[{"name":"variable.language.self.rust","match":"\\b[Ss]elf\\b"},{"name":"variable.language.super.rust","match":"\\bsuper\\b"}]},"macros":{"patterns":[{"name":"meta.macro.rust","match":"(([a-z_][A-Za-z0-9_]*!)|([A-Z_][A-Za-z0-9_]*!))","captures":{"2":{"name":"entity.name.function.macro.rust"},"3":{"name":"entity.name.type.macro.rust"}}}]},"namespaces":{"patterns":[{"match":"(?\u003c![A-Za-z0-9_])([A-Za-z0-9_]+)((?\u003c!super|self)::)","captures":{"1":{"name":"entity.name.namespace.rust"},"2":{"name":"keyword.operator.namespace.rust"}}}]},"punctuation":{"patterns":[{"name":"punctuation.comma.rust","match":","},{"name":"punctuation.brackets.curly.rust","match":"[{}]"},{"name":"punctuation.brackets.round.rust","match":"[()]"},{"name":"punctuation.semi.rust","match":";"},{"name":"punctuation.brackets.square.rust","match":"[\\[\\]]"},{"name":"punctuation.brackets.angle.rust","match":"(?\u003c!=)[\u003c\u003e]"}]},"strings":{"patterns":[{"name":"string.quoted.double.rust","begin":"(b?)(\")","end":"\"","patterns":[{"include":"#escapes"},{"include":"#interpolations"}],"beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.rust"}},"endCaptures":{"0":{"name":"punctuation.definition.string.rust"}}},{"name":"string.quoted.double.rust","begin":"(b?r)(#*)(\")","end":"(\")(\\2)","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.raw.rust"},"3":{"name":"punctuation.definition.string.rust"}},"endCaptures":{"1":{"name":"punctuation.definition.string.rust"},"2":{"name":"punctuation.definition.string.raw.rust"}}},{"name":"string.quoted.single.char.rust","begin":"(b)?(')","end":"'","patterns":[{"include":"#escapes"}],"beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.char.rust"}},"endCaptures":{"0":{"name":"punctuation.definition.char.rust"}}}]},"types":{"patterns":[{"match":"(?\u003c![A-Za-z])(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)\\b","captures":{"1":{"name":"entity.name.type.numeric.rust"}}},{"begin":"\\b(_?[A-Z][A-Za-z0-9_]*)(\u003c)","end":"\u003e","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"entity.name.type.rust"},"2":{"name":"punctuation.brackets.angle.rust"}},"endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}}},{"name":"entity.name.type.primitive.rust","match":"\\b(bool|char|str)\\b"},{"match":"\\b(trait)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.trait.rust storage.type.rust"},"2":{"name":"entity.name.type.trait.rust"}}},{"match":"\\b(struct)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.struct.rust storage.type.rust"},"2":{"name":"entity.name.type.struct.rust"}}},{"match":"\\b(enum)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.enum.rust storage.type.rust"},"2":{"name":"entity.name.type.enum.rust"}}},{"match":"\\b(type)\\s+(_?[A-Z][A-Za-z0-9_]*)\\b","captures":{"1":{"name":"keyword.declaration.type.rust storage.type.rust"},"2":{"name":"entity.name.type.declaration.rust"}}},{"name":"entity.name.type.rust","match":"\\b_?[A-Z][A-Za-z0-9_]*\\b(?!!)"}]},"variables":{"patterns":[{"name":"variable.other.rust","match":"\\b(?\u003c!(?\u003c!\\.)\\.)(?:r#(?!(crate|[Ss]elf|super)))?[a-z0-9_]+\\b"}]}}}
@@ -0,0 +1 @@
1
+ {"name":"Sail","scopeName":"source.sail","patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#operators"},{"include":"#strings"},{"include":"#numbers"},{"include":"#typevariables"},{"include":"#variables"}],"repository":{"comments":{"patterns":[{"name":"comment.line.double-slash.documentation.sail","begin":"(?:^)(?\u003e\\s*)(\\/\\/[!\\/]+)","end":"(?\u003c=\\n)(?\u003c!\\\\\\n)","patterns":[{"include":"#line_continuation_character"}],"beginCaptures":{"1":{"name":"punctuation.definition.comment.documentation.sail"}}},{"name":"comment.block.documentation.sail","match":"(\\/\\*[!*]+(?=\\s))(.+)([!*]*\\*\\/)","captures":{"1":{"name":"punctuation.definition.comment.begin.documentation.sail"},"3":{"name":"punctuation.definition.comment.end.documentation.sail"}}},{"name":"comment.block.documentation.sail","begin":"((?\u003e\\s*)\\/\\*[!*]+(?:(?:\\n|$)|(?=\\s)))","end":"([!*]*\\*\\/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.documentation.sail"}},"endCaptures":{"1":{"name":"punctuation.definition.comment.end.documentation.sail"}}},{"name":"comment.block.banner.sail","match":"^\\/\\* =(\\s*.*?)\\s*= \\*\\/$\\n?","captures":{"1":{"name":"meta.toc-list.banner.block.sail"}}},{"name":"comment.block.sail","begin":"(\\/\\*)","end":"(\\*\\/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.sail"}},"endCaptures":{"1":{"name":"punctuation.definition.comment.end.sail"}}},{"name":"comment.line.banner.sail","match":"^\\/\\/ =(\\s*.*?)\\s*=$\\n?","captures":{"1":{"name":"meta.toc-list.banner.line.sail"}}},{"begin":"((?:^[ \\t]+)?)(?=\\/\\/)","end":"(?!\\G)","patterns":[{"name":"comment.line.double-slash.sail","begin":"(\\/\\/)","end":"(?=\\n)","patterns":[{"include":"#line_continuation_character"}],"beginCaptures":{"1":{"name":"punctuation.definition.comment.sail"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sail"}}}]},"keywords":{"patterns":[{"name":"keyword.control.sail","match":"\\b(if|then|while|for|foreach|return|match|else)\\b"},{"name":"keyword.type.sail","match":"\\b(atom|int)\\b"},{"name":"keyword.other.sail","match":"\\b(type|val|var|let|in|function|scattered|enum|union|clause|default|order|dec|register|vector|bitfield)\\b"},{"name":"keyword.other.sail","match":"\\b(forall)\\b"},{"name":"keyword.other.sail","match":"\\b(effect)\\b"},{"name":"keyword.other.sail","match":"\\b(infix|overload|operator)\\b"},{"name":"keyword.other.sail","match":"\\b(\\$include)\\b"},{"name":"keyword.other.sail","match":"(=\u003e|\u003e=|\u003c=|=|-\u003e|-|:|,|\\+|\\*|\\.|@)"},{"name":"keyword.other.sail","match":"\\b_\\b"},{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.paren.open"}},"endCaptures":{"0":{"name":"punctuation.paren.close"}}},{"begin":"{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.curly.open"}},"endCaptures":{"0":{"name":"punctuation.curly.close"}}},{"name":"meta.preprocessor.include.sail","begin":"^\\s*((\\$)\\s*(include|import))\\b\\s*","end":"(?=(?://|/\\*))|(?\u003c!\\\\)(?=\\n)","patterns":[{"include":"#line_continuation_character"},{"name":"string.quoted.double.include.sail","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sail"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.sail"}}},{"name":"string.quoted.other.lt-gt.include.sail","begin":"\u003c","end":"\u003e","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sail"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.sail"}}}],"beginCaptures":{"1":{"name":"keyword.control.directive.$3.sail"},"2":{"name":"punctuation.definition.directive.sail"}}},{"include":"#comments"}]},"line_continuation_character":{"patterns":[{"match":"(\\\\)\\n","captures":{"1":{"name":"constant.character.escape.line-continuation.c"}}}]},"numbers":{"patterns":[{"name":"constant.numeric.sail","match":"\\b((0(x|X)[0-9a-fA-F]*)|(0(b|B)[01]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"}]},"strings":{"name":"string.quoted.double.sail","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.sail","match":"\\\\."}]},"typevariables":{"patterns":[{"name":"variable.parameter","match":"'([A-Za-z][A-Za-z_0-9]*)\\b"}]},"variables":{"patterns":[{"name":"variable.other","match":"\\b([A-Za-z][A-Za-z_0-9]*)\\b"}]}}}
@@ -1 +1 @@
1
- {"name":"Sieve","scopeName":"source.sieve","patterns":[{"include":"#main"}],"repository":{"action":{"name":"meta.action.sieve","begin":"\\b(?!\\d)\\w+","end":"(?=\\s*(?:$|\\]|\\)|[};,]))","patterns":[{"include":"#arguments"}],"beginCaptures":{"0":{"name":"keyword.operator.action.sieve"}}},"arguments":{"patterns":[{"include":"#taggedArgument"},{"include":"#comparator"},{"include":"#stringBlock"},{"include":"#testList"},{"include":"#stringList"},{"include":"#strings"},{"include":"#numbers"},{"include":"#comments"},{"include":"#punctuation"}]},"block":{"name":"meta.block.sieve","begin":"{","end":"}","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.brace.bracket.curly.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.brace.bracket.curly.end.sieve"}}},"comments":{"patterns":[{"name":"comment.line.number-sign.sieve","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.sieve"}}},{"name":"comment.block.bracketed.sieve","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.sieve"}}}]},"comparator":{"patterns":[{"name":"storage.modifier.comparator.${3:/downcase}.sieve","match":"(?i)(\")i(;)(octet|ascii-casemap)(\")","captures":{"1":{"name":"punctuation.definition.comparator.begin.sieve"},"2":{"name":"punctuation.separator.delimiter.semicolon.sieve"},"4":{"name":"punctuation.definition.comparator.end.sieve"}}},{"match":"(?i)(?\u003c=:comparator)\\s*((\")(?!i;(?:octet|ascii-casemap)\")[^\"]+(\"))","captures":{"1":{"name":"storage.modifier.comparator.non-standard.sieve"},"2":{"name":"punctuation.definition.comparator.begin.sieve"},"3":{"name":"punctuation.definition.comparator.end.sieve"}}}]},"conditional":{"name":"meta.conditional.${1:/downcase}.sieve","begin":"(?i)\\b(if|elsif|else)(?=[\\s{]|$)","end":"(?\u003c=\\})","patterns":[{"include":"#test"},{"include":"#comment"},{"include":"#block"}],"beginCaptures":{"1":{"name":"keyword.control.flow.${1:/downcase}.sieve"}}},"encodedCharacter":{"name":"meta.encoded-character.${2:/downcase}.sieve","match":"(?i)(\\$\\{)(hex|unicode)(:)([\\s0-9A-Fa-f]+)(})","captures":{"1":{"name":"punctuation.section.embedded.begin.sieve"},"2":{"name":"entity.name.encoding.${2:/downcase}.sieve"},"3":{"name":"punctuation.delimiter.separator.colon.sieve"},"4":{"patterns":[{"name":"constant.numeric.integer.hex.sieve","match":"[0-9A-Fa-f]+"}]},"5":{"name":"punctuation.section.embedded.end.sieve"}}},"main":{"patterns":[{"include":"#comments"},{"include":"#conditional"},{"include":"#require"},{"include":"#arguments"},{"include":"#block"},{"include":"#action"}]},"numbers":{"name":"constant.numeric.integer.int.decimal.sieve","match":"(?i)\\d+(K|M|G)?","captures":{"1":{"name":"constant.language.quantifier.${1:/downcase}b.sieve"}}},"punctuation":{"patterns":[{"name":"punctuation.separator.delimiter.sieve","match":","},{"name":"punctuation.terminator.statement.semicolon.sieve","match":";"}]},"require":{"name":"keyword.control.directive.include.require.sieve","match":"\\b(?i:require)(?=\\s|$|\\[)"},"stringBlock":{"name":"meta.multi-line.sieve","contentName":"string.unquoted.heredoc.multiline.sieve","begin":"(?i)\\b(text(:))\\s*(?:$|(#.*))","end":"^\\.$","beginCaptures":{"1":{"name":"storage.type.text.sieve"},"2":{"name":"punctuation.definition.heredoc.begin.sieve"},"3":{"patterns":[{"include":"#comments"}]}},"endCaptures":{"0":{"name":"punctuation.definition.heredoc.end.sieve"}}},"stringEscapes":{"patterns":[{"name":"constant.character.escape.backslash.sieve","match":"(\\\\)\\\\","captures":{"1":{"name":"punctuation.definition.escape.backslash.sieve"}}},{"name":"constant.character.escape.quote.sieve","match":"(\\\\)\"","captures":{"1":{"name":"punctuation.definition.escape.backslash.sieve"}}},{"name":"invalid.deprecated.unknown-escape.sieve","match":"(\\\\).","captures":{"1":{"name":"punctuation.definition.escape.backslash.sieve"}}}]},"stringList":{"name":"meta.string-list.sieve","begin":"\\[","end":"\\]","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.square.end.sieve"}}},"strings":{"name":"string.quoted.double.sieve","begin":"\"","end":"\"","patterns":[{"include":"#encodedCharacter"},{"include":"#stringEscapes"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.sieve"}}},"taggedArgument":{"name":"keyword.operator.tagged-argument.sieve","match":"(:)(?!\\d)\\w+","captures":{"1":{"name":"punctuation.definition.colon.tagged-argument.sieve"}}},"test":{"name":"meta.tests.sieve","begin":"(?:\\G|^|(?\u003c=,|\\())\\s*(?i:(not)\\s+)?((?:[^\\s(){},:\\[\\]#/]|/[^*])++)","end":"(?=\\s*[{,\\)])","patterns":[{"include":"#arguments"}],"beginCaptures":{"1":{"name":"entity.name.function.test.negation.sieve"},"2":{"name":"entity.name.function.test.sieve"}}},"testList":{"name":"meta.test-list.sieve","begin":"\\(","end":"\\)","patterns":[{"include":"#test"},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.round.end.sieve"}}}}}
1
+ {"name":"Sieve","scopeName":"source.sieve","patterns":[{"include":"#main"}],"repository":{"action":{"name":"meta.action.sieve","begin":"\\b(?!\\d)\\w+","end":"(?=\\s*(?:$|\\]|\\)|[};,]))","patterns":[{"include":"#arguments"}],"beginCaptures":{"0":{"name":"keyword.operator.action.sieve"}}},"arguments":{"patterns":[{"include":"#taggedArgument"},{"include":"#comparator"},{"include":"#stringBlock"},{"include":"#testList"},{"include":"#stringList"},{"include":"#strings"},{"include":"#numbers"},{"include":"#comments"},{"include":"#punctuation"}]},"block":{"name":"meta.block.sieve","begin":"{","end":"}","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.brace.bracket.curly.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.brace.bracket.curly.end.sieve"}}},"comments":{"patterns":[{"name":"comment.line.number-sign.sieve","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.sieve"}}},{"name":"comment.block.bracketed.sieve","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.sieve"}}}]},"comparator":{"patterns":[{"name":"storage.modifier.comparator.${3:/downcase}.sieve","match":"(?i)(\")i(;)(octet|ascii-casemap)(\")","captures":{"1":{"name":"punctuation.definition.comparator.begin.sieve"},"2":{"name":"punctuation.separator.delimiter.semicolon.sieve"},"4":{"name":"punctuation.definition.comparator.end.sieve"}}},{"match":"(?i)(?\u003c=:comparator)\\s*((\")(?!i;(?:octet|ascii-casemap)\")[^\"]+(\"))","captures":{"1":{"name":"storage.modifier.comparator.non-standard.sieve"},"2":{"name":"punctuation.definition.comparator.begin.sieve"},"3":{"name":"punctuation.definition.comparator.end.sieve"}}}]},"conditional":{"name":"meta.conditional.${1:/downcase}.sieve","begin":"(?i)\\b(if|elsif|else)(?=[\\s{]|$)","end":"(?\u003c=\\})","patterns":[{"include":"#test"},{"include":"#comments"},{"include":"#block"}],"beginCaptures":{"1":{"name":"keyword.control.flow.${1:/downcase}.sieve"}}},"encodedCharacter":{"name":"meta.encoded-character.${2:/downcase}.sieve","match":"(?i)(\\$\\{)(hex|unicode)(:)([\\s0-9A-Fa-f]+)(})","captures":{"1":{"name":"punctuation.section.embedded.begin.sieve"},"2":{"name":"entity.name.encoding.${2:/downcase}.sieve"},"3":{"name":"punctuation.delimiter.separator.colon.sieve"},"4":{"patterns":[{"name":"constant.numeric.integer.hex.sieve","match":"[0-9A-Fa-f]+"}]},"5":{"name":"punctuation.section.embedded.end.sieve"}}},"main":{"patterns":[{"include":"#comments"},{"include":"#conditional"},{"include":"#require"},{"include":"#arguments"},{"include":"#block"},{"include":"#action"}]},"numbers":{"name":"constant.numeric.integer.int.decimal.sieve","match":"(?i)\\d+(K|M|G)?","captures":{"1":{"name":"constant.language.quantifier.${1:/downcase}b.sieve"}}},"punctuation":{"patterns":[{"name":"punctuation.separator.delimiter.sieve","match":","},{"name":"punctuation.terminator.statement.semicolon.sieve","match":";"}]},"require":{"name":"keyword.control.directive.include.require.sieve","match":"\\b(?i:require)(?=\\s|$|\\[)"},"stringBlock":{"name":"meta.multi-line.sieve","contentName":"string.unquoted.heredoc.multiline.sieve","begin":"(?i)\\b(text(:))\\s*(?:$|(#.*))","end":"^\\.$","beginCaptures":{"1":{"name":"storage.type.text.sieve"},"2":{"name":"punctuation.definition.heredoc.begin.sieve"},"3":{"patterns":[{"include":"#comments"}]}},"endCaptures":{"0":{"name":"punctuation.definition.heredoc.end.sieve"}}},"stringEscapes":{"patterns":[{"name":"constant.character.escape.backslash.sieve","match":"(\\\\)\\\\","captures":{"1":{"name":"punctuation.definition.escape.backslash.sieve"}}},{"name":"constant.character.escape.quote.sieve","match":"(\\\\)\"","captures":{"1":{"name":"punctuation.definition.escape.backslash.sieve"}}},{"name":"invalid.deprecated.unknown-escape.sieve","match":"(\\\\).","captures":{"1":{"name":"punctuation.definition.escape.backslash.sieve"}}}]},"stringList":{"name":"meta.string-list.sieve","begin":"\\[","end":"\\]","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.square.end.sieve"}}},"strings":{"name":"string.quoted.double.sieve","begin":"\"","end":"\"","patterns":[{"include":"#encodedCharacter"},{"include":"#stringEscapes"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.sieve"}}},"taggedArgument":{"name":"keyword.operator.tagged-argument.sieve","match":"(:)(?!\\d)\\w+","captures":{"1":{"name":"punctuation.definition.colon.tagged-argument.sieve"}}},"test":{"name":"meta.tests.sieve","begin":"(?:\\G|^|(?\u003c=,|\\())\\s*(?i:(not)\\s+)?((?:[^\\s(){},:\\[\\]#/]|/[^*])++)","end":"(?=\\s*[{,\\)])","patterns":[{"include":"#arguments"}],"beginCaptures":{"1":{"name":"entity.name.function.test.negation.sieve"},"2":{"name":"entity.name.function.test.sieve"}}},"testList":{"name":"meta.test-list.sieve","begin":"\\(","end":"\\)","patterns":[{"include":"#test"},{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.begin.sieve"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.round.end.sieve"}}}}}