atom / language-ruby

Ruby package for Atom
Other
101 stars 145 forks source link

Allow numerals in all-caps constants #266

Closed nathansobo closed 5 years ago

nathansobo commented 5 years ago

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 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.