You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Number modifiers are given a keyword.other scope, rather than something more appropriate.
Screenshots
Expected Behavior
the file size units modifier of the number is not a keyword, so it should receive a scope like storage.modifier.numeric.file-size instead of keyword.other, to be more consistent with other syntaxes
(note some of these fail to scope correctly in the current grammar)
In the current grammar, the D (for [decimal]) and the L (for [long]) are not separated from the number, but they are technically the storage type modifier. In PR #156 I have assigned them storage.modifier and have assigned the byte scale as constant.langauge
In a modified VS Code Monokai Dimmed this gives: (with keyword and constant comparison)
I suppose a possibility is that the byte scale could be a form of operator (its providing multiplication), but in a lot of themes, keyword.other and keyword.operator are the same.
Activity
msftrncs commentedon May 15, 2019
Keith Hall (@keith-hall), I am not sure that storage.type is a great scope. Numbers already support a storage type modifier, so that would clash.
(note some of these fail to scope correctly in the current grammar)
In the current grammar, the
D(for[decimal]) and theL(for[long]) are not separated from the number, but they are technically the storage type modifier. In PR #156 I have assigned themstorage.modifierand have assigned the byte scale asconstant.langaugeIn a modified VS Code Monokai Dimmed this gives: (with keyword and constant comparison)
I suppose a possibility is that the byte scale could be a form of operator (its providing multiplication), but in a lot of themes,
keyword.otherandkeyword.operatorare the same.keith-hall commentedon May 17, 2019
good point about color schemes, your solution works for me, thanks Carl Morris (@msftrncs) :)