Skip to content
Snippets Groups Projects
Commit e6c975f2 authored by James K. Lowden's avatar James K. Lowden :anchor:
Browse files

lexer prioritizes data item names over function names

parent f10dedf4
No related branches found
No related tags found
No related merge requests found
......@@ -1737,7 +1737,9 @@ COPY {
ydflval.string = yylval.string = strdup(yytext);
int token = keyword_tok(null_trim(yylval.string), true);
if( token ) {
auto elem = symbol_field(PROGRAM, 0, yylval.string);
if( token && ! elem ) { // not a data item name
// If token is an intrinsic, and not in Repository, pretend
// it's a name and let the parser sort it out.
auto name = intrinsic_function_name(token);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment