|
82 | 82 | (t (smie-default-backward-token))))) ;; If none of the above matched, defer to SMIE default search |
83 | 83 |
|
84 | 84 | (defun raku-smie-rules (kind token) |
85 | | - (progn |
86 | | - (pcase (cons kind token) |
87 | | - ;; Basic indent offset |
88 | | - (`(:elem . basic) raku-indent-offset) |
| 85 | + (pcase (cons kind token) |
| 86 | + ;; Basic indent offset |
| 87 | + (`(:elem . basic) raku-indent-offset) |
89 | 88 |
|
90 | | - ;; Indent offset for function args |
91 | | - (`(:elem . arg) 0) |
| 89 | + ;; Indent offset for function args |
| 90 | + (`(:elem . arg) 0) |
92 | 91 |
|
93 | | - (`(:list-intro . ,(or `";" `"")) t) ;"" stands for BOB (bug#15467). |
| 92 | + (`(:list-intro . ,(or `";" `"")) t) ;"" stands for BOB (bug#15467). |
94 | 93 |
|
95 | | - ;; Make sure that hanging assignment gets indented |
96 | | - (`(:before . "=") |
97 | | - (if (smie-rule-hanging-p) |
98 | | - (smie-rule-parent raku-indent-offset))) |
| 94 | + ;; Make sure that hanging assignment gets indented |
| 95 | + (`(:before . "=") |
| 96 | + (if (smie-rule-hanging-p) |
| 97 | + (smie-rule-parent raku-indent-offset))) |
99 | 98 |
|
100 | | - (`(:before . "{") |
101 | | - (when (smie-rule-hanging-p) ; is `{` the last thing on this line? |
102 | | - (smie-backward-sexp ";") ; y tho |
103 | | - (smie-indent-virtual))) |
| 99 | + (`(:before . "{") |
| 100 | + (when (smie-rule-hanging-p) ; is `{` the last thing on this line? |
| 101 | + (smie-backward-sexp ";") ; y tho |
| 102 | + (smie-indent-virtual))) |
104 | 103 |
|
105 | | - (`(:before . ,(or "{" "(")) |
106 | | - (if (smie-rule-hanging-p) |
107 | | - (smie-rule-parent 0)))))) |
| 104 | + (`(:before . ,(or "{" "(")) |
| 105 | + (if (smie-rule-hanging-p) |
| 106 | + (smie-rule-parent 0))))) |
108 | 107 |
|
109 | 108 | (provide 'raku-indent) |
110 | 109 |
|
|
0 commit comments