summaryrefslogtreecommitdiff
path: root/03-lexical-syntax.md
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-03-11 17:50:24 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-03-11 18:01:06 -0700
commit507e58bef8dd7d0a77247e85d3180313d44bc45e (patch)
treed22bbceac25939d44268b3d7c5dae8560f3cc994 /03-lexical-syntax.md
parent09c957bef7b063353add3c04a9e0568aeed1eb30 (diff)
downloadscala-507e58bef8dd7d0a77247e85d3180313d44bc45e.tar.gz
scala-507e58bef8dd7d0a77247e85d3180313d44bc45e.tar.bz2
scala-507e58bef8dd7d0a77247e85d3180313d44bc45e.zip
github markdown: tables
Diffstat (limited to '03-lexical-syntax.md')
-rw-r--r--03-lexical-syntax.md37
1 files changed, 19 insertions, 18 deletions
diff --git a/03-lexical-syntax.md b/03-lexical-syntax.md
index ea82d257f0..8d9f7645e1 100644
--- a/03-lexical-syntax.md
+++ b/03-lexical-syntax.md
@@ -344,11 +344,12 @@ and the integer number fits in the numeric range defined by the type,
then the number is converted to type _pt_ and the literal's type
is _pt_. The numeric ranges given by these types are:
---------------- -----------------------
-`Byte` $-2^7$ to $2^7-1$
-`Short` $-2^{15}$ to $2^{15}-1$
-`Char` $0$ to $2^{16}-1$
---------------- -----------------------
+| | |
+|----------------|------------------------|
+|`Byte` | $-2^7$ to $2^7-1$ |
+|`Short` | $-2^{15}$ to $2^{15}-1$|
+|`Char` | $0$ to $2^{16}-1$ |
+| |
###### Example: some integer literals
@@ -507,19 +508,19 @@ Because there is a predefined
### Escape Sequences
-The following escape sequences are recognized in character and string
-literals.
-
------- ------------------------------
-`\b` `\u0008`: backspace BS
-`\t` `\u0009`: horizontal tab HT
-`\n` `\u000a`: linefeed LF
-`\f` `\u000c`: form feed FF
-`\r` `\u000d`: carriage return CR
-`\"` `\u0022`: double quote "
-`\'` `\u0027`: single quote '
-`\\` `\u005c`: backslash `\`
------- -------------------------------
+The following escape sequences are recognized in character and string literals.
+
+| | | | |
+|-------|----------|-----------------|------|
+| `\b` | `\u0008` | backspace | BS |
+| `\t` | `\u0009` | horizontal tab | HT |
+| `\n` | `\u000a` | linefeed | LF |
+| `\f` | `\u000c` | form feed | FF |
+| `\r` | `\u000d` | carriage return | CR |
+| `\"` | `\u0022` | double quote | " |
+| `\'` | `\u0027` | single quote | ' |
+| `\\` | `\u005c` | backslash | `\` |
+
A character with Unicode between 0 and 255 may also be represented by
an octal escape, i.e. a backslash ‘\’ followed by a