php-vim-syntax icon indicating copy to clipboard operation
php-vim-syntax copied to clipboard

Escaped dollar signs getting highligthed as variables in HEREDOC strings

Open tlathm opened this issue 2 years ago • 1 comments

I had actually created an issue with the main vim project on this here:

https://github.com/vim/vim/issues/12952

I believe their assessment of this is incorrect. Within a double quoted string something like "\$somevar" correctly does NOT get highlighted as a variable, whereas within a HEREDOC string it does. Thanks!

EDIT: One thing to note: In the other issue I'd mentioned that this worked as I expected at one point, but I can see now that's in fact not the case. Those are highlighted as variables even in very old versions.

tlathm avatar Aug 29 '23 19:08 tlathm

As you may have seen in the vim issue above, this was apparently happening only for the specific case where the query string is END, and this is apparently because of the end() function. If there's no convenient fix for that, it's certainly not very important given how specific a case this is. Thanks!

tlathm avatar Aug 30 '23 14:08 tlathm