diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-07 22:14:29 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-07 22:14:29 -0200 |
commit | b5cc49f539aab7a1685bbcbdb089916ecfd5476f (patch) | |
tree | 993ed7361c42c72d857b894a658ab73343d844f6 /sx-question-print.el | |
parent | 95e9f6069ba328249c0e8ac86efdc888437ac187 (diff) |
Change regexps to defconst
Diffstat (limited to 'sx-question-print.el')
-rw-r--r-- | sx-question-print.el | 4 |
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 ")")))) ")") |