summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMartin Atkins <mart@degeneration.co.uk>2018-03-08 08:30:58 -0800
committerMartin Atkins <mart@degeneration.co.uk>2018-03-08 08:30:58 -0800
commit5f8ed954abd873b2c09616ba0aa607892bbca7e9 (patch)
treed201c9c0898a7107e9d14985384dc98fde7b458f /ext
parent7d6ed4d8f315f66b6c64389c00a661d16c4161ef (diff)
hclsyntax: count \r\n line endings properly in source ranges
Previously we were only counting a \n as starting a new line, so input using \r\n endings would get treated as one long line for source-range purposes. Now we also consider \r\n to be a newline marker, resetting the column count to zero and incrementing the line just as we would do for a single \n. This is made easier because the unicode definition of "grapheme cluster" considers \r\n to be a single character, so we don't need to do anything special in order to match it.
Diffstat (limited to 'ext')
0 files changed, 0 insertions, 0 deletions