hoaproject / Regex

The Hoa\Regex library.
https://hoa-project.net/
310 stars 17 forks source link

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

Closed turkanis closed 6 years ago

turkanis commented 6 years ago

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 commented 6 years ago

Hello and thanks for the bug report.

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

turkanis commented 6 years ago

Thanks. See #35.

vonglasow commented 6 years ago

fixed by #35