The ?> is a valid syntax inside the string. But web-mode marks it as the end of PHP code and makes everything after look like fundamental mode. This syntax is atomic group.
I'm not sure if you can do anything with this, but without handling this the code needs to be modified just to work with web-mode in Emacs.
This is valid syntax in PHP regex:
The
?>
is a valid syntax inside the string. But web-mode marks it as the end of PHP code and makes everything after look like fundamental mode. This syntax is atomic group.I'm not sure if you can do anything with this, but without handling this the code needs to be modified just to work with web-mode in Emacs.
The option is to use:
But this is just a hack to make web-mode happy.