From 9cef21ecd6aadcbc19c70f8e594c984643d97126 Mon Sep 17 00:00:00 2001 From: Therk <43972622+Therrk@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:21:59 -0400 Subject: [PATCH] fixed tex comment detection at start of line (#2764) --- runtime/syntax/tex.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/tex.yaml b/runtime/syntax/tex.yaml index 3fcdbcbc..8c62986b 100644 --- a/runtime/syntax/tex.yaml +++ b/runtime/syntax/tex.yaml @@ -23,7 +23,7 @@ rules: - statement: "\\\\%" # comments - comment: - start: "[^\\\\]%" + start: "[^\\\\]%|^%" end: "$" rules: [] - comment: