Syntax highlighting doesn't ignore escaped quotes
gedit version: 40.1 OS: Fedora 34 GTK version: 3.24.30 GNOME version: 40 glib version: 2.68.4
Steps to reproduce:
- Create a new text file with a .sh extension (or create a new file in general and set syntax highlighting to
sh
). - Enter a string enclosed in single quotes with another single quote in the middle, with the single quote being escaped with a
'
.
Example string: read -n 1 -rsp $'OK, we\'re done. Press any key to exit.\n'
Actual behavior: String highlight ends on the second single quote.
Expected behavior: String highlighting ends on the third single quote.