branch: elpa/julia-mode commit 9cdad57c5c44accba1570f91f81ea0832dd58f9a Author: Wilfred Hughes <m...@wilfred.me.uk> Commit: Yichao Yu <yyc1...@gmail.com>
Make julia-char-regex stricter. This gives us more accurate highlighting, and makes julia-in-char more accurate. Previously, it could be confused by: edit_insert(s, ';|') end end, '?' => function (s,o...) because ; is legal before a character, and we weren't enforcing a maximum length of character literals. --- julia-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/julia-mode.el b/julia-mode.el index 3715793..7705fdf 100644 --- a/julia-mode.el +++ b/julia-mode.el @@ -117,7 +117,7 @@ This function provides equivalent functionality, but makes no efforts to optimis (syntax whitespace) bol)) (submatch "'" - (or (*? (not (any "'"))) (not (any "\\")) + (or (repeat 0 7 (not (any "'"))) (not (any "\\")) "\\\\") "'")))