Sublime-JS-Custom icon indicating copy to clipboard operation
Sublime-JS-Custom copied to clipboard

Scope for constants

Open websash opened this issue 6 years ago • 0 comments

In JavaScript (Babel) in code like this

type.CONSTANT_NAME
process.env.NODE_ENV

the uppercase words would have variable.other.constant.js scope and I could style them as constants in my color scheme.

In JS Custom they are just meta.property.object.js. If we have CONSTANT_NAME alone it is variable.other.constant.js just like in the Babel syntax.

Semantically they are all constants. Maybe we could add this extra scope for uppercase words

websash avatar Feb 09 '19 12:02 websash