Skip to content

Commit

Permalink
An attempt to resolve an error on indenting.
Browse files Browse the repository at this point in the history
Fix issue Raku#23

When indenting something like

    if %h{"foo"} {
        ....... (press tab here)
    }

This error happens.

    (error "Lisp nesting exceeds ‘max-lisp-eval-depth’")

Note here that while the fix does makes the error go away, it is not
entirely certain whether it breaks the indentation for some other
cases.

But I think we could live with this until we found what's broken.
  • Loading branch information
gugod committed Jan 2, 2021
1 parent 8a6e17f commit 53127cc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions raku-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
(`(:elem . basic) raku-indent-offset)
(`(:elem . arg) 0)
(`(:list-intro . ,(or `";" `"")) t) ;"" stands for BOB (bug#15467).
(`(:before . "{")
(when (smie-rule-hanging-p)
(smie-backward-sexp ";")
(smie-indent-virtual)))
(`(:before . ,(or "{" "("))
(if (smie-rule-hanging-p) (smie-rule-parent 0)))))

Expand Down

0 comments on commit 53127cc

Please sign in to comment.