Dot_Files/.config/nano/syntax/haskell.nanorc
Price Hiller f7568438ef [ Nano ] Added nano dot files and relevant syntax files
In the horrible scenario in which neovim or vim are not available on a
system I use (and yeah, I found one recently wtf), nano is a simple
alternative that gets the job done... these files are for my comfort IN
nano but not optimal. 😞
2022-01-21 05:34:52 -06:00

36 lines
907 B
Plaintext

syntax "haskell" "\.hs$"
comment "--"
## Keywords
color red "\<(as|case|of|class|data|default|deriving|do|forall|foreign|hiding|if|then|else|import|infix|infixl|infixr|instance|let|in|mdo|module|newtype|qualified|type|where)\>"
## Various symbols
color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})"
## Operators
color magenta "(==|/=|&&|\|\||<|>|<=|>=)"
## Various symbols
color cyan "(->|<-|=>)"
color magenta "\.|\$"
## Data constructors
color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>"
## Data classes
color magenta "\<(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)\>"
## Strings
color yellow ""([^\"]|\\.)*""
## Chars
color brightyellow "'([^\']|\\.)'"
## Comments
color green "--.*"
color green start="\{-" end="-\}"
color brightred "undefined"
## Trailing spaces
color ,green "[[:space:]]+$"