Commit 30f914a6 authored by David Byers's avatar David Byers
Browse files

Better fontifying regexp.

Detailed changes:
parent 707efe1a
......@@ -2170,7 +2170,7 @@ Deferred insertions are not supported."
(defun lyskom-format-plaintext-fonts (text)
(let ((start 0))
(while (string-match "\\(_[^ \n\r\t_]\\([^_<>=%$\n]*[^ \n\r\t_]\\)?_\\)\\|\\(/[^ \n\r\t_]\\([^/<>=%$\n]*[^ \n\r\t_]\\)?/\\)\\|\\(\\*[^ \n\r\t_]\\([^*<>=%$\n]*[^ \n\r\t_]\\)?\\*\\)"
(while (string-match "\\(_[^ ^\n\r\t_]\\([^_^<>=%$\n]*[^ ^\n\r\t_]\\)?_\\)\\|\\(/[^ ^\n\r\t/]\\([^/^<>=%$\n]*[^ ^\n\r\t/]\\)?/\\)\\|\\(\\*[^ ^\n\r\t*]\\([^*^<>=%$\n]*[^ ^\n\r\t*]\\)?\\*\\)"
text start)
(add-text-properties (1+ (match-beginning 0))
(1- (match-end 0))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment