From: Mike Samuel Date: Tue, 20 Sep 2011 00:27:49 +0000 (-0700) Subject: exp/template/html: define isComment helper X-Git-Tag: weekly.2011-09-21~24 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=533b372280a2124f39a1093e7211f5b677b619d9;p=gostls13.git exp/template/html: define isComment helper Non semantics-changing refactoring in preparation for comment elision. R=nigeltao CC=golang-dev https://golang.org/cl/5071043 --- diff --git a/src/pkg/exp/template/html/context.go b/src/pkg/exp/template/html/context.go index f7802d04b3..57d44938ca 100644 --- a/src/pkg/exp/template/html/context.go +++ b/src/pkg/exp/template/html/context.go @@ -89,8 +89,8 @@ const ( // stateBeforeValue occurs after the equals sign but before the value. // It occurs between the ^'s in ` name =^ ^value`. stateBeforeValue - // stateComment occurs inside an . - stateComment + // stateHTMLCmt occurs inside an . + stateHTMLCmt // stateRCDATA occurs inside an RCDATA element (