Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 21bbc7f

Browse files
committed
[[ Builder ]] Updated language reference to mention escaping of strings.
1 parent 4270435 commit 21bbc7f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/specs/livecode_builder_language_reference.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,20 @@ The structure of tokens is similar to LiveCode Script, but again a little strict
2424
- **String**: "[^\n\r"]*"
2525
- **Separator**: Any whitespace containing at least one newline
2626

27+
Strings use backslash ('\') as an escape - the following are understood:
28+
29+
- **\n**: LF (ASCII 10)
30+
- **\r**: CR (ASCII 13)
31+
- **\t**: TAB (ASCII 9)
32+
- **\q**: quote '"'
33+
- **\xXX**: character with unicode codepoint hex value 0xXX
34+
- **\uXXXX**: character with unicode codepoint hex value 0xXXXX
35+
- **\UXXXXXX**: character with unicode codepoint hex valu 0xXXXXXX
36+
- **\\**: backslash '\'
37+
2738
> **Note:** The presence of '.' in identifiers are used as a namespace scope delimiter.
2839
29-
> **Note:** Eventually strings will use '\' as an escaping character allowing things such as \n for newline and \q for quote.
40+
> **Note:** Source files are presumed to be in UTF-8 encoding.
3041
3142
## Case-Sensitivity
3243

0 commit comments

Comments
 (0)