pentest-distro-builder/filesystem/root/.vscode/extensions/rebornix.ruby-0.20.0/scripts/variable.other.ruby.json

7 lines
451 B
JSON

{
"comment":
"This is kindof experimental. There really is no way to perfectly match all regular variables, but you can pretty well assume that any normal word in certain curcumstances that havnt already been scoped as something else are probably variables, and the advantages beat the potential errors",
"match":
"((?<=\\W)\\b|^)\\w+\\b(?=\\s*([\\]\\)\\}\\=\\+\\-\\*\\/\\^\\$\\,\\.]|<\\s|<<[\\s|\\.]))",
"name": "variable.other.ruby"
}