You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an exception, if the `#!` characters are followed (ignoring intervening [comments] or [whitespace]) by a `[` token, nothing is removed. This prevents an [inner attribute] at the start of a source file being removed.
64
+
The shebang starts with the characters `#!` and extends through the first `U+000A` (LF) or through EOF if no LF is present. If the `#!` characters are followed by `[` (ignoring any intervening [comments] or [whitespace]), the line is not considered a shebang (to avoid ambiguity with an [inner attribute]).
65
+
66
+
r[input.shebang.position]
67
+
The shebang may appear immediately at the start of the file or after the optional [byte order mark].
68
+
69
+
r[input.shebang.removal]
70
+
The shebang is removed from the input sequence (and is therefore ignored).
60
71
61
72
r[input.tokenization]
62
73
## Tokenization
@@ -76,5 +87,5 @@ The resulting sequence of characters is then converted into tokens as described
76
87
[BYTE ORDER MARK]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
77
88
[comments]: comments.md
78
89
[Crates and source files]: crates-and-source-files.md
0 commit comments