Skip to content

Commit 01f4316

Browse files
committed
#137 Replaced VAR with FNAME in the NAMING state for several rules
(overlooked in previous treatment of the issue)
1 parent 7a5f9dd commit 01f4316

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

fr.cnes.analysis.tools.shell.rules/lex/COMINSTCodeComment.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ CLE = {RESERVED}| {POSIX} | {BUILTINS}
163163
/************************/
164164
<NAMING>
165165
{
166-
{VAR} {location = yytext(); loc.add(yytext()); yybegin(PREHEADER);}
166+
{FNAME} {location = yytext(); loc.add(yytext()); yybegin(PREHEADER);}
167167
\n {yybegin(YYINITIAL);}
168168
. {}
169169
}

fr.cnes.analysis.tools.shell.rules/lex/COMINSTLine.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ CONDITIONAL_STRUCT = [\[][\[]({VAR}|{SPACE}|{VALUE}|{OPERATOR}|{BRACKET})*[\]][
119119
/************************/
120120
<NAMING>
121121
{
122-
{VAR} {
122+
{FNAME} {
123123
location = yytext();
124124
LOGGER.fine("["+this.parsedFileName+":"+(yyline+1)+":"+yycolumn+"] - NAMING -> YYINITIAL (Transition : VAR \""+yytext()+"\" )");
125125
yybegin(YYINITIAL);}

fr.cnes.analysis.tools.shell.rules/lex/COMPRESIndent.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ IGNORETEXT = "<<" {SPACE}* "EOF" [^"<<"]* "EOF" | ` [^`]* `
227227
/************************/
228228
<NAMING>
229229
{
230-
{VAR} {location = yytext(); yybegin(BEGINFUNC);}
230+
{FNAME} {location = yytext(); yybegin(BEGINFUNC);}
231231
\n {currentPos=0; yybegin(YYINITIAL);}
232232
. {}
233233
}

fr.cnes.analysis.tools.shell.rules/lex/SHFLOWCheckCodeReturn.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ IGNORE_STRING_S = [\\][\']
190190
/************************/
191191
<NAMING>
192192
{
193-
{VAR} {location = yytext(); functions.put(location, false); yybegin(BEGINFUNC);}
193+
{FNAME} {location = yytext(); functions.put(location, false); yybegin(BEGINFUNC);}
194194
\n {yybegin(YYINITIAL);}
195195
<<EOF>> {return getCheckResults();}
196196
. {}

0 commit comments

Comments
 (0)