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

8 lines
451 B
JSON
Raw Normal View History

2018-10-17 14:11:16 -06:00
{
"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"
}