dictionary: Disable wildcards for variables
This commit is contained in:
@ -27,7 +27,6 @@ License
|
||||
#include "IOobject.H"
|
||||
#include "inputSyntaxEntry.H"
|
||||
#include "inputModeEntry.H"
|
||||
#include "regExp.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -119,6 +119,7 @@ public:
|
||||
// Optionally force a literal match only
|
||||
bool match(const std::string&, bool literalMatch=false) const;
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
// Assignment
|
||||
|
||||
Reference in New Issue
Block a user