@@ -4,26 +4,23 @@ r[lex.whitespace]
4
4
r[ whitespace.syntax]
5
5
``` grammar,lexer
6
6
@root WHITESPACE ->
7
- // end of line
8
- LF
9
- | U+000B // vertical tabulation
10
- | U+000C // form feed
11
- | CR
12
- | U+0085 // Unicode next line
13
- | U+2028 // Unicode LINE SEPARATOR
14
- | U+2029 // Unicode PARAGRAPH SEPARATOR
15
- // Ignorable Code Point
16
- | U+200E // Unicode LEFT-TO-RIGHT MARK
17
- | U+200F // Unicode RIGHT-TO-LEFT MARK
18
- // horizontal whitespace
19
- | TAB
20
- | U+0020 // space ' '
21
-
22
- TAB -> U+0009 // horizontal tab ('\t')
23
-
24
- LF -> U+000A // line feed ('\n')
25
-
26
- CR -> U+000D // carriage return ('\r')
7
+ U+0009 // Horizontal tab, `'\t'`
8
+ | U+000A // Line feed, `'\n'`
9
+ | U+000B // Vertical tab
10
+ | U+000C // Form feed
11
+ | U+000D // Carriage return, `'\r'`
12
+ | U+0020 // Space, `' '`
13
+ | U+0085 // Next line
14
+ | U+200E // Left-to-right mark
15
+ | U+200F // Right-to-left mark
16
+ | U+2028 // Line separator
17
+ | U+2029 // Paragraph separator
18
+
19
+ TAB -> U+0009 // Horizontal tab, `'\t'`
20
+
21
+ LF -> U+000A // Line feed, `'\n'`
22
+
23
+ CR -> U+000D // Carriage return, `'\r'`
27
24
```
28
25
29
26
r[ lex.whitespace.intro]
0 commit comments