[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/zig-mode b78d03a165 1/2: Fix block label colorizing
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/zig-mode b78d03a165 1/2: Fix block label colorizing |
Date: |
Sun, 3 Nov 2024 10:00:57 -0500 (EST) |
branch: elpa/zig-mode
commit b78d03a1651906e418e5a965eee5205fc70acc17
Author: vent <ventlark@gmail.com>
Commit: Joachim Schmidt <joachim.schmidt557@outlook.com>
Fix block label colorizing
The previous regexp did not handle underscores in the block label, and
did not handle block labels longer than one character (excluding the
':'). This commit fixes these issues.
---
zig-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/zig-mode.el b/zig-mode.el
index 7f80b7dd53..8db326fc1c 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -141,8 +141,8 @@ If given a SOURCE, execute the CMD on it."
zig-re-optionals-pointers-arrays
(zig-re-grab zig-re-type)))
-(defconst zig-re-block-label-open " \\([[:word:]]:\\) *{")
-(defconst zig-re-block-label-break "break[[:space:]]*\\(:[[:word:]]+\\)")
+(defconst zig-re-block-label-open " \\([[:word:]_]+:\\)[[:space:]]*{")
+(defconst zig-re-block-label-break "break[[:space:]]*\\(:[[:word:]_]+\\)")
(defun zig-re-definition (dtype)
"Construct a regular expression for definitions of type DTYPE."