From 6c41423e0a66ae9719359fbc673968862edda548 Mon Sep 17 00:00:00 2001 From: Milo Date: Tue, 7 Jan 2025 19:59:15 -0500 Subject: [PATCH] fix comment highlighting --- src/utils/lezer-mips/stream-lang.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/lezer-mips/stream-lang.ts b/src/utils/lezer-mips/stream-lang.ts index c9160d1..bbdf121 100644 --- a/src/utils/lezer-mips/stream-lang.ts +++ b/src/utils/lezer-mips/stream-lang.ts @@ -322,7 +322,7 @@ const sl = StreamLanguage.define({ }, token(stream, state) { const item = readItem(stream, state.initial) - if (!item) { + if (item == undefined) { return null } state.initial = item === TokenType.Label