diff --git a/NEWS.md b/NEWS.md index 29efbed34761d..12f99598aabcd 100644 --- a/NEWS.md +++ b/NEWS.md @@ -260,6 +260,9 @@ Library improvements * `notify` now returns a count of tasks woken up ([#19841]). + * New nonstandard string literal `raw"..."` for creating strings + with no interpolation or unescaping ([#19900]). + * A new `Dates.Time` type was added that supports representing the time of day with up to nanosecond resolution ([#12274]). * New `@macroexpand` macro as a convenient alternative to the `macroexpand` function ([#18660]). @@ -358,6 +361,7 @@ Deprecated or removed [#19787]: https://github.com/JuliaLang/julia/issues/19787 [#19800]: https://github.com/JuliaLang/julia/issues/19800 [#19841]: https://github.com/JuliaLang/julia/issues/19841 +[#19900]: https://github.com/JuliaLang/julia/issues/19900 [#19903]: https://github.com/JuliaLang/julia/issues/19903 [#19919]: https://github.com/JuliaLang/julia/issues/19919 [#19944]: https://github.com/JuliaLang/julia/issues/19944 diff --git a/doc/src/manual/strings.md b/doc/src/manual/strings.md index 66ded3d982b04..f04f55b65f594 100644 --- a/doc/src/manual/strings.md +++ b/doc/src/manual/strings.md @@ -885,7 +885,9 @@ in the `Pkg` module, to specify packages versions and their dependencies. ## [Raw String Literals](@id man-raw-string-literals) Raw strings without interpolation or unescaping can be expressed with -non-standard string literals of the form `raw"..."`. Raw string literals -create ordinary `String` objects which contain the enclosed contents exactly -as entered with no interpolation or unescaping. This is useful for strings which -contain code or markup in other languages which use `$` or `\` as special characters. +non-standard string literals of the form `raw"..."`. Raw string literals create +ordinary `String` objects which contain the enclosed contents exactly as +entered with no interpolation or unescaping. This is useful for strings which +contain code or markup in other languages which use `$` or `\` as special +characters. The exception is quotation marks that still must be +escaped, e.g. `raw"\""` is equivalent to `"\""`.