mirror of https://github.com/fredrikekre/Runic.jl
Browse Source
This patch fixes formatting of <: and >: when used without LHS. This is again an inconsistency compared to other operators.pull/19/head
4 changed files with 45 additions and 9 deletions
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
# TODOs, notes, and various thoughts |
||||
|
||||
## Inconsistencies |
||||
|
||||
- The `spaces_around_operators` rule have the following inconsistencies. |
||||
|
||||
- `:`, `^`, and `::` instead fall under `no_spaces_around_colon_etc`: |
||||
```julia |
||||
# current formatting # "consistent" formatting |
||||
a:b a : b ✖ |
||||
a^b a ^ b ✖ |
||||
a::b a :: b ✖ |
||||
``` |
||||
|
||||
- `<:` and `<:` fall under `no_spaces_around_colon_etc` if they have no LHS: |
||||
```julia |
||||
# current formatting # "consistent" formatting |
||||
a <: b a <: b ✔ |
||||
a >: b a >: b ✔ |
||||
a{c <: b} a{c <: b} ✔ |
||||
a{c >: b} a{c >: b} ✔ |
||||
a{<:b} a{<: b} ✖ |
||||
a{>:b} a{>: b} ✖ |
||||
``` |
||||
Loading…
Reference in new issue