vera++ not support raw string literal
Issue #107
new
Next code snippet
#include <string>
std::string foo()
{
return R"x(tr\("(.*?)"[),])x";
}
produce error:
foo.cpp:4: comma should be followed by whitespace
XML details:
<token name="return" line="5" column="8">return</token>
<token name="space" line="5" column="14"> </token>
<token name="identifier" line="5" column="15">R</token>
<token name="<unknowntoken>" line="5" column="16">"</token>
<token name="identifier" line="5" column="17">x</token>
<token name="leftparen" line="5" column="18">(</token>
<token name="identifier" line="5" column="19">tr</token>
<token name="<unknowntoken>" line="5" column="21">\</token>
<token name="leftparen" line="5" column="22">(</token>
<token name="stringlit" line="5" column="23">"(.*?)"</token>
<token name="leftbracket" line="5" column="30">[</token>
<token name="rightparen" line="5" column="31">)</token>
<token name="comma" line="5" column="32">,</token>
<token name="rightbracket" line="5" column="33">]</token>
<token name="rightparen" line="5" column="34">)</token>
<token name="identifier" line="5" column="35">x</token>
<token name="<unknowntoken>" line="5" column="36">"</token>
<token name="semicolon" line="5" column="37">;</token>
vera++ --version
1.3.0