mirror of
https://github.com/golang/go
synced 2024-11-25 03:07:56 -07:00
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
This commit is contained in:
parent
256cd7e78e
commit
afac01df48
@ -1,6 +1,6 @@
|
|||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of September 4, 2012",
|
"Subtitle": "Version of September 6, 2012",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
@ -99,6 +99,12 @@ are different characters.
|
|||||||
Implementation restriction: For compatibility with other tools, a
|
Implementation restriction: For compatibility with other tools, a
|
||||||
compiler may disallow the NUL character (U+0000) in the source text.
|
compiler may disallow the NUL character (U+0000) in the source text.
|
||||||
</p>
|
</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>
|
<h3 id="Characters">Characters</h3>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user