From 9e87d705bfbb05cb3dde5ed8d320dee77bd24b34 Mon Sep 17 00:00:00 2001 From: Ryan Bates Date: Mon, 8 Jan 2024 12:01:52 -0800 Subject: [PATCH] Remove experimental variable guessing in Ruby grammar (#962) --- grammars/ruby.cson.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/grammars/ruby.cson.json b/grammars/ruby.cson.json index bde771a56..4693636ce 100644 --- a/grammars/ruby.cson.json +++ b/grammars/ruby.cson.json @@ -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": {