Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

S-Expression Comments can get Windows/DOS carriage returns embedded in them #41

Open
tealeg opened this issue Nov 20, 2018 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@tealeg
Copy link
Contributor

tealeg commented Nov 20, 2018

In the event that someone submits a regula rule that includes Windows/DOS line endings. We'll cope with it without error (hopefully). However, the lexer's scanComment function will currently break on \n and read the preceding \r into the comment string. This doesn't cause any practical problems, but still, it's not quite the right behaviour. We should, instead, explicitly ignore the \r character when lexing a comment.

@tealeg tealeg added bug Something isn't working good first issue Good for newcomers labels Nov 20, 2018
@tealeg tealeg changed the title Comments can get Windows/DOS carriage returns embedded in them S-Expression Comments can get Windows/DOS carriage returns embedded in them Nov 20, 2018
@asdine asdine added this to the v0.7.0 milestone Apr 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants