dictionary: Disable wildcards for variables

This commit is contained in:
Henry Weller
2019-08-14 11:25:35 +01:00
parent 5055147ae3
commit 615d5dd2b0
3 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,6 @@ License
#include "IOobject.H"
#include "inputSyntaxEntry.H"
#include "inputModeEntry.H"
#include "regExp.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -57,6 +57,12 @@ bool Foam::entry::getKeyword(keyType& keyword, token& keywordToken, Istream& is)
keyword = keywordToken.wordToken();
return true;
}
else if (keywordToken.isVariable())
{
// Disable wildcards for variables
keyword = keyType(keywordToken.stringToken(), false);
return true;
}
else if (keywordToken.isString())
{
// Enable wildcards

View File

@ -119,6 +119,7 @@ public:
// Optionally force a literal match only
bool match(const std::string&, bool literalMatch=false) const;
// Member Operators
// Assignment