bcp47-0.1.0.0: Language tags as specified by BCP 47

Safe HaskellNone
LanguageHaskell2010

Data.BCP47.Internal.Parser

Synopsis

Documentation

complete :: Parsec Void Text a -> Parsec Void Text a Source #

Ensure a subtag extends to the next - or end of input

Used for subtags that can match some prefix of another subtag. For example, a Script or Region can accidentally be parsed from the prefix of a Variant

The alternative would be to use notFollowedBy with knowledge of the legal characters in the next valid subtag.