]> Cypherpunks repositories - gostls13.git/commit
exp/template: simpler parse of char constants.
authorRob Pike <r@golang.org>
Mon, 11 Jul 2011 02:36:10 +0000 (12:36 +1000)
committerRob Pike <r@golang.org>
Mon, 11 Jul 2011 02:36:10 +0000 (12:36 +1000)
commit0027dc91b05286d4fc3fc50a4802131881efd6e2
tree9cdf6375daca020328adc3b30f108ef7c204eae9
parentbf9531f80bc11de82fe739b43156705b1816acf3
exp/template: simpler parse of char constants.
We can avoid the check against empty constants (''),
which UnquoteChar doesn't handle well, by leaving on
the trailing quote and seeing that's all we have left at the end.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4657090
src/pkg/exp/template/parse.go