Created
September 22, 2013 00:36
-
-
Save caner/6655527 to your computer and use it in GitHub Desktop.
nano editörü için js renklendirmesi
kaynak: http://nas-tweaks.net/317/syntax-highlighting-with-nano-nanorc-for-javascript/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# javascript color scheme for nano editor | |
syntax "JavaScript" "\.(js)$" | |
# Default | |
color white "^.+$" | |
# Decimal, octal and hexadecimal numbers | |
color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" | |
# Floating point number with at least one digit before decimal point | |
color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" | |
color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" | |
# Keywords | |
color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" | |
color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" | |
color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" | |
# Type specifiers | |
color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" | |
color red "\<(Number|Object|RegExp|String)\>" | |
color red "\<(true|false)\>" | |
# String | |
color brightyellow "L?\"(\\"|[^"])*\"" | |
color brightyellow "L?'(\'|[^'])*'" | |
# Escapes | |
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" | |
# Comments | |
color magenta start="/\*" end="\*/" | |
color magenta "//.*$" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment