Commit 517d9de
Coot
Indent (#44)
* indent class and remove '|' from operator characters
If '|' was included then there is extra indent in
```
class RowLacking (entry :: Type)
(key :: Symbol)
(typ :: Type)
(row :: # Type) |
>>
entry typ -> key row
```
* indent pattern guards
* guard against class
* if the previous line contains `| otherwise` find the first line that
does not start with `|` (actually find the first line that starts with
`\k`, '^\%(\s*|\)\@!' did not work inside indent function for some
reason.1 parent 26ffc81 commit 517d9de
1 file changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
168 | | - | |
| 174 | + | |
169 | 175 | | |
170 | 176 | | |
171 | | - | |
| 177 | + | |
172 | 178 | | |
173 | 179 | | |
174 | 180 | | |
| |||
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
| |||
0 commit comments