mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Fixed multiline comments handling in theme editor. #2987
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user