A quick question concerning regexp expressions in syntax matches... On several places I had the same regexp sub-expression, like \%(\%(\%(long\s*\)\?long\s*\)\|[qd]\) and I asked myself whether it is possible to define a reusable variable for that. And now, with the introduction of these sub-patterns \%(\%([a-z_]\|\l\d\+\)\s\+\)\@8<! that appear everywhere there's even more gain if it's possible to specify that as variable for later use.
Q: Is it possible in the regexp matcher to formulate things like opt_long = "\%(\%(\%(long\s*\)\?long\s*\)\|[qd]\)" context_start = " \%(\%([a-z_]\|\l\d\+\)\s\+\)\@8<!" and then use it as syn match algol68Predefined context_start+opt_long+whatever+... or else could it be made possible as a new Vim syntax feature? Thanks. Janis -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/DU0PR02MB104227E54BA735D8D850ABE47F32A2%40DU0PR02MB10422.eurprd02.prod.outlook.com.
