summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorandrewc <andrewchamberss@gmail.com>2016-10-28 16:48:15 +1300
committerAndrew Chambers <andrewchamberss@gmail.com>2016-10-28 19:43:46 +1300
commit96aa84cdbe397910f532f8c802c8de9825e49c59 (patch)
tree6dae3bae3b0fb66435a7ce8e7cee47815e1227d7 /doc
parentd0ffb958c7247028223c7e53253249d52a47a324 (diff)
downloadmc-96aa84cdbe397910f532f8c802c8de9825e49c59.tar.gz
merge consecutive string literals
Diffstat (limited to 'doc')
-rw-r--r--doc/lang.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lang.txt b/doc/lang.txt
index 77a0aa9..92d03ff 100644
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -192,6 +192,13 @@ TABLE OF CONTENTS:
eg: "foo\"bar"
+ Multiple consecutive string literals are implicitly merged to create
+ a single combined string literal. To allow a string literal to span
+ across multiple lines, the new line characters must be be escaped.
+
+ eg: "foo" \
+ "bar"
+
Character literals represent a single codepoint in the character
set. A character starts with a single quote, contains a single
codepoint worth of text, encoded either as an escape sequence