You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could open a PR, but the fix is so simple: Add the condition (pos > 0 && r == '-') to https://github.com/PaesslerAG/gval/blob/master/parser.go#L33 . The example works, I tested it even for multiple dashes. But I'm new to gval, so I might miss some cases.
The text was updated successfully, but these errors were encountered:
I have the case that one of my identifiers contains a
-
, liketype-id
. The parser fails because-
is not an allowed rune in an identifier.Example:
I could open a PR, but the fix is so simple: Add the condition
(pos > 0 && r == '-')
to https://github.com/PaesslerAG/gval/blob/master/parser.go#L33 . The example works, I tested it even for multiple dashes. But I'm new to gval, so I might miss some cases.The text was updated successfully, but these errors were encountered: