1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

🔥 some redundant bits of the comments.

This commit is contained in:
Rob Rix 2016-05-19 00:23:04 -04:00
parent c50493175b
commit 4f13339838

View File

@ -92,14 +92,6 @@ We align asymmetrically since the first child is asymmetrical, and then continue
, b | b
] | ]
[ [ Join This (Range 4 5, [ pure (Delete (Info (Range 4 5) mempty 0 :< Leaf "a")) ]) ]
, [ Join These (Range 4 5, [ liftF (Info (Range 4 5) mempty 0 :< Leaf "b") ])
(Range 4 5, [ liftF (Info (Range 4 5) mempty 0 :< Leaf "b") ]) ]
]
The first child is asymmetrical but there is also a symmetrical child on the same line, so we align symmetrically, producing:
[ a, b ] | [ b ]
@ -107,7 +99,6 @@ and not:
[ a, b ] |
| [ b ]
We align the child symmetrically, and thus have to take the first line range on the right asymmetrically so as not to break the childs alignment.
| [
[ b ] | b
@ -137,10 +128,6 @@ Lines without children on them are aligned irrespective of their textual content
b\n | \n
] | ]
[ [ Join That (Range 4 5, [ liftF (Info (Range 4 5) mempty 0 :< Leaf "b") ]) ] ]
We should avoid taking asymmetrical children greedily so as not to misalign asymmetrical children before symmetrical children on the same line:
| [ a
[ b, c ] | , c