On 2021-04-12, Peng Yu wrote: > Hi, > > It seems that modeline is quite flexible. Could anybody let me know > the regex used by vim to determine what is a modeline and what is not > a modeline? Thanks.
Vim doesn't use a regular expression to identify modelines; it finds them algorithmically. The code that identifies modelines is in the chk_modeline() function in vim/src/buffer.c. Regards, Gary -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20210412154311.GA8076%40phoenix.
