Fixed multiline comments handling in theme editor. #2987

This commit is contained in:
John Preston 2017-02-09 16:53:28 +03:00
parent e8ead2974b
commit 2f85997c9f
1 changed files with 8 additions and 2 deletions

View File

@ -102,8 +102,14 @@ bool skipComment(const char *&data, const char *end) {
while (data != end && *data != '*') {
++data;
}
if (data != end) ++data;
if (data == end || *data == '/') {
if (data != end) {
++data;
if (data != end && *data == '/') {
++data;
break;
}
}
if (data == end) {
break;
}
}