[quote=“iamntz”]I kinda found another bug!
So, let’s say we have this snippet:
<?php for ( $i=0; $i < 5; $i++ ) { ?>
<?php } ?>
The bug is that { and } doesn’t highlight correctly (only as invalid), although if I press ctrl+m (to jump to pair bracket) will jump correctly.
This is not related to my custom settings of the plugin (i removed everything and act the same).[/quote]
Mine highlights “{” and “}” as invalid (which I would expect, since “{” and “}” are not matched between the “<?php ?>” tags, it breaks the valid match rules). And cannot jump between the “{}” brackets either because they are invalid. This is the case for ctrl+m and BH2s jump between brackets method for me as well. ctrl+m uses ST2s algorithm. BH2 uses its own. I provide example keymaps to use BH2’s version.
Now Ctrl+m was able to match PHP angles in the last PHP group, but not in the first. BH2’s match did not match either. BH2 is very consistent when using its algorithm. ST2 seems like it is not.
Are you able to post more code? Because I could not reproduce what you described with just what you posed above. As you can see my description seems different than yours.