about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/lexer.l5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index 47f2bca1e699..bc9a38da42f9 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -73,10 +73,7 @@ inherit     { return INHERIT; }
             }
 
 \"          { BEGIN(STRING); return '"'; }
-<STRING>([^\$\"\\]|\\.|\$[^\{\$])+ {
-/* Note: a dollar *is* allowed as-is in a string, as long as it's
-   not followed by a open brace.  This should probably be disallowed
-   eventually. */
+<STRING>([^\$\"\\]|\\.)+ {
               yylval->t = unescapeStr(yytext); /* !!! alloc */ 
               return STR;
             }