Syntax highlighting: Javascript Template Literals: Fixing the bracket issue in the expression field
Syntax highlighting: Javascript Template Literals: Fixing the bracket issue in the expression field
HOW TO REPRODUCE THE PROBLEM
- Install gedit
- Create a file in your Desktop named test.js
- Open the file test.js with gedit
- Copy paste the following Javascript code: https://pastebin.com/embed_iframe/j54H0GUM
REQUEST SUMMARY
Good: The expressions in template literals is highlighted.
Bad: In the line 5 this }).join('')}
is highlighted until the first bracket, while it should highlighted until the second, as the Javascript interpreter understands it as expression and not as string.
Preview Url: https://i.postimg.cc/JhSqWYNV/asgag.png
SOFTWARE SPECIFICATIONS
OS: Ubuntu 20.04
Editor: Gedit 3.36.1
Library: gtksourceview-3
Edited by A C