Skip to content

Commit

Permalink
Make julia-char-regex stricter.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Wilfred committed Nov 11, 2014
1 parent bb5d276 commit 468c2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/julia-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 "\\"))
"\\\\")
"'")))

Expand Down

0 comments on commit 468c2a2

Please sign in to comment.