How to modify JavaScript Comment Lexor

All questions regarding lexer highlighting schemes are discussed here...
Post Reply
clifton
Posts: 3
Joined: 20.09.2016 01:04

How to modify JavaScript Comment Lexor

Post 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 1945 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!!!
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Options/ Customize lexer (when JS active)

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

picture
Attachments
synw-js-cmt.png
clifton
Posts: 3
Joined: 20.09.2016 01:04

Post by clifton »

Ended up trying this for now ...
Lexer Modifications
Lexer Modifications
Thank you very much!
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Fixed it in my copy
Post Reply