Skip to content

Commit

Permalink
le-python.el (lispy--eval-python): Fix "==" interpretation
Browse files Browse the repository at this point in the history
Regex thought it was an assignment.
  • Loading branch information
abo-abo committed Apr 21, 2017
1 parent bd9ef69 commit e88a418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion le-python.el
Expand Up @@ -184,7 +184,7 @@ it at one time."
(unless plain
(setq str (string-trim str))
(cond ((and (or (string-match "\\`\\(\\(?:[., ]\\|\\sw\\|\\s_\\|[][]\\)+\\) += " str)
(string-match "\\`\\(([^)]+)\\) *=" str))
(string-match "\\`\\(([^)]+)\\) *=[^=]" str))
(save-match-data
(or single-line-p
(and (not (string-match-p "lp\\." str))
Expand Down

0 comments on commit e88a418

Please sign in to comment.