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
Code Samples
$file_size=1024mb
The text was updated successfully, but these errors were encountered:
(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.
Environment
Issue Description
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 ofkeyword.other
, to be more consistent with other syntaxesCode Samples
The text was updated successfully, but these errors were encountered: