emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/julia-mode 9cdad57 187/352: Make julia-char-regex stricter


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 9cdad57 187/352: Make julia-char-regex stricter.
Date: Sun, 29 Aug 2021 11:22:42 -0400 (EDT)

branch: elpa/julia-mode
commit 9cdad57c5c44accba1570f91f81ea0832dd58f9a
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Yichao Yu <yyc1992@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 "\\"))
                     "\\\\")
                 "'")))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]