babel / babel/babel-sublime

Object literal property has incorrect color in Sublime 4169

Open
#430 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.2k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

https://github.com/babel/babel-sublime/blob/2b3608cd8b555e3e16df5585e11543085658afbd/JavaScript%20(Babel).sublime-syntax#L2801

```diff
- scope: string.unquoted.js
+ scope: string.quoted.js
```

before
![Screenshot from 2023-12-23 11-07-43](https://github.com/babel/babel-sublime/assets/1694112/23934c5f-22a0-4667-ba61-1894c669ece5)
after
![Screenshot from 2023-12-23 11-07-58](https://github.com/babel/babel-sublime/assets/1694112/82d68d70-d7b8-44e5-94ce-7a65b49c58f3)

I'm not entirely sure if this is a problem on my end, but the property color of the object literal has always had the color of a string (yellow), and after updating to 4169 it got the color of a keyword (red) instead. Maybe that scope no longer exists or for whatever reason it now defaults to the keyword color, no other changes on my end besides updating Sublime Text.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open JavaScript (Babel).sublime-syntax at line 2801 and inspect the scope assigned to object literal properties. Reproduce the color difference in Sublime Text 4169, verify the intended string coloring, and confirm the syntax definition produces the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.