From 2cecadb3aa975da1d8d754c61bc241c7b0aee062 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 4 Sep 2019 16:55:05 -0400 Subject: [PATCH] Add more Rust keywords --- src/editor.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/editor.rs b/src/editor.rs index 92d3cba..2f66d6e 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -1325,6 +1325,24 @@ fn get_syntax_db() -> Vec { "String", "ToString", "Vec", + "str", + "char", + "u8", + "i8", + "u16", + "i16", + "u32", + "i32", + "usize", + "isize", + "u64", + "i64", + "u128", + "i128", + "bool", + "array", + "f32", + "f64" ], "//", EditorSyntaxFlags::HIGHLIGHT_NUMBERS | EditorSyntaxFlags::HIGHLIGHT_STRINGS,