From b921a56ad13ff018753fa919be1b00d6eef769cb Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 30 Oct 2007 09:33:29 -0700 Subject: [PATCH] A leading underscore is valid for macro substitutions. For text macro substitutions the lexor did not allow leading underscores. This patch fixes that omission. All other places that text macros may be used appear to be correct. --- ivlpp/lexor.lex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivlpp/lexor.lex b/ivlpp/lexor.lex index d64e33866..18f1d9764 100644 --- a/ivlpp/lexor.lex +++ b/ivlpp/lexor.lex @@ -393,7 +393,7 @@ W [ \t\b\f]+ } /* This pattern notices macros and arranges for them to be replaced. */ -`[a-zA-Z][a-zA-Z0-9_$]* { def_match(); } +`[a-zA-Z_][a-zA-Z0-9_$]* { def_match(); } /* Any text that is not a directive just gets passed through to the output. Very easy. */