mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Prevent simple syntax highlighters from breaking on /* in a string
This commit is contained in:
@@ -879,7 +879,11 @@ static void discardBlockComment() {
|
||||
continue;
|
||||
case '/':
|
||||
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;
|
||||
case '*':
|
||||
|
||||
Reference in New Issue
Block a user