Merge branch 'trunk' of github.com:rtfeldman/roc into function_closure_to_mark_node

This commit is contained in:
Anton-4 2021-10-15 12:04:51 +02:00
commit 428b4574ae
71 changed files with 1936 additions and 389 deletions

View file

@ -6,6 +6,7 @@ use crate::colors::{from_hsb, RgbaTup};
#[derive(Hash, Eq, PartialEq, Copy, Clone, Debug, Deserialize, Serialize)]
pub enum HighlightStyle {
Operator, // =+-<>...
Comma,
String,
FunctionName,
FunctionArgName,
@ -28,6 +29,7 @@ pub fn default_highlight_map() -> HashMap<HighlightStyle, RgbaTup> {
let mut highlight_map = HashMap::new();
[
(Operator, from_hsb(185, 50, 75)),
(Comma, from_hsb(258, 50, 90)),
(String, from_hsb(346, 65, 97)),
(FunctionName, almost_white),
(FunctionArgName, from_hsb(225, 50, 100)),