Previously, we only mapped upper-cased constant syntax nodes to the variable.constant scope if they contained upper-case letters or _, and otherwise mapped these constant references to entity.name.type.class. However, upper-case constants can also contain numbers. This PR adds 0-9 to the character class so that upper-case constants containing numbers are mapped to the variable.constant scope as well.
Fixes #265
Previously, we only mapped upper-cased constant syntax nodes to the
variable.constant
scope if they contained upper-case letters or_
, and otherwise mapped these constant references toentity.name.type.class
. However, upper-case constants can also contain numbers. This PR adds0-9
to the character class so that upper-case constants containing numbers are mapped to thevariable.constant
scope as well.