From 5247d83d9e2f0891da6c9689b1e40e141a068896 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sun, 4 Feb 2007 15:59:21 +0000 Subject: [PATCH] Fix token recognition in macro parser --- golded3/gemsgs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golded3/gemsgs.cpp b/golded3/gemsgs.cpp index 0fa4251..a3630c0 100644 --- a/golded3/gemsgs.cpp +++ b/golded3/gemsgs.cpp @@ -50,7 +50,7 @@ static bool tokenxchg(std::string &input, std::string::iterator &pos, size_t toklen = strlen(tok); const char* inp_str_tok=it2str(input, pos); - if ( (strnieql(inp_str_tok, tok, toklen)) && isspace(inp_str_tok[toklen]) ) + if ( (strnieql(inp_str_tok, tok, toklen)) && (isspace(inp_str_tok[toklen]) || ispunct(inp_str_tok[toklen])) ) { std::string str = src; std::string::iterator tokend = pos+toklen;