linux-china / jetbrains-just-plugin

JetBrains Just Command Runner Plugin
https://plugins.jetbrains.com/plugin/18658-just
Apache License 2.0
35 stars 6 forks source link

Parse error for recipes with blank lines #5

Closed nem75 closed 2 years ago

nem75 commented 2 years ago

When using the plugin, blank lines in recipes are marked as an error although just accepts them quite fine.

justfile to reproduce:

with-blank-line:
    echo this

    echo that

without-blank-line:
    echo this
    echo that

Both recipes execute, but the plugin marks the first echo that line with an error.

linux-china commented 2 years ago

Yes, I know this problem, and it's some challenge because of token parsing rules. Now please remove empty line in recipe script body, and I will try to fix this problem. :)

linux-china commented 2 years ago

@nem75 fixed https://github.com/linux-china/jetbrains-just-plugin/commit/e3fa5098d73b90f7d6c3090444e0e6df9f882c5a I will release a new version soon.

image