diff options
author | Tim 'mithro' Ansell <me@mith.ro> | 2018-03-03 15:00:55 -0800 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-04-17 09:55:34 +0000 |
commit | 36aab0f4b2a05a1ae4c8603e57b4c3c684fe8ea8 (patch) | |
tree | 314bc7cc0306163447aa53022f19943812d40683 /docs/markdown/Syntax.md | |
parent | 6089631a1b9cd5b9b4e75598721b53b9abc33950 (diff) | |
download | meson-36aab0f4b2a05a1ae4c8603e57b4c3c684fe8ea8.zip meson-36aab0f4b2a05a1ae4c8603e57b4c3c684fe8ea8.tar.gz meson-36aab0f4b2a05a1ae4c8603e57b4c3c684fe8ea8.tar.bz2 |
Complete python escape sequences aware strings
Fixes #3169
Diffstat (limited to 'docs/markdown/Syntax.md')
-rw-r--r-- | docs/markdown/Syntax.md | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index 1005100..01c8c6e 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -90,8 +90,24 @@ single quote do it like this: single quote = 'contains a \' character' ``` -Similarly `\n` gets converted to a newline and `\\` to a single -backslash. +The full list of escape sequences is: + +* `\\` Backslash +* `\'` Single quote +* `\a` Bell +* `\b` Backspace +* `\f` Formfeed +* `\n` Newline +* `\r` Carriage Return +* `\t` Horizontal Tab +* `\v` Vertical Tab +* `\ooo` Character with octal value ooo +* `\xhh` Character with hex value hh +* `\uxxxx` Character with 16-bit hex value xxxx +* `\Uxxxxxxxx` Character with 32-bit hex value xxxxxxxx +* `\N{name}` Character named name in Unicode database + +As in python and C, up to three octal digits are accepted in `\ooo`. #### String concatenation |