structurizr / java

Structurizr for Java
https://docs.structurizr.com/java
Apache License 2.0
1.02k stars 290 forks source link

// comment \ #346

Closed neopaf closed 1 month ago

neopaf commented 2 months ago

Expected

The line is commented out, including trailing '\'. Trailing '\' has no special meaning

Actual

Trailing '\' pulls the next line up and that line also gets commented.

Steps to reproduce

workspace {
    model {
// evil comment that kills next line \
    }
        views {
        }
}

you'd get obscure "unexpected token" at views { line

Version/build information

3.0.0

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

IntelliJ plugin highlights no errors within file, it thinks // line is completely ignored, next line is not highlighted in comment color.

error message does not contain indication that we are still in model context.

neopaf commented 1 month ago

Thanks, Simon!