Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

Highlight Issue With \\ In String

Recommended Posts

dandv    0

Paste the code below in a .JS file (using the default NDN.HGL entry for .JS that ships with NDN):

 

a = "\\";
this_is_not_a_string = 2;
b = "/*";
text here and below is highlighted as comment

 

I think the error starts from the double backslash, so that the /* believes it's NOT in a string, but then it's strange how this_is_not_a_string = 2; is not highlighted as a string.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×