#1144746 syntax highlighting for lex breaks on indented regex

Package:
vim
Source:
vim
Description:
Vi IMproved - enhanced vi editor
Submitter:
Simon Richter
Date:
2026-08-18 14:57:02 UTC
Severity:
normal
Tags:
#1144746#5
Date:
2026-08-18 14:55:16 UTC
From:
To:
Hi,

I have a (f)lex source file that uses the grouped start conditions feature

    <cond>{
        re*g?           return 1;
        ex?             return 2;
    }

which is equivalent to

    <cond>re*g?         return 1;
    <cond>ex?           return 2;

Syntax highlighting does not work for the grouped syntax.

   Simon
--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.basic
/usr/bin/vim is /usr/bin/vim.basic