mirror of
https://github.com/scopatz/nanorc
synced 2024-12-25 14:54:51 +01:00
commit
4fddd06a1b
25
awk.nanorc
Normal file
25
awk.nanorc
Normal file
|
@ -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
coffeescript.nanorc
Normal file
16
coffeescript.nanorc
Normal file
|
@ -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
colortest.nanorc
Normal file
17
colortest.nanorc
Normal file
|
@ -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
csharp.nanorc
Normal file
27
csharp.nanorc
Normal file
|
@ -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
dot.nanorc
Normal file
8
dot.nanorc
Normal file
|
@ -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
email.nanorc
Normal file
5
email.nanorc
Normal file
|
@ -0,0 +1,5 @@
|
|||
syntax "email"
|
||||
|
||||
color magenta "^>([^>].*|$)"
|
||||
color blue "^>>([^>].*|$)"
|
||||
color green "^>>>.*"
|
48
git.nanorc
48
git.nanorc
|
@ -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.
|
||||
#
|
||||
|
@ -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)"
|
||||
|
@ -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
glsl.nanorc
Normal file
16
glsl.nanorc
Normal file
|
@ -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
go.nanorc
Normal file
23
go.nanorc
Normal file
|
@ -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
import.nanorc
Normal file
108
import.nanorc
Normal file
|
@ -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
ini.nanorc
Normal file
11
ini.nanorc
Normal file
|
@ -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
inputrc.nanorc
Normal file
10
inputrc.nanorc
Normal file
|
@ -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
javascript.nanorc
Normal file
23
javascript.nanorc
Normal file
|
@ -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 " +"
|
11
json.nanorc
Normal file
11
json.nanorc
Normal file
|
@ -0,0 +1,11 @@
|
|||
syntax "json" "\.json$"
|
||||
header "^\{$"
|
||||
|
||||
color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
|
||||
color cyan "\<null\>"
|
||||
color brightcyan "\<(true|false)\>"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:"
|
||||
color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
10
keymap.nanorc
Normal file
10
keymap.nanorc
Normal file
|
@ -0,0 +1,10 @@
|
|||
syntax "keymap" "\.(k|key)?map$|Xmodmap$"
|
||||
|
||||
color cyan "\<(add|clear|compose|keycode|keymaps|keysym|remove|string)\>"
|
||||
color cyan "\<(control|alt|shift)\>"
|
||||
color blue "\<[0-9]+\>"
|
||||
color red "="
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "^!.*$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
15
kickstart.nanorc
Normal file
15
kickstart.nanorc
Normal file
|
@ -0,0 +1,15 @@
|
|||
syntax "KickStart" "\.ks$" "\.kickstart$"
|
||||
|
||||
color brightmagenta "%[a-z]+"
|
||||
color cyan "^[[:space:]]*(install|cdrom|text|graphical|volgroup|logvol|reboot|timezone|lang|keyboard|authconfig|firstboot|rootpw|user|firewall|selinux|repo|part|partition|clearpart|bootloader)"
|
||||
color cyan "--(name|mirrorlist|baseurl|utc)(=|\>)"
|
||||
color brightyellow "\$(releasever|basearch)\>"
|
||||
|
||||
# Packages and groups
|
||||
color brightblack "^@[A-Za-z][A-Za-z-]*"
|
||||
color brightred "^-@[a-zA-Z0-9*-]+"
|
||||
color red "^-[a-zA-Z0-9*-]+"
|
||||
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
9
ledger.nanorc
Normal file
9
ledger.nanorc
Normal file
|
@ -0,0 +1,9 @@
|
|||
syntax "ledger" "(^|\.|/)ledger$"
|
||||
|
||||
color brightmagenta "^([0-9]{4}/[0-9]{2}/[0-9]{2}|[=~]) .*"
|
||||
color blue "^[0-9]{4}/[0-9]{2}/[0-9]{2}"
|
||||
color brightyellow "^~ .*"
|
||||
color brightblue "^= .*"
|
||||
color cyan "^[[:space:]]+\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?"
|
||||
color red "[*]"
|
||||
color brightblack "^[[:space:]]*;.*"
|
14
lisp.nanorc
Normal file
14
lisp.nanorc
Normal file
|
@ -0,0 +1,14 @@
|
|||
syntax "lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$"
|
||||
|
||||
color brightblue "\([a-z-]+"
|
||||
color red "\(([-+*/<>]|<=|>=)|'"
|
||||
color black "\("
|
||||
color blue "\<[0-9]+\>"
|
||||
icolor cyan "\<nil\>"
|
||||
color brightcyan "\<[tT]\>"
|
||||
color yellow "\"(\\.|[^"])*\""
|
||||
color magenta "'[A-Za-z][A-Za-z0-9_-]+"
|
||||
color magenta "\\.?"
|
||||
color brightblack "(^|[[:space:]]);.*"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
22
makefile.nanorc
Normal file
22
makefile.nanorc
Normal file
|
@ -0,0 +1,22 @@
|
|||
syntax "makefile" "([Mm]akefile|\.ma?k)$"
|
||||
header "^#!.*/(env +)?[bg]?make( |$)"
|
||||
|
||||
color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
|
||||
color cyan "^(export|include|override)\>"
|
||||
color brightmagenta "^[^:= ]+:"
|
||||
color red "[=,%]" "\+=|\?=|:=|&&|\|\|"
|
||||
color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
|
||||
color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
|
||||
color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
|
||||
color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
|
||||
color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
|
||||
color black "[()$]"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))"
|
||||
color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
|
||||
color magenta "\$\$|\\.?"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color brightblack "^ @#.*"
|
||||
|
||||
# Show trailing whitespace
|
||||
color ,green "[[:space:]]+$"
|
17
markdown.nanorc
Normal file
17
markdown.nanorc
Normal file
|
@ -0,0 +1,17 @@
|
|||
syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
|
||||
|
||||
# Emphasis
|
||||
color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
|
||||
|
||||
# Strong emphasis
|
||||
color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
|
||||
|
||||
color brightmagenta "^=====*$|^-----*$|^#{1,6}.*"
|
||||
color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
|
||||
color black "^[[:space:]]+"
|
||||
color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($$
|
||||
color brightyellow "\!?\[[^]]*\]([[:space:]]*\[[^]]*\]|\(.*\))?"
|
||||
color brightyellow "^\[.*\]:[[:space:]]*[^"]*"
|
||||
color yellow "`[^`]*`|^ {4}[^-+*].*"
|
||||
color brightblack "^>.*"
|
||||
|
9
mpdconf.nanorc
Normal file
9
mpdconf.nanorc
Normal file
|
@ -0,0 +1,9 @@
|
|||
syntax "mpdconf" "mpd\.conf$"
|
||||
|
||||
color cyan "\<(user|group|bind_to_address|host|port|plugin|name|type)\>"
|
||||
color cyan "\<((music|playlist)_directory|(db|log|state|pid|sticker)_file)\>"
|
||||
color brightmagenta "^(input|audio_output|decoder)[[:space:]]*\{|\}"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
14
nginx.nanorc
Normal file
14
nginx.nanorc
Normal file
|
@ -0,0 +1,14 @@
|
|||
syntax "nginx" "nginx.*\.conf$" "\.nginx$"
|
||||
header "^(server|upstream)[a-z ]*\{$"
|
||||
|
||||
color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{"
|
||||
color cyan "(^|[[:space:]{;])(access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow|ancient_browser|ancient_browser_value|auth_basic|auth_basic_user_file|autoindex|autoindex_exact_size|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|default_type|deny|directio|directio_alignment|disable_symlinks|empty_gif|env|error_log|error_page|expires|fastcgi_buffer_size|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_timeout|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_connect_timeout|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_read_timeout|fastcgi_send_timeout|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|include|index|internal|ip_hash|keepalive|keepalive_disable|keepalive_requests|keepalive_timeout|large_client_header_buffers|limit_conn|limit_conn_log_level|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_log_level|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|location|log_format|log_not_found|log_subrequest|map|map_hash_bucket_size|map_hash_max_size|master_process|max_ranges|memcached_buffer_size|memcached_connect_timeout|memcached_next_upstream|memcached_pass|memcached_read_timeout|memcached_send_timeout|merge_slashes|min_delete_depth|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_max_buffer_size|msie_padding|msie_refresh|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|optimize_server_names|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|port_in_redirect|postpone_output|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_bypass|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_timeout|proxy_cache_min_uses|proxy_cache_path|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_max_temp_file_size|proxy_next_upstream|proxy_no_cache|proxy_pass|proxy_pass_header|proxy_read_timeout|proxy_redirect|proxy_send_timeout|proxy_set_header|proxy_ssl_session_reuse|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|random_index|read_ahead|real_ip_header|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|return|rewrite|root|satisfy|satisfy_any|secure_link_secret|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server|server|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|set|set_real_ip_from|source_charset|split_clients|ssi|ssi_silent_errors|ssi_types|ssl|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_crl|ssl_dhparam|ssl_engine|ssl_prefer_server_ciphers|ssl_protocols|ssl_session_cache|ssl_session_timeout|ssl_verify_client|ssl_verify_depth|sub_filter|sub_filter_once|sub_filter_types|tcp_nodelay|tcp_nopush|timer_resolution|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|uninitialized_variable_warn|upstream|user|userid|userid_domain|userid_expires|userid_name|userid_p3p|userid_path|userid_service|valid_referers|variables_hash_bucket_size|variables_hash_max_size|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|working_directory|xml_entities|xslt_stylesheet|xslt_types)([[:space:]]|$)"
|
||||
color black "[{}]"
|
||||
color brightcyan "\<(on|off)\>"
|
||||
color brightyellow "\$[A-Za-z][A-Za-z0-9_]*"
|
||||
color red "[*]"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color yellow start="'$" end="';$"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
12
peg.nanorc
Normal file
12
peg.nanorc
Normal file
|
@ -0,0 +1,12 @@
|
|||
syntax "peg" "\.l?peg$"
|
||||
|
||||
color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-"
|
||||
color blue "\^[+-]?[0-9]+"
|
||||
color red "[-+*?^/!&]|->|<-|=>"
|
||||
color brightyellow "%[A-Za-z][A-Za-z0-9_]*"
|
||||
color magenta "\[[^]]*\]"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])\-\-.*$"
|
||||
color brightwhite,cyan "TODO:?"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
8
pkg-config.nanorc
Normal file
8
pkg-config.nanorc
Normal file
|
@ -0,0 +1,8 @@
|
|||
syntax "pkg-config" "\.pc$"
|
||||
|
||||
color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):"
|
||||
color cyan "^(Requires|Libs)(\.private)?:"
|
||||
color red "="
|
||||
color brightyellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
8
po.nanorc
Normal file
8
po.nanorc
Normal file
|
@ -0,0 +1,8 @@
|
|||
syntax "po" "\.pot?$"
|
||||
|
||||
color cyan "\<(msgid|msgstr)\>"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color magenta "\\.?"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
29
privoxy.nanorc
Normal file
29
privoxy.nanorc
Normal file
|
@ -0,0 +1,29 @@
|
|||
syntax "privoxy-config" "privoxy/config$"
|
||||
|
||||
color cyan "(accept-intercepted-requests|actionsfile|admin-address|allow-cgi-request-crunching|buffer-limit|compression-level|confdir|connection-sharing|debug|default-server-timeout|deny-access|enable-compression|enable-edit-actions|enable-remote-http-toggle|enable-remote-toggle|enforce-blocks|filterfile|forward|forwarded-connect-retries|forward-socks4|forward-socks4a|forward-socks5|handle-as-empty-doc-returns-ok|hostname|keep-alive-timeout|listen-address|logdir|logfile|max-client-connections|permit-access|proxy-info-url|single-threaded|socket-timeout|split-large-forms|templdir|toggle|tolerate-pipelining|trustfile|trust-info-url|user-manual)[[:space:]]"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
||||
|
||||
syntax "privoxy-action" "\.action$"
|
||||
|
||||
color brightred "[{[:space:]]\-block([[:space:]{}]|$)"
|
||||
color brightgreen "[{[:space:]]\+block([[:space:]{}]|$)"
|
||||
|
||||
color brightred "-(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)"
|
||||
color brightgreen "\+(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)"
|
||||
color black "[{}]"
|
||||
color magenta "\\.?"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
||||
|
||||
syntax "privoxy-filter" "\.filter$"
|
||||
|
||||
color cyan "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER): [a-z-]+"
|
||||
color brightblue "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER):"
|
||||
color magenta "\\.?"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
||||
|
27
rpmspec.nanorc
Normal file
27
rpmspec.nanorc
Normal file
|
@ -0,0 +1,27 @@
|
|||
syntax "rpmspec" "\.spec$" "\.rpmspec$"
|
||||
|
||||
color cyan "\<(Icon|ExclusiveOs|ExcludeOs):"
|
||||
color cyan "\<(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):"
|
||||
color cyan "\<(Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements):"
|
||||
color cyan "\<(Epoch|Serial|Nosource|Nopatch):"
|
||||
color cyan "\<(AutoReq|AutoProv|AutoReqProv):"
|
||||
color cyan "\<(Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source[0-9]*|Patch[0-9]*|BuildRoot|Prefix):"
|
||||
color cyan "\<(Name|Version|Release|Url|URL):"
|
||||
color cyan start="^(Source|Patch)" end=":"
|
||||
color cyan "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)"
|
||||
color cyan "(ifarch|ifnarch|ifos|ifnos)"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightyellow "%(if|else|endif|define|global|undefine)"
|
||||
color brightyellow "%_?([A-Z_a-z_0-9_]*)"
|
||||
color brightyellow start="%\{" end="\}"
|
||||
color brightyellow start="%\{__" end="\}"
|
||||
color brightyellow "\$(RPM_BUILD_ROOT)\>"
|
||||
color brightmagenta "^%(build$|changelog|check$|clean$|description)"
|
||||
color brightmagenta "^%(files|install$|package|prep$)"
|
||||
color brightmagenta "^%(pre|preun|pretrans|post|postun|posttrans)"
|
||||
color brightmagenta "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color blue "^\*.*$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
||||
color brightwhite,cyan "TODO:?"
|
9
sed.nanorc
Normal file
9
sed.nanorc
Normal file
|
@ -0,0 +1,9 @@
|
|||
syntax "sed" "\.sed$"
|
||||
header "^#!.*bin/(env +)?sed( |$)"
|
||||
|
||||
color red "[|^$.*+]"
|
||||
color brightyellow "\{[0-9]+,?[0-9]*\}"
|
||||
color magenta "\\."
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
34
sql.nanorc
Normal file
34
sql.nanorc
Normal file
|
@ -0,0 +1,34 @@
|
|||
syntax "sql" "\.sql$" "sqliterc$"
|
||||
|
||||
icolor cyan "\<(ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT)\>"
|
||||
icolor cyan "\<(BETWEEN|BINARY|BOTH|BY|BOOLEAN)\>"
|
||||
icolor cyan "\<(CHANGE|CHECK|COLUMNS|COLUMN|CROSS|CREATE)\>"
|
||||
icolor cyan "\<(DATABASES|DATABASE|DATA|DELAYED|DESCRIBE|DESC|DISTINCT|DELETE|DROP|DEFAULT)\>"
|
||||
icolor cyan "\<(ENCLOSED|ESCAPED|EXISTS|EXPLAIN)\>"
|
||||
icolor cyan "\<(FIELDS|FIELD|FLUSH|FOR|FOREIGN|FUNCTION|FROM)\>"
|
||||
icolor cyan "\<(GROUP|GRANT|HAVING)\>"
|
||||
icolor cyan "\<(IGNORE|INDEX|INFILE|INSERT|INNER|INTO|IDENTIFIED|IN|IS|IF)\>"
|
||||
icolor cyan "\<(JOIN|KEYS|KILL|KEY)\>"
|
||||
icolor cyan "\<(LEADING|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCK|LOW_PRIORITY|LEFT|LANGUAGE)\>"
|
||||
icolor cyan "\<(MODIFY|NATURAL|NOT|NULL|NEXTVAL)\>"
|
||||
icolor cyan "\<(OPTIMIZE|OPTION|OPTIONALLY|ORDER|OUTFILE|OR|OUTER|ON)\>"
|
||||
icolor cyan "\<(PROCEDURE|PROCEDURAL|PRIMARY)\>"
|
||||
icolor cyan "\<(READ|REFERENCES|REGEXP|RENAME|REPLACE|RETURN|REVOKE|RLIKE|RIGHT)\>"
|
||||
icolor cyan "\<(SHOW|SONAME|STATUS|STRAIGHT_JOIN|SELECT|SETVAL|SET)\>"
|
||||
icolor cyan "\<(TABLES|TERMINATED|TO|TRAILING|TRUNCATE|TABLE|TEMPORARY|TRIGGER|TRUSTED)\>"
|
||||
icolor cyan "\<(UNIQUE|UNLOCK|USE|USING|UPDATE|VALUES|VARIABLES|VIEW)\>"
|
||||
icolor cyan "\<(WITH|WRITE|WHERE|ZEROFILL|TYPE|XOR)\>"
|
||||
color green "\<(VARCHAR|TINYINT|TEXT|DATE|SMALLINT|MEDIUMINT|INT|INTEGER|BIGINT|FLOAT|DOUBLE|DECIMAL|DATETIME|TIMESTAMP|TIME|YEAR|UNSIGNED|CHAR|TINYBLOB|TINYTEXT|BLOB|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|ENUM|BOOL|BINARY|VARBINARY)\>"
|
||||
|
||||
# SQLite meta commands
|
||||
icolor cyan "\.\<(databases|dump|echo|exit|explain|header(s)?|help)\>"
|
||||
icolor cyan "\.\<(import|indices|mode|nullvalue|output|prompt|quit|read)\>"
|
||||
icolor cyan "\.\<(schema|separator|show|tables|timeout|width)\>"
|
||||
color brightcyan "\<(ON|OFF)\>"
|
||||
|
||||
color blue "\<([0-9]+)\>"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color yellow "`(\\.|[^\\`])*`"
|
||||
color brightblack "\-\-.*$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
12
systemd.nanorc
Normal file
12
systemd.nanorc
Normal file
|
@ -0,0 +1,12 @@
|
|||
syntax "systemd" "\.(service|socket)$"
|
||||
header "^\[Unit\]$"
|
||||
|
||||
color cyan "^(Accept|After|Alias|AllowIsolate|Also|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateNetwork|PrivateTmp|PropagatesReloadTo|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)="
|
||||
color brightblue "^\.include\>"
|
||||
color red "="
|
||||
color brightmagenta "^\[(Unit|Install|Service|Socket)\]"
|
||||
color brightyellow "\$MAINPID"
|
||||
color brightcyan "\<(true|false)\>"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
19
vala.nanorc
Normal file
19
vala.nanorc
Normal file
|
@ -0,0 +1,19 @@
|
|||
syntax "vala" "\.vala$"
|
||||
|
||||
color green "\<(float|double|bool|char|int|uint|short|long|void|(un)?signed)\>"
|
||||
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
|
||||
color black "[(]"
|
||||
color cyan "\<(for|if|while|do|else|case|default|switch|try|throw|catch)\>"
|
||||
color cyan "\<(inline|typedef|struct|enum|union|extern|static|const)\>"
|
||||
color cyan "\<(operator|new|delete|return|null)\>"
|
||||
color cyan "\<(class|override|private|public|signal|this|weak)\>"
|
||||
color brightred "\<(goto|break|continue)\>"
|
||||
color brightcyan "\<(true|false)\>"
|
||||
color blue "\<([0-9]+)\>"
|
||||
color red "[-+/*=<>?:!~%&|]" "->"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])//.*"
|
||||
color brightblack start="/\*" end="\*/"
|
||||
color brightwhite,cyan "TODO:?"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
11
vi.nanorc
Normal file
11
vi.nanorc
Normal file
|
@ -0,0 +1,11 @@
|
|||
syntax "vi" "(^|/|\.)(ex|vim)rc$|\.vim"
|
||||
|
||||
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
|
||||
color black "[(]"
|
||||
color cyan "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>"
|
||||
color cyan "\<(snor|nun|nm|set|if|endif|let|unlet)\>"
|
||||
color red "[!&=]"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])\"[^"]*$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
10
xresources.nanorc
Normal file
10
xresources.nanorc
Normal file
|
@ -0,0 +1,10 @@
|
|||
syntax "xresources" "X(defaults|resources)$"
|
||||
|
||||
color green "^[[:alnum:]]+\*"
|
||||
color brightyellow "\*[[:alnum:]]+\:"
|
||||
color blue "\<[0-9]+\>"
|
||||
color red "[*:=]"
|
||||
color brightcyan "\<(true|false)\>"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
13
yaml.nanorc
Normal file
13
yaml.nanorc
Normal file
|
@ -0,0 +1,13 @@
|
|||
syntax "yaml" "\.ya?ml$"
|
||||
header "^---" "%YAML"
|
||||
|
||||
color green "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
||||
color brightcyan "\<(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\>"
|
||||
color brightcyan "\<(true|false)\>"
|
||||
color red ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
|
||||
color brightyellow "[[:space:]][\*&][A-Za-z0-9]+"
|
||||
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color brightmagenta "^---" "^\.\.\." "^%YAML" "^%TAG"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
8
yum.nanorc
Normal file
8
yum.nanorc
Normal file
|
@ -0,0 +1,8 @@
|
|||
syntax "yum" "\.repo$|yum.*\.conf$"
|
||||
|
||||
color cyan "^[[:space:]]*[^=]*="
|
||||
color brightmagenta "^[[:space:]]*\[.*\]$"
|
||||
color brightyellow "\$(releasever|arch|basearch|uuid|YUM[0-9])"
|
||||
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
||||
color ,green "[[:space:]]+$"
|
||||
color ,red " +"
|
Loading…
Reference in New Issue
Block a user