diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2019-04-28 21:06:36 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-28 23:06:36 +0300 |
commit | ccc4ce28cc9077d77a0bc9e72b1177eba1be7186 (patch) | |
tree | 8ed953d8d9afd62721c88ab3ce6460d85e5b596e /docs/markdown | |
parent | 03d34a79f8632bd8d84d06e1f76b2fdba00a9be0 (diff) | |
download | meson-ccc4ce28cc9077d77a0bc9e72b1177eba1be7186.zip meson-ccc4ce28cc9077d77a0bc9e72b1177eba1be7186.tar.gz meson-ccc4ce28cc9077d77a0bc9e72b1177eba1be7186.tar.bz2 |
consistent invalid escape sequence behaviour
* docs: document unrecognized escape sequence behaviour [skip ci]
Document that unrecognized escape sequence behaviour is like python, not
C.
* Don't try to decode invalid hex escape sequences
Don't try to decode escape sequences which should contain a sequence of
hex digits, but don't, throwing a python exception. These will treated
literally instead.
* Extend test case to cover invalid escape sequences
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Syntax.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index cf56dd3..aadb14a 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -116,6 +116,9 @@ The full list of escape sequences is: As in python and C, up to three octal digits are accepted in `\ooo`. +Unrecognized escape sequences are left in the string unchanged, i.e., the +backslash is left in the string. + #### String concatenation Strings can be concatenated to form a new string using the `+` symbol. |