Descriptionfmt: make ScanState.Token more general.
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)
Patch Set 1 #Patch Set 2 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #
Total comments: 6
Patch Set 5 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 7 : diff -r 03da6860bb39 https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 8 : diff -r 611653f358d7 https://go.googlecode.com/hg/ #MessagesTotal messages: 13
|