Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.87.2 (user setup)
- OS Version: Windows_NT x64 10.0.22621
Steps to Reproduce:
- Open a new text file Ctrl+N (no need to save it).
- Paste a problematic example content like the following one:
#!/bin/sh
cat <<- E+OF
here document
E+OF
# Normal highlighting should resume here but in VS Code it does not.
- Once the word defining the here document delimiter contains a character like
+ or = (probably there are additional problematic characters), the redirection operator is the variant with removing of leading tabs <<- and there is a space between the operator and the word then VS Code does not recognize the end of the here document delimited by the line with the delimiter (here E+OF).
Example of incorrect highlighting - the comment (and possible following lines) is highlighted as if it was part of the here document:

These slight modifications are highlighted correctly:
#!/bin/sh
cat <<- E-OF
here document
E-OF
# Normal highlighting resumes if "+" is replaced by "-".
#!/bin/sh
cat <<-E+OF
here document
E+OF
# Normal highlighting resumes if there is no space between the redirection operator and the word.
Note: I have encountered this bug because I normally use +++EOF+++ as a delimiter.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
+or=(probably there are additional problematic characters), the redirection operator is the variant with removing of leading tabs<<-and there is a space between the operator and the word then VS Code does not recognize the end of the here document delimited by the line with the delimiter (hereE+OF).Example of incorrect highlighting - the comment (and possible following lines) is highlighted as if it was part of the here document:
These slight modifications are highlighted correctly:
Note: I have encountered this bug because I normally use
+++EOF+++as a delimiter.