Prevent simple syntax highlighters from breaking on /* in a string

This commit is contained in:
Rangi
2025-09-29 11:11:26 -04:00
parent 3108fb5297
commit 538395b92c

View File

@@ -879,7 +879,11 @@ static void discardBlockComment() {
continue; continue;
case '/': case '/':
if (peek() == '*') { if (peek() == '*') {
warning(WARNING_NESTED_COMMENT, "\"/*\" in block comment"); warning(
WARNING_NESTED_COMMENT,
"\"/" // Prevent simple syntax highlighters from seeing this as a comment
"*\" in block comment"
);
} }
continue; continue;
case '*': case '*':