Skip to content

Windows end of line can give issues #34

@Wulfklaue

Description

@Wulfklaue

When a file is saved under Windows to WSL, it has the default CRLF encoding instead of the expacted LF.

Compiling this results in:

macro didn't expand to a valid program, it expanded to:

================================================================================
--------------------------------------------------------------------------------
   1. __slang__ << "<html"
   2. __slang__ << ">"
.....
--------------------------------------------------------------------------------
Syntax error in expanded macro: macro_140680034121248:65: expecting '\n' after '\r'

"_slang__ << "Multi-line comment

Might be interesting to also add Windows end of line file support, as Crystal is recently making a lot of process towards a Windows version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions