google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.3k stars 209 forks source link

syntax: permit \" and \' escapes in both "..." and '...' literals #279

Closed alandonovan closed 4 years ago

alandonovan commented 4 years ago

Clarify spec on this issue.

Fixes https://github.com/google/starlark-go/issues/278

Also, fix semantic merge conflict in testdata/json.star tests that relied on "\u" being interpreted as "\u", causing tests to fail.

alandonovan commented 4 years ago

@laurentlb @nicks