Commit afac01df authored by Rob Pike's avatar Rob Pike

spec: ignore BOMS outside of string and rune literals.

Happy Birthday UTF-8.

R=golang-dev, rsc, 0xjnml
CC=golang-dev
https://golang.org/cl/6506083
parent 256cd7e7
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of September 4, 2012",
"Subtitle": "Version of September 6, 2012",
"Path": "/ref/spec"
}-->
......@@ -99,6 +99,12 @@ are different characters.
Implementation restriction: For compatibility with other tools, a
compiler may disallow the NUL character (U+0000) in the source text.
</p>
<p>
Implementation restriction: For compatibility with other tools, a
compiler may ignore any UTF-8-encoded Unicode byte order mark
(U+FEFF) in the source text outside of <a href="#String_literals">string</a>
and <a href="#Rune_literals">rune</a> literals.
</p>
<h3 id="Characters">Characters</h3>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment