Open rodinaarssen opened 6 years ago
Just browsing this repo tonight as an old user... I saw the same behaviour with scala multiline strings. This is the editor inserting the \r\n
or \n
, probably because the editor is not configured to always use linux line endings (\n
) and/or git does the autocrlf
magic if you only checked out and did not modify the file. With other words, I guess this is by design. Just my two cents 😄
Hi @JJWTimmer, this is a very useful observation. It probably means that we have to be more careful when parsing multiline string literals and probably change every \r\n
into \n
. Thanks again for pointing this out.
Multi-line strings are not platform-independent; in other words: depending on the platform, either "\r\n" or "\n" is inserted into the character array. This causes some tests to fail while building Rascal, as I found out while working on #1118.