Skip to content
/ nanorc Public
forked from scopatz/nanorc

Commit

Permalink
Rename syntax definitions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ThomasR committed Mar 2, 2016
1 parent 0923669 commit bba53c3
Show file tree
Hide file tree
Showing 75 changed files with 80 additions and 82 deletions.
2 changes: 1 addition & 1 deletion apacheconf.nanorc
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down
2 changes: 1 addition & 1 deletion arduino.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## /usr/share/nano/arduino.nanorc
## ...

syntax "ino" "\.?ino$"
syntax "INO" "\.?ino$"

##
color brightred "\<[A-Z_][0-9A-Z_]+\>"
Expand Down
2 changes: 1 addition & 1 deletion asciidoc.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "asciidoc" "\.(asc|asciidoc|adoc)$"
syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$"

# main header
color red "^====+$"
Expand Down
2 changes: 1 addition & 1 deletion asm.nanorc
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down
2 changes: 1 addition & 1 deletion awk.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "awk" "\.awk$"
syntax "AWK" "\.awk$"
header "^#!.*bin/(env +)?awk( |$)"

color brightyellow "\$[A-Za-z0-9_!@#$*?-]+"
Expand Down
2 changes: 1 addition & 1 deletion c.nanorc
Original file line number Diff line number Diff line change
@@ -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\>"
Expand Down
2 changes: 1 addition & 1 deletion cmake.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion coffeescript.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "coffeescript" "\.coffee$"
syntax "CoffeeScript" "\.coffee$"
header "^#!.*/(env +)?coffee"

color red "[!&|=/*+-<>]|\<(and|or|is|isnt|not)\>"
Expand Down
2 changes: 1 addition & 1 deletion colortest.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "colortest" "ColorTest$"
syntax "colorTest" "ColorTest$"

color black "\<PLAIN\>"

Expand Down
3 changes: 1 addition & 2 deletions conf.nanorc
Original file line number Diff line number Diff line change
@@ -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:]]*##.*$"

2 changes: 1 addition & 1 deletion conky.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion csharp.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "c#" "\.cs$"
syntax "C#" "\.cs$"

# Class
color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
Expand Down
2 changes: 1 addition & 1 deletion css.nanorc
Original file line number Diff line number Diff line change
@@ -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="[;^\{]"
Expand Down
2 changes: 1 addition & 1 deletion cython.nanorc
Original file line number Diff line number Diff line change
@@ -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_]+\(.*\):"
Expand Down
2 changes: 1 addition & 1 deletion dot.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion email.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "email"
syntax "Email"

color magenta "^>([^>].*|$)"
color blue "^>>([^>].*|$)"
Expand Down
2 changes: 1 addition & 1 deletion erb.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -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:]]]*;"
Expand Down
2 changes: 1 addition & 1 deletion fish.nanorc
Original file line number Diff line number Diff line change
@@ -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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
Expand Down
2 changes: 1 addition & 1 deletion fortran.nanorc
Original file line number Diff line number Diff line change
@@ -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]+\>"
Expand Down
4 changes: 2 additions & 2 deletions gentoo.nanorc
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions git.nanorc
Original file line number Diff line number Diff line change
@@ -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:]]*[^=]*="
Expand All @@ -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 ".*"
Expand Down Expand Up @@ -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 ".*"
Expand Down
2 changes: 1 addition & 1 deletion glsl.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion go.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion groff.nanorc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion haml.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "haml" "\.haml$"
syntax "Haml" "\.haml$"

color cyan "-|="
color white "->|=>"
Expand Down
2 changes: 1 addition & 1 deletion haskell.nanorc
Original file line number Diff line number Diff line change
@@ -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)[ ]"
Expand Down
2 changes: 1 addition & 1 deletion html.nanorc
Original file line number Diff line number Diff line change
@@ -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\|.*\|"
Expand Down
2 changes: 1 addition & 1 deletion ini.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion inputrc.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "inputrc" "inputrc$"
syntax "Inputrc" "inputrc$"

color red "\<(off|none)\>"
color green "\<on\>"
Expand Down
2 changes: 1 addition & 1 deletion java.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion js.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Old version

#syntax "jsfiles" "(\.|/|)js$"
#syntax "JavaScript" "(\.|/|)js$"
#color green "//.*$" start="\/\*" end="\*\/"
#color blue "'(\\.|[^'])*'"
#color red ""(\\.|[^\"])*""
Expand Down
2 changes: 1 addition & 1 deletion json.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "json" "\.json$"
syntax "JSON" "\.json$"
header "^\{$"

color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
Expand Down
2 changes: 1 addition & 1 deletion keymap.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion ledger.nanorc
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion lisp.nanorc
Original file line number Diff line number Diff line change
@@ -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 "\(([-+*/<>]|<=|>=)|'"
Expand Down
2 changes: 1 addition & 1 deletion lua.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


# Automatically use for '.lua' files
syntax "lua" ".*\.lua$"
syntax "Lua" ".*\.lua$"

# General
color brightwhite ".+"
Expand Down
2 changes: 1 addition & 1 deletion makefile.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion man.nanorc
Original file line number Diff line number Diff line change
@@ -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]?).*$"
Expand Down
2 changes: 1 addition & 1 deletion markdown.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "markdown" "\.(md|mkd|mkdn|markdown)$"
syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"

# Tables (Github extension)
color cyan ".*[ :]\|[ :].*"
Expand Down
2 changes: 1 addition & 1 deletion mpdconf.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion mutt.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Here is an example for quoted emails (under e.g. mutt).
##
syntax "mutt"
syntax "Mutt"
color green "^>.*"
2 changes: 1 addition & 1 deletion nanorc.nanorc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion nginx.nanorc
Original file line number Diff line number Diff line change
@@ -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:]]*\{"
Expand Down
2 changes: 1 addition & 1 deletion ocaml.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "ocaml" "\.mli?$"
syntax "OCaml" "\.mli?$"
#uid
color red "\<[A-Z][0-9a-z_]{2,}\>"
#declarations
Expand Down
2 changes: 1 addition & 1 deletion patch.nanorc
Original file line number Diff line number Diff line change
@@ -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 "^ .*"
Expand Down
2 changes: 1 addition & 1 deletion peg.nanorc
Original file line number Diff line number Diff line change
@@ -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]+"
Expand Down
2 changes: 1 addition & 1 deletion perl.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion perl6.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -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)\>"

Expand Down
2 changes: 1 addition & 1 deletion php.nanorc
Original file line number Diff line number Diff line change
@@ -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_-]*)\("
Expand Down
2 changes: 1 addition & 1 deletion pkg-config.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "pkg-config" "\.pc$"
syntax "PC" "\.pc$"

color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):"
color cyan "^(Requires|Libs)(\.private)?:"
Expand Down
2 changes: 1 addition & 1 deletion pkgbuild.nanorc
Original file line number Diff line number Diff line change
@@ -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)\>"
Expand Down
2 changes: 1 addition & 1 deletion po.nanorc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax "po" "\.pot?$"
syntax "PO" "\.pot?$"

color cyan "\<(msgid|msgstr)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
Expand Down
Loading

0 comments on commit bba53c3

Please sign in to comment.