colis-anr / morbig

A static parser for POSIX Shell
Other
190 stars 8 forks source link

Fatal error: exception Stdlib.Parsing.Parse_error #85

Closed Niols closed 5 years ago

Niols commented 5 years ago

When parsing:

[[:\<:]

Morbig fails with:

Fatal error: exception Stdlib.Parsing.Parse_error

This example might seem esoteric, but that's the minimal version of a test met in real life:

if [[ ! $RBENV_GEMSETS =~ [[:\<:]]global[[:\>:]] ]]; then
RBENV_GEMSETS="$RBENV_GEMSETS global"
fi