Commit 184ab145 authored by Jeremy Soller's avatar Jeremy Soller

Merge branch 'sodium-breaking-syntax' into 'master'

use current syntax for inclusive range patterns

See merge request !88
parents 1a62b003 3100b00e
......@@ -135,7 +135,7 @@ impl Editor {
'>' => (198, 83, 83), //(228, 190, 175), //(194, 106, 71),
'.' | ',' => (241, 213, 226),
'(' | ')' | '[' | ']' | '{' | '}' => (164, 212, 125), //(195, 139, 75),
'0'...'9' => (209, 209, 177),
'0'..='9' => (209, 209, 177),
_ => (255, 255, 255),
}
} else {
......
......@@ -86,7 +86,7 @@ impl Editor {
}
Mode::Command(_) => {
n = match c {
'0'...'9' => {
'0'..='9' => {
unset = false;
n * 10 + ((c as u8) - b'0') as usize
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment