• Roger Peppe's avatar
    fmt: make ScanState.Token more general. · 3a95587e
    Roger Peppe authored
    When writing custom scanners, I found that
    Token itself was rarely useful, as I did not always
    want to stop at white space. This change makes
    it possible to stop at any class of characters
    while reusing the buffer within State.
    (also fix a bug in Token)
    
    R=r, r2
    CC=golang-dev
    https://golang.org/cl/4243055
    3a95587e
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...