Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
{"information_for_contributors":["This file has been converted from https://github.com/Shopify/ruby-lsp/blob/master/vscode/grammars/ruby.cson.json","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/Shopify/ruby-lsp/commit/e044408a069f43c892143f19c389628eebffbd01","name":"Ruby","scopeName":"source.ruby","patterns":[{"captures":{"1":{"name":"keyword.control.class.ruby"},"2":{"name":"entity.name.type.class.ruby"},"5":{"name"
"(?x)\n(?=def\\b) # optimization to help Oniguruma fail fast\n(?<=^|\\s)(def)\\s+\n(\n (?>[a-zA-Z_]\\w*(?>\\.|::))? # method prefix\n (?> # method name\n [a-zA-Z_]\\w*(?>[?!]|=(?!>))?\n |\n ===?|!=|>[>=]?|<=>|<[<=]?|[%&`/\\|]|\\*\\*?|=?~|[-+]@?|\\[]=?\n )\n)\n\\s*(\\()"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.control.def.ruby"
}
,
"2"
:
{
"name"
:
"entity.name.function.ruby"
}
,
"3"
:
{
"name"
:
"punctuation.definition.parameters.ruby"
}
}
,
"comment"
:
"The method pattern comes from the symbol pattern. See there for an explanation."
,
"end"
:
"\\)"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.parameters.ruby"
}
}
,
"name"
:
"meta.function.method.with-arguments.ruby"
,
"patterns"
:
[
{
"begin"
:
"(?=[&*_a-zA-Z])"
,
"end"
:
"(?=[,)])"
,
"patterns"
:
[
{
"include"
:
"#method_parameters"
}
]
}
,
{
"include"
:
"#method_parameters"
}
]
}
,
{
"begin"
:
"(?x)\n(?=def\\b) # optimization to help Oniguruma fail fast\n(?<=^|\\s)(def)\\s+\n(\n (?>[a-zA-Z_]\\w*(?>\\.|::))? # method prefix\n (?> # method name\n [a-zA-Z_]\\w*(?>[?!]|=(?!>))?\n |\n ===?|!=|>[>=]?|<=>|<[<=]?|[%&`/\\|]|\\*\\*?|=?~|[-+]@?|\\[]=?\n )\n)\n[ \\t]\n(?=[ \\t]*[^\\s#;]) # make sure the following is not comment"
,
"beginCaptures"
:
{
"1"
:
{
"name"
:
"keyword.control.def.ruby"
}
,
"2"
:
{
"name"
:
"entity.name.function.ruby"
}
}
,
"comment"
:
"same as the previous rule, but without parentheses around the arguments"
,
"end"
:
"(?=;)|(?<=[\\w\\])}`'\"!?])(?=\\s*#|\\s*$)"
,
"name"
:
"meta.function.method.with-arguments.ruby"
,
"patterns"
:
[
{
"begin"
:
"(?=[&*_a-zA-Z])"
,
"end"
:
"(?=,|;|\\s*#|\\s*$)"
,
"patterns"
:
[
{
"include"
:
"#method_parameters"
}
]
}
,
{
"include"
:
"#method_parameters"
}
]
}
,
{
"captures"
:
{
"1"
:
{
"name"
:
"keyword.control.def.ruby"
}
,
"3"
:
{
"name"
:
"entity.name.function.ruby"
}
}
,
"comment"
:
" the optional name is just to catch the def also without a method-name"
"(?x)\n\\b\n(\n [\\d](?>_?\\d)* # 100_000\n (\\.(?![^[:space:][:digit:]])(?>_?\\d)*)? # fractional part\n ([eE][-+]?\\d(?>_?\\d)*)? # 1.23e-4\n |\n 0\n (?:\n [xX]\\h(?>_?\\h)*|\n [oO]?[0-7](?>_?[0-7])*|\n [bB][01](?>_?[01])*|\n [dD]\\d(?>_?\\d)*\n ) # A base indicator can only be used with an integer\n)\\b"
,
"name"
:
"constant.numeric.ruby"
}
,
{
"begin"
:
":'"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.begin.ruby"
}
}
,
"comment"
:
"symbol literal with '' delimiter"
,
"end"
:
"'"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\['\\\\]"
,
"name"
:
"constant.character.escape.ruby"
}
]
}
,
{
"begin"
:
":\""
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.symbol.begin.ruby"
}
}
,
"comment"
:
"symbol literal with \"\" delimiter"
,
"end"
:
"\""
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.symbol.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#interpolated_ruby"
}
,
{
"include"
:
"#escaped_char"
}
]
}
,
{
"comment"
:
"Needs higher precedence than regular expressions."
,
"match"
:
"(?<!\\()/="
,
"name"
:
"keyword.operator.assignment.augmented.ruby"
}
,
{
"begin"
:
"'"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"comment"
:
"string literal with '' delimiter"
,
"end"
:
"'"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.single.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\'|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
]
}
,
{
"begin"
:
"\""
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"comment"
:
"string literal with interpolation and \"\" delimiter"
,
"end"
:
"\""
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.double.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#interpolated_ruby"
}
,
{
"include"
:
"#escaped_char"
}
]
}
,
{
"begin"
:
"(?<!\\.)`"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"comment"
:
"execute string (allows for interpolation)"
,
"end"
:
"`"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#interpolated_ruby"
}
,
{
"include"
:
"#escaped_char"
}
]
}
,
{
"begin"
:
"(?x)\n(?<![\\w)])((/))(?![?*+])(?!\\s*$)\n(?=\n (?:\\\\/|[^/])*+ # Do NOT change the order\n /[eimnosux]*\\s*\n (?:\n [)\\]}#.,?:]|\\|\\||&&|<=>|=>|==|=~|!~|!=|;|$|\n if|else|elsif|then|do|end|unless|while|until|or|and\n )\n)"
,
"captures"
:
{
"1"
:
{
"name"
:
"string.regexp.interpolated.ruby"
}
,
"2"
:
{
"name"
:
"punctuation.section.regexp.ruby"
}
}
,
"comment"
:
"regular expression literal with interpolation"
,
"contentName"
:
"string.regexp.interpolated.ruby"
,
"end"
:
"((/[eimnosux]*))"
,
"patterns"
:
[
{
"include"
:
"#regex_sub"
}
]
}
,
{
"begin"
:
"%r{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.begin.ruby"
}
}
,
"end"
:
"}[eimnosux]*"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.end.ruby"
}
}
,
"name"
:
"string.regexp.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#regex_sub"
}
,
{
"include"
:
"#nest_curly_r"
}
]
}
,
{
"begin"
:
"%r\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.begin.ruby"
}
}
,
"end"
:
"][eimnosux]*"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.end.ruby"
}
}
,
"name"
:
"string.regexp.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#regex_sub"
}
,
{
"include"
:
"#nest_brackets_r"
}
]
}
,
{
"begin"
:
"%r\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.begin.ruby"
}
}
,
"end"
:
"\\)[eimnosux]*"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.end.ruby"
}
}
,
"name"
:
"string.regexp.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#regex_sub"
}
,
{
"include"
:
"#nest_parens_r"
}
]
}
,
{
"begin"
:
"%r<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.begin.ruby"
}
}
,
"end"
:
">[eimnosux]*"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.end.ruby"
}
}
,
"name"
:
"string.regexp.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#regex_sub"
}
,
{
"include"
:
"#nest_ltgt_r"
}
]
}
,
{
"begin"
:
"%r([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.begin.ruby"
}
}
,
"end"
:
"\\1[eimnosux]*"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.regexp.end.ruby"
}
}
,
"name"
:
"string.regexp.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#regex_sub"
}
]
}
,
{
"begin"
:
"%I\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"]"
,
"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\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\)"
,
"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<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
">"
,
"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{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"}"
,
"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([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#interpolated_ruby"
}
,
{
"include"
:
"#escaped_char"
}
]
}
,
{
"begin"
:
"%i\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"]"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\]|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_brackets"
}
]
}
,
{
"begin"
:
"%i\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\)"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\\\)|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_parens"
}
]
}
,
{
"begin"
:
"%i<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
">"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\>|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_ltgt"
}
]
}
,
{
"begin"
:
"%i{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"}"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\}|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_curly"
}
]
}
,
{
"begin"
:
"%i([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"comment"
:
"Cant be named because its not necessarily an escape."
,
"match"
:
"\\\\."
}
]
}
,
{
"begin"
:
"%W\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"]"
,
"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\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\)"
,
"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<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
">"
,
"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{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"}"
,
"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([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"string.quoted.other.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#interpolated_ruby"
}
,
{
"include"
:
"#escaped_char"
}
]
}
,
{
"begin"
:
"%w\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"]"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\]|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_brackets"
}
]
}
,
{
"begin"
:
"%w\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\)"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\\\)|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_parens"
}
]
}
,
{
"begin"
:
"%w<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
">"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\>|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_ltgt"
}
]
}
,
{
"begin"
:
"%w{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"}"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\}|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_curly"
}
]
}
,
{
"begin"
:
"%w([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.section.array.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"comment"
:
"Cant be named because its not necessarily an escape."
,
"match"
:
"\\\\."
}
]
}
,
{
"begin"
:
"%[Qx]?\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"\\)"
,
"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]?\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"]"
,
"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]?{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"}"
,
"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]?<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
">"
,
"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]([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.other.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#interpolated_ruby"
}
,
{
"include"
:
"#escaped_char"
}
]
}
,
{
"begin"
:
"%([^\\w\\s=])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.other.interpolated.ruby"
,
"patterns"
:
[
{
"include"
:
"#interpolated_ruby"
}
,
{
"include"
:
"#escaped_char"
}
]
}
,
{
"begin"
:
"%q\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"\\)"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\\\)|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_parens"
}
]
}
,
{
"begin"
:
"%q<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
">"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\>|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_ltgt"
}
]
}
,
{
"begin"
:
"%q\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"]"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\]|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_brackets"
}
]
}
,
{
"begin"
:
"%q{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"}"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\}|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_curly"
}
]
}
,
{
"begin"
:
"%q([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.string.end.ruby"
}
}
,
"name"
:
"string.quoted.other.ruby"
,
"patterns"
:
[
{
"comment"
:
"Cant be named because its not necessarily an escape."
,
"match"
:
"\\\\."
}
]
}
,
{
"begin"
:
"%s\\("
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.begin.ruby"
}
}
,
"end"
:
"\\)"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\\\)|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_parens"
}
]
}
,
{
"begin"
:
"%s<"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.begin.ruby"
}
}
,
"end"
:
">"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\>|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_ltgt"
}
]
}
,
{
"begin"
:
"%s\\["
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.begin.ruby"
}
}
,
"end"
:
"]"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\]|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_brackets"
}
]
}
,
{
"begin"
:
"%s{"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.begin.ruby"
}
}
,
"end"
:
"}"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"match"
:
"\\\\}|\\\\\\\\"
,
"name"
:
"constant.character.escape.ruby"
}
,
{
"include"
:
"#nest_curly"
}
]
}
,
{
"begin"
:
"%s([^\\w])"
,
"beginCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.begin.ruby"
}
}
,
"end"
:
"\\1"
,
"endCaptures"
:
{
"0"
:
{
"name"
:
"punctuation.definition.symbol.end.ruby"
}
}
,
"name"
:
"constant.language.symbol.ruby"
,
"patterns"
:
[
{
"comment"
:
"Cant be named because its not necessarily an escape."
"We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags."
,
"end"
:
"$\\n?"
,
"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_see"
:
{
"comment"
:
"separate rule for @see because name could contain url"