Skip to content
Snippets Groups Projects
Commit 3100b00e authored by fearghasmr's avatar fearghasmr
Browse files

use current syntax for inclusive range patterns

parent 1a62b003
No related branches found
No related tags found
1 merge request!88use current syntax for inclusive range patterns
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment