Language Injection phpLiteralExpression with wildcard
How would I make a language injection setting to
essentially match php occurances of <<<JS*
Using * as a wildcard for any one or more characters
+ phpLiteralExpression("JS*") didn't cut it. . .
Please sign in to leave a comment.
Why do you need that?
Because I have a class with several different heredoc definations of long javascript code. It is a pain to have to manually inject JS language into each one on every edit and the default setting only recognizes <<<JS which you can only use once in a file. Having it also automatically inject <<<JS2... <<JSfoo would be great. Is there a better way I can be doing this?
New to me -- did not know that. Can you point me to a official documentation which states this limitation?
Why this works just fine then?
Not sure where I got that. You are right though. Thanks!
This is just incorrect.
And no, such (JS*) name matching is not possible and not planned.