Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix Caret arguments ordering `line` was filled with `offset`, `col` was filled with `line` and `offset` with `col`. I'm guessing at one point Caret was `Caret(offset, line, column)`, but was changed to `Caret(line, column, offset)` without re-examing argument order. This caused this behavior: ```scala val p = (Parser.caret.with1 <* Parser.anyChar).rep val pattern = """aaa""" val parsed = p.parseAll(pattern).right.get // parsed: cats.data.NonEmptyList[Caret] = NonEmptyList(Caret(0, 0, 0), List(Caret(1, 0, 1), Caret(2, 0, 2))) ``` Expected: ```scala // parsed: cats.data.NonEmptyList[Caret] = NonEmptyList(Caret(0, 0, 0), List(Caret(0, 1, 1), Caret(0, 2, 2))) ``` * formatting * Deconstruct Caret properly * remove unneeded case * add assert for offset
- Loading branch information