Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Javascript] bad syntax highlighting after 'new' keyword #980

Closed
simonhaenisch opened this issue May 17, 2017 · 2 comments
Closed

[Javascript] bad syntax highlighting after 'new' keyword #980

simonhaenisch opened this issue May 17, 2017 · 2 comments

Comments

@simonhaenisch
Copy link

(function () {
    function main() {
        const module = function () {
            function foobar() {
                foo.forEach(function (f) {
                    f.forEach(function (bar) {
                        bar.forEach(function (b) {
                            b.JobDays.forEach(function (whoot) {
                                var date = new Date(whoot);
                            });
                        });
                    });
                });
            }
        };
    }
}());

has wrong syntax highlighting after the new keyword. Only happens after this pretty deep nesting I think.

@keith-hall
Copy link
Collaborator

This looks okay to me on build 3131:

js980

something similar was reported here: #403 but fixed in 3115

are you sure you're using the default JavaScript syntax?

@simonhaenisch
Copy link
Author

simonhaenisch commented May 24, 2017

yes, I use default JavaScript syntax... just checked and it's actually because of the color scheme:

jonschlinkert/sublime-monokai-extended/issues/62

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants