This is probably a silly thing to ask but did you make sure to add your include definition at the end of your custom syntax definitions' tmLanguage file?
- Code: Select all
...define strings with nested variables here so the match takes precedence...
.... blah blah if needed
Also note you might want to add text.html.basic if you need it.
Also make sure the selected syntax is set to your custom php syntax name (in this case PHP (custom)). If it needs to be PHP for your plugins to work you could try naming the syntax PHP and removing the old PHP but that is completely dependent on the way that plugin decides the view's syntax. You'll need to look at the code in this case.
As for using a plugin to change region scopes by hooking into the api, well, I would see if it's possible to use just the tmLanguage for that. If it isn't possible for whatever reason you might want to post that code so we can get a better idea of what you are trying to do and why it isn't working.
EDIT: I just wanted to add that if you want nested variables in html attribute strings or php function strings that are nested in code blocks you will have to copy over those rules to your tmLanguage file and edit them as appropriate for your context. GL. HTH.