Skip to content

Commit

Permalink
cnescatlab#137 Replaced VAR with FNAME in the NAMING state for severa…
Browse files Browse the repository at this point in the history
…l rules

(overlooked in previous treatment of the issue)
  • Loading branch information
brigittehuynh committed Sep 13, 2018
1 parent 091b473 commit 7a4e0ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ CLE = {RESERVED}| {POSIX} | {BUILTINS}
/************************/
<NAMING>
{
{VAR} {location = yytext(); loc.add(yytext()); yybegin(PREHEADER);}
{FNAME} {location = yytext(); loc.add(yytext()); yybegin(PREHEADER);}
\n {yybegin(YYINITIAL);}
. {}
}
Expand Down
2 changes: 1 addition & 1 deletion fr.cnes.analysis.tools.shell.rules/lex/COMINSTLine.lex
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ CONDITIONAL_STRUCT = [\[][\[]({VAR}|{SPACE}|{VALUE}|{OPERATOR}|{BRACKET})*[\]][
/************************/
<NAMING>
{
{VAR} {
{FNAME} {
location = yytext();
LOGGER.fine("["+this.parsedFileName+":"+(yyline+1)+":"+yycolumn+"] - NAMING -> YYINITIAL (Transition : VAR \""+yytext()+"\" )");
yybegin(YYINITIAL);}
Expand Down
2 changes: 1 addition & 1 deletion fr.cnes.analysis.tools.shell.rules/lex/COMPRESIndent.lex
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ IGNORETEXT = "<<" {SPACE}* "EOF" [^"<<"]* "EOF" | ` [^`]* `
/************************/
<NAMING>
{
{VAR} {location = yytext(); yybegin(BEGINFUNC);}
{FNAME} {location = yytext(); yybegin(BEGINFUNC);}
\n {currentPos=0; yybegin(YYINITIAL);}
. {}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ IGNORE_STRING_S = [\\][\']
/************************/
<NAMING>
{
{VAR} {location = yytext(); functions.put(location, false); yybegin(BEGINFUNC);}
{FNAME} {location = yytext(); functions.put(location, false); yybegin(BEGINFUNC);}
\n {yybegin(YYINITIAL);}
<<EOF>> {return getCheckResults();}
. {}
Expand Down

0 comments on commit 7a4e0ba

Please # to comment.