mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Update grammars (#242296)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"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/01a8ecf608b7d8607adcd89c32db72ae3852f33b",
|
||||
"version": "https://github.com/Shopify/ruby-lsp/commit/958bb1aa0c7aa4b6119c947b69afa7f12b19dceb",
|
||||
"name": "Ruby",
|
||||
"scopeName": "source.ruby",
|
||||
"patterns": [
|
||||
@@ -30,7 +30,7 @@
|
||||
}
|
||||
},
|
||||
"comment": "class Namespace::ClassName < OtherNamespace::OtherClassName",
|
||||
"match": "\b(class)\\s+(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*)\\s*((<)\\s*(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*))?",
|
||||
"match": "\\b(class)\\s+(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*)\\s*((<)\\s*(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*))?",
|
||||
"name": "meta.class.ruby"
|
||||
},
|
||||
{
|
||||
@@ -45,7 +45,7 @@
|
||||
"name": "punctuation.separator.namespace.ruby"
|
||||
}
|
||||
},
|
||||
"match": "\b(module)\\s+(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*)",
|
||||
"match": "\\b(module)\\s+(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*)",
|
||||
"name": "meta.module.ruby"
|
||||
},
|
||||
{
|
||||
@@ -57,7 +57,7 @@
|
||||
"name": "punctuation.separator.inheritance.ruby"
|
||||
}
|
||||
},
|
||||
"match": "\b(class)\\s*(<<)\\s*",
|
||||
"match": "\\b(class)\\s*(<<)\\s*",
|
||||
"name": "meta.class.ruby"
|
||||
},
|
||||
{
|
||||
@@ -125,7 +125,7 @@
|
||||
"name": "variable.ruby"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*([a-z]([A-Za-z0-9_])*)\\s*=[^=>]",
|
||||
"match": "^\\s*([a-z]([A-Za-z0-9_])*)\\s*(?==[^=>])",
|
||||
"comment": "A local variable assignment"
|
||||
},
|
||||
{
|
||||
@@ -2211,7 +2211,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<={|{\\s|[^A-Za-z0-9_:@$]do|^do|[^A-Za-z0-9_:@$]do\\s|^do\\s)(\\|)",
|
||||
"begin": "(?<={|{\\s+|[^A-Za-z0-9_:@$]do|^do|[^A-Za-z0-9_:@$]do\\s+|^do\\s+)(\\|)",
|
||||
"name": "meta.block.parameters.ruby",
|
||||
"captures": {
|
||||
"1": {
|
||||
@@ -2225,16 +2225,13 @@
|
||||
"end": "(?=,|\\|\\s*)",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\G([&*]?)([a-zA-Z][\\w_]*)|(_[\\w_]*)",
|
||||
"match": "\\G((?:&|\\*\\*?)?)([a-zA-Z_][\\w_]*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.variable.ruby"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.block.ruby"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.other.block.unused.ruby variable.other.constant.ruby"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user