language-javascript-jsx icon indicating copy to clipboard operation
language-javascript-jsx copied to clipboard

"let" keyword color scheme

Open tholander opened this issue 8 years ago • 3 comments

The keyword "let" isn't considered as a keyword such as var, so the color scheme isn't the same as for "var" capture

tholander avatar Sep 01 '17 12:09 tholander

Same issue here.

joepie91 avatar Jan 21 '18 18:01 joepie91

I think this could be fixed by pulling the latest language-javascript csons, and adding the JSX support on top of that.

codeblooded avatar Jan 29 '18 18:01 codeblooded

The fix is pretty easy to do, under literal-keywords in the javascript-cson and change the lines to this below. :)

    'match': '\\b(boolean|byte|char|class|const|double|enum|float|function|int|interface|let|long|short|var|void)\\b'

    'match': '\\b(export|extends|final|implements|native|private|protected|public|static|synchronized|throws|transient|volatile)\\b'

olafur-palsson avatar Jul 01 '18 23:07 olafur-palsson