Also detect keywords after operate key words in wrong section.

This will find keywords in statements like
MULTIPLY
  'TRANX' 2.0 /
  'TRANY' 2.0 /
 /
This commit is contained in:
Markus Blatt
2023-07-20 13:19:24 +02:00
parent 016dfa9ea7
commit e5c44baf38
4 changed files with 92 additions and 11 deletions

View File

@@ -84,6 +84,12 @@ static const std::set<std::string> region_oper_keywords = {"MULTIREG", "ADDREG",
static const std::set<std::string> box_keywords = {"BOX", "ENDBOX"};
bool is_oper_keyword(const std::string& name)
{
return (oper_keywords.find(name) != oper_keywords.end()
|| region_oper_keywords.find(name) != region_oper_keywords.end());
}
std::string get_keyword_from_alias(const std::string& name) {
if (ALIAS::aliased_keywords.count(name))
return ALIAS::aliased_keywords.at(name);