Skip to content

Commit 185ec6a

Browse files
author
cage
committed
- reworked a few regular expressions to fix mentions coloring.
1 parent d72ab12 commit 185ec6a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

etc/shared.conf

+13-13
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,6 @@ color-regexp = "[0-9]{4}-[0-9]?[0-9]-[0-9]?[0-9]" #0000ff bo
107107

108108
color-regexp = "-?[0-9]+(.[0-9]+)?%" #ff00ff bold
109109

110-
# *bold*
111-
112-
color-regexp = "\*[^*]+\*" #ffff00 bold
113-
114-
# _underline_
115-
116-
color-regexp = "_[^_]+_" #ffff00 underline
117-
118-
# /italic/ , commented as interferes with file path and URI
119-
120-
#color-regexp = "/[^/]+/" #ffff00 italic
121-
122110
# by default polls uses that
123111

124112
color-regexp = "⯀" green bold
@@ -135,7 +123,7 @@ color-regexp = "[012][0-9]:[0123456][0-9]" cyan bold
135123

136124
# mentions
137125

138-
color-regexp = "@[a-zA-Z0-9]+ " cyan
126+
color-regexp = "@[^\s]+" cyan
139127

140128
# gemini colorization
141129

@@ -167,6 +155,18 @@ color-regexp = ":aborted" red
167155

168156
color-regexp = ":rendering" cyan
169157

158+
# _underline_
159+
160+
color-regexp = "_[^_]+_" #ffff00 underline
161+
162+
# *bold*
163+
164+
color-regexp = "\*[^*]+\*" #ffff00 bold
165+
166+
# /italic/ , commented as interferes with file path and URI
167+
168+
#color-regexp = "/[^/]+/" #ffff00 italic
169+
170170
# The width of the generated table of contents for gemini pages when
171171
# tinmop is ran as exclusive gemini client (command line option "-G")
172172

src/sending-message.lisp

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
(label-subject-raw (_ "Subject: "))
122122
(label-visibility-raw (_ "Visibility: "))
123123
(label-reply-length-raw (length label-reply-raw))
124-
(label-mentions-length-raw (length label-mentions-raw))
124+
(label-mentions-length-raw (length label-mentions-raw))
125125
(label-subject-raw-length (length label-subject-raw))
126126
(label-visibility-raw-length (length label-visibility-raw))
127127
(max-field-length (max label-reply-length-raw

0 commit comments

Comments
 (0)