fzf added to the bashrc
[dotfiles/.git] / .nano / rust.nanorc
1 # Nano configuration for Rust
2 # Copyright 2015 The Rust Project Developers.
3 #
4 # NOTE: Rules are applied in order: later rules re-colorize matching text.
5
6
7 syntax "Rust" "\.rs"
8 comment "//"
9
10 # function definition
11 color magenta "fn [a-z0-9_]+"
12
13 # Reserved words
14 color yellow "\<(abstract|alignof|as|become|box|break|const|continue|crate|do|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|offsetof|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\>"
15
16 # macros
17 color red "[a-z_]+!"
18
19 # Constants
20 color magenta "[A-Z][A-Z_]+"
21
22 # Traits/Enums/Structs/Types/etc.
23 color magenta "[A-Z][a-z]+"
24
25 # Strings
26 color green "\".*\""
27 color green start="\".*\\$" end=".*\""
28 # NOTE: This isn't accurate but matching "#{0,} for the end of the string is too liberal
29 color green start="r#+\"" end="\"#+"
30
31 # Comments
32 color blue "^\s*//.*"
33 color blue start="/\*" end="\*/"
34
35 # Attributes
36 color magenta start="#!\[" end="\]"
37
38 # Some common markers
39 color brightcyan "(XXX|TODO|FIXME|\?\?\?)"
40
41 ## Trailing spaces
42 color ,green "[[:space:]]+$"