@shikijs/langs-precompiled 4.0.1 → 4.0.2
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.
- package/dist/bird2.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/nextflow-groovy.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/package.json +3 -3
package/dist/ruby.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import shellscript from './shellscript.mjs'
|
|
|
12
12
|
import lua from './lua.mjs'
|
|
13
13
|
import yaml from './yaml.mjs'
|
|
14
14
|
|
|
15
|
-
const lang = Object.freeze({displayName:"Ruby",name:"ruby",patterns:[{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"entity.name.type.class.ruby"},"5":{name:"punctuation.separator.namespace.ruby"},"7":{name:"punctuation.separator.inheritance.ruby"},"8":{name:"entity.other.inherited-class.ruby"},"11":{name:"punctuation.separator.namespace.ruby"}},match:/\b(class)\p{space}+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)\p{space}*((<)\p{space}*(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*))?/dgv,name:"meta.class.ruby"},{captures:{"1":{name:"keyword.control.module.ruby"},"2":{name:"entity.name.type.module.ruby"},"5":{name:"punctuation.separator.namespace.ruby"}},match:/\b(module)\p{space}+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)/dgv,name:"meta.module.ruby"},{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"punctuation.separator.inheritance.ruby"}},match:/\b(class)\p{space}*(<<)\p{space}*/dgv,name:"meta.class.ruby"},{match:/(?<!\.)\belse(\p{space})+if\b/dgv,name:"invalid.deprecated.ruby"},{captures:{"1":{name:"variable.ruby"},"2":{name:"keyword.operator.assignment.augmented.ruby"}},match:/^\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"4":{name:"keyword.operator.assignment.augmented.ruby"}},match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"variable.ruby"},"2":{name:"keyword.operator.assignment.augmented.ruby"}},match:/^\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*(([\-\%\*\+\/]|\*\*|[\&\^\|]|<<|>>)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"4":{name:"keyword.operator.assignment.augmented.ruby"}},match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*(([\-\%\*\+\/]|\*\*|[\&\^\|]|<<|>>)=)/dgv},{captures:{"1":{name:"variable.ruby"}},match:/^\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*(?==[^\=\>])/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"}},match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"punctuation.definition.constant.hashkey.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*[\\!\\?]?))\\1)(:)(?!:)","dgv",{"hiddenCaptures":[1]}),name:"constant.language.symbol.hashkey.ruby"},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*[\\!\\?]?))\\2)(?=\\p{space}*=>)","dgv",{"hiddenCaptures":[2]}),name:"constant.language.symbol.hashkey.ruby"},{match:/(?<!\.)\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![\!\?])/dgv,name:"keyword.control.ruby"},{match:/(?<!\.)\bdo\b/dgv,name:"keyword.control.start-block.ruby"},{match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.ruby.start-block"},{match:/(?<!\.)\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![\!\?])|\bdefined\?|\b(block_given|iterator)\?/dgv,name:"keyword.control.pseudo-method.ruby"},{match:/\bnil\b(?![\!\?])/dgv,name:"constant.language.nil.ruby"},{match:/\b(true|false)\b(?![\!\?])/dgv,name:"constant.language.boolean.ruby"},{match:/\b(__(FILE|LINE)__)\b(?![\!\?])/dgv,name:"variable.language.ruby"},{match:/\bself\b(?![\!\?])/dgv,name:"variable.language.self.ruby"},{match:/\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\b(?![\!\?])/dgv,name:"keyword.other.special-method.ruby"},{begin:/\b(?<!\.|::)(require(?:|_relative))\b(?![\!\?])/dgv,captures:{"1":{name:"keyword.other.special-method.ruby"}},end:/(?=\n?$)|(?=[\#\}])/dgv,name:"meta.require.ruby",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)([\!\&'\+\@\`]|\p{Nd}+|["\$\*\,\.\/\:-\?\\_\~]|-[0FIadilpv])/dgv,name:"variable.other.readwrite.global.pre-defined.ruby"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.ruby"}},end:/\]/dgv,name:"meta.environment-variable.ruby",patterns:[{include:"$self"}]},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(?=((\.|::)[A-Za-z]|\[))/dgv,name:"support.class.ruby"},{match:/\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|printf??|proc|putc|puts|rand|readlines??|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\b(?![\!\?])|autoload\?|exit!)/dgv,name:"support.function.kernel.ruby"},{match:/\b[A-Z_][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"variable.other.constant.ruby"},{begin:/(->)\(/dgv,beginCaptures:{"1":{name:"support.function.kernel.ruby"}},end:/\)/dgv,patterns:[{begin:/(?=[\&\*A-Z_a-z])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\6)?|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))\\p{space}*(\\()","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"},"3":{name:"punctuation.definition.parameters.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.ruby"}},name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*A-Z_a-z])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\6)?|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))[\\t ](?=[\\t ]*[^\\#\\;\\p{space}])","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"}},end:/(?=;)|(?<=[\]\!"'\)\?\`\}\p{L}\p{M}\p{N}\p{Pc}])(?=\p{space}*#|\p{space}*(?=\n?$))/dgv,name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*A-Z_a-z])/dgv,end:/(?=[\,\;]|\p{space}*#|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{captures:{"1":{name:"keyword.control.def.ruby"},"3":{name:"entity.name.function.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\b(\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\5)))\\4)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\7)?|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\6)))?","dgv",{"hiddenCaptures":[4,5,6,7]}),name:"meta.function.method.without-arguments.ruby"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b(\\p{Nd}(?:(?=(_?\\p{Nd}))\\2)*(\\.(?![^\\p{space}\\p{Nd}])(?:(?=(_?\\p{Nd}))\\4)*)?([Ee][\\-\\+]?\\p{Nd}(?:(?=(_?\\p{Nd}))\\6)*)?|0(?:[Xx]\\p{AHex}(?:(?=(_?\\p{AHex}))\\7)*|[Oo]?[0-7](?:(?=(_?[0-7]))\\8)*|[Bb][01](?:(?=(_?[01]))\\9)*|[Dd]\\p{Nd}(?:(?=(_?\\p{Nd}))\\10)*))\\b","dgv",{"hiddenCaptures":[2,4,6,7,8,9,10]}),name:"constant.numeric.ruby"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.ruby"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.ruby"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.ruby"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.single.ruby",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.ruby"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.double.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<!\.)`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?<![\\)\\p{L}\\p{M}\\p{N}\\p{Pc}])((/))(?![\\*\\+\\?])(?!\\p{space}*(?=\\n?$))(?=(?:(?=((?:\\\\/|[^\\/])*))\\3)/[eimnosux]*\\p{space}*(?:[\\]\\#\\)\\,\\.\\:\\?\\}]|\\|\\||&&|<=>|=>|==|=~|!~|!=|;|(?=\\n?$)|if|else|elsif|then|do|end|unless|while|until|or|and))","dgv",{"hiddenCaptures":[3]}),captures:{"1":{name:"string.regexp.interpolated.ruby"},"2":{name:"punctuation.section.regexp.ruby"}},contentName:"string.regexp.interpolated.ruby",end:/((\/[eimnosux]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\}[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\][eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\)[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/>[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\1[eimnosux]*()/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"}]},{begin:/%I\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%I\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%I</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%I\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%I([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%i\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%i\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%i</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%i\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%i([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[^\n]/dgv}]},{begin:/%W\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%W\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%W</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%W\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%W([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%w\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%w\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%w</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%w\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%w([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[^\n]/dgv}]},{begin:/%[Qx]?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%[Qx]?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%[Qx]?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%[Qx]?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%[Qx]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%([^\=\p{L}\p{M}\p{N}\p{Pc}\p{space}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%q\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%q</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%q\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%q\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%q([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[^\n]/dgv}]},{begin:/%s\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%s</dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%s\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%s\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%s([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([\\$A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?![\\=\\>])))\\3)?|===?|<=>|>[\\=\\>]?|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?|@@?[A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*))\\2)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.language.symbol.ruby"},{begin:/^=begin/dgv,captures:{"0":{name:"punctuation.definition.comment.ruby"}},end:/^=end/dgv,name:"comment.block.documentation.ruby"},{include:"#yard"},{begin:/(^[\t ]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ruby"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},end:/\n/dgv,name:"comment.line.number-sign.ruby"}]},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\?(\\(x\p{AHex}{1,2}(?!\p{AHex})\b|0[0-7]{0,2}(?![0-7])\b|[^0CMx])|(\\[CM]-)+[\p{L}\p{M}\p{N}\p{Pc}]|[^\\\p{space}])/dgv,name:"constant.numeric.ruby"},{begin:/^__END__\n/dgv,captures:{"0":{name:"string.unquoted.program-block.ruby"}},contentName:"text.plain",end:/(?=not)impossible/dgv,patterns:[{begin:/(?=<?xml|<[Hh][Tt][Mm][Ll]\b|!DOCTYPE [Hh][Tt][Mm][Ll]\b)/dgv,end:/(?=not)impossible/dgv,name:"text.html.embedded.ruby",patterns:[{include:"text.html.basic"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.html",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.html",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.html.basic"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.haml",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.haml",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.haml"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.xml",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.xml",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.xml"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.sql",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.sql",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.sql"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)G(?:RAPHQL|QL))\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.graphql",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)G(?:RAPHQL|QL))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.graphql",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.graphql"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.css",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.css",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.css"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.cpp",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.cpp",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.cpp"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.c",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.c",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.c"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)J(?:S|AVASCRIPT))\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.js",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)J(?:S|AVASCRIPT))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.js",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.js.jquery",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.js.jquery",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js.jquery"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SH(?:|ELL))\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.shell",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SH(?:|ELL))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.shell",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.shell"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.lua",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.lua",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.lua"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.ruby",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.ruby",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.ruby"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)YA?ML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.yaml",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)YA?ML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.yaml",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.yaml"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.block.slim",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.slim",end:/^\p{space}*\2(?=\n?$)\n?()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.slim"},{include:"#escaped_char"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(=\\p{space}*<<([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"string.unquoted.heredoc.ruby",end:/^\2(?=\n?$)()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(((<<[\\-\\~]?([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\4,\\p{space}?)*<<[\\-\\~]?([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\6)))\\1)([^\\n]*)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"string.definition.begin.ruby"},"7":{patterns:[{include:"source.ruby"}]}},contentName:"string.unquoted.heredoc.ruby",end:/^\p{space}*\6(?=\n?$)()()()()()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<=\{|\{\p{space}+|[^\$0-\:\@-Z_a-z]do|^do|[^\$0-\:\@-Z_a-z]do\p{space}+|^do\p{space}+)(\|)/dgv,captures:{"1":{name:"punctuation.separator.variable.ruby"}},end:/(?<!\|)(\|)(?!\|)/dgv,name:"meta.block.parameters.ruby",patterns:[{begin:/(?![\(\,\|\p{space}])/dgv,end:/(?=,|\|\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"variable.other.block.ruby"}},match:/((?:&|\*\*?)?)([A-Z_a-z][_\p{L}\p{M}\p{N}\p{Pc}]*)/dgvy}]},{match:/,/dgv,name:"punctuation.separator.variable.ruby"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.ruby"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.ruby"},{match:/<=>|<(?![\<\=])|>(?![\<\=\>])|<=|>=|===?|=~|!=|!~|(?<=[\t ])\?/dgv,name:"keyword.operator.comparison.ruby"},{match:/(?<!\.)\b(and|not|or)\b(?![\!\?])/dgv,name:"keyword.operator.logical.ruby"},{match:/(?<=^|[\t \!])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.ruby"},{captures:{"1":{name:"keyword.operator.logical.ruby"}},match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/([\%\&]|\*\*|[\-\*\+\/])/dgv,name:"keyword.operator.arithmetic.ruby"},{match:/=/dgv,name:"keyword.operator.assignment.ruby"},{match:/[\|\~]|>>/dgv,name:"keyword.operator.other.ruby"},{match:/;/dgv,name:"punctuation.separator.statement.ruby"},{match:/,/dgv,name:"punctuation.separator.object.ruby"},{captures:{"1":{name:"punctuation.separator.namespace.ruby"}},match:/(::)\p{space}*(?=[A-Z])/dgv},{captures:{"1":{name:"punctuation.separator.method.ruby"}},match:/(\.|::)\p{space}*(?![A-Z])/dgv},{match:/:/dgv,name:"punctuation.separator.other.ruby"},{match:/\{/dgv,name:"punctuation.section.scope.begin.ruby"},{match:/\}/dgv,name:"punctuation.section.scope.end.ruby"},{match:/\[/dgv,name:"punctuation.section.array.begin.ruby"},{match:/\]/dgv,name:"punctuation.section.array.end.ruby"},{match:/[\(\)]/dgv,name:"punctuation.section.function.ruby"},{begin:/(?<=[^\.]\.|::)(?=[A-Za-z][\!0-9\?A-Z_a-z]*[^\!0-9\?A-Z_a-z])/dgv,end:/(?<=[\!0-9\?A-Z_a-z])(?=[^\!0-9\?A-Z_a-z])/dgv,name:"meta.function-call.ruby",patterns:[{match:/([A-Za-z][\!0-9\?A-Z_a-z]*)(?=[^\!0-9\?A-Z_a-z])/dgv,name:"entity.name.function.ruby"}]},{begin:/([A-Za-z][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ruby"},"2":{name:"punctuation.section.function.ruby"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.ruby"}},name:"meta.function-call.ruby",patterns:[{include:"$self"}]}],repository:{escaped_char:{match:/\\(?:[0-7]{1,3}|x[A-Fa-f\p{Nd}]{1,2}|[^\n])/dgv,name:"constant.character.escape.ruby"},heredoc:{begin:/^<<[\-\~]?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=\n?$)/dgv,patterns:[{include:"$self"}]},interpolated_ruby:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.ruby"}},contentName:"source.ruby",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.ruby"}},name:"meta.embedded.line.ruby",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#\$)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"}]},method_parameters:{patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"#params"},{include:"$self"}],repository:{braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},brackets:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},params:{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{name:"punctuation.definition.constant.ruby"},"4":{name:"variable.parameter.function.ruby"}},match:/(&|\*\*?)?(?:([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?(:))|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.function.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]}}},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.ruby"},"3":{name:"punctuation.definition.arbitrary-repetition.ruby"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.ruby"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.ruby"}},end:/\]/dgv,name:"string.regexp.character-class.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(\?#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.ruby"}},name:"comment.line.number-sign.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.ruby"}},end:/\)/dgv,name:"string.regexp.group.ruby",patterns:[{include:"#regex_sub"}]},{begin:/(?<=^|\p{space})(#)\p{space}(?=[\-\t \!\,\.0-9\?A-Za-z[^\x00-\x7F]]*(?=\n?$))/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.ruby"}},end:/(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},name:"comment.line.number-sign.ruby"}]},yard:{patterns:[{include:"#yard_comment"},{include:"#yard_param_types"},{include:"#yard_option"},{include:"#yard_tag"},{include:"#yard_types"},{include:"#yard_directive"},{include:"#yard_see"},{include:"#yard_macro_attribute"}]},yard_comment:{begin:/^(\p{space}*)(#)(\p{space}*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\p{space}|(?=\n?$))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_continuation:{match:/^\p{space}*#/dgv,name:"punctuation.definition.comment.ruby"},yard_directive:{begin:/^(\p{space}*)(#)(\p{space}*)(@!)(endgroup|group|method|parse|scope|visibility)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_macro_attribute:{begin:/^(\p{space}*)(#)(\p{space}*)(@!)(attribute|macro)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})(\p{space}+([_a-z][\p{L}\p{M}\p{N}\p{Pc}]*:?))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"11":{name:"comment.line.parameter.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_option:{begin:/*@__PURE__*/ new EmulatedRegExp("^(\\p{space}*)(#)(\\p{space}*)(@)(option)(?=\\p{space})(?:(?=(\\p{space}+([_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\6)?(?:(?=(\\p{space}+((\\[)[^\\n]+(\\]))))\\8)?(?:(?=(\\p{space}+((\\P{space}*))))\\12)?(?:(?=(\\p{space}+((\\()[^\\n]+(\\)))))\\15)?","dgv",{"hiddenCaptures":[6,8,12,15]}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.keyword.yard.ruby"},"11":{name:"comment.line.hashkey.yard.ruby"},"12":{name:"comment.line.defaultvalue.yard.ruby"},"13":{name:"comment.line.punctuation.yard.ruby"},"14":{name:"comment.line.punctuation.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_param_types:{begin:/*@__PURE__*/ new EmulatedRegExp("^(\\p{space}*)(#)(\\p{space}*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\p{space})(?:(?=(\\p{space}+(?:(?=(([_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)|((\\[)[^\\n]+(\\]))))\\7)))\\6)?(?:(?=(\\p{space}+(?:(?=(((\\[)[^\\n]+(\\]))|([_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\13)))\\12)?","dgv",{"hiddenCaptures":[6,7,12,13]}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.type.yard.ruby"},"11":{name:"comment.line.punctuation.yard.ruby"},"12":{name:"comment.line.punctuation.yard.ruby"},"13":{name:"comment.line.parameter.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_see:{begin:/^(\p{space}*)(#)(\p{space}*)(@)(see)(?=\p{space})(\p{space}+([^\n]+?))?(?=\p{space}|(?=\n?$))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.parameter.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_tag:{captures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},match:/^(\p{space}*)(#)(\p{space}*)(@)(private)(?=\n?$)/dgv,name:"comment.line.number-sign.ruby"},yard_types:{begin:/^(\p{space}*)(#)(\p{space}*)(@)(raise|return|yield(?:return)?)(?=\p{space})(\p{space}+((\[)[^\n]+(\])))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]}},scopeName:"source.ruby",embeddedLangs:["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],aliases:["rb"]})
|
|
15
|
+
const lang = Object.freeze({displayName:"Ruby",name:"ruby",patterns:[{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"entity.name.type.class.ruby"},"5":{name:"punctuation.separator.namespace.ruby"},"7":{name:"punctuation.separator.inheritance.ruby"},"8":{name:"entity.other.inherited-class.ruby"},"11":{name:"punctuation.separator.namespace.ruby"}},match:/\b(class)\p{space}+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)\p{space}*((<)\p{space}*(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*))?/dgv,name:"meta.class.ruby"},{captures:{"1":{name:"keyword.control.module.ruby"},"2":{name:"entity.name.type.module.ruby"},"5":{name:"punctuation.separator.namespace.ruby"}},match:/\b(module)\p{space}+(([0-9A-Z_a-z]+)((::)[0-9A-Z_a-z]+)*)/dgv,name:"meta.module.ruby"},{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"punctuation.separator.inheritance.ruby"}},match:/\b(class)\p{space}*(<<)\p{space}*/dgv,name:"meta.class.ruby"},{match:/(?<!\.)\belse(\p{space})+if\b/dgv,name:"invalid.deprecated.ruby"},{captures:{"1":{name:"variable.ruby"},"2":{name:"keyword.operator.assignment.augmented.ruby"}},match:/^\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"4":{name:"keyword.operator.assignment.augmented.ruby"}},match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"variable.ruby"},"2":{name:"keyword.operator.assignment.augmented.ruby"}},match:/^\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*(([\-\%\*\+\/]|\*\*|[\&\^\|]|<<|>>)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"4":{name:"keyword.operator.assignment.augmented.ruby"}},match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*(([\-\%\*\+\/]|\*\*|[\&\^\|]|<<|>>)=)/dgv},{captures:{"1":{name:"variable.ruby"}},match:/^\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*(?==[^\=\>])/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"}},match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([_a-z][0-9A-Z_a-z]*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"punctuation.definition.constant.hashkey.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*[\\!\\?]?))\\1)(:)(?!:)","dgv",{"hiddenCaptures":[1]}),name:"constant.language.symbol.hashkey.ruby"},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*[\\!\\?]?))\\2)(?=\\p{space}*=>)","dgv",{"hiddenCaptures":[2]}),name:"constant.language.symbol.hashkey.ruby"},{match:/(?<!\.)\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![\!\?])/dgv,name:"keyword.control.ruby"},{match:/(?<!\.)\bdo\b/dgv,name:"keyword.control.start-block.ruby"},{match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.ruby.start-block"},{match:/(?<!\.)\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![\!\?])|\bdefined\?|\b(block_given|iterator)\?/dgv,name:"keyword.control.pseudo-method.ruby"},{match:/\bnil\b(?![\!\?])/dgv,name:"constant.language.nil.ruby"},{match:/\b(true|false)\b(?![\!\?])/dgv,name:"constant.language.boolean.ruby"},{match:/\b(__(FILE|LINE)__)\b(?![\!\?])/dgv,name:"variable.language.ruby"},{match:/\bself\b(?![\!\?])/dgv,name:"variable.language.self.ruby"},{match:/\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\b(?![\!\?])/dgv,name:"keyword.other.special-method.ruby"},{begin:/\b(?<!\.|::)(require(?:|_relative))\b(?![\!\?])/dgv,captures:{"1":{name:"keyword.other.special-method.ruby"}},end:/(?=\n?$)|(?=[\#\}])/dgv,name:"meta.require.ruby",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)([\!\&'\+\@\`]|\p{Nd}+|["\$\*\,\.\/\:-\?\\_\~]|-[0FIadilpv])/dgv,name:"variable.other.readwrite.global.pre-defined.ruby"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.ruby"}},end:/\]/dgv,name:"meta.environment-variable.ruby",patterns:[{include:"$self"}]},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(?=((\.|::)[A-Za-z]|\[))/dgv,name:"support.class.ruby"},{match:/\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|printf??|proc|putc|puts|rand|readlines??|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\b(?![\!\?])|autoload\?|exit!)/dgv,name:"support.function.kernel.ruby"},{match:/\b[A-Z_][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"variable.other.constant.ruby"},{begin:/(->)\(/dgv,beginCaptures:{"1":{name:"support.function.kernel.ruby"}},end:/\)/dgv,patterns:[{begin:/(?=[\&\*A-Z_a-z])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\6)?|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))\\p{space}*(\\()","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"},"3":{name:"punctuation.definition.parameters.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.ruby"}},name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*A-Z_a-z])/dgv,end:/(?=[\)\,])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\4)))\\3)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\6)?|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))[\\t ](?=[\\t ]*[^\\#\\;\\p{space}])","dgv",{"hiddenCaptures":[3,4,5,6]}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"}},end:/(?=;)|(?<=[\]\!"'\)\?\`\}\p{L}\p{M}\p{N}\p{Pc}])(?=\p{space}*#|\p{space}*(?=\n?$))/dgv,name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*A-Z_a-z])/dgv,end:/(?=[\,\;]|\p{space}*#|\p{space}*(?=\n?$))/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{captures:{"1":{name:"keyword.control.def.ruby"},"3":{name:"entity.name.function.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?=def\\b)(?<=^|\\p{space})(def)\\b(\\p{space}+((?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=(\\.|::))\\5)))\\4)?(?:(?=([A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?!>)))\\7)?|===?|!=|>[\\=\\>]?|<=>|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\6)))?","dgv",{"hiddenCaptures":[4,5,6,7]}),name:"meta.function.method.without-arguments.ruby"},{match:/*@__PURE__*/ new EmulatedRegExp("\\b(\\p{Nd}(?:(?=(_?\\p{Nd}))\\2)*(\\.(?![^\\p{space}\\p{Nd}])(?:(?=(_?\\p{Nd}))\\4)*)?([Ee][\\-\\+]?\\p{Nd}(?:(?=(_?\\p{Nd}))\\6)*)?|0(?:[Xx]\\p{AHex}(?:(?=(_?\\p{AHex}))\\7)*|[Oo]?[0-7](?:(?=(_?[0-7]))\\8)*|[Bb][01](?:(?=(_?[01]))\\9)*|[Dd]\\p{Nd}(?:(?=(_?\\p{Nd}))\\10)*))\\b","dgv",{"hiddenCaptures":[2,4,6,7,8,9,10]}),name:"constant.numeric.ruby"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.ruby"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.ruby"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.ruby"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.single.ruby",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.ruby"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.double.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<!\.)`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?<![\\)\\p{L}\\p{M}\\p{N}\\p{Pc}])((/))(?![\\*\\+\\?])(?!\\p{space}*(?=\\n?$))(?=(?:(?=((?:\\\\/|[^\\/])*))\\3)/[eimnosux]*\\p{space}*(?:[\\]\\#\\)\\,\\.\\:\\?\\}]|\\|\\||&&|<=>|=>|==|=~|!~|!=|;|(?=\\n?$)|if|else|elsif|then|do|end|unless|while|until|or|and))","dgv",{"hiddenCaptures":[3]}),captures:{"1":{name:"string.regexp.interpolated.ruby"},"2":{name:"punctuation.section.regexp.ruby"}},contentName:"string.regexp.interpolated.ruby",end:/((\/[eimnosux]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\}[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\][eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\)[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/>[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\1[eimnosux]*()/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"}]},{begin:/%I\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%I\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%I</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%I\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%I([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%i\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%i\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%i</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%i\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%i([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[^\n]/dgv}]},{begin:/%W\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%W\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%W</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%W\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%W([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%w\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%w\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%w</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%w\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%w([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[^\n]/dgv}]},{begin:/%[Qx]?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%[Qx]?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%[Qx]?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%[Qx]?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%[Qx]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%([^\=\p{L}\p{M}\p{N}\p{Pc}\p{space}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%q\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%q</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%q\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%q\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%q([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\[^\n]/dgv}]},{begin:/%s\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\)\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%s</dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\>\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%s\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\]\\]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%s\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[\\\}]/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%s([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<!:)(:)(?:(?=([\\$A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=([\\!\\?]|=(?![\\=\\>])))\\3)?|===?|<=>|>[\\=\\>]?|<[\\<\\=]?|[\\%\\&\\/\\`\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?|@@?[A-Z_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*))\\2)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.language.symbol.ruby"},{begin:/^=begin/dgv,captures:{"0":{name:"punctuation.definition.comment.ruby"}},end:/^=end/dgv,name:"comment.block.documentation.ruby"},{include:"#yard"},{begin:/(^[\t ]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ruby"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},end:/\n/dgv,name:"comment.line.number-sign.ruby"}]},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\?(\\(x\p{AHex}{1,2}(?!\p{AHex})\b|0[0-7]{0,2}(?![0-7])\b|[^0CMx])|(\\[CM]-)+[\p{L}\p{M}\p{N}\p{Pc}]|[^\\\p{space}])/dgv,name:"constant.numeric.ruby"},{begin:/^__END__\n/dgv,captures:{"0":{name:"string.unquoted.program-block.ruby"}},contentName:"text.plain",end:/(?=not)impossible/dgv,patterns:[{begin:/(?=<?xml|<[Hh][Tt][Mm][Ll]\b|!DOCTYPE [Hh][Tt][Mm][Ll]\b)/dgv,end:/(?=not)impossible/dgv,name:"text.html.embedded.ruby",patterns:[{include:"text.html.basic"}]}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)HTML)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.html",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.html",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.html.basic"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)HTML)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)HAML)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.haml",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.haml",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.haml"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)HAML)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)XML)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.xml",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.xml",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.xml"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)XML)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)SQL)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.sql",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.sql",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.sql"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)SQL)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)G(?:RAPHQL|QL))\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)G(?:RAPHQL|QL))(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.graphql",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)G(?:RAPHQL|QL))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.graphql",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.graphql"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)G(?:RAPHQL|QL))\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)CSS)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.css",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.css",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.css"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)CSS)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)CPP)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.cpp",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.cpp",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.cpp"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)CPP)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)C)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.c",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.c",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.c"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)C)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)J(?:S|AVASCRIPT))\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)J(?:S|AVASCRIPT))(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.js",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)J(?:S|AVASCRIPT))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.js",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)J(?:S|AVASCRIPT))\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)JQUERY)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.js.jquery",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.js.jquery",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js.jquery"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)JQUERY)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SH(?:|ELL))\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)SH(?:|ELL))(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.shell",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SH(?:|ELL))\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.shell",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.shell"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)SH(?:|ELL))\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)LUA)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.lua",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.lua",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.lua"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)LUA)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)RUBY)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.ruby",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.ruby"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)RUBY)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)YA?ML)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)YA?ML)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.yaml",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)YA?ML)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"source.yaml",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.yaml"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)YA?ML)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1))","dgv",{"hiddenCaptures":[1]}),end:/^\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)SLIM)(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},name:"meta.embedded.block.slim",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(<<[\\-\\~]?([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"text.slim",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.slim"},{include:"#escaped_char"}],while:/^(?!\p{space}*((?:[_\p{L}\p{M}\p{N}\p{Pc}]+_|)SLIM)\p{space}*(?=\n?$))/dgv}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(=\\p{space}*<<([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\2))\\1)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"0":{name:"string.definition.begin.ruby"}},contentName:"string.unquoted.heredoc.ruby",end:/^\2(?=\n?$)()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(((<<[\\-\\~]?([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\4,\\p{space}?)*<<[\\-\\~]?([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\6)))\\1)([^\\n]*)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"string.definition.begin.ruby"},"7":{patterns:[{include:"source.ruby"}]}},contentName:"string.unquoted.heredoc.ruby",end:/^\p{space}*\6(?=\n?$)()()()()()()/dgv,endCaptures:{"0":{name:"string.definition.end.ruby"}},patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<=\{|\{\p{space}+|[^\$0-\:\@-Z_a-z]do|^do|[^\$0-\:\@-Z_a-z]do\p{space}+|^do\p{space}+)(\|)/dgv,captures:{"1":{name:"punctuation.separator.variable.ruby"}},end:/(?<!\|)(\|)(?!\|)/dgv,name:"meta.block.parameters.ruby",patterns:[{begin:/(?![\(\,\|\p{space}])/dgv,end:/(?=,|\|\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"variable.other.block.ruby"}},match:/((?:&|\*\*?)?)([A-Z_a-z][_\p{L}\p{M}\p{N}\p{Pc}]*)/dgvy}]},{match:/,/dgv,name:"punctuation.separator.variable.ruby"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.ruby"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.ruby"},{match:/<=>|<(?![\<\=])|>(?![\<\=\>])|<=|>=|===?|=~|!=|!~|(?<=[\t ])\?/dgv,name:"keyword.operator.comparison.ruby"},{match:/(?<!\.)\b(and|not|or)\b(?![\!\?])/dgv,name:"keyword.operator.logical.ruby"},{match:/(?<=^|[\t \!])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.ruby"},{captures:{"1":{name:"keyword.operator.logical.ruby"}},match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/([\%\&]|\*\*|[\-\*\+\/])/dgv,name:"keyword.operator.arithmetic.ruby"},{match:/=/dgv,name:"keyword.operator.assignment.ruby"},{match:/[\|\~]|>>/dgv,name:"keyword.operator.other.ruby"},{match:/;/dgv,name:"punctuation.separator.statement.ruby"},{match:/,/dgv,name:"punctuation.separator.object.ruby"},{captures:{"1":{name:"punctuation.separator.namespace.ruby"}},match:/(::)\p{space}*(?=[A-Z])/dgv},{captures:{"1":{name:"punctuation.separator.method.ruby"}},match:/(\.|::)\p{space}*(?![A-Z])/dgv},{match:/:/dgv,name:"punctuation.separator.other.ruby"},{match:/\{/dgv,name:"punctuation.section.scope.begin.ruby"},{match:/\}/dgv,name:"punctuation.section.scope.end.ruby"},{match:/\[/dgv,name:"punctuation.section.array.begin.ruby"},{match:/\]/dgv,name:"punctuation.section.array.end.ruby"},{match:/[\(\)]/dgv,name:"punctuation.section.function.ruby"},{begin:/(?<=[^\.]\.|::)(?=[A-Za-z][\!0-9\?A-Z_a-z]*[^\!0-9\?A-Z_a-z])/dgv,end:/(?<=[\!0-9\?A-Z_a-z])(?=[^\!0-9\?A-Z_a-z])/dgv,name:"meta.function-call.ruby",patterns:[{match:/([A-Za-z][\!0-9\?A-Z_a-z]*)(?=[^\!0-9\?A-Z_a-z])/dgv,name:"entity.name.function.ruby"}]},{begin:/([A-Za-z][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ruby"},"2":{name:"punctuation.section.function.ruby"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.ruby"}},name:"meta.function-call.ruby",patterns:[{include:"$self"}]}],repository:{escaped_char:{match:/\\(?:[0-7]{1,3}|x[A-Fa-f\p{Nd}]{1,2}|[^\n])/dgv,name:"constant.character.escape.ruby"},heredoc:{begin:/^<<[\-\~]?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=\n?$)/dgv,patterns:[{include:"$self"}]},interpolated_ruby:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.ruby"}},contentName:"source.ruby",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.ruby"}},name:"meta.embedded.line.ruby",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@@)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#\$)[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"}]},method_parameters:{patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"#params"},{include:"$self"}],repository:{braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},brackets:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},params:{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{name:"punctuation.definition.constant.ruby"},"4":{name:"variable.parameter.function.ruby"}},match:/(&|\*\*?)?(?:([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?(:))|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.function.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]}}},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.ruby"},"3":{name:"punctuation.definition.arbitrary-repetition.ruby"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.ruby"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.ruby"}},end:/\]/dgv,name:"string.regexp.character-class.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(\?#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.ruby"}},name:"comment.line.number-sign.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.ruby"}},end:/\)/dgv,name:"string.regexp.group.ruby",patterns:[{include:"#regex_sub"}]},{begin:/(?<=^|\p{space})(#)\p{space}(?=[\-\t \!\,\.0-9\?A-Za-z[^\x00-\x7F]]*(?=\n?$))/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.ruby"}},end:/(?=\n?$)\n?/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},name:"comment.line.number-sign.ruby"}]},yard:{patterns:[{include:"#yard_comment"},{include:"#yard_param_types"},{include:"#yard_option"},{include:"#yard_tag"},{include:"#yard_types"},{include:"#yard_directive"},{include:"#yard_see"},{include:"#yard_macro_attribute"}]},yard_comment:{begin:/^(\p{space}*)(#)(\p{space}*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\p{space}|(?=\n?$))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_continuation:{match:/^\p{space}*#/dgv,name:"punctuation.definition.comment.ruby"},yard_directive:{begin:/^(\p{space}*)(#)(\p{space}*)(@!)(endgroup|group|method|parse|scope|visibility)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_macro_attribute:{begin:/^(\p{space}*)(#)(\p{space}*)(@!)(attribute|macro)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})(\p{space}+([_a-z][\p{L}\p{M}\p{N}\p{Pc}]*:?))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"11":{name:"comment.line.parameter.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_option:{begin:/*@__PURE__*/ new EmulatedRegExp("^(\\p{space}*)(#)(\\p{space}*)(@)(option)(?=\\p{space})(?:(?=(\\p{space}+([_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\6)?(?:(?=(\\p{space}+((\\[)[^\\n]+(\\]))))\\8)?(?:(?=(\\p{space}+((\\P{space}*))))\\12)?(?:(?=(\\p{space}+((\\()[^\\n]+(\\)))))\\15)?","dgv",{"hiddenCaptures":[6,8,12,15]}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.keyword.yard.ruby"},"11":{name:"comment.line.hashkey.yard.ruby"},"12":{name:"comment.line.defaultvalue.yard.ruby"},"13":{name:"comment.line.punctuation.yard.ruby"},"14":{name:"comment.line.punctuation.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_param_types:{begin:/*@__PURE__*/ new EmulatedRegExp("^(\\p{space}*)(#)(\\p{space}*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\p{space})(?:(?=(\\p{space}+(?:(?=(([_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)|((\\[)[^\\n]+(\\]))))\\7)))\\6)?(?:(?=(\\p{space}+(?:(?=(((\\[)[^\\n]+(\\]))|([_a-z][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\13)))\\12)?","dgv",{"hiddenCaptures":[6,7,12,13]}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.type.yard.ruby"},"11":{name:"comment.line.punctuation.yard.ruby"},"12":{name:"comment.line.punctuation.yard.ruby"},"13":{name:"comment.line.parameter.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_see:{begin:/^(\p{space}*)(#)(\p{space}*)(@)(see)(?=\p{space})(\p{space}+([^\n]+?))?(?=\p{space}|(?=\n?$))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.parameter.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_tag:{captures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},match:/^(\p{space}*)(#)(\p{space}*)(@)(private)(?=\n?$)/dgv,name:"comment.line.number-sign.ruby"},yard_types:{begin:/^(\p{space}*)(#)(\p{space}*)(@)(raise|return|yield(?:return)?)(?=\p{space})(\p{space}+((\[)[^\n]+(\])))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},contentName:"comment.line.string.yard.ruby",end:/^(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=\n?$))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]}},scopeName:"source.ruby",embeddedLangs:["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],aliases:["rb"]})
|
|
16
16
|
|
|
17
17
|
export default [
|
|
18
18
|
...html,
|
package/dist/typespec.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"TypeSpec",fileTypes:["tsp"],name:"typespec",patterns:[{include:"#statement"}],repository:{"alias-id":{begin:/(=)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.operator.assignment.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.alias-id.typespec",patterns:[{include:"#expression"}]},"alias-statement":{begin:/\b(alias)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.type.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.alias-statement.typespec",patterns:[{include:"#alias-id"},{include:"#type-parameters"}]},"augment-decorator-statement":{begin:/((@@)\b[\$_\p{Alpha}](?:[\$_\p{Alpha}\p{Nd}]|\.[\$_\p{Alpha}])*)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.tsp"},"2":{name:"entity.name.tag.tsp"}},end:/(?=([\$_\`\p{Alpha}]))|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.augment-decorator-statement.typespec",patterns:[{include:"#token"},{include:"#parenthesized-expression"}]},"block-comment":{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.tsp"},"boolean-literal":{match:/\b(true|false)\b/dgv,name:"constant.language.tsp"},callExpression:{begin:/\b([\$_\p{Alpha}](?:[\$_\p{Alpha}\p{Nd}]|\.[\$_\p{Alpha}])*)\b\p{space}*(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.tsp"},"2":{name:"punctuation.parenthesis.open.tsp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.tsp"}},name:"meta.callExpression.typespec",patterns:[{include:"#token"},{include:"#expression"},{include:"#punctuation-comma"}]},"const-statement":{begin:/\b(const)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"variable.name.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.const-statement.typespec",patterns:[{include:"#type-annotation"},{include:"#operator-assignment"},{include:"#expression"}]},decorator:{begin:/((@)\b[\$_\p{Alpha}](?:[\$_\p{Alpha}\p{Nd}]|\.[\$_\p{Alpha}])*)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.tsp"},"2":{name:"entity.name.tag.tsp"}},end:/(?=([\$_\`\p{Alpha}]))|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.decorator.typespec",patterns:[{include:"#token"},{include:"#parenthesized-expression"}]},"decorator-declaration-statement":{begin:/(?:(extern)\p{space}+)?\b(dec)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.decorator-declaration-statement.typespec",patterns:[{include:"#token"},{include:"#operation-parameters"}]},directive:{begin:/\p{space}*(#)\b([\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*)\b/dgv,beginCaptures:{"1":{name:"keyword.directive.name.tsp"},"2":{name:"keyword.directive.name.tsp"}},end:/(?=\n?$)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.directive.typespec",patterns:[{include:"#string-literal"},{include:"#identifier-expression"}]},"doc-comment":{begin:/\/\*\*/dgv,beginCaptures:{"0":{name:"comment.block.tsp"}},end:/\*\//dgv,endCaptures:{"0":{name:"comment.block.tsp"}},name:"comment.block.tsp",patterns:[{include:"#doc-comment-block"}]},"doc-comment-block":{patterns:[{include:"#doc-comment-param"},{include:"#doc-comment-return-tag"},{include:"#doc-comment-unknown-tag"}]},"doc-comment-param":{captures:{"1":{name:"keyword.tag.tspdoc"},"2":{name:"keyword.tag.tspdoc"},"3":{name:"variable.name.tsp"}},match:/((@)(?:param|template|prop))\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\b/dgv,name:"comment.block.tsp"},"doc-comment-return-tag":{captures:{"1":{name:"keyword.tag.tspdoc"},"2":{name:"keyword.tag.tspdoc"}},match:/((@)returns)\b/dgv,name:"comment.block.tsp"},"doc-comment-unknown-tag":{captures:{"1":{name:"entity.name.tag.tsp"},"2":{name:"entity.name.tag.tsp"}},match:/((@)(?:\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`))\b/dgv,name:"comment.block.tsp"},"enum-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.enum-body.typespec",patterns:[{include:"#enum-member"},{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#punctuation-comma"}]},"enum-member":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(:?)/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.enum-member.typespec",patterns:[{include:"#token"},{include:"#type-annotation"}]},"enum-statement":{begin:/\b(enum)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.type.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.enum-statement.typespec",patterns:[{include:"#token"},{include:"#enum-body"}]},"escape-character":{match:/\\[^\n]/dgv,name:"constant.character.escape.tsp"},expression:{patterns:[{include:"#token"},{include:"#directive"},{include:"#parenthesized-expression"},{include:"#valueof"},{include:"#typeof"},{include:"#type-arguments"},{include:"#object-literal"},{include:"#tuple-literal"},{include:"#tuple-expression"},{include:"#model-expression"},{include:"#callExpression"},{include:"#identifier-expression"}]},"function-declaration-statement":{begin:/(?:(extern)\p{space}+)?\b(fn)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.function-declaration-statement.typespec",patterns:[{include:"#token"},{include:"#operation-parameters"},{include:"#type-annotation"}]},"identifier-expression":{match:/\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`/dgv,name:"entity.name.type.tsp"},"import-statement":{begin:/\b(import)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.import-statement.typespec",patterns:[{include:"#token"}]},"interface-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.interface-body.typespec",patterns:[{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#interface-member"},{include:"#punctuation-semicolon"}]},"interface-heritage":{begin:/\b(extends)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/((?=\{)|(?=[\)\;\@\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.interface-heritage.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"interface-member":{begin:/(?:\b(op)\b\p{space}+)?(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.interface-member.typespec",patterns:[{include:"#token"},{include:"#operation-signature"}]},"interface-statement":{begin:/\b(interface)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.interface-statement.typespec",patterns:[{include:"#token"},{include:"#type-parameters"},{include:"#interface-heritage"},{include:"#interface-body"},{include:"#expression"}]},"line-comment":{match:/\/\/[^\n]*(?=\n?$)/dgv,name:"comment.line.double-slash.tsp"},"model-expression":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.model-expression.typespec",patterns:[{include:"#model-property"},{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#spread-operator"},{include:"#punctuation-semicolon"}]},"model-heritage":{begin:/\b(extends|is)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/((?=\{)|(?=[\)\;\@\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.model-heritage.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"model-property":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)|("(?:[^"\\]|\\[^\n])*")/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"string.quoted.double.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.model-property.typespec",patterns:[{include:"#token"},{include:"#type-annotation"},{include:"#operator-assignment"},{include:"#expression"}]},"model-statement":{begin:/\b(model)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.model-statement.typespec",patterns:[{include:"#token"},{include:"#type-parameters"},{include:"#model-heritage"},{include:"#expression"}]},"namespace-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.namespace-body.typespec",patterns:[{include:"#statement"}]},"namespace-name":{begin:/(?=([\$_\`\p{Alpha}]))/dgv,end:/((?=\{)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.namespace-name.typespec",patterns:[{include:"#identifier-expression"},{include:"#punctuation-accessor"}]},"namespace-statement":{begin:/\b(namespace)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/((?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.namespace-statement.typespec",patterns:[{include:"#token"},{include:"#namespace-name"},{include:"#namespace-body"}]},"numeric-literal":{match:/\b(?<!\$)0[Xx]\p{AHex}[_\p{AHex}]*(n)?\b(?!\$)|\b(?<!\$)0[Bb][01][01_]*(n)?\b(?!\$)|(?<!\$)(?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(\.)[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\B(\.)[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(\.)(n)?\B|\B(\.)[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(n)?\b(?!\.))(?!\$)/dgv,name:"constant.numeric.tsp"},"object-literal":{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.hashcurlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.object-literal.typespec",patterns:[{include:"#token"},{include:"#object-literal-property"},{include:"#directive"},{include:"#spread-operator"},{include:"#punctuation-comma"}]},"object-literal-property":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.object-literal-property.typespec",patterns:[{include:"#token"},{include:"#expression"}]},"operation-heritage":{begin:/\b(is)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.operation-heritage.typespec",patterns:[{include:"#expression"}]},"operation-parameters":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.tsp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.tsp"}},name:"meta.operation-parameters.typespec",patterns:[{include:"#token"},{include:"#decorator"},{include:"#model-property"},{include:"#spread-operator"},{include:"#punctuation-comma"}]},"operation-signature":{patterns:[{include:"#type-parameters"},{include:"#operation-heritage"},{include:"#operation-parameters"},{include:"#type-annotation"}]},"operation-statement":{begin:/\b(op)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.operation-statement.typespec",patterns:[{include:"#token"},{include:"#operation-signature"}]},"operator-assignment":{match:/=/dgv,name:"keyword.operator.assignment.tsp"},"parenthesized-expression":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.tsp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.tsp"}},name:"meta.parenthesized-expression.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"punctuation-accessor":{match:/\./dgv,name:"punctuation.accessor.tsp"},"punctuation-comma":{match:/,/dgv,name:"punctuation.comma.tsp"},"punctuation-semicolon":{match:/;/dgv,name:"punctuation.terminator.statement.tsp"},"scalar-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.scalar-body.typespec",patterns:[{include:"#token"},{include:"#directive"},{include:"#scalar-constructor"},{include:"#punctuation-semicolon"}]},"scalar-constructor":{begin:/\b(init)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.scalar-constructor.typespec",patterns:[{include:"#token"},{include:"#operation-parameters"}]},"scalar-extends":{begin:/\b(extends)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\)\;\@\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.scalar-extends.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"scalar-statement":{begin:/\b(scalar)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.type.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.scalar-statement.typespec",patterns:[{include:"#token"},{include:"#type-parameters"},{include:"#scalar-extends"},{include:"#scalar-body"}]},"spread-operator":{begin:/\.\.\./dgv,beginCaptures:{"0":{name:"keyword.operator.spread.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.spread-operator.typespec",patterns:[{include:"#expression"}]},statement:{patterns:[{include:"#token"},{include:"#directive"},{include:"#augment-decorator-statement"},{include:"#decorator"},{include:"#model-statement"},{include:"#scalar-statement"},{include:"#union-statement"},{include:"#interface-statement"},{include:"#enum-statement"},{include:"#alias-statement"},{include:"#const-statement"},{include:"#namespace-statement"},{include:"#operation-statement"},{include:"#import-statement"},{include:"#using-statement"},{include:"#decorator-declaration-statement"},{include:"#function-declaration-statement"},{include:"#punctuation-semicolon"}]},"string-literal":{begin:/"/dgv,end:/"|(?=\n?$)/dgv,name:"string.quoted.double.tsp",patterns:[{include:"#template-expression"},{include:"#escape-character"}]},"template-expression":{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.tsp"}},name:"meta.template-expression.typespec",patterns:[{include:"#expression"}]},token:{patterns:[{include:"#doc-comment"},{include:"#line-comment"},{include:"#block-comment"},{include:"#triple-quoted-string-literal"},{include:"#string-literal"},{include:"#boolean-literal"},{include:"#numeric-literal"}]},"triple-quoted-string-literal":{begin:/"""/dgv,end:/"""/dgv,name:"string.quoted.triple.tsp",patterns:[{include:"#template-expression"},{include:"#escape-character"}]},"tuple-expression":{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.squarebracket.open.tsp"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.squarebracket.close.tsp"}},name:"meta.tuple-expression.typespec",patterns:[{include:"#expression"}]},"tuple-literal":{begin:/#\[/dgv,beginCaptures:{"0":{name:"punctuation.hashsquarebracket.open.tsp"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.squarebracket.close.tsp"}},name:"meta.tuple-literal.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"type-annotation":{begin:/\p{space}*(\??)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.optional.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\)\,\;\=\@\}]|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-annotation.typespec",patterns:[{include:"#expression"}]},"type-argument":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(=)/dgv,beginCaptures:{"1":{name:"entity.name.type.tsp"},"2":{name:"keyword.operator.assignment.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,endCaptures:{"0":{name:"keyword.operator.assignment.tsp"}},name:"meta.type-argument.typespec",patterns:[{include:"#token"},{include:"#expression"},{include:"#punctuation-comma"}]},"type-arguments":{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.typeparameters.begin.tsp"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.typeparameters.end.tsp"}},name:"meta.type-arguments.typespec",patterns:[{include:"#type-argument"},{include:"#expression"},{include:"#punctuation-comma"}]},"type-parameter":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"entity.name.type.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-parameter.typespec",patterns:[{include:"#token"},{include:"#type-parameter-constraint"},{include:"#type-parameter-default"}]},"type-parameter-constraint":{begin:/extends/dgv,beginCaptures:{"0":{name:"keyword.other.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-parameter-constraint.typespec",patterns:[{include:"#expression"}]},"type-parameter-default":{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-parameter-default.typespec",patterns:[{include:"#expression"}]},"type-parameters":{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.typeparameters.begin.tsp"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.typeparameters.end.tsp"}},name:"meta.type-parameters.typespec",patterns:[{include:"#type-parameter"},{include:"#punctuation-comma"}]},typeof:{begin:/\b(typeof)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.typeof.typespec",patterns:[{include:"#expression"}]},"union-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.union-body.typespec",patterns:[{include:"#union-variant"},{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#expression"},{include:"#punctuation-comma"}]},"union-statement":{begin:/\b(union)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.type.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.union-statement.typespec",patterns:[{include:"#token"},{include:"#union-body"}]},"union-variant":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.union-variant.typespec",patterns:[{include:"#token"},{include:"#expression"}]},"using-statement":{begin:/\b(using)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.using-statement.typespec",patterns:[{include:"#token"},{include:"#identifier-expression"},{include:"#punctuation-accessor"}]},valueof:{begin:/\b(valueof)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\bextern\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.valueof.typespec",patterns:[{include:"#expression"}]}},scopeName:"source.tsp",embeddedLangs:undefined,aliases:["tsp"]})
|
|
1
|
+
const lang = Object.freeze({displayName:"TypeSpec",fileTypes:["tsp"],name:"typespec",patterns:[{include:"#statement"}],repository:{"alias-id":{begin:/(=)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.operator.assignment.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.alias-id.typespec",patterns:[{include:"#expression"}]},"alias-statement":{begin:/(?:(internal)\p{space}+)?\b(alias)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"entity.name.type.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.alias-statement.typespec",patterns:[{include:"#alias-id"},{include:"#type-parameters"}]},"augment-decorator-statement":{begin:/((@@)\b[\$_\p{Alpha}](?:[\$_\p{Alpha}\p{Nd}]|\.[\$_\p{Alpha}])*)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.tsp"},"2":{name:"entity.name.tag.tsp"}},end:/(?=([\$_\`\p{Alpha}]))|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.augment-decorator-statement.typespec",patterns:[{include:"#token"},{include:"#parenthesized-expression"}]},"block-comment":{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.tsp"},"boolean-literal":{match:/\b(true|false)\b/dgv,name:"constant.language.tsp"},callExpression:{begin:/\b([\$_\p{Alpha}](?:[\$_\p{Alpha}\p{Nd}]|\.[\$_\p{Alpha}])*)\b\p{space}*(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.tsp"},"2":{name:"punctuation.parenthesis.open.tsp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.tsp"}},name:"meta.callExpression.typespec",patterns:[{include:"#token"},{include:"#expression"},{include:"#punctuation-comma"}]},"const-statement":{begin:/(?:(internal)\p{space}+)?\b(const)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"variable.name.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.const-statement.typespec",patterns:[{include:"#type-annotation"},{include:"#operator-assignment"},{include:"#expression"}]},decorator:{begin:/((@)\b[\$_\p{Alpha}](?:[\$_\p{Alpha}\p{Nd}]|\.[\$_\p{Alpha}])*)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.tsp"},"2":{name:"entity.name.tag.tsp"}},end:/(?=([\$_\`\p{Alpha}]))|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.decorator.typespec",patterns:[{include:"#token"},{include:"#parenthesized-expression"}]},"decorator-declaration-statement":{begin:/(?:(internal)\p{space}+)?(?:(extern)\p{space}+)?\b(dec)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"keyword.other.tsp"},"4":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.decorator-declaration-statement.typespec",patterns:[{include:"#token"},{include:"#operation-parameters"}]},directive:{begin:/\p{space}*(#)\b([\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*)\b/dgv,beginCaptures:{"1":{name:"keyword.directive.name.tsp"},"2":{name:"keyword.directive.name.tsp"}},end:/(?=\n?$)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.directive.typespec",patterns:[{include:"#string-literal"},{include:"#identifier-expression"}]},"doc-comment":{begin:/\/\*\*/dgv,beginCaptures:{"0":{name:"comment.block.tsp"}},end:/\*\//dgv,endCaptures:{"0":{name:"comment.block.tsp"}},name:"comment.block.tsp",patterns:[{include:"#doc-comment-block"}]},"doc-comment-block":{patterns:[{include:"#doc-comment-param"},{include:"#doc-comment-return-tag"},{include:"#doc-comment-unknown-tag"}]},"doc-comment-param":{captures:{"1":{name:"keyword.tag.tspdoc"},"2":{name:"keyword.tag.tspdoc"},"3":{name:"variable.name.tsp"}},match:/((@)(?:param|template|prop))\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\b/dgv,name:"comment.block.tsp"},"doc-comment-return-tag":{captures:{"1":{name:"keyword.tag.tspdoc"},"2":{name:"keyword.tag.tspdoc"}},match:/((@)returns)\b/dgv,name:"comment.block.tsp"},"doc-comment-unknown-tag":{captures:{"1":{name:"entity.name.tag.tsp"},"2":{name:"entity.name.tag.tsp"}},match:/((@)(?:\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`))\b/dgv,name:"comment.block.tsp"},"enum-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.enum-body.typespec",patterns:[{include:"#enum-member"},{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#punctuation-comma"}]},"enum-member":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(:?)/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.enum-member.typespec",patterns:[{include:"#token"},{include:"#type-annotation"}]},"enum-statement":{begin:/(?:(internal)\p{space}+)?\b(enum)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"entity.name.type.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.enum-statement.typespec",patterns:[{include:"#token"},{include:"#enum-body"}]},"escape-character":{match:/\\[^\n]/dgv,name:"constant.character.escape.tsp"},expression:{patterns:[{include:"#token"},{include:"#directive"},{include:"#parenthesized-expression"},{include:"#valueof"},{include:"#typeof"},{include:"#type-arguments"},{include:"#object-literal"},{include:"#tuple-literal"},{include:"#tuple-expression"},{include:"#model-expression"},{include:"#callExpression"},{include:"#identifier-expression"}]},"function-declaration-statement":{begin:/(?:(internal)\p{space}+)?(?:(extern)\p{space}+)?\b(fn)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"keyword.other.tsp"},"4":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.function-declaration-statement.typespec",patterns:[{include:"#token"},{include:"#operation-parameters"},{include:"#type-annotation"}]},"identifier-expression":{match:/\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`/dgv,name:"entity.name.type.tsp"},"import-statement":{begin:/\b(import)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.import-statement.typespec",patterns:[{include:"#token"}]},"interface-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.interface-body.typespec",patterns:[{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#interface-member"},{include:"#punctuation-semicolon"}]},"interface-heritage":{begin:/\b(extends)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/((?=\{)|(?=[\)\;\@\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.interface-heritage.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"interface-member":{begin:/(?:\b(op)\b\p{space}+)?(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.interface-member.typespec",patterns:[{include:"#token"},{include:"#operation-signature"}]},"interface-statement":{begin:/(?:(internal)\p{space}+)?\b(interface)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.interface-statement.typespec",patterns:[{include:"#token"},{include:"#type-parameters"},{include:"#interface-heritage"},{include:"#interface-body"},{include:"#expression"}]},"line-comment":{match:/\/\/[^\n]*(?=\n?$)/dgv,name:"comment.line.double-slash.tsp"},"model-expression":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.model-expression.typespec",patterns:[{include:"#model-property"},{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#spread-operator"},{include:"#punctuation-semicolon"}]},"model-heritage":{begin:/\b(extends|is)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/((?=\{)|(?=[\)\;\@\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.model-heritage.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"model-property":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)|("(?:[^"\\]|\\[^\n])*")/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"string.quoted.double.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.model-property.typespec",patterns:[{include:"#token"},{include:"#type-annotation"},{include:"#operator-assignment"},{include:"#expression"}]},"model-statement":{begin:/(?:(internal)\p{space}+)?\b(model)\b/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.model-statement.typespec",patterns:[{include:"#token"},{include:"#type-parameters"},{include:"#model-heritage"},{include:"#expression"}]},"namespace-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.namespace-body.typespec",patterns:[{include:"#statement"}]},"namespace-name":{begin:/(?=([\$_\`\p{Alpha}]))/dgv,end:/((?=\{)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.namespace-name.typespec",patterns:[{include:"#identifier-expression"},{include:"#punctuation-accessor"}]},"namespace-statement":{begin:/\b(namespace)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/((?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b))/dgv,name:"meta.namespace-statement.typespec",patterns:[{include:"#token"},{include:"#namespace-name"},{include:"#namespace-body"}]},"numeric-literal":{match:/\b(?<!\$)0[Xx]\p{AHex}[_\p{AHex}]*(n)?\b(?!\$)|\b(?<!\$)0[Bb][01][01_]*(n)?\b(?!\$)|(?<!\$)(?:\b[0-9][0-9_]*(\.)[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(\.)[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\B(\.)[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*[Ee][\-\+]?[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(\.)[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(\.)(n)?\B|\B(\.)[0-9][0-9_]*(n)?\b|\b[0-9][0-9_]*(n)?\b(?!\.))(?!\$)/dgv,name:"constant.numeric.tsp"},"object-literal":{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.hashcurlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.object-literal.typespec",patterns:[{include:"#token"},{include:"#object-literal-property"},{include:"#directive"},{include:"#spread-operator"},{include:"#punctuation-comma"}]},"object-literal-property":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.object-literal-property.typespec",patterns:[{include:"#token"},{include:"#expression"}]},"operation-heritage":{begin:/\b(is)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.operation-heritage.typespec",patterns:[{include:"#expression"}]},"operation-parameters":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.tsp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.tsp"}},name:"meta.operation-parameters.typespec",patterns:[{include:"#token"},{include:"#decorator"},{include:"#model-property"},{include:"#spread-operator"},{include:"#punctuation-comma"}]},"operation-signature":{patterns:[{include:"#type-parameters"},{include:"#operation-heritage"},{include:"#operation-parameters"},{include:"#type-annotation"}]},"operation-statement":{begin:/(?:(internal)\p{space}+)?\b(op)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.operation-statement.typespec",patterns:[{include:"#token"},{include:"#operation-signature"}]},"operator-assignment":{match:/=/dgv,name:"keyword.operator.assignment.tsp"},"parenthesized-expression":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.tsp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.tsp"}},name:"meta.parenthesized-expression.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"punctuation-accessor":{match:/\./dgv,name:"punctuation.accessor.tsp"},"punctuation-comma":{match:/,/dgv,name:"punctuation.comma.tsp"},"punctuation-semicolon":{match:/;/dgv,name:"punctuation.terminator.statement.tsp"},"scalar-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.scalar-body.typespec",patterns:[{include:"#token"},{include:"#directive"},{include:"#scalar-constructor"},{include:"#punctuation-semicolon"}]},"scalar-constructor":{begin:/\b(init)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"},"2":{name:"entity.name.function.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.scalar-constructor.typespec",patterns:[{include:"#token"},{include:"#operation-parameters"}]},"scalar-extends":{begin:/\b(extends)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\)\;\@\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.scalar-extends.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"scalar-statement":{begin:/(?:(internal)\p{space}+)?\b(scalar)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"entity.name.type.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.scalar-statement.typespec",patterns:[{include:"#token"},{include:"#type-parameters"},{include:"#scalar-extends"},{include:"#scalar-body"}]},"spread-operator":{begin:/\.\.\./dgv,beginCaptures:{"0":{name:"keyword.operator.spread.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.spread-operator.typespec",patterns:[{include:"#expression"}]},statement:{patterns:[{include:"#token"},{include:"#directive"},{include:"#augment-decorator-statement"},{include:"#decorator"},{include:"#model-statement"},{include:"#scalar-statement"},{include:"#union-statement"},{include:"#interface-statement"},{include:"#enum-statement"},{include:"#alias-statement"},{include:"#const-statement"},{include:"#namespace-statement"},{include:"#operation-statement"},{include:"#import-statement"},{include:"#using-statement"},{include:"#decorator-declaration-statement"},{include:"#function-declaration-statement"},{include:"#punctuation-semicolon"}]},"string-literal":{begin:/"/dgv,end:/"|(?=\n?$)/dgv,name:"string.quoted.double.tsp",patterns:[{include:"#template-expression"},{include:"#escape-character"}]},"template-expression":{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.tsp"}},name:"meta.template-expression.typespec",patterns:[{include:"#expression"}]},token:{patterns:[{include:"#doc-comment"},{include:"#line-comment"},{include:"#block-comment"},{include:"#triple-quoted-string-literal"},{include:"#string-literal"},{include:"#boolean-literal"},{include:"#numeric-literal"}]},"triple-quoted-string-literal":{begin:/"""/dgv,end:/"""/dgv,name:"string.quoted.triple.tsp",patterns:[{include:"#template-expression"},{include:"#escape-character"}]},"tuple-expression":{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.squarebracket.open.tsp"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.squarebracket.close.tsp"}},name:"meta.tuple-expression.typespec",patterns:[{include:"#expression"}]},"tuple-literal":{begin:/#\[/dgv,beginCaptures:{"0":{name:"punctuation.hashsquarebracket.open.tsp"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.squarebracket.close.tsp"}},name:"meta.tuple-literal.typespec",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"type-annotation":{begin:/\p{space}*(\??)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.optional.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\)\,\;\=\@\}]|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-annotation.typespec",patterns:[{include:"#expression"}]},"type-argument":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(=)/dgv,beginCaptures:{"1":{name:"entity.name.type.tsp"},"2":{name:"keyword.operator.assignment.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,endCaptures:{"0":{name:"keyword.operator.assignment.tsp"}},name:"meta.type-argument.typespec",patterns:[{include:"#token"},{include:"#expression"},{include:"#punctuation-comma"}]},"type-arguments":{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.typeparameters.begin.tsp"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.typeparameters.end.tsp"}},name:"meta.type-arguments.typespec",patterns:[{include:"#type-argument"},{include:"#expression"},{include:"#punctuation-comma"}]},"type-parameter":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"entity.name.type.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-parameter.typespec",patterns:[{include:"#token"},{include:"#type-parameter-constraint"},{include:"#type-parameter-default"}]},"type-parameter-constraint":{begin:/extends/dgv,beginCaptures:{"0":{name:"keyword.other.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-parameter-constraint.typespec",patterns:[{include:"#expression"}]},"type-parameter-default":{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.type-parameter-default.typespec",patterns:[{include:"#expression"}]},"type-parameters":{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.typeparameters.begin.tsp"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.typeparameters.end.tsp"}},name:"meta.type-parameters.typespec",patterns:[{include:"#type-parameter"},{include:"#punctuation-comma"}]},typeof:{begin:/\b(typeof)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.typeof.typespec",patterns:[{include:"#expression"}]},"union-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.tsp"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.tsp"}},name:"meta.union-body.typespec",patterns:[{include:"#union-variant"},{include:"#token"},{include:"#directive"},{include:"#decorator"},{include:"#expression"},{include:"#punctuation-comma"}]},"union-statement":{begin:/(?:(internal)\p{space}+)?\b(union)\b\p{space}+(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)/dgv,beginCaptures:{"1":{name:"storage.modifier.tsp"},"2":{name:"keyword.other.tsp"},"3":{name:"entity.name.type.tsp"}},end:/(?<=\})|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.union-statement.typespec",patterns:[{include:"#token"},{include:"#union-body"}]},"union-variant":{begin:/(\b[\$_\p{Alpha}][\$_\p{Alpha}\p{Nd}]*\b|`(?:[^\\\`]|\\[^\n])*`)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"variable.name.tsp"},"2":{name:"keyword.operator.type.annotation.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.union-variant.typespec",patterns:[{include:"#token"},{include:"#expression"}]},"using-statement":{begin:/\b(using)\b/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.using-statement.typespec",patterns:[{include:"#token"},{include:"#identifier-expression"},{include:"#punctuation-accessor"}]},valueof:{begin:/\b(valueof)/dgv,beginCaptures:{"1":{name:"keyword.other.tsp"}},end:/(?=>)|(?=[\,\;\@]|#[a-z]|[\)\}]|\b(?:extern|internal)\b|\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\b)/dgv,name:"meta.valueof.typespec",patterns:[{include:"#expression"}]}},scopeName:"source.tsp",embeddedLangs:undefined,aliases:["tsp"]})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/langs-precompiled",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.2",
|
|
5
5
|
"description": "TextMate grammars for Shiki in ESM",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -377,10 +377,10 @@
|
|
|
377
377
|
},
|
|
378
378
|
"dependencies": {
|
|
379
379
|
"oniguruma-to-es": "^4.3.4",
|
|
380
|
-
"@shikijs/types": "4.0.
|
|
380
|
+
"@shikijs/types": "4.0.2"
|
|
381
381
|
},
|
|
382
382
|
"devDependencies": {
|
|
383
|
-
"tm-grammars": "^1.31.
|
|
383
|
+
"tm-grammars": "^1.31.6"
|
|
384
384
|
},
|
|
385
385
|
"scripts": {
|
|
386
386
|
"build": "pnpm prepare"
|