Commit e9755630 authored by Christophe Geuzaine's avatar Christophe Geuzaine

fix parsing of If in skipped strings

parent 77bf9485
Pipeline #2793 passed with stage
in 63 minutes and 6 seconds
......@@ -462,6 +462,12 @@ void skip(const char *skip, const char *until)
else if(c_next == '/') skipline();
else unput(c_next);
}
if(chars[0] == '"'){
parsestring('"');
}
if(chars[0] == '\''){
parsestring('\'');
}
if(!c_previous || !is_alpha(c_previous)){
if(chars[0] == until[0]) break;
if(skip && chars[0] == skip[0]) break;
......
......@@ -3991,6 +3991,12 @@ void skip(const char *skip, const char *until)
else if(c_next == '/') skipline();
else unput(c_next);
}
if(chars[0] == '"'){
parsestring('"');
}
if(chars[0] == '\''){
parsestring('\'');
}
if(!c_previous || !is_alpha(c_previous)){
if(chars[0] == until[0]) break;
if(skip && chars[0] == skip[0]) break;
......
......@@ -858,7 +858,7 @@ parsing of the script file:
StringToName(@var{char-expression}) | S2N(@var{char-expression}) |
GetNumber(@var{char-expression} <,@var{expression}>) |
GetValue("@var{string}", @var{expression}) |
DefineNumber(@var{expression}, @var{onelab-options}) |
DefineNumber(@var{expression}, @var{onelab-options})
@end example
Such @w{@var{expression}s} are used in most of Gmsh's scripting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment