about summary refs log tree commit diff
path: root/src/libexpr/lexer.l
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-02-04T16·49+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-02-04T16·49+0000
commit9d25466b34a5f7c1c8b1c273976cf59c33961a6c (patch)
treeee4a5a60ae5de90fb301d75258ea627300065b2a /src/libexpr/lexer.l
parent6d46e647ba16e19100dcd0abda9ca5a81ccf764f (diff)
* An attribute set update operator (//). E.g.,
  {x=1; y=2; z=3;} // {y=4;}  =>  {x=1; y=4; z=3;}

Diffstat (limited to 'src/libexpr/lexer.l')
-rw-r--r--src/libexpr/lexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/lexer.l b/src/libexpr/lexer.l
index 853362cd0b..ce1c4673d7 100644
--- a/src/libexpr/lexer.l
+++ b/src/libexpr/lexer.l
@@ -57,6 +57,7 @@ inherit     { return INHERIT; }
 \&\&        { return AND; }
 \|\|        { return OR; }
 \-\>        { return IMPL; }
+\/\/        { return UPDATE; }
 
 {ID}        { yylval->t = ATmake("<str>", yytext); return ID; /* !!! alloc */ }
 {INT}       { int n = atoi(yytext); /* !!! overflow */