Skip to content

Blank space after heredoc terminator is causing incorrect parsing  #32

Open

Description

@bpradeep20

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?

Activity

  1. etingof commented on Nov 14, 2018

    @etingof
    Owner

    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...

  2. bpradeep20 commented on Dec 5, 2018

    @bpradeep20
    Author

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

  3. Sumit3 commented on Feb 26, 2019

    @Sumit3

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

  4. added
    bugSomething isn't working
    questionFurther information is requested
    on Nov 17, 2019
  5. ssumit3 commented on Jun 24, 2020

    @ssumit3

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions