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

Illegal escape detection #17

Merged
merged 5 commits into from
Oct 18, 2021
Merged

Conversation

aslakhellesoy
Copy link
Contributor

Description

Only allow escape character (\) in front of (, ), or \. Throw error otherwise.

Motivation & context

It makes the grammar less ambiguous.

Type of change

  • Breaking change (will cause existing functionality to not
    work as expected)

Update required of cucumber.io/docs

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

@aslakhellesoy aslakhellesoy merged commit bc040f7 into shared-testdata Oct 18, 2021
@aslakhellesoy aslakhellesoy deleted the illegal-escape-detection branch October 18, 2021 15:54
@aslakhellesoy aslakhellesoy mentioned this pull request Oct 18, 2021
6 tasks
aslakhellesoy added a commit that referenced this pull request Oct 18, 2021
* Use shared test data

* Fix stryker

* Refactor Java tests to read from YAML. Harmonize error messages.

* Go tests use yaml test data

* Ruby: tests based on yaml testdata (found a bug)

* Make empty expression evaluate to true in Ruby (as it does in other implementations)

* Illegal escape detection (#17)

* Throw error on illegal escapes

* Fix JavaScript tests, simplyfy Java

* Update Ruby parser

* Document escaping. Fixes #16.

* Fix go escape validation (simplify java)

* Add new test: 'a and or'

* Add testcase: 'a and b and c'
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.

1 participant