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

Plugin doesn't understand escaped line breaks in dependencies #24

Closed scottmmjackson closed 4 months ago

scottmmjackson commented 4 months ago

Escaping line breaks in recipe dependencies with \ works fine

default: hello\
world

hello:
  @ echo "hello"

world:
  @ echo "world"
$ just 
hello
world

However, if you copy the justfile snippet above into a new scratch buffer named justfile, it produces the following error located on the \ character:

JustToken.ATTRIBUTE, JustToken.COMMENT, JustToken.KEYWORD_ALIAS, JustToken.KEYWORD_EXPORT, JustToken.KEYWORD_MOD, JustToken.KEYWORD_SET, JustToken.NEW_LINE, JustToken.RECIPE_NAME, JustToken.SHEBANG or JustToken.VARIABLE expected, got '\'