apacheconfig icon indicating copy to clipboard operation
apacheconfig copied to clipboard

When starting config with backslash parsing fails

Open bpradeep20 opened this issue 7 years ago • 4 comments

For below config:

# comment
\
<main>
    key value
</main>

This is raising an error:

raise ApacheConfigError("Illegal character '%s'" % t.value[0])

apacheconfig.error.ApacheConfigError: Illegal character ''

while perl parser parse it properly.

I am not sure whether perl's behavior is correct but just wanted to bring it to your notice.

Also it might be related to https://github.com/etingof/apacheconfig/issues/34.

Can you please check?

bpradeep20 avatar Nov 14 '18 05:11 bpradeep20

Hopefully fixed by commit 08d42cb40f351117dab76691284f984f17e4b4ac which is in master.

etingof avatar Nov 14 '18 11:11 etingof

This worked for me. Thanks for fixing it.

bpradeep20 avatar Dec 05 '18 04:12 bpradeep20

This issue is occurring for me again. I checked the my checkout has the fixes present in above commit but i still receive the above error

Sumit3 avatar Jan 07 '19 08:01 Sumit3

Hey, is it still failing for you with the latest master?

etingof avatar Sep 26 '19 06:09 etingof