Skip to content

lib: lexer fix for slash strings #5070

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

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

HofiOne
Copy link
Collaborator

@HofiOne HofiOne commented Aug 26, 2024

  • lexer was unable to handle escaped slashes in slash strings ( i.e: \foo/\bar\ ) this lesser refinement of lexer rule for slash strings allows the lexer to recognize escaped slashes
  • gnu awk feaure set applie to slash strings as well
  • light tests for slash string

Backport of #181 by @bshifter

@HofiOne HofiOne marked this pull request as draft August 26, 2024 10:15
- lexer was unable to handle escaped slashes in slash strings ( i.e: \foo/\bar\ )
this lesser refinement of lexer rule for slash strings allows the lexer
to recognize escaped slashes
- gnu awk feaure set applie to slash strings as well
- light tests for slash string

Signed-off-by: shifter <shifter@axoflow.com>
Signed-off-by: Hofi <hofione@gmail.com>
@HofiOne HofiOne force-pushed the lexer-fix-for-slash-strings branch from 1bd994c to 707b194 Compare August 26, 2024 10:38
@HofiOne HofiOne marked this pull request as ready for review August 26, 2024 11:08
@HofiOne HofiOne merged commit e10b80e into syslog-ng:master Aug 27, 2024
23 checks passed
@HofiOne HofiOne deleted the lexer-fix-for-slash-strings branch August 27, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants