Commit 3d750efc authored by serg@serg.mylan's avatar serg@serg.mylan

do not look for string characters "'` inside comments - bug#539

parent 241c4d8c
...@@ -1010,7 +1010,7 @@ static bool add_line(String &buffer,char *line,char *in_string) ...@@ -1010,7 +1010,7 @@ static bool add_line(String &buffer,char *line,char *in_string)
{ // Add found char to buffer { // Add found char to buffer
if (inchar == *in_string) if (inchar == *in_string)
*in_string=0; *in_string=0;
else if (!*in_string && (inchar == '\'' || inchar == '"' || inchar == '`')) else if (!in_comment && !*in_string && (inchar == '\'' || inchar == '"' || inchar == '`'))
*in_string=(char) inchar; *in_string=(char) inchar;
*out++ = (char) inchar; *out++ = (char) inchar;
if (inchar == '*' && !*in_string) if (inchar == '*' && !*in_string)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment