diff --git a/src/go/build/deps_test.go b/src/go/build/deps_test.go index 2f335068b8..bea398fa95 100644 --- a/src/go/build/deps_test.go +++ b/src/go/build/deps_test.go @@ -245,15 +245,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..7987713c65 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", "