From 538395b92c37bd8d79e52e512e787ad72c5c57a6 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 29 Sep 2025 11:11:26 -0400 Subject: [PATCH] Prevent simple syntax highlighters from breaking on `/*` in a string --- src/asm/lexer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/asm/lexer.cpp b/src/asm/lexer.cpp index 583a21fa..793b9d42 100644 --- a/src/asm/lexer.cpp +++ b/src/asm/lexer.cpp @@ -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 '*':