com-lihaoyi / fastparse

Writing Fast Parsers Fast in Scala
https://com-lihaoyi.github.io/fastparse
MIT License
1.09k stars 164 forks source link

CharsWhileIn - documentation inconsistency #207

Closed james64 closed 2 months ago

james64 commented 5 years ago

According to both scaladoc string here and my intuition given its name CharsWhileIn("a") should behave as CharsWhileIn("a",0).

However according to both sourcecode here and my experience it behaves as CharsWhileIn("a",1).

arteme commented 4 years ago

Fixed here, it seems: https://github.com/lihaoyi/fastparse/commit/e71b61ffe10a0189b48cff02bb8eb7c7ca734009