Add single character identifiers

This commit is contained in:
Eryn Wells 2016-12-24 09:07:38 -07:00
parent fd3f6f9f29
commit f7c28c6732
3 changed files with 14 additions and 2 deletions

View file

@ -41,3 +41,7 @@ pub fn identifier_subsequents() -> CharSet {
subsequents.extend(extras.iter());
subsequents
}
pub fn identifier_singles() -> CharSet {
CharSet::from_iter("+-".chars())
}