Skip to content

Commit

Permalink
Merge pull request scopatz#11 from mariuszs/master
Browse files Browse the repository at this point in the history
Improvment for GIT
  • Loading branch information
scopatz committed Jun 2, 2013
2 parents d0cdc5d + 590e5df commit 4fddd06
Show file tree
Hide file tree
Showing 35 changed files with 642 additions and 16 deletions.
25 changes: 25 additions & 0 deletions awk.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax "awk" "\.awk$"
header "^#!.*bin/(env +)?awk( |$)"

color brightyellow "\$[A-Za-z0-9_!@#$*?-]+"
color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
color brightblue "\<(function|extension|BEGIN|END)\>"
color red "[-+*/%^|!=&<>?;:]|\\|\[|\]"
color cyan "\<(for|if|while|do|else|in|delete|exit)\>"
color cyan "\<(break|continue|return)\>"
color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>"
color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>"
color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
color brightblue "\<(mktime|strftime|systime)\>"
color brightblue "\<(and|compl|lshift|or|rshift|xor)\>"
color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>"
color magenta "/.*[^\]/"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\."
color brightblack "(^|[[:space:]])#([^{].*)?$"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " +"
16 changes: 16 additions & 0 deletions coffeescript.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax "coffeescript" "\.coffee$"
header "^#!.*/(env +)?coffee"

color red "[!&|=/*+-<>]|\<(and|or|is|isnt|not)\>"
color brightblue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->"
color black "[()]"
color cyan "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>"
color cyan "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>"
color cyan "\<(debugger|switch|while|do|class|extends|super)\>"
color cyan "\<(undefined|then|unless|until|loop|of|by|when)\>"
color brightcyan "\<(true|false|yes|no|on|off)\>"
color brightyellow "@[A-Za-z0-9_]*"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " +"
17 changes: 17 additions & 0 deletions colortest.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax "colortest" "ColorTest$"

color black "\<PLAIN\>"

color red "\<red\>"
color green "\<green\>"
color yellow "\<yellow\>"
color blue "\<blue\>"
color magenta "\<magenta\>"
color cyan "\<cyan\>"

color brightred "\<brightred\>"
color brightgreen "\<brightgreen\>"
color brightyellow "\<brightyellow\>"
color brightblue "\<brightblue\>"
color brightmagenta "\<brightmagenta\>"
color brightcyan "\<brightcyan\>"
27 changes: 27 additions & 0 deletions csharp.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
syntax "c#" "\.cs$"

# Class
color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"

# Annotation
color magenta "@[A-Za-z]+"

color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
color black "[(]"
color green "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>"
color cyan "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>"
color cyan "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>"
# LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can)
color cyan "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>"
color brightred "\<(break|continue)\>"
color brightcyan "\<(true|false)\>"
color red "[-+/*=<>?:!~%&|]"
color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\([btnfr]|'|\"|\\)"
color magenta "\\u[A-Fa-f0-9]{4}"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " +"
8 changes: 8 additions & 0 deletions dot.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
syntax "dot" "\.(dot|gv)$"

color cyan "\<(digraph|edge|graph|node|subgraph)\>"
color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|decorateP|dir|distortion|fillcolor|fontcolor|fontname|fontsize|headclip|headlabel|height|labelangle|labeldistance|labelfontcolor|labelfontname|labelfontsize|label|layers|layer|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|pagedir|page|peripheries|port_label_distance|rankdir|ranksep|rank|ratio|regular|rotate|samehead|sametail|shapefile|shape|sides|size|skew|style|tailclip|taillabel|URL|weight|width)\>"
color red "=|->|--"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
5 changes: 5 additions & 0 deletions email.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
syntax "email"

color magenta "^>([^>].*|$)"
color blue "^>>([^>].*|$)"
color green "^>>>.*"
48 changes: 32 additions & 16 deletions git.nanorc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
syntax "gitconfig" "git(config|modules)$|\.git/config$"

color brightcyan "\<(true|false)\>"
color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " +"

# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
Expand All @@ -6,46 +16,48 @@
# A nano configuration file to enable syntax highlighting of some Git specific
# files with the GNU nano text editor (http://www.nano-editor.org)
#
# Save this file to a directory of your choice and add it to your nanorc using
# include ${PATH_TO_THE_FILE}/git.nanorc

# This syntax format is used for editing commit and tag messages
syntax "git commit/tag messages" "COMMIT_EDITMSG|TAG_EDITMSG"

# Commit message
color white ".*"

# Subject line (This is pretty weird, but it works at least for OS X' nano 2.0.6)
# color brightcyan start="^" end="$"
color yellow ".*"

# Comments
color brightblack "^#.*"

# Files changes
color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
color red "#[[:space:]]deleted:"
color green "#[[:space:]]modified:"
color brightgreen "#[[:space:]]new file:"
color brightblue "#[[:space:]]renamed:"


# Untracked filenames
color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"

color brightmagenta "^#[[:space:]]Changes.*[:]"
color brightred "^#[[:space:]]Your branch and '[^']+"
color brightblack "^#[[:space:]]Your branch and '"
color brightwhite "^#[[:space:]]On branch [^ ]+"
color brightblack "^#[[:space:]]On branch"

# Recolor hash symbols

# Recolor hash symbols
color brightblack "#"

# Trailing spaces
# Trailing spaces (+LINT is not ok, git uses tabs)
color ,red "[[:space:]]+$"


# This syntax format is used for interactive rebasing
syntax "git rebase todo" "git-rebase-todo"

# Default
color white ".*"
color yellow ".*"

# Comments
color brightblack "^#.*"

# Commit IDs
color brightwhite "[0-9a-f]{7,40}"

# Rebase commands
color green "^(e|edit) [0-9a-f]{7,40}"
color green "^# (e, edit)"
Expand All @@ -58,7 +70,11 @@ color blue "^# (r, reword)"
color brightred "^(s|squash) [0-9a-f]{7,40}"
color brightred "^# (s, squash)"
color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
color yellow "^# (x <cmd>, exec <cmd>)"
color yellow "^# (x, exec)"

# Recolor hash symbols
color brightblack "#"

# Commit IDs
color brightblue "[0-9a-f]{7,40}"

16 changes: 16 additions & 0 deletions glsl.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
syntax "glsl" "\.(frag|vert|fp|vp|glsl)$"

color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
color black "[(]"
color green "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>"
color green "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>"
color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>"
color brightred "\<(break|continue)\>"
color brightcyan "\<(true|false)\>"
color red "[-+/*=<>?:!~%&|^]"
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " +"
23 changes: 23 additions & 0 deletions go.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
syntax "go" "\.go$"

color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
color black "[(]"
color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>"
color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>"
color green "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>"
color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>"
color cyan "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>"
color cyan "\<(for|range|if|else|case|default|switch|return)\>"
color brightred "\<(go|goto|break|continue)\>"
color brightcyan "\<(true|false)\>"
color red "[-+/*=<>!~%&|^]|:="
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\[abfnrtv'\"\\]"
color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
color yellow "`[^`]*`"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " +"
108 changes: 108 additions & 0 deletions import.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
include ~/.nano/yaml.nanorc
include ~/.nano/dot.nanorc
include ~/.nano/fish.nanorc
include ~/.nano/keymap.nanorc
include ~/.nano/lua.nanorc
include ~/.nano/php.nanorc
include ~/.nano/glsl.nanorc
include ~/.nano/csharp.nanorc
include ~/.nano/kickstart.nanorc
include ~/.nano/email.nanorc
include ~/.nano/coffeescript.nanorc
include ~/.nano/json.nanorc
include ~/.nano/privoxy.nanorc
include ~/.nano/ini.nanorc
include ~/.nano/patch.nanorc
include ~/.nano/systemd.nanorc
include ~/.nano/nginx.nanorc
include ~/.nano/ledger.nanorc
include ~/.nano/awk.nanorc
include ~/.nano/sh.nanorc
include ~/.nano/ruby.nanorc
include ~/.nano/lisp.nanorc
include ~/.nano/cmake.nanorc
include ~/.nano/git.nanorc
include ~/.nano/html.nanorc
include ~/.nano/colortest.nanorc
include ~/.nano/xresources.nanorc
include ~/.nano/tex.nanorc
include ~/.nano/css.nanorc
include ~/.nano/go.nanorc
include ~/.nano/nanorc.nanorc
include ~/.nano/sql.nanorc
include ~/.nano/pkg-config.nanorc
include ~/.nano/man.nanorc
include ~/.nano/vala.nanorc
include ~/.nano/java.nanorc
include ~/.nano/yum.nanorc
include ~/.nano/inputrc.nanorc
include ~/.nano/pkgbuild.nanorc
include ~/.nano/xml.nanorc
include ~/.nano/sed.nanorc
include ~/.nano/c.nanorc
include ~/.nano/javascript.nanorc
include ~/.nano/cython.nanorc
include ~/.nano/markdown.nanorc
include ~/.nano/mpdconf.nanorc
include ~/.nano/peg.nanorc
include ~/.nano/main.nanorc
include ~/.nano/po.nanorc
include ~/.nano/python.nanorc
include ~/.nano/makefile.nanorc
include ~/.nano/vi.nanorc
include ~/.nano/rpmspec.nanorc
include ~/.nano/yaml.nanorc
include ~/.nano/dot.nanorc
include ~/.nano/fish.nanorc
include ~/.nano/keymap.nanorc
include ~/.nano/lua.nanorc
include ~/.nano/php.nanorc
include ~/.nano/glsl.nanorc
include ~/.nano/csharp.nanorc
include ~/.nano/kickstart.nanorc
include ~/.nano/email.nanorc
include ~/.nano/coffeescript.nanorc
include ~/.nano/json.nanorc
include ~/.nano/privoxy.nanorc
include ~/.nano/ini.nanorc
include ~/.nano/patch.nanorc
include ~/.nano/import.nanorc
include ~/.nano/systemd.nanorc
include ~/.nano/nginx.nanorc
include ~/.nano/ledger.nanorc
include ~/.nano/awk.nanorc
include ~/.nano/sh.nanorc
include ~/.nano/ruby.nanorc
include ~/.nano/lisp.nanorc
include ~/.nano/cmake.nanorc
include ~/.nano/git.nanorc
include ~/.nano/html.nanorc
include ~/.nano/colortest.nanorc
include ~/.nano/xresources.nanorc
include ~/.nano/tex.nanorc
include ~/.nano/css.nanorc
include ~/.nano/go.nanorc
include ~/.nano/nanorc.nanorc
include ~/.nano/sql.nanorc
include ~/.nano/pkg-config.nanorc
include ~/.nano/man.nanorc
include ~/.nano/vala.nanorc
include ~/.nano/java.nanorc
include ~/.nano/yum.nanorc
include ~/.nano/inputrc.nanorc
include ~/.nano/pkgbuild.nanorc
include ~/.nano/xml.nanorc
include ~/.nano/sed.nanorc
include ~/.nano/c.nanorc
include ~/.nano/javascript.nanorc
include ~/.nano/cython.nanorc
include ~/.nano/markdown.nanorc
include ~/.nano/mpdconf.nanorc
include ~/.nano/peg.nanorc
include ~/.nano/main.nanorc
include ~/.nano/po.nanorc
include ~/.nano/python.nanorc
include ~/.nano/makefile.nanorc
include ~/.nano/vi.nanorc
include ~/.nano/rpmspec.nanorc
include ~/.nano/import.nanorc
11 changes: 11 additions & 0 deletions ini.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
syntax "ini" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$"
header "^\[[A-Za-z]+\]$"

color brightcyan "\<(true|false)\>"
color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$"
color red "[=;]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " +"
10 changes: 10 additions & 0 deletions inputrc.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
syntax "inputrc" "inputrc$"

color red "\<(off|none)\>"
color green "\<on\>"
color brightblue "\<set|\$include\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$"
color ,red " +"
23 changes: 23 additions & 0 deletions javascript.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
syntax "JavaScript" "\.js$"

color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
color black "[(]"
color cyan "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>"
color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
color cyan "\<(null|undefined|NaN)\>"
color brightcyan "\<(true|false)\>"
color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
color green "\<(Number|Object|RegExp|String)\>"
color red "[-+/*=<>!~%?:&|]"
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
color brightblack "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/"
color brightwhite,cyan "TODO:?"
color ,green "[[:space:]]+$"
color ,red " +"
Loading

0 comments on commit 4fddd06

Please sign in to comment.