Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank space after heredoc terminator is causing incorrect parsing #32

Open
bpradeep20 opened this issue Nov 14, 2018 · 4 comments
Open
Labels
bug Something isn't working question Further information is requested

Comments

@bpradeep20
Copy link

Config:

# comment
  
TAG << MYTAG

some line

MYTAG # comment2

<tag>
    key value
</tag>

Please note extra space after second MYTAG keyword.

with python parser:

{}

Also for config:

TAG << MYTAG
some line
MYTAG # comment

I am getting

raise ApacheConfigError("Parser error at '%s'" % p.value if p else 'Unexpected EOF')

apacheconfig.error.ApacheConfigError: Unexpected EOF

Can you please check?

@etingof
Copy link
Owner

etingof commented Nov 14, 2018

Oh, may be Perl approach is more fragile... At least with bash the delimiter must be alone not be terminating line...

We could probably introduce an option to support Perl behavior conditionally...

@bpradeep20
Copy link
Author

That would be great if we can have Perl behavior working as well.

@Sumit3
Copy link

Sumit3 commented Feb 26, 2019

I am also facing similar issue. Is the option to support Perl behavior added ?

@etingof etingof added bug Something isn't working question Further information is requested labels Nov 17, 2019
@ssumit3
Copy link

ssumit3 commented Jun 24, 2020

Have we introduced any option to support this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants