aboutsummaryrefslogtreecommitdiff
path: root/sx-question-print.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 22:14:29 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 22:14:29 -0200
commitb5cc49f539aab7a1685bbcbdb089916ecfd5476f (patch)
tree993ed7361c42c72d857b894a658ab73343d844f6 /sx-question-print.el
parent95e9f6069ba328249c0e8ac86efdc888437ac187 (diff)
Change regexps to defconst
Diffstat (limited to 'sx-question-print.el')
-rw-r--r--sx-question-print.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index e2db76f..02e14c8 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -322,14 +322,14 @@ where `value' is given `face' as its face.
'face 'markdown-list-face)
"String to be displayed as the bullet of markdown list items.")
-(defvar sx-question-mode--reference-regexp
+(defconst sx-question-mode--reference-regexp
(rx line-start (0+ blank) "[%s]:" (0+ blank)
(group-n 1 (1+ (not blank))))
"Regexp used to find the url of labeled links.
E.g.:
[1]: https://...")
-(defvar sx-question-mode--link-regexp
+(defconst sx-question-mode--link-regexp
;; Done at compile time.
(rx "[" (group-n 1 (1+ (not (any "]")))) "]"
(or (and "(" (group-n 2 (1+ (not (any ")")))) ")")