X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Fq2c.c;h=73602bd6699d956d253b9cb0607efa47fdc46230;hb=refs%2Fbuilds%2F20101231030502%2Fpspp;hp=cf5a04ee132c6df3449cccc4da8d86c1239a07e1;hpb=55e6e7ba37a30570f5a31e2d78c22dfa7b61a36f;p=pspp diff --git a/src/language/lexer/q2c.c b/src/language/lexer/q2c.c index cf5a04ee13..73602bd669 100644 --- a/src/language/lexer/q2c.c +++ b/src/language/lexer/q2c.c @@ -1422,12 +1422,14 @@ make_match (const char *t) "|| lex_match_id (lexer, \"FALSE\"))"); else if (isdigit ((unsigned char) t[0])) sprintf (s, "lex_match_int (lexer, %s)", t); - else + else if (strchr (t, hyphen_proxy)) { char *c = unmunge (t); sprintf (s, "lex_match_hyphenated_word (lexer, \"%s\")", c); free (c); } + else + sprintf (s, "lex_match_id (lexer, \"%s\")", t); return s; }