mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 12:11:31 +03:00
1e3b9a3624
Parse text literals. See: https://www.pivotaltracker.com/story/show/182496940 # Important Notes - The left-trimming algorithm (https://github.com/enso-org/design/blob/wip/wd/enso-spec/epics/enso-spec-1.0/04.%20Expressions.md#inline-and-block-text-literals) requires two passes over the sequence of text segments. This implementation performs one pass while parsing (identifying the correct amount of trim). The other pass (applying the trim) can be done when building the value of the quoted string: Trim the amount of whitespace identified by the `trim` field off of the whitespace of each `TextSection` (the value will not exceed the amount of whitespace found in the tokens' offsets, except for tokens with 0 offset, in which case no trimming is necessary/possible). |
||
---|---|---|
.. | ||
java/org/enso/syntax2 | ||
src | ||
Cargo.toml |