lark-parser/lark

Add support for the `a` and `L` regex flags

Open

#1,527 opened on Apr 21, 2025

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Python (4,275 stars) (384 forks)batch import
enhancementgood first issue

Description

Lark currently only supports the flags imslux, however Python supports two additional ones, which perhaps some people will find useful.

While users can still use inline flags, it might be nice for Lark to support it as part of the syntax, and it should be pretty easy.

https://docs.python.org/3/library/re.html#flags

Contributor guide