~lmarz/nano-hare

88998a677a5bf7e6b44c5d0db73ef0f96f1eeafe — Leon Marz 6 months ago cc99577
Add 'case' keyword and increase priority for 'use'
1 files changed, 4 insertions(+), 4 deletions(-)

M hare.nanorc
M hare.nanorc => hare.nanorc +4 -4
@@ 3,11 3,8 @@
syntax hare "\.ha$"
comment "//"

# Imports
color yellow "^use .+;"

# Keywords and types
color blue "\<(as|break|const|continue|def|defer|else|enum|export|fconst|fn|for|iconst|if|is|let|match|rconst|return|static|struct|switch|type|union|yield|_)\>"
color blue "\<(as|break|case|const|continue|def|defer|else|enum|export|fconst|fn|for|iconst|if|is|let|match|rconst|return|static|struct|switch|type|union|yield|_)\>"
color blue "\<(abort|alloc|append|assert|delete|free|insert|len|offset|vastart|vaarg|vaend)\>"
color lightyellow "@(fini|init|noreturn|offset|symbol|test)\>"
color cyan "\<(bool|char|f32|f64|false|i16|i32|i64|i8|int|null|nullable|rune|size|str|true|u16|u32|u64|u8|uint|uintptr|valist|void)\>"


@@ 18,6 15,9 @@ color slate "[[:digit:]]+(.[[:digit:]]+)?(u|i|z|f32|f64|i16|i32|i64|i8|u16|u32|u
# Remove highlighting in variables and function calls
color normal "[[:alpha:]][[:digit:]]+.?"

# Imports
color yellow "^use .+;"

# Comments
color grey "//.*"