From 533b372280a2124f39a1093e7211f5b677b619d9 Mon Sep 17 00:00:00 2001 From: Mike Samuel Date: Mon, 19 Sep 2011 17:27:49 -0700 Subject: [PATCH] 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 --- src/pkg/exp/template/html/context.go | 16 +++++++++++++--- src/pkg/exp/template/html/escape.go | 11 ++++++----- src/pkg/exp/template/html/escape_test.go | 8 ++++---- src/pkg/exp/template/html/transition.go | 8 ++++---- 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/pkg/exp/template/html/context.go b/src/pkg/exp/template/html/context.go index f7802d04b31..57d44938ca6 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 (