Skip to content

Commit e909ff4

Browse files
committed
Simplify lui formatting regex by using boundaries
1 parent 754a59f commit e909ff4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lui.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ matching the highlighted text, an integer for the submatch and a
191191
face for highlighting the match."
192192
:type `(set
193193
(const :tag "*Strong* text"
194-
(,(rx (or bol whitespace)
194+
(,(rx symbol-start
195195
(group "*" (+? (not (any whitespace "*"))) "*")
196-
(or eol whitespace))
196+
symbol-end)
197197
1 lui-strong-face))
198198
(const :tag "_Emphasized_ text"
199-
(,(rx (or bol whitespace)
199+
(,(rx symbol-start
200200
(group "_" (+? (not (any whitespace "_"))) "_")
201-
(or eol whitespace))
201+
symbol-end)
202202
1 lui-emphasis-face)))
203203
:group 'lui)
204204

0 commit comments

Comments
 (0)