]> Cypherpunks repositories - gostls13.git/commit
text/template/parse: nicer error when comment ends before final delimiter
authorRob Pike <r@golang.org>
Fri, 9 Aug 2013 02:57:21 +0000 (12:57 +1000)
committerRob Pike <r@golang.org>
Fri, 9 Aug 2013 02:57:21 +0000 (12:57 +1000)
commitb7eb0e5990b45afc10ccc3c91edbd226793843b1
tree6ed3443049971dcdc981e3377058d4dcccf075a4
parent237e7c134c948c3a4c6c9aa84b5b8dd7192af919
text/template/parse: nicer error when comment ends before final delimiter
By separating finding the end of the comment from the end of the action,
we can diagnose malformed comments better.
Also tweak the documentation to make the comment syntax clearer.

Fixes #6022.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12570044
src/pkg/text/template/doc.go
src/pkg/text/template/parse/lex.go
src/pkg/text/template/parse/lex_test.go