diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2012-04-12 17:00:12 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2012-04-12 17:00:12 +0000 |
commit | 9fcb2f01c668956044de8fbda3588daa44668125 (patch) | |
tree | 4ea33725b56a7a84d45b477bcdaf9b5975a9eff6 /usr.bin/m4/tokenizer.l | |
parent | b62a38f7a63f839572d350e11cddb5eb541227a7 (diff) |
new m4 -g stuff:
- expr(`4**3')
- include(`hey I am not there') keeps going.
work with Baptiste Daroussin, who had the idea but didn't nail all details
right.
okay otto@, miod@
Diffstat (limited to 'usr.bin/m4/tokenizer.l')
-rw-r--r-- | usr.bin/m4/tokenizer.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/m4/tokenizer.l b/usr.bin/m4/tokenizer.l index 7da63086add..4adabd7e98f 100644 --- a/usr.bin/m4/tokenizer.l +++ b/usr.bin/m4/tokenizer.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: tokenizer.l,v 1.7 2010/03/22 20:40:44 espie Exp $ */ +/* $OpenBSD: tokenizer.l,v 1.8 2012/04/12 17:00:11 espie Exp $ */ /* * Copyright (c) 2004 Marc Espie <espie@cvs.openbsd.org> * @@ -53,6 +53,7 @@ radix 0[rR][0-9]+:[0-9a-zA-Z]+ "!=" { return(NE); } "&&" { return(LAND); } "||" { return(LOR); } +"**" { if (mimic_gnu) { return (EXPONENT); } } . { return yytext[0]; } %% |