diff --git a/mode/nsis/nsis.js b/mode/nsis/nsis.js
index <HASH>..<HASH> 100644
--- a/mode/nsis/nsis.js
+++ b/mode/nsis/nsis.js
@@ -71,7 +71,7 @@ CodeMirror.defineSimpleMode("nsis",{
     {regex: /[-+\/*=<>!]+/, token: "operator"},
 
     // Variable
-    {regex: /\$\w[\w\.]+/, token: "variable"},
+    {regex: /\$\w[\w\.]*/, token: "variable"},
 
     // Constant
     {regex: /\${[\!\w\.:-]+}/, token: "variable-2"},
[nsis mode] improve variable pattern

Follow-up to #<I> to support single letter variable names