editors

changeset 24:0aa646c98e4d

Added syntax highlighting for the nano editor
author Jeremy Cowgar <jeremy@cowgar.com>
date Sat Nov 06 18:33:53 2010 +0000 (2010-11-06)
parents 037bfb861c68
children 98adddd1b1c8
files nano/euphoria.nanorc
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nano/euphoria.nanorc	Sat Nov 06 18:33:53 2010 +0000
     1.3 @@ -0,0 +1,52 @@
     1.4 +#
     1.5 +# Euphoria Programming Language (http://openeuphoria.org)
     1.6 +#
     1.7 +#  Created: Nov 6 2010
     1.8 +# Modified: Nov 6 2010
     1.9 +#   Author: Jeremy Cowgar <jeremy@cowgar.com>
    1.10 +#
    1.11 +
    1.12 +syntax "euphoria" "\.(e|ex|exu|exw)$"
    1.13 +
    1.14 +# Constants
    1.15 +color brightred "\<[A-Z_][0-9A-Z_]+\>" 
    1.16 +
    1.17 +# "Preprocessors"
    1.18 +color brightmagenta "\<(elsifdef|elsedef|ifdef|include|namespace|with|without)\>"
    1.19 +
    1.20 +# Keywords
    1.21 +color brightgreen "\<(as|and|break|by|case|constant|continue|do|end|else|elsif|exit|entry|enum|for|function|goto|if|label|loop|not|or|procedure|return|retry|switch|then|to|type|until|while|xor)\>"
    1.22 +
    1.23 +# Built-in types
    1.24 +color green "\<(atom|integer|sequence|object)\>"
    1.25 +
    1.26 +# Scope modifiers
    1.27 +color brightgreen "\<(override|global|public|export)\>"
    1.28 +
    1.29 +# Numbers
    1.30 +#    normal
    1.31 +color brightmagenta "\<(0d)?[0-9.][0-9_.]*\>"
    1.32 +#    binary
    1.33 +color brightmagenta "\<0b[0-1_]+\>"
    1.34 +#    octal
    1.35 +color brightmagenta "\<0t[0-8_]+\>"
    1.36 +#    hex
    1.37 +icolor brightmagenta "\<(0x|#)[0-9A-F_]+\>"
    1.38 +
    1.39 +# Strings
    1.40 +#    character
    1.41 +color brightyellow "<[^=       ]*>" "'[^']'"
    1.42 +color brightyellow "<[^=       ]*>" "'\\[^']'"
    1.43 +#    double quote "..."
    1.44 +color brightyellow "<[^=       ]*>" ""(\.|[^"])*""
    1.45 +#    back tick `...`
    1.46 +color brightyellow "<[^=       ]*>" "`(\.|[^`])*`"
    1.47 +#    tripple quote """..."""
    1.48 +color brightyellow start=""""[^"]*" end="""""
    1.49 +
    1.50 +# Trailing whitespace
    1.51 +color ,green "[[:space:]]+$"
    1.52 +
    1.53 +# Comments
    1.54 +color brightblue "--.*"
    1.55 +color brightblue start="/\*" end="\*/"

SCM Home | OpenEuphoria.org Home