mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
cpp: Fixed issue with wrong comment detection
git-svn-id: svn://ultimatepp.org/upp/trunk@8692 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f5d0361067
commit
4147dfb66a
3 changed files with 8 additions and 11 deletions
|
|
@ -47,6 +47,12 @@ void RemoveComments(String& l, bool& incomment)
|
|||
if(*s == '\"')
|
||||
s = SkipString(s);
|
||||
else
|
||||
if(s[0] == '/' && s[1] == '/') {
|
||||
q = int(s - ~l);
|
||||
SetSpaces(l, q, l.GetCount() - q);
|
||||
return;
|
||||
}
|
||||
else
|
||||
if(s[0] == '/' && s[1] == '*') {
|
||||
q = int(s - ~l);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue