Skip to content

Commit

Permalink
Tweak indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Oct 23, 2018
1 parent 20b9b4d commit bf8f76f
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions racer.el
Original file line number Diff line number Diff line change
Expand Up @@ -642,18 +642,20 @@ Commands:

(defun racer-complete--extract-args (str)
"Extract function arguments from STR (excluding a possible self argument)."
(let* ((index (string-match (rx
(or (seq "("
(zero-or-more (not (any ",")))
"self)")
(seq "("
(zero-or-more (seq (zero-or-more (not (any "(")))
"self"
(zero-or-more space)
","))
(zero-or-more space)
(group (zero-or-more (not (any ")"))))
")"))) str))
(let* ((index (string-match
(rx
(or (seq "("
(zero-or-more (not (any ",")))
"self)")
(seq "("
(zero-or-more (seq (zero-or-more (not (any "(")))
"self"
(zero-or-more space)
","))
(zero-or-more space)
(group (zero-or-more (not (any ")"))))
")")))
str))
(extract (match-string 1 str)))
(if extract
(format "(%s)" extract)
Expand Down

0 comments on commit bf8f76f

Please sign in to comment.