]> Cypherpunks repositories - gostls13.git/commit
text/template/parse: mostly roll back the error detection for unmatched right delimiters
authorRob Pike <r@golang.org>
Fri, 13 Sep 2013 02:44:45 +0000 (12:44 +1000)
committerRob Pike <r@golang.org>
Fri, 13 Sep 2013 02:44:45 +0000 (12:44 +1000)
commitc842e43ef6a7e3ac525a0a72e91dc7c482857afd
tree3230981dd89175b29ec868f44c8c86639157fc04
parent913f1f1557541f2b16ca13a71d498a85fa585374
text/template/parse: mostly roll back the error detection for unmatched right delimiters
It's too late to change this behavior: it breaks templates with minimized JavaScript.

Makes me sad because this common error can never be caught: "{foo}}".
Three cheers for compatibility.

(Leave in a fix to a broken test.)

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