diff --git a/src/go/build/deps_test.go b/src/go/build/deps_test.go index ff03691eb9..2388b3b8ad 100644 --- a/src/go/build/deps_test.go +++ b/src/go/build/deps_test.go @@ -247,15 +247,15 @@ var depsRules = ` < text/template < internal/lazytemplate; - encoding/json, html, text/template - < html/template; - # regexp FMT < regexp/syntax < regexp < internal/lazyregexp; + encoding/json, html, text/template, regexp + < html/template; + # suffix array encoding/binary, regexp < index/suffixarray; diff --git a/src/html/template/context.go b/src/html/template/context.go index e07a0c4a02..16b5e65317 100644 --- a/src/html/template/context.go +++ b/src/html/template/context.go @@ -174,6 +174,20 @@ func isInTag(s state) bool { return false } +// isInScriptLiteral returns true if s is one of the literal states within a +// #! beep\n", "", }, + { + "Special tags in `, + ``, + }, { "CSS comments", "