]> Cypherpunks repositories - gostls13.git/commit
text/template: revert CL 66410 "add break, continue actions in ranges"
authorIan Lance Taylor <iant@golang.org>
Mon, 5 Feb 2018 23:50:29 +0000 (15:50 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 6 Feb 2018 05:00:01 +0000 (05:00 +0000)
commitfd7331a821a6b79d5f2f82075c032ac459670d7d
tree1cc0bc54fd8c5ca07a2fe30bd059b9a5d80cb485
parentf54f780d2f4ed47da4bed87c37f7219df1b9879b
text/template: revert CL 66410 "add break, continue actions in ranges"

The new break and continue actions do not work in html/template, and
fixing them requires thinking about security issues that seem too
tricky at this stage of the release. We will try again for 1.11.

Original CL description:

    text/template: add break, continue actions in ranges

    Adds the two range control actions "break" and "continue". They act the
    same as the Go keywords break and continue, but are simplified in that
    only the innermost range statement can be broken out of or continued.

    Fixes #20531

Updates #20531
Updates #23683

Change-Id: Ia7fd3c409163e3bcb5dc42947ae90b15bdf89853
Reviewed-on: https://go-review.googlesource.com/92155
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
api/go1.10.txt
doc/go1.10.html
src/text/template/doc.go
src/text/template/exec.go
src/text/template/exec_test.go
src/text/template/parse/lex.go
src/text/template/parse/lex_test.go
src/text/template/parse/node.go
src/text/template/parse/parse.go
src/text/template/parse/parse_test.go