mirror of
https://github.com/gbdev/rgbds.git
synced 2026-12-05 23:58:39 +00:00
Prevent simple syntax highlighters from breaking on /* in a string
This commit is contained in:
1 parent
3108fb5297
commit
538395b92c
1 file changed
+5
-1
+5
-1
@@ -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