adelf / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

Append backslash for long string produces error (not warning). #68

Closed arafatx closed 3 years ago

arafatx commented 3 years ago

Declare a long string and append new line with backslash \:

#file.env

hello="This is only \
one line string \
with space and might be long"
#!/bin/bash

source file.env
echo "${hello}"

This will produce an error regarding to the backslash :

DotEnvTokenType.COMMENT, DotEnvTokenType.CRLF, DotEnvTokenType.EXPORT, DotEnvTokenType.KEY_CHARS or DotEnvTokenType.QUOTE expected, got '\'

but ENV source file has no problem. Output still working:

This is only one line string with space and might be long

adelf commented 3 years ago

I'll fix it. Thank you.

adelf commented 3 years ago

2021.2 is released