]> git.lizzy.rs Git - rust.git/commitdiff
allow variables to terminate ranges
authorDusty Pomerleau <dustypomerleau@users.noreply.github.com>
Sat, 7 Nov 2020 11:08:29 +0000 (22:08 +1100)
committerDusty Pomerleau <dustypomerleau@users.noreply.github.com>
Sat, 7 Nov 2020 11:08:29 +0000 (22:08 +1100)
editors/code/rust.tmGrammar.json

index f551498ac11a85d6d2c830c59d0073fb205d2020..608a3354ee9ca49d8ef1d0cb4cf6f19345e7aa68 100644 (file)
                 {
                     "comment": "variables",
                     "name": "variable.other.rust",
-                    "match": "\\b(?<!\\.)(?:r#(?!(crate|[Ss]elf|super)))?[a-z0-9_]+\\b"
+                    "match": "\\b(?<!(?<!\\.)\\.)(?:r#(?!(crate|[Ss]elf|super)))?[a-z0-9_]+\\b"
                 }
             ]
         }