Skip to content

Commit

Permalink
Remove experimental variable guessing in Ruby grammar (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb authored Jan 8, 2024
1 parent f6cdf76 commit 9e87d70
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions grammars/ruby.cson.json
Original file line number Diff line number Diff line change
Expand Up @@ -2313,11 +2313,6 @@
"include": "$self"
}
]
},
{
"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 haven't 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"
}
],
"repository": {
Expand Down

0 comments on commit 9e87d70

Please sign in to comment.