We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 310a6ff + 8c77e08 commit 48d7953Copy full SHA for 48d7953
lib/Syntax/README.md
@@ -280,7 +280,10 @@ new `Syntax` nodes:
280
the next newline character.
281
282
2. Looking backward in the text, a token owns all of the leading trivia
283
- up to and including the first contiguous sequence of newlines characters.
+ up to and including the first newline character.
284
+
285
+In other words, a contiguous stretch of trivia between two tokens is split on the
286
+leftmost newline.
287
288
Let's take a look at how this shows up in practice with a small snippet of Swift
289
code.
0 commit comments