Monday, July 24, 2017

Re: How PHP syntax file works?

суббота, 22 июля 2017 г., 6:37:56 UTC+3 пользователь unDEFER написал:

> The second line opens phpRegion region by the next syntax rule:
> syn region phpRegion matchgroup=Delimiter start="<?\(php\)\=" end="?>" contains=@phpClTop keepend
>
> The third line opens phpParent region by the next syntax rule:
> syn region phpParent matchgroup=Delimiter start="{" end="}" contained contains=@phpClFunction,phpFoldHtmlInside transparent fold
>
> And the fourth line opens phpFoldHtmlInside region by the next syntax rule:
> syn region phpFoldHtmlInside matchgroup=Delimiter start="?>" end="<?\(php\)\=" contained transparent contains=@htmlTop

OK. I have found with syntrace that really vim closes phpRegion here. Seems it is possible because phpParent is transparent, but in the documentation I didn't found anything about it.

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment