Sublime Forum

Javascript syntax highlight error

#1

I’m using Sublime Text 3, Version 3.2.1, Build 3207
Arrow function is not highlight, and when I using Go to Symbol(Crtl+R), I can’t find the function name in the list
Anyone who can help me to work it out?
Thanks in advance!!
image

0 Likes

#2

this is currently unfixable due to the way ST’s tokenizer can’t see past line breaks to know that it is an arrow function. You may want to vote for this feature request:

a workaround is to put the => on the same line as the variable name part of the declaration (i.e. remove all line breaks between let and =>)

2 Likes

#3

thanks buddy, I will try to use that customized syntax highlight!

0 Likes