mirror of https://github.com/procxx/kepka.git
Fixed multiline comments handling in theme editor. #2987
This commit is contained in:
parent
e8ead2974b
commit
2f85997c9f
|
@ -102,8 +102,14 @@ bool skipComment(const char *&data, const char *end) {
|
||||||
while (data != end && *data != '*') {
|
while (data != end && *data != '*') {
|
||||||
++data;
|
++data;
|
||||||
}
|
}
|
||||||
if (data != end) ++data;
|
if (data != end) {
|
||||||
if (data == end || *data == '/') {
|
++data;
|
||||||
|
if (data != end && *data == '/') {
|
||||||
|
++data;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (data == end) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue