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] Scope builtin errors as support.class.builtin. #1982

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

Thom1729
Copy link
Collaborator

@Thom1729 Thom1729 commented Jun 4, 2019

Fix #1980.

The .error scope doesn't seem useful (it's not standard), so I removed it when adding .builtin.

@@ -2053,7 +2053,7 @@ contexts:
scope: support.class.builtin.js
pop: true
- match: (?:Eval|Range|Reference|Syntax|Type|URI)?Error{{identifier_break}}
scope: support.class.error.js
scope: support.class.builtin.js
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to merge the pattern with the former one then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be compiled the same either way, so it shouldn't really matter.

@wbond wbond merged commit 1fa491b into sublimehq:master Jul 29, 2019
@Thom1729 Thom1729 deleted the javascript-error-builtin branch July 29, 2019 21:03
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
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

Successfully merging this pull request may close these issues.

[JavaScript] Error classes should also have "builtin" scope
3 participants