summary refs log tree commit diff
path: root/src/libexpr/lexer.l
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-01-06 10:27:26 -0500
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-14 14:00:15 +0100
commitf9913f4422d1317af3c6b5aff37ad18b78083eb5 (patch)
treeb18e070f5e266bfaff2abed726b767760412809f /src/libexpr/lexer.l
parente640d671443e291b3ca5cc0575919d6fcf14a157 (diff)
downloadguix-f9913f4422d1317af3c6b5aff37ad18b78083eb5.tar.gz
Allow "bare" dynamic attrs
Now, in addition to a."${b}".c, you can write a.${b}.c (applicable
wherever dynamic attributes are valid).

Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r--src/libexpr/lexer.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index 5d0360401d..911850cc5b 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -117,6 +117,8 @@ or          { return OR_KW; }
               return INT;
             }
 
+\$\{        { return DOLLAR_CURLY; }
+
 \"          { BEGIN(STRING); return '"'; }
 <STRING>([^\$\"\\]|\$[^\{\"]|\\.)+ {
               /* !!! Not quite right: we want a follow restriction on