From bba53c3940c5936a94a97abfa56d723974e5973e Mon Sep 17 00:00:00 2001 From: ThomasR Date: Wed, 2 Mar 2016 20:49:58 +0100 Subject: [PATCH] Rename syntax definitions Duplicate syntax definition names may cause problems. Since nano comes with predefined all-lowercase syntax definitions, we use uppercase letters everywhere to reduce the risk of future conflicts --- apacheconf.nanorc | 2 +- arduino.nanorc | 2 +- asciidoc.nanorc | 2 +- asm.nanorc | 2 +- awk.nanorc | 2 +- c.nanorc | 2 +- cmake.nanorc | 2 +- coffeescript.nanorc | 2 +- colortest.nanorc | 2 +- conf.nanorc | 3 +-- conky.nanorc | 2 +- csharp.nanorc | 2 +- css.nanorc | 2 +- cython.nanorc | 2 +- dot.nanorc | 2 +- email.nanorc | 2 +- erb.nanorc | 2 +- fish.nanorc | 2 +- fortran.nanorc | 2 +- gentoo.nanorc | 4 ++-- git.nanorc | 6 +++--- glsl.nanorc | 2 +- go.nanorc | 2 +- groff.nanorc | 2 +- haml.nanorc | 2 +- haskell.nanorc | 2 +- html.nanorc | 2 +- ini.nanorc | 2 +- inputrc.nanorc | 2 +- java.nanorc | 2 +- js.nanorc | 2 +- json.nanorc | 2 +- keymap.nanorc | 2 +- ledger.nanorc | 2 +- lisp.nanorc | 2 +- lua.nanorc | 2 +- makefile.nanorc | 2 +- man.nanorc | 2 +- markdown.nanorc | 2 +- mpdconf.nanorc | 2 +- mutt.nanorc | 2 +- nanorc.nanorc | 2 +- nginx.nanorc | 2 +- ocaml.nanorc | 2 +- patch.nanorc | 2 +- peg.nanorc | 2 +- perl.nanorc | 2 +- perl6.nanorc | 2 +- php.nanorc | 2 +- pkg-config.nanorc | 2 +- pkgbuild.nanorc | 2 +- po.nanorc | 2 +- pov.nanorc | 2 +- privoxy.nanorc | 7 +++---- puppet.nanorc | 2 +- python.nanorc | 2 +- reST.nanorc | 2 +- rpmspec.nanorc | 2 +- ruby.nanorc | 2 +- rust.nanorc | 2 +- scala.nanorc | 2 +- sed.nanorc | 2 +- sh.nanorc | 2 +- sls.nanorc | 2 +- sql.nanorc | 2 +- systemd.nanorc | 2 +- tcl.nanorc | 2 +- tex.nanorc | 2 +- vala.nanorc | 2 +- vi.nanorc | 2 +- xml.nanorc | 2 +- xresources.nanorc | 2 +- yaml.nanorc | 2 +- yum.nanorc | 2 +- zsh.nanorc | 2 +- 75 files changed, 80 insertions(+), 82 deletions(-) diff --git a/apacheconf.nanorc b/apacheconf.nanorc index d95d15b..ad08240 100644 --- a/apacheconf.nanorc +++ b/apacheconf.nanorc @@ -1,5 +1,5 @@ # Apache files -syntax "apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess" +syntax "Apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess" color yellow ".+" color brightcyan "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)" color brightcyan "(AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch)" diff --git a/arduino.nanorc b/arduino.nanorc index 3cddedb..1c60033 100644 --- a/arduino.nanorc +++ b/arduino.nanorc @@ -26,7 +26,7 @@ ## /usr/share/nano/arduino.nanorc ## ... -syntax "ino" "\.?ino$" +syntax "INO" "\.?ino$" ## color brightred "\<[A-Z_][0-9A-Z_]+\>" diff --git a/asciidoc.nanorc b/asciidoc.nanorc index de486ed..b16a74e 100644 --- a/asciidoc.nanorc +++ b/asciidoc.nanorc @@ -1,4 +1,4 @@ -syntax "asciidoc" "\.(asc|asciidoc|adoc)$" +syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$" # main header color red "^====+$" diff --git a/asm.nanorc b/asm.nanorc index e94ee90..1273b8e 100644 --- a/asm.nanorc +++ b/asm.nanorc @@ -1,6 +1,6 @@ ## Here is an example for assembler. ## -syntax "asm" "\.(S|s|asm)$" +syntax "ASM" "\.(S|s|asm)$" color red "\<[A-Z_]{2,}\>" color brightgreen "\.(data|subsection|text)" color green "\.(align|file|globl|global|hidden|section|size|type|weak)" diff --git a/awk.nanorc b/awk.nanorc index e037b65..ad343aa 100644 --- a/awk.nanorc +++ b/awk.nanorc @@ -1,4 +1,4 @@ -syntax "awk" "\.awk$" +syntax "AWK" "\.awk$" header "^#!.*bin/(env +)?awk( |$)" color brightyellow "\$[A-Za-z0-9_!@#$*?-]+" diff --git a/c.nanorc b/c.nanorc index ea08fb3..88124a9 100644 --- a/c.nanorc +++ b/c.nanorc @@ -1,6 +1,6 @@ ## Here is an example for C/C++. ## -syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" +syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" color brightred "\<[A-Z_][0-9A-Z_]+\>" color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" diff --git a/cmake.nanorc b/cmake.nanorc index 7dd6c18..e8a18c7 100644 --- a/cmake.nanorc +++ b/cmake.nanorc @@ -1,6 +1,6 @@ ## CMake syntax highlighter for GNU Nano ## -syntax "cmake" "(CMakeLists\.txt|\.cmake)$" +syntax "CMake" "(CMakeLists\.txt|\.cmake)$" icolor green "^[[:space:]]*[A-Z0-9_]+" icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" diff --git a/coffeescript.nanorc b/coffeescript.nanorc index cf75b6c..cf0cc2b 100644 --- a/coffeescript.nanorc +++ b/coffeescript.nanorc @@ -1,4 +1,4 @@ -syntax "coffeescript" "\.coffee$" +syntax "CoffeeScript" "\.coffee$" header "^#!.*/(env +)?coffee" color red "[!&|=/*+-<>]|\<(and|or|is|isnt|not)\>" diff --git a/colortest.nanorc b/colortest.nanorc index bf48aaf..f2b44f2 100644 --- a/colortest.nanorc +++ b/colortest.nanorc @@ -1,4 +1,4 @@ -syntax "colortest" "ColorTest$" +syntax "colorTest" "ColorTest$" color black "\" diff --git a/conf.nanorc b/conf.nanorc index 2dab29f..0cfb890 100644 --- a/conf.nanorc +++ b/conf.nanorc @@ -1,10 +1,9 @@ ## Here is an example for nanorc files. ## -syntax "conf" "\.c[o]?nf$" +syntax "Conf" "\.c[o]?nf$" ## Possible errors and parameters ## Strings icolor white ""(\\.|[^"])*"" ## Comments icolor brightblue "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*##.*$" - diff --git a/conky.nanorc b/conky.nanorc index 6150c4f..518938d 100644 --- a/conky.nanorc +++ b/conky.nanorc @@ -2,7 +2,7 @@ ## Syntax highlighting for conkyrc files. ## ## -syntax "conky" "(\.*conkyrc.*$|conky.conf)" +syntax "Conky" "(\.*conkyrc.*$|conky.conf)" ## Configuration items color green "\<(alignment|append_file|background|border_inner_margin|border_outer_margin|border_width|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|colorN|cpu_avg_samples|default_bar_height|default_bar_width|default_color|default_gauge_height|default_gauge_width|default_graph_height|default_graph_width|default_outline_color|default_shade_color|diskio_avg_samples|display|double_buffer|draw_borders|draw_graph_borders|draw_outline|draw_shades|extra_newline|font|format_human_readable|gap_x|gap_y|http_refresh|if_up_strictness|imap|imlib_cache_flush_interval|imlib_cache_size|lua_draw_hook_post|lua_draw_hook_pre|lua_load|lua_shutdown_hook|lua_startup_hook|mail_spool|max_port_monitor_connections|max_text_width|max_user_text|maximum_width|minimum_height|minimum_width|mpd_host|mpd_password|mpd_port|music_player_interval|mysql_host|mysql_port|mysql_user|mysql_password|mysql_db|net_avg_samples|no_buffers|nvidia_display|out_to_console|out_to_http|out_to_ncurses|out_to_stderr|out_to_x|override_utf8_locale|overwrite_file|own_window|own_window_class|own_window_colour|own_window_hints|own_window_title|own_window_transparent|own_window_type|pad_percents|pop3|sensor_device|short_units|show_graph_range|show_graph_scale|stippled_borders|temperature_unit|template|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|text|text_buffer_size|times_in_seconds|top_cpu_separate|top_name_width|total_run_times|update_interval|update_interval_on_battery|uppercase|use_spacer|use_xft|xftalpha|xftfont)\>" diff --git a/csharp.nanorc b/csharp.nanorc index 8c25d1d..3093e0a 100644 --- a/csharp.nanorc +++ b/csharp.nanorc @@ -1,4 +1,4 @@ -syntax "c#" "\.cs$" +syntax "C#" "\.cs$" # Class color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" diff --git a/css.nanorc b/css.nanorc index d002ad6..69c844b 100644 --- a/css.nanorc +++ b/css.nanorc @@ -1,7 +1,7 @@ ## Here is an example for css files. ## -syntax "css" "\.(css|scss)$" +syntax "CSS" "\.(css|scss)$" color brightred "." color brightyellow start="\{" end="\}" color brightwhite start=":" end="[;^\{]" diff --git a/cython.nanorc b/cython.nanorc index 2e7b958..d1c8df7 100644 --- a/cython.nanorc +++ b/cython.nanorc @@ -1,6 +1,6 @@ ## Cython nanorc, based off of Python nanorc. ## -syntax "cython" "\.pyx$" "\.pxd$" "\.pyi$" +syntax "Cython" "\.pyx$" "\.pxd$" "\.pyi$" icolor brightred "def [ 0-9A-Z_]+" icolor brightred "cpdef [0-9A-Z_]+\(.*\):" icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*\):" diff --git a/dot.nanorc b/dot.nanorc index ae4f4b0..441a35c 100644 --- a/dot.nanorc +++ b/dot.nanorc @@ -1,4 +1,4 @@ -syntax "dot" "\.(dot|gv)$" +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)\>" diff --git a/email.nanorc b/email.nanorc index 6cd564e..fd3cf70 100644 --- a/email.nanorc +++ b/email.nanorc @@ -1,4 +1,4 @@ -syntax "email" +syntax "Email" color magenta "^>([^>].*|$)" color blue "^>>([^>].*|$)" diff --git a/erb.nanorc b/erb.nanorc index 55b0d71..17bfed6 100644 --- a/erb.nanorc +++ b/erb.nanorc @@ -4,7 +4,7 @@ ## ## https://github.com/geomic/ERB-And-More-Code-Highlighting-for-nano -syntax "erb" "\.erb$" "\.rhtml$" +syntax "ERB" "\.erb$" "\.rhtml$" color blue start="<" end=">" color white start="<%" end="%>" color red "&[^;[[:space:]]]*;" diff --git a/fish.nanorc b/fish.nanorc index 97d7d55..85fa258 100644 --- a/fish.nanorc +++ b/fish.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Fish shell scripts. ## -syntax "fish" "\.fish$" +syntax "Fish" "\.fish$" icolor brightgreen "^[0-9A-Z_]+\(\)" color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/fortran.nanorc b/fortran.nanorc index 4a8a06c..7b45e61 100644 --- a/fortran.nanorc +++ b/fortran.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Fortran 90/95 -syntax "fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$" +syntax "Fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$" #color red "\<[A-Z_]a[0-9A-Z_]+\>" color red "\<[0-9]+\>" diff --git a/gentoo.nanorc b/gentoo.nanorc index a0432fe..24b5485 100644 --- a/gentoo.nanorc +++ b/gentoo.nanorc @@ -1,6 +1,6 @@ ## Here is an example for ebuilds/eclasses ## -syntax "ebuild" "\.e(build|class)$" +syntax "Ebuild" "\.e(build|class)$" ## All the standard portage functions color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" ## Highlight bash related syntax @@ -31,7 +31,7 @@ color ,green "[[:space:]]+$" ## Here is an example for Portage control files ## -syntax "/etc/portage" "\.(keywords|mask|unmask|use)$" +syntax "etc-portage" "\.(keywords|mask|unmask|use)$" ## Base text: color green "^.+$" ## Use flags: diff --git a/git.nanorc b/git.nanorc index 9ab2b35..264aeaa 100644 --- a/git.nanorc +++ b/git.nanorc @@ -1,4 +1,4 @@ -syntax "gitconfig" "git(config|modules)$|\.git/config$" +syntax "git-config" "git(config|modules)$|\.git/config$" color brightcyan "\<(true|false)\>" color cyan "^[[:space:]]*[^=]*=" @@ -16,7 +16,7 @@ color ,red " +" # A nano configuration file to enable syntax highlighting of some Git specific # files with the GNU nano text editor (http://www.nano-editor.org) # -syntax "git commit/tag messages" "COMMIT_EDITMSG|TAG_EDITMSG" +syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG" # Commit message color yellow ".*" @@ -50,7 +50,7 @@ color ,red "[[:space:]]+$" # This syntax format is used for interactive rebasing -syntax "git rebase todo" "git-rebase-todo" +syntax "git-rebase-todo" "git-rebase-todo" # Default color yellow ".*" diff --git a/glsl.nanorc b/glsl.nanorc index 6da2639..1cec6cf 100644 --- a/glsl.nanorc +++ b/glsl.nanorc @@ -1,4 +1,4 @@ -syntax "glsl" "\.(frag|vert|fp|vp|glsl)$" +syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$" color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" 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)\>" diff --git a/go.nanorc b/go.nanorc index 92803cd..b603c2f 100644 --- a/go.nanorc +++ b/go.nanorc @@ -1,4 +1,4 @@ -syntax "go" "\.go$" +syntax "GO" "\.go$" color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>" diff --git a/groff.nanorc b/groff.nanorc index 02b82b8..6a0ecc7 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -1,6 +1,6 @@ ## Here is an example for groff. ## -syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." +syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." ## The argument of .ds or .nr color cyan "^\.(ds|nr) [^[[:space:]]]*" ## Single character escapes diff --git a/haml.nanorc b/haml.nanorc index ef9be34..6c848e7 100644 --- a/haml.nanorc +++ b/haml.nanorc @@ -1,4 +1,4 @@ -syntax "haml" "\.haml$" +syntax "Haml" "\.haml$" color cyan "-|=" color white "->|=>" diff --git a/haskell.nanorc b/haskell.nanorc index 8c6bdf0..58e817d 100644 --- a/haskell.nanorc +++ b/haskell.nanorc @@ -1,4 +1,4 @@ -syntax "haskell" "\.hs$" +syntax "Haskell" "\.hs$" ## 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)[ ]" diff --git a/html.nanorc b/html.nanorc index 62984df..18c4763 100644 --- a/html.nanorc +++ b/html.nanorc @@ -1,6 +1,6 @@ ## Here is a short improved example for HTML. ## -syntax "html" "\.htm[l]?$" +syntax "HTML" "\.htm[l]?$" color brightblue start="<" end=">" color red "&[^;[[:space:]]]*;" color yellow ""[^"]*"|qq\|.*\|" diff --git a/ini.nanorc b/ini.nanorc index 26daea3..e30825c 100644 --- a/ini.nanorc +++ b/ini.nanorc @@ -1,4 +1,4 @@ -syntax "ini" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" +syntax "INI" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" header "^\[[A-Za-z]+\]$" color brightcyan "\<(true|false)\>" diff --git a/inputrc.nanorc b/inputrc.nanorc index c0b8f6e..c2f6005 100644 --- a/inputrc.nanorc +++ b/inputrc.nanorc @@ -1,4 +1,4 @@ -syntax "inputrc" "inputrc$" +syntax "Inputrc" "inputrc$" color red "\<(off|none)\>" color green "\" diff --git a/java.nanorc b/java.nanorc index a432f81..0a1d59d 100644 --- a/java.nanorc +++ b/java.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Java. ## -syntax "java" "\.java$" +syntax "Java" "\.java$" color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" diff --git a/js.nanorc b/js.nanorc index 79a4af0..295758b 100644 --- a/js.nanorc +++ b/js.nanorc @@ -2,7 +2,7 @@ ## Old version -#syntax "jsfiles" "(\.|/|)js$" +#syntax "JavaScript" "(\.|/|)js$" #color green "//.*$" start="\/\*" end="\*\/" #color blue "'(\\.|[^'])*'" #color red ""(\\.|[^\"])*"" diff --git a/json.nanorc b/json.nanorc index d6338c9..deca0e1 100644 --- a/json.nanorc +++ b/json.nanorc @@ -1,4 +1,4 @@ -syntax "json" "\.json$" +syntax "JSON" "\.json$" header "^\{$" color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" diff --git a/keymap.nanorc b/keymap.nanorc index bd89707..bd49759 100644 --- a/keymap.nanorc +++ b/keymap.nanorc @@ -1,4 +1,4 @@ -syntax "keymap" "\.(k|key)?map$|Xmodmap$" +syntax "Keymap" "\.(k|key)?map$|Xmodmap$" color cyan "\<(add|clear|compose|keycode|keymaps|keysym|remove|string)\>" color cyan "\<(control|alt|shift)\>" diff --git a/ledger.nanorc b/ledger.nanorc index 18fbb7a..8d07329 100644 --- a/ledger.nanorc +++ b/ledger.nanorc @@ -1,4 +1,4 @@ -syntax "ledger" "(^|\.|/)ledger|ldgr|beancount|bnct$" +syntax "Ledger" "(^|\.|/)ledger|ldgr|beancount|bnct$" color brightmagenta "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*" color blue "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}" diff --git a/lisp.nanorc b/lisp.nanorc index f892a70..5039255 100644 --- a/lisp.nanorc +++ b/lisp.nanorc @@ -1,4 +1,4 @@ -syntax "lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$" +syntax "Lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$" color brightblue "\([a-z-]+" color red "\(([-+*/<>]|<=|>=)|'" diff --git a/lua.nanorc b/lua.nanorc index e0ee22d..72b1ec3 100644 --- a/lua.nanorc +++ b/lua.nanorc @@ -12,7 +12,7 @@ # Automatically use for '.lua' files -syntax "lua" ".*\.lua$" +syntax "Lua" ".*\.lua$" # General color brightwhite ".+" diff --git a/makefile.nanorc b/makefile.nanorc index 3e751a2..70c6398 100644 --- a/makefile.nanorc +++ b/makefile.nanorc @@ -1,4 +1,4 @@ -syntax "makefile" "([Mm]akefile|\.ma?k)$" +syntax "Makefile" "([Mm]akefile|\.ma?k)$" header "^#!.*/(env +)?[bg]?make( |$)" color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" diff --git a/man.nanorc b/man.nanorc index 85efd26..59334be 100644 --- a/man.nanorc +++ b/man.nanorc @@ -1,6 +1,6 @@ ## Here is an example for manpages. ## -syntax "man" "\.[1-9]x?$" +syntax "Man" "\.[1-9]x?$" color green "\.(S|T)H.*$" color brightgreen "\.(S|T)H" "\.TP" color brightred "\.(BR?|I[PR]?).*$" diff --git a/markdown.nanorc b/markdown.nanorc index d103cc0..d50cafb 100644 --- a/markdown.nanorc +++ b/markdown.nanorc @@ -1,4 +1,4 @@ -syntax "markdown" "\.(md|mkd|mkdn|markdown)$" +syntax "Markdown" "\.(md|mkd|mkdn|markdown)$" # Tables (Github extension) color cyan ".*[ :]\|[ :].*" diff --git a/mpdconf.nanorc b/mpdconf.nanorc index 347e6f4..3b4220b 100644 --- a/mpdconf.nanorc +++ b/mpdconf.nanorc @@ -1,4 +1,4 @@ -syntax "mpdconf" "mpd\.conf$" +syntax "MPD" "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)\>" diff --git a/mutt.nanorc b/mutt.nanorc index 2e68399..5f90a5b 100644 --- a/mutt.nanorc +++ b/mutt.nanorc @@ -1,4 +1,4 @@ ## Here is an example for quoted emails (under e.g. mutt). ## -syntax "mutt" +syntax "Mutt" color green "^>.*" diff --git a/nanorc.nanorc b/nanorc.nanorc index 1aa85e0..db87f2c 100644 --- a/nanorc.nanorc +++ b/nanorc.nanorc @@ -1,6 +1,6 @@ ## Here is an example for nanorc files. ## -syntax "nanorc" "\.?nanorc$" +syntax "Nanorc" "\.?nanorc$" ## Possible errors and parameters icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" ## Keywords diff --git a/nginx.nanorc b/nginx.nanorc index 66148b3..ca84f80 100644 --- a/nginx.nanorc +++ b/nginx.nanorc @@ -1,4 +1,4 @@ -syntax "nginx" "nginx.*\.conf$" "\.nginx$" +syntax "Nginx" "nginx.*\.conf$" "\.nginx$" header "^(server|upstream)[a-z ]*\{$" color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{" diff --git a/ocaml.nanorc b/ocaml.nanorc index 6f9fc60..49ba151 100644 --- a/ocaml.nanorc +++ b/ocaml.nanorc @@ -1,4 +1,4 @@ -syntax "ocaml" "\.mli?$" +syntax "OCaml" "\.mli?$" #uid color red "\<[A-Z][0-9a-z_]{2,}\>" #declarations diff --git a/patch.nanorc b/patch.nanorc index a788b35..7e9b16a 100644 --- a/patch.nanorc +++ b/patch.nanorc @@ -1,6 +1,6 @@ ## Here is an example for patch files. ## -syntax "patch" "\.(patch|diff)$" +syntax "Patch" "\.(patch|diff)$" color brightgreen "^\+.*" color green "^\+\+\+.*" color brightblue "^ .*" diff --git a/peg.nanorc b/peg.nanorc index 858d5f8..3229752 100644 --- a/peg.nanorc +++ b/peg.nanorc @@ -1,4 +1,4 @@ -syntax "peg" "\.l?peg$" +syntax "PEG" "\.l?peg$" color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-" color blue "\^[+-]?[0-9]+" diff --git a/perl.nanorc b/perl.nanorc index 9a96528..af513f8 100644 --- a/perl.nanorc +++ b/perl.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Perl. ## -syntax "perl" "\.p[lm]$" +syntax "Perl" "\.p[lm]$" header "^#!.*/(env +)?perl( |$)" color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" diff --git a/perl6.nanorc b/perl6.nanorc index a192ba3..10d39d3 100644 --- a/perl6.nanorc +++ b/perl6.nanorc @@ -2,7 +2,7 @@ ## Hybrid perl5 / perl6 syntax highlighting ### Found in CPAN - http://cpansearch.perl.org/src/NIGE/Goo-0.09/lib/.gooskel/nanorc -syntax "perl" "\.p6$" +syntax "Perl6" "\.p6$" color brightblue "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join|keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek|seekdir|se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr|y|truncate|umask|un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" color brightblue "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" diff --git a/php.nanorc b/php.nanorc index 1ed281c..19ea280 100644 --- a/php.nanorc +++ b/php.nanorc @@ -1,5 +1,5 @@ ## PHP Syntax Highlighting -syntax "php" "\.php[2345s~]?$" +syntax "PHP" "\.php[2345s~]?$" color white start="<\?(php|=)?" end="\?>" # Functions color brightblue "([a-zA-Z0-9_-]*)\(" diff --git a/pkg-config.nanorc b/pkg-config.nanorc index 6dff0f6..4c83ce8 100644 --- a/pkg-config.nanorc +++ b/pkg-config.nanorc @@ -1,4 +1,4 @@ -syntax "pkg-config" "\.pc$" +syntax "PC" "\.pc$" color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):" color cyan "^(Requires|Libs)(\.private)?:" diff --git a/pkgbuild.nanorc b/pkgbuild.nanorc index c601523..7202ac9 100644 --- a/pkgbuild.nanorc +++ b/pkgbuild.nanorc @@ -1,6 +1,6 @@ ## Arch PKGBUILD files ## -syntax "pkgbuild" "^.*PKGBUILD$" +syntax "PKGBUILD" "^.*PKGBUILD$" color green start="^." end="$" color cyan "^.*(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$" color brightcyan "\<(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)\>" diff --git a/po.nanorc b/po.nanorc index f35e49f..d434b2a 100644 --- a/po.nanorc +++ b/po.nanorc @@ -1,4 +1,4 @@ -syntax "po" "\.pot?$" +syntax "PO" "\.pot?$" color cyan "\<(msgid|msgstr)\>" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" diff --git a/pov.nanorc b/pov.nanorc index 298b201..f8cb8b5 100644 --- a/pov.nanorc +++ b/pov.nanorc @@ -1,6 +1,6 @@ ## Here is an example for POV-Ray. ## -syntax "pov" "\.(pov|POV|povray|POVRAY)$" +syntax "POV" "\.(pov|POV|povray|POVRAY)$" color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" diff --git a/privoxy.nanorc b/privoxy.nanorc index 473df51..6f1f609 100644 --- a/privoxy.nanorc +++ b/privoxy.nanorc @@ -1,11 +1,11 @@ -syntax "privoxy-config" "privoxy/config$" +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$" +syntax "Privoxy-action" "\.action$" color brightred "[{[:space:]]\-block([[:space:]{}]|$)" color brightgreen "[{[:space:]]\+block([[:space:]{}]|$)" @@ -17,7 +17,7 @@ color brightblack "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" -syntax "privoxy-filter" "\.filter$" +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):" @@ -25,4 +25,3 @@ color magenta "\\.?" color brightblack "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" - diff --git a/puppet.nanorc b/puppet.nanorc index 022c1fc..21875ec 100644 --- a/puppet.nanorc +++ b/puppet.nanorc @@ -1,6 +1,6 @@ ## Nano syntax highlighting for Puppet. ## -syntax "puppet" "\.pp$" +syntax "Puppet" "\.pp$" #This goes first, so the normal builtins will override in some classes ## Paramerers diff --git a/python.nanorc b/python.nanorc index 7ef5d1a..efe3e33 100644 --- a/python.nanorc +++ b/python.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Python. ## -syntax "python" "\.py$" +syntax "Python" "\.py$" header "^#!.*/(env +)?python( |$)" ## built-in objects diff --git a/reST.nanorc b/reST.nanorc index 233e697..c0152fd 100644 --- a/reST.nanorc +++ b/reST.nanorc @@ -1,5 +1,5 @@ ## For reST -syntax "rest" "\.rest$" "\.rst$" +syntax "RST" "\.rest$" "\.rst$" # italics #color magenta "\*[^*]\*" # bold diff --git a/rpmspec.nanorc b/rpmspec.nanorc index e05ad6a..eab8ee5 100644 --- a/rpmspec.nanorc +++ b/rpmspec.nanorc @@ -1,4 +1,4 @@ -syntax "rpmspec" "\.spec$" "\.rpmspec$" +syntax "Rpmspec" "\.spec$" "\.rpmspec$" color cyan "\<(Icon|ExclusiveOs|ExcludeOs):" color cyan "\<(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):" diff --git a/ruby.nanorc b/ruby.nanorc index 36cadf8..f192746 100644 --- a/ruby.nanorc +++ b/ruby.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Ruby. ## -syntax "ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile" +syntax "Ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile" header "^#!.*/(env +)?ruby( |$)" ## Asciibetical list of reserved words diff --git a/rust.nanorc b/rust.nanorc index a8e2e90..06ace6a 100644 --- a/rust.nanorc +++ b/rust.nanorc @@ -2,7 +2,7 @@ # Copyright 2015 The Rust Project Developers. # # NOTE: Rules are applied in order: later rules re-colorize matching text. -syntax "rust" "\.rs" +syntax "Rust" "\.rs" # function definition color magenta "fn [a-z0-9_]+" diff --git a/scala.nanorc b/scala.nanorc index b5cf0ea..d116dc4 100644 --- a/scala.nanorc +++ b/scala.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Scala. ## -syntax "scala" "\.scala$" +syntax "Scala" "\.scala$" color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" color red "\<(match|val|var|break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" color cyan "\<(def|object|case|trait|lazy|implicit|abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\>" diff --git a/sed.nanorc b/sed.nanorc index 84cbafc..286c8ca 100644 --- a/sed.nanorc +++ b/sed.nanorc @@ -1,4 +1,4 @@ -syntax "sed" "\.sed$" +syntax "SED" "\.sed$" header "^#!.*bin/(env +)?sed( |$)" color red "[|^$.*+]" diff --git a/sh.nanorc b/sh.nanorc index 5f0f729..c44ddce 100644 --- a/sh.nanorc +++ b/sh.nanorc @@ -1,6 +1,6 @@ ## Here is an example for Bourne shell scripts. ## -syntax "sh" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile" +syntax "SH" "\.sh$" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_profile" "bash_profile" header "^#!.*/(env +)?(ba)?sh( |$)" color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" diff --git a/sls.nanorc b/sls.nanorc index c600865..bd78d6a 100644 --- a/sls.nanorc +++ b/sls.nanorc @@ -1,7 +1,7 @@ ## SaltStack files (*.sls) ## -syntax "salt" "\.sls$" +syntax "Salt" "\.sls$" # Anything ending in a colon (:), including things that start with a dash (-) color blue "^[^ -].*:$" diff --git a/sql.nanorc b/sql.nanorc index 650214a..1ebd574 100644 --- a/sql.nanorc +++ b/sql.nanorc @@ -1,4 +1,4 @@ -syntax "sql" "\.sql$" "sqliterc$" +syntax "SQL" "\.sql$" "sqliterc$" icolor cyan "\<(ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT)\>" icolor cyan "\<(BETWEEN|BINARY|BOTH|BY|BOOLEAN)\>" diff --git a/systemd.nanorc b/systemd.nanorc index 1a3ea91..f4b9bf5 100644 --- a/systemd.nanorc +++ b/systemd.nanorc @@ -1,4 +1,4 @@ -syntax "systemd" "\.(service|socket)$" +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)=" diff --git a/tcl.nanorc b/tcl.nanorc index 2959512..16031ef 100644 --- a/tcl.nanorc +++ b/tcl.nanorc @@ -1,4 +1,4 @@ -syntax "tcl" "\.tcl$" +syntax "TCL" "\.tcl$" header "^#!.*/(env +)?tclsh( |$)" ## Standard Tcl [info commands] diff --git a/tex.nanorc b/tex.nanorc index 76cc469..56aaa8b 100644 --- a/tex.nanorc +++ b/tex.nanorc @@ -1,6 +1,6 @@ ## Here is a short example for TeX files. ## -syntax "tex" "\.tex$" "bib" "\.bib$" "cls" "\.cls$" +syntax "TeX" "\.tex$" "bib" "\.bib$" "cls" "\.cls$" color yellow "\$[^$]*\$" icolor green "\\.|\\[A-Z]*" color magenta "[{}]" diff --git a/vala.nanorc b/vala.nanorc index 34509bd..52f58b9 100644 --- a/vala.nanorc +++ b/vala.nanorc @@ -1,4 +1,4 @@ -syntax "vala" "\.vala$" +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:]]*[()]" diff --git a/vi.nanorc b/vi.nanorc index 719dd16..a2e2888 100644 --- a/vi.nanorc +++ b/vi.nanorc @@ -1,4 +1,4 @@ -syntax "vi" "(^|/|\.)(ex|vim)rc$|\.vim" +syntax "VI" "(^|/|\.)(ex|vim)rc$|\.vim" color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color cyan "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>" diff --git a/xml.nanorc b/xml.nanorc index 859f0dc..47542c6 100644 --- a/xml.nanorc +++ b/xml.nanorc @@ -1,7 +1,7 @@ ## Here is an example for xml files. ## -syntax "ml" ".*\.([jrs]?html?|xml|sgml?|rng)$" +syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng)$" color white "^.+$" color green start="<" end=">" color cyan "<[^> ]+" diff --git a/xresources.nanorc b/xresources.nanorc index a49cb3f..7773642 100644 --- a/xresources.nanorc +++ b/xresources.nanorc @@ -1,4 +1,4 @@ -syntax "xresources" "X(defaults|resources)$" +syntax "Xresources" "X(defaults|resources)$" color green "^[[:alnum:]]+\*" color brightyellow "\*[[:alnum:]]+\:" diff --git a/yaml.nanorc b/yaml.nanorc index c2b926b..1e18720 100644 --- a/yaml.nanorc +++ b/yaml.nanorc @@ -1,4 +1,4 @@ -syntax "yaml" "\.ya?ml$" +syntax "YAML" "\.ya?ml$" header "^---" "%YAML" color green "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " diff --git a/yum.nanorc b/yum.nanorc index 6ca9f05..b463922 100644 --- a/yum.nanorc +++ b/yum.nanorc @@ -1,4 +1,4 @@ -syntax "yum" "\.repo$|yum.*\.conf$" +syntax "YUM" "\.repo$|yum.*\.conf$" color cyan "^[[:space:]]*[^=]*=" color brightmagenta "^[[:space:]]*\[.*\]$" diff --git a/zsh.nanorc b/zsh.nanorc index 8bc926d..24c8a3a 100644 --- a/zsh.nanorc +++ b/zsh.nanorc @@ -1,5 +1,5 @@ ## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc) -syntax "zsh" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout)$" +syntax "ZSH" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout)$" header "^#!.*/(env +)?zsh( |$)" ## Numbers