Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Missing brackets in expression for anchor token in Grammar.pp #34

Closed
turkanis opened this issue Jul 11, 2018 · 3 comments
Closed

Missing brackets in expression for anchor token in Grammar.pp #34

turkanis opened this issue Jul 11, 2018 · 3 comments

Comments

@turkanis
Copy link
Contributor

turkanis commented Jul 11, 2018

In definition of the token "anchor", the sequence of character "bBAZzG" should occur within a character class:

diff --git a/Source/Grammar.pp b/Source/Grammar.pp
index 4176085..15e1714 100644
--- a/Source/Grammar.pp
+++ b/Source/Grammar.pp
@@ -106,7 +106,7 @@
 // Please, see PCRESYNTAX(3), General Category properties, PCRE special category
 // properties and script names for \p{} and \P{}.
 %token character_type            \\([CdDhHNRsSvVwWX]|[pP]{[^}]+})
-%token anchor                    \\(bBAZzG)|\^|\$
+%token anchor                    \\([bBAZzG])|\^|\$
 %token match_point_reset         \\K
 %token literal                   \\.|.
@Hywan
Copy link
Member

Hywan commented Jul 18, 2018

Hello and thanks for the bug report.

That's totally correct! Do you want to make a PR?

@turkanis
Copy link
Contributor Author

Thanks. See #35.

vonglasow added a commit that referenced this issue Jul 20, 2018
Fix for hoaproject/Regex Issue #34
@vonglasow
Copy link
Member

fixed by #35

@ghost ghost removed the in progress label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants