Skip to content
Snippets Groups Projects
Commit d40560ac authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Color string can now be a char expression

parent 37dd4f44
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -5544,10 +5544,13 @@ ColorExpr :
if(flag) yymsg(0, "Unknown color '%s'", $2);
}
*/
| tSTRING
| String__Index
{
int flag;
$$ = GetColorForString(-1, $1, &flag);
if(gmsh_yystringsymbols.count($1))
$$ = GetColorForString(-1, gmsh_yystringsymbols[$1].c_str(), &flag);
else
$$ = GetColorForString(-1, $1, &flag);
if(flag) yymsg(0, "Unknown color '%s'", $1);
Free($1);
}
......
......@@ -1200,7 +1200,7 @@ Colors expressions are hybrids between fixed-length braced
@example
@var{color-expression}:
@var{string} |
@var{char-expression} |
@{ @var{expression}, @var{expression}, @var{expression} @} |
@{ @var{expression}, @var{expression}, @var{expression}, @var{expression} @} |
@var{color-option}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment