Page 1 of 1

How to modify JavaScript Comment Lexor

Posted: 27.12.2016 14:37
by clifton
Whenever I have "< ... >" in a comment line of Javascript code, SynWrite get messed up in its syntax highlighting as shown below:
Image 1.png
Image 1.png (3.8 KiB) Viewed 1943 times
What should happen here is that the entire comment including "<make> elements" should be syntax highlighted as a comment.
This is not a big deal, but it messes up code reading and gives the impression I have an error somewhere.

My workaround is to not use < and > in my comments, but can someone point me in the direction as to how to modify the Lexor to include these characters in the Javascript comment line?

Thanks!
This is an outstanding programming tool!!!

Posted: 27.12.2016 15:07
by Alexey
Options/ Customize lexer (when JS active)

on right - is reg-ex. make it simpler. make only string //.*
(delete other lines)

picture

Posted: 28.12.2016 02:38
by clifton
Ended up trying this for now ...
Lexer Modifications
Lexer Modifications
Thank you very much!

Posted: 28.12.2016 03:07
by Alexey
Fixed it in my copy