From 8edce8d9b7ccaa4f40e2ac53fcdf3522e85b48bf Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 19 Jul 2021 13:13:57 -0500 Subject: [PATCH] Script to setup Nano Syntax Highlighting and configuration --- Nano/.nanorc | 46 +++++ Nano/Install-Nano.bash | 85 ++++++++ .../Dockerfile.nanorc | 26 +++ Nano/Nano-Syntax-Highlighting/Rnw.nanorc | 39 ++++ .../apacheconf.nanorc | 47 +++++ Nano/Nano-Syntax-Highlighting/arduino.nanorc | 116 +++++++++++ Nano/Nano-Syntax-Highlighting/asciidoc.nanorc | 47 +++++ Nano/Nano-Syntax-Highlighting/asm.nanorc | 20 ++ Nano/Nano-Syntax-Highlighting/awk.nanorc | 27 +++ Nano/Nano-Syntax-Highlighting/batch.nanorc | 34 ++++ Nano/Nano-Syntax-Highlighting/c.nanorc | 52 +++++ Nano/Nano-Syntax-Highlighting/clojure.nanorc | 33 ++++ Nano/Nano-Syntax-Highlighting/cmake.nanorc | 26 +++ .../coffeescript.nanorc | 16 ++ .../Nano-Syntax-Highlighting/colortest.nanorc | 17 ++ Nano/Nano-Syntax-Highlighting/conf.nanorc | 11 ++ Nano/Nano-Syntax-Highlighting/conky.nanorc | 18 ++ Nano/Nano-Syntax-Highlighting/creole.nanorc | 22 +++ Nano/Nano-Syntax-Highlighting/csh.nanorc | 15 ++ Nano/Nano-Syntax-Highlighting/csharp.nanorc | 26 +++ Nano/Nano-Syntax-Highlighting/css.nanorc | 13 ++ Nano/Nano-Syntax-Highlighting/csv.nanorc | 16 ++ Nano/Nano-Syntax-Highlighting/cython.nanorc | 33 ++++ Nano/Nano-Syntax-Highlighting/dot.nanorc | 8 + Nano/Nano-Syntax-Highlighting/dotenv.nanorc | 10 + Nano/Nano-Syntax-Highlighting/elixir.nanorc | 50 +++++ Nano/Nano-Syntax-Highlighting/email.nanorc | 5 + Nano/Nano-Syntax-Highlighting/erb.nanorc | 26 +++ .../Nano-Syntax-Highlighting/etc-hosts.nanorc | 15 ++ Nano/Nano-Syntax-Highlighting/fish.nanorc | 15 ++ Nano/Nano-Syntax-Highlighting/fortran.nanorc | 53 +++++ Nano/Nano-Syntax-Highlighting/fsharp.nanorc | 39 ++++ Nano/Nano-Syntax-Highlighting/gemini.nanorc | 21 ++ Nano/Nano-Syntax-Highlighting/genie.nanorc | 53 +++++ Nano/Nano-Syntax-Highlighting/gentoo.nanorc | 52 +++++ Nano/Nano-Syntax-Highlighting/git.nanorc | 80 ++++++++ .../Nano-Syntax-Highlighting/gitcommit.nanorc | 80 ++++++++ Nano/Nano-Syntax-Highlighting/glsl.nanorc | 15 ++ Nano/Nano-Syntax-Highlighting/go.nanorc | 23 +++ .../Nano-Syntax-Highlighting/gophermap.nanorc | 45 +++++ Nano/Nano-Syntax-Highlighting/gradle.nanorc | 23 +++ Nano/Nano-Syntax-Highlighting/groff.nanorc | 27 +++ Nano/Nano-Syntax-Highlighting/haml.nanorc | 18 ++ Nano/Nano-Syntax-Highlighting/haskell.nanorc | 35 ++++ Nano/Nano-Syntax-Highlighting/hcl.nanorc | 36 ++++ Nano/Nano-Syntax-Highlighting/html.j2.nanorc | 41 ++++ Nano/Nano-Syntax-Highlighting/html.nanorc | 41 ++++ Nano/Nano-Syntax-Highlighting/i3.nanorc | 15 ++ Nano/Nano-Syntax-Highlighting/ical.nanorc | 20 ++ Nano/Nano-Syntax-Highlighting/ini.nanorc | 11 ++ Nano/Nano-Syntax-Highlighting/inputrc.nanorc | 10 + Nano/Nano-Syntax-Highlighting/jade.nanorc | 45 +++++ Nano/Nano-Syntax-Highlighting/java.nanorc | 22 +++ .../javascript.nanorc | 25 +++ Nano/Nano-Syntax-Highlighting/js.nanorc | 56 ++++++ Nano/Nano-Syntax-Highlighting/json.nanorc | 13 ++ Nano/Nano-Syntax-Highlighting/keymap.nanorc | 10 + .../Nano-Syntax-Highlighting/kickstart.nanorc | 15 ++ Nano/Nano-Syntax-Highlighting/kotlin.nanorc | 26 +++ Nano/Nano-Syntax-Highlighting/ledger.nanorc | 10 + Nano/Nano-Syntax-Highlighting/lisp.nanorc | 13 ++ Nano/Nano-Syntax-Highlighting/lua.nanorc | 80 ++++++++ Nano/Nano-Syntax-Highlighting/m3u.nanorc | 22 +++ Nano/Nano-Syntax-Highlighting/makefile.nanorc | 25 +++ Nano/Nano-Syntax-Highlighting/man.nanorc | 12 ++ Nano/Nano-Syntax-Highlighting/markdown.nanorc | 51 +++++ .../moonscript.nanorc | 54 +++++ Nano/Nano-Syntax-Highlighting/mpdconf.nanorc | 9 + Nano/Nano-Syntax-Highlighting/mutt.nanorc | 4 + Nano/Nano-Syntax-Highlighting/nanorc.nanorc | 48 +++++ Nano/Nano-Syntax-Highlighting/nginx.nanorc | 13 ++ Nano/Nano-Syntax-Highlighting/nmap.nanorc | 18 ++ Nano/Nano-Syntax-Highlighting/ocaml.nanorc | 32 +++ Nano/Nano-Syntax-Highlighting/octave.nanorc | 24 +++ Nano/Nano-Syntax-Highlighting/patch.nanorc | 14 ++ Nano/Nano-Syntax-Highlighting/peg.nanorc | 12 ++ Nano/Nano-Syntax-Highlighting/perl.nanorc | 18 ++ Nano/Nano-Syntax-Highlighting/perl6.nanorc | 19 ++ Nano/Nano-Syntax-Highlighting/php.nanorc | 61 ++++++ .../pkg-config.nanorc | 8 + Nano/Nano-Syntax-Highlighting/pkgbuild.nanorc | 26 +++ Nano/Nano-Syntax-Highlighting/po.nanorc | 9 + Nano/Nano-Syntax-Highlighting/pov.nanorc | 17 ++ .../powershell.nanorc | 34 ++++ Nano/Nano-Syntax-Highlighting/privoxy.nanorc | 27 +++ .../properties.nanorc | 6 + Nano/Nano-Syntax-Highlighting/pug.nanorc | 45 +++++ Nano/Nano-Syntax-Highlighting/puppet.nanorc | 38 ++++ Nano/Nano-Syntax-Highlighting/python.nanorc | 56 ++++++ Nano/Nano-Syntax-Highlighting/reST.nanorc | 27 +++ Nano/Nano-Syntax-Highlighting/rego.nanorc | 22 +++ Nano/Nano-Syntax-Highlighting/rpmspec.nanorc | 27 +++ Nano/Nano-Syntax-Highlighting/ruby.nanorc | 37 ++++ Nano/Nano-Syntax-Highlighting/rust.nanorc | 42 ++++ Nano/Nano-Syntax-Highlighting/scala.nanorc | 12 ++ Nano/Nano-Syntax-Highlighting/sed.nanorc | 9 + Nano/Nano-Syntax-Highlighting/sh.nanorc | 23 +++ Nano/Nano-Syntax-Highlighting/sieve.nanorc | 187 ++++++++++++++++++ Nano/Nano-Syntax-Highlighting/sls.nanorc | 29 +++ Nano/Nano-Syntax-Highlighting/sparql.nanorc | 49 +++++ Nano/Nano-Syntax-Highlighting/sql.nanorc | 34 ++++ Nano/Nano-Syntax-Highlighting/svn.nanorc | 14 ++ Nano/Nano-Syntax-Highlighting/swift.nanorc | 64 ++++++ Nano/Nano-Syntax-Highlighting/systemd.nanorc | 12 ++ Nano/Nano-Syntax-Highlighting/tcl.nanorc | 27 +++ Nano/Nano-Syntax-Highlighting/tex.nanorc | 14 ++ Nano/Nano-Syntax-Highlighting/toml.nanorc | 54 +++++ Nano/Nano-Syntax-Highlighting/ts.nanorc | 47 +++++ Nano/Nano-Syntax-Highlighting/twig.nanorc | 41 ++++ Nano/Nano-Syntax-Highlighting/vala.nanorc | 18 ++ Nano/Nano-Syntax-Highlighting/vi.nanorc | 10 + Nano/Nano-Syntax-Highlighting/x11basic.nanorc | 172 ++++++++++++++++ Nano/Nano-Syntax-Highlighting/xml.nanorc | 18 ++ .../xresources.nanorc | 10 + Nano/Nano-Syntax-Highlighting/yaml.nanorc | 24 +++ Nano/Nano-Syntax-Highlighting/yum.nanorc | 8 + Nano/Nano-Syntax-Highlighting/zig.nanorc | 9 + Nano/Nano-Syntax-Highlighting/zsh.nanorc | 42 ++++ Nano/Nano-Syntax-Highlighting/zshrc.nanorc | 42 ++++ 119 files changed, 3793 insertions(+) create mode 100644 Nano/.nanorc create mode 100755 Nano/Install-Nano.bash create mode 100644 Nano/Nano-Syntax-Highlighting/Dockerfile.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/Rnw.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/apacheconf.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/arduino.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/asciidoc.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/asm.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/awk.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/batch.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/c.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/clojure.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/cmake.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/coffeescript.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/colortest.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/conf.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/conky.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/creole.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/csh.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/csharp.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/css.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/csv.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/cython.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/dot.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/dotenv.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/elixir.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/email.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/erb.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/etc-hosts.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/fish.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/fortran.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/fsharp.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/gemini.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/genie.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/gentoo.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/git.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/gitcommit.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/glsl.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/go.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/gophermap.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/gradle.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/groff.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/haml.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/haskell.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/hcl.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/html.j2.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/html.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/i3.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/ical.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/ini.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/inputrc.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/jade.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/java.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/javascript.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/js.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/json.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/keymap.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/kickstart.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/kotlin.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/ledger.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/lisp.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/lua.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/m3u.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/makefile.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/man.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/markdown.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/moonscript.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/mpdconf.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/mutt.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/nanorc.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/nginx.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/nmap.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/ocaml.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/octave.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/patch.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/peg.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/perl.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/perl6.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/php.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/pkg-config.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/pkgbuild.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/po.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/pov.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/powershell.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/privoxy.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/properties.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/pug.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/puppet.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/python.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/reST.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/rego.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/rpmspec.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/ruby.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/rust.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/scala.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/sed.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/sh.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/sieve.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/sls.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/sparql.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/sql.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/svn.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/swift.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/systemd.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/tcl.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/tex.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/toml.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/ts.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/twig.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/vala.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/vi.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/x11basic.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/xml.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/xresources.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/yaml.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/yum.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/zig.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/zsh.nanorc create mode 100644 Nano/Nano-Syntax-Highlighting/zshrc.nanorc diff --git a/Nano/.nanorc b/Nano/.nanorc new file mode 100644 index 0000000..a2e7dcd --- /dev/null +++ b/Nano/.nanorc @@ -0,0 +1,46 @@ +## Nano Options ## + +# Maintains indentation level +set autoindent + +# Adds line numbers to the side of the display +set linenumbers + +# Use spaces instead of tabs (FUCK TABS) +set tabstospaces + +# Set the tabsize -- if tabtospaces is enabled this will define how many spaces to use +set tabsize 4 + +# Back Ups (This will create a clone of the file being edited suffixed with "~" +set backup + +# Back Up Directory (This will move all backups to this directory) +set backupdir "~/Nano-Backups" + +# Disable case sensitive searches -- makes ^w a bit more powerful +unset casesensitive + + +## Nano Bindings ## + +# Rebinding copy for line +unbind ^C main +bind ^C copy main + +# Rebinding paste +unbind ^V main +bind ^V paste main + +# Rebinding undo +unbind ^Z main +bind ^Z undo main + +# Rebinding redo +unbind ^R main +bind ^R redo main + +## Syntax Highlighting ## + +# Magic usage for syntax highlighting +magic #!/bin/bash diff --git a/Nano/Install-Nano.bash b/Nano/Install-Nano.bash new file mode 100755 index 0000000..07f1b8e --- /dev/null +++ b/Nano/Install-Nano.bash @@ -0,0 +1,85 @@ +#!/bin/bash --posix + +set -e + +DIRECTORY="/usr/local/share/nano" + +usage() { + printf "%s\n" "Usage: bash Install-Nano.bash -d + --directory | -d + Explanation: + The directory to install the nano syntax highlighting files to + Default: + /usr/local/share/nano/ + Example: + --syntax-directory ~/.nano/ + + Requires two things: + - Directory names \"Nano-Syntax-Highlighting\" that contains .nanorc files + - File \".nanorc\" that contains configuration settings for nano" + +} + +error() { + printf "\n%s\n" "$1" >&2 + exit 1 +} + +confirmation() { + while true; do + read -p "${1}" -n 1 -r choice + case "$choice" in + y|Y ) return 1;; + n|N ) return 0;; + * ) echo -e "\nInput must be either y, Y, n, or N";; + esac +done +} + +while :; do + case $1 in + -h | -\? | --help) + usage # Display a usage synopsis. + exit + ;; + --) # End of all options. + shift + break + ;; + -d | --directory) + shift + DIRECTORY="${1}" + ;; + -?*) + printf 'Unknown option: %s\n' "$1" >&2 + usage + error + ;; + *) # Default case: No more options, so break out of the loop. + break ;; + esac + + shift +done + + +[[ "${DIRECTORY}" == "" ]] && error "A directory was not provided!" +[[ ! -d "${DIRECTORY}" ]] && error "The directory \"${DIRECTORY}\" does not exist" + +[[ $(! test -w "${DIRECTORY}") ]] && error "You lack permissions to write to \"${DIRECTORY}\"" + +[[ $(confirmation "Copying *.nanorc files to ${DIRECTORY}, continue (y/N)? ") ]] && exit 1 + +[[ $(nano -V | head -n 1 | grep 5.) == "" ]] && error "Nano version is not 5.X, consult nano -V and update nano." + +echo "Copying syntax files to ${DIRECTORY}" +cp -R "Nano-Syntax-Highlighting/" "${DIRECTORY}" + +NANORC_CONTENT="$(cat ./.nanorc)" + +cat << EOF > ~/.nanorc +${NANORC_CONTENT} +include ${DIRECTORY}/*.nanorc" +EOF + +echo "Successfully installed custom nanorc, see ~/.nanorc" diff --git a/Nano/Nano-Syntax-Highlighting/Dockerfile.nanorc b/Nano/Nano-Syntax-Highlighting/Dockerfile.nanorc new file mode 100644 index 0000000..053951e --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/Dockerfile.nanorc @@ -0,0 +1,26 @@ +## Syntax highlighting for Dockerfiles +syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$" + +## Keywords +icolor red "^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)[[:space:]]" + +## Brackets & parenthesis +color brightgreen "(\(|\)|\[|\])" + +## Double ampersand +color brightmagenta "&&" + +## Comments +icolor cyan "^[[:space:]]*#.*$" + +## Blank space at EOL +color ,green "[[:space:]]+$" + +## Strings, single-quoted +color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" + +## Strings, double-quoted +color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" + +## Single and double quotes +color brightyellow "('|\")" diff --git a/Nano/Nano-Syntax-Highlighting/Rnw.nanorc b/Nano/Nano-Syntax-Highlighting/Rnw.nanorc new file mode 100644 index 0000000..75e6f6e --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/Rnw.nanorc @@ -0,0 +1,39 @@ +## Here is a short example for TeX files. +## +syntax "Tex" "\.Rnw$" "bib" "\.bib$" "cls" "\.cls$" +color yellow "\$(\\\$|[^$])*[^\\]\$" +color yellow "\$\$(\\\$|[^$])*[^\\]\$\$" +icolor green "\\.|\\[A-Z]*" +color magenta "[{}]" +color red start="<<" end=">>=" +color white start=">>=" end="@" + +color brightblue "%.*" +color brightblue "^[[:space:]]*#.*" +color brightblue start="\\begin\{comment\}" end="\\end\{comment\}" + +color green "(class|extends|goto) ([a-zA-Z0-9_]*)" +color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}" + +# Functions +color blue "([a-zA-Z0-9_\-$\.]*)\(" + +# Variables +color magenta "[a-zA-Z_0-9]* <\-" +# Special Characters +color yellow "[.,{}();]" +color yellow "\[" +color yellow "\]" +color yellow "[=][^>]" +# Numbers +color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*" +color magenta "0x[0-9a-zA-Z]*" +# Special Variables +color blue "(\$this|parent::|self::|\$this->)" +# Bitwise Operations +color magenta "(\;|\||\^){1}" +# And/Or/SRO/etc +color green "(\;\;|\|\||::|=>|->)" +# STRINGS! +color red "('[^']*')|(\"[^\"]*\")" + diff --git a/Nano/Nano-Syntax-Highlighting/apacheconf.nanorc b/Nano/Nano-Syntax-Highlighting/apacheconf.nanorc new file mode 100644 index 0000000..f1325e6 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/apacheconf.nanorc @@ -0,0 +1,47 @@ +# Apache files +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)" +color brightcyan "(Allow|AllowCONNECT|AllowEncodedSlashes|AllowOverride|Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID)" +color brightcyan "(Anonymous_VerifyEmail|AssignUserID|AuthAuthoritative|AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile|AuthDigestAlgorithm)" +color brightcyan "(AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)" +color brightcyan "(AuthGroupFile|AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases)" +color brightcyan "(AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl|AuthName|AuthType|AuthUserFile)" +color brightcyan "(BrowserMatch|BrowserMatchNoCase|BS2000Account|BufferedLogs|CacheDefaultExpire|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheExpiryCheck)" +color brightcyan "(CacheFile|CacheForceCompletion|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheIgnoreCacheControl|CacheIgnoreHeaders)" +color brightcyan "(CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire|CacheMaxFileSize|CacheMinFileSize|CacheNegotiatedDocs|CacheRoot|CacheSize|CacheTimeMargin)" +color brightcyan "(CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckSpelling|ChildPerUserID|ContentDigest|CookieDomain|CookieExpires|CookieLog|CookieName)" +color brightcyan "(CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavLockDB|DavMinTimeout|DefaultIcon|DefaultLanguage|DefaultType)" +color brightcyan "(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize|Deny|Directory|DirectoryIndex|DirectoryMatch|DirectorySlash)" +color brightcyan "(DocumentRoot|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|Example|ExpiresActive|ExpiresByType)" +color brightcyan "(ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FileETag|Files|FilesMatch|ForceLanguagePriority|ForceType|ForensicLog|Group|Header)" +color brightcyan "(HeaderName|HostnameLookups|IdentityCheck|IfDefine|IfModule|IfVersion|ImapBase|ImapDefault|ImapMenu|Include|IndexIgnore|IndexOptions|IndexOrderDefault)" +color brightcyan "(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer|KeepAlive|KeepAliveTimeout)" +color brightcyan "(LanguagePriority|LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize)" +color brightcyan "(LDAPTrustedCA|LDAPTrustedCAType|Limit|LimitExcept|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine)" +color brightcyan "(LimitXMLRequestBody|Listen|ListenBackLog|LoadFile|LoadModule|Location|LocationMatch|LockFile|LogFormat|LogLevel|MaxClients|MaxKeepAliveRequests)" +color brightcyan "(MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MCacheMaxObjectCount|MCacheMaxObjectSize)" +color brightcyan "(MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads)" +color brightcyan "(MMapFile|ModMimeUsePathInfo|MultiviewsMatch|NameVirtualHost|NoProxy|NumServers|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|PassEnv|PidFile)" +color brightcyan "(ProtocolEcho|Proxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyIOBufferSize|ProxyMatch|ProxyMaxForwards|ProxyPass|ProxyPassReverse)" +color brightcyan "(ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia|ReadmeName|Redirect|RedirectMatch)" +color brightcyan "(RedirectPermanent|RedirectTemp|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader)" +color brightcyan "(Require|RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule|RLimitCPU|RLimitMEM|RLimitNPROC)" +color brightcyan "(Satisfy|ScoreBoardFile|Script|ScriptAlias|ScriptAliasMatch|ScriptInterpreterSource|ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock|SecureListen)" +color brightcyan "(SendBufferSize|ServerAdmin|ServerAlias|ServerLimit|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetEnv|SetEnvIf|SetEnvIfNoCase|SetHandler)" +color brightcyan "(SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSLCACertificateFile|SSLCACertificatePath)" +color brightcyan "(SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions)" +color brightcyan "(SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite)" +color brightcyan "(SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire)" +color brightcyan "(SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|StartServers|StartThreads|SuexecUserGroup|ThreadLimit)" +color brightcyan "(ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnsetEnv|UseCanonicalName|User|UserDir|VirtualDocumentRoot)" +color brightcyan "(VirtualDocumentRootIP|VirtualHost|VirtualScriptAlias|VirtualScriptAliasIP|Win32DisableAcceptEx|XBitHack)" +color yellow "<[^>]+>" +color brightcyan ")" +color green "\"(\\.|[^\"])*\"" +color white "#.*" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/arduino.nanorc b/Nano/Nano-Syntax-Highlighting/arduino.nanorc new file mode 100644 index 0000000..b97b2ce --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/arduino.nanorc @@ -0,0 +1,116 @@ + +## FILENAME: arduino.nanorc +## +## DESCRIPTION: The arduino.nanorc syntax files allows syntax highlighting +## for Arduino sketch files in the GNU nano text editor. +## +## Maintainer: Nicholas Wilde +## Version: 0.1 +## DATE: 06/23/2011 +## +## HOMEPAGE: http://code.google.com/p/arduino-nano-editor-syntax/ +## +## COMMENTS: -Most of the code was taken from the c.nanorc code found with +## GNU nano 2.2.6. +## -Direction was taken from the arduino vim syntax code by johannes +## +## -Tested on Ubuntu Server 11.04 Natty Narwhal and GNU nano 2.2.6 +## +## DIRECTIONS: For Ubuntu Server 11.04 Natty Narwhal: +## -Move this file to the nano directory +## /usr/share/nano/ +## -Add arduino.nanorc reference to the nanorc settings file +## /etc/nanorc +## ... +## ## Arduino +## /usr/share/nano/arduino.nanorc +## ... + +syntax "INO" "\.?ino$" + +## +color brightred "\<[A-Z_][0-9A-Z_]+\>" + +## +color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" + +## Constants +icolor green "\<(HIGH|LOW|INPUT|OUTPUT)\>" + +## Serial Print +icolor red "\<(DEC|BIN|HEX|OCT|BYTE)\>" + +## PI Constants +icolor green "\<(PI|HALF_PI|TWO_PI)\>" + +## ShiftOut +icolor green "\<(LSBFIRST|MSBFIRST)\>" + +## Attach Interrupt +icolor green "\<(CHANGE|FALLING|RISING)\>" + +## Analog Reference +icolor green "\<(DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\>" + +## === FUNCTIONS === ## + +## Data Types +color green "\<(boolean|byte|char|float|int|long|word)\>" + +## Control Structions +color brightyellow "\<(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\>" +color magenta "\<(goto|continue|break|return)\>" + +## Math +color brightyellow "\<(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan)\>" + +## Bits & Bytes +color brightyellow "\<(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\>" + +## Analog I/O +color brightyellow "\<(analogReference|analogRead|analogWrite)\>" + +## External Interrupts +color brightyellow "\<(attachInterrupt|detachInterrupt)\>" + +## Time +color brightyellow "\<(delay|delayMicroseconds|millis|micros)\>" + +## Digital I/O +color brightyellow "\<(pinMode|digitalWrite|digitalRead)\>" + +## Interrupts +color brightyellow "\<(interrupts|noInterrupts)\>" + +## Advanced I/O +color brightyellow "\<(noTone|pulseIn|shiftIn|shiftOut|tone)\>" + +## Serial +color magenta "\<(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush)\>" + +## Structure +color brightyellow "\<(setup|loop)\>" + +## +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" + +## +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" + +## GCC builtins +color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" + +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" + +## This string is VERY resource intensive! +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Comments +color brightblue "^\s*//.*" +color brightblue start="/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/asciidoc.nanorc b/Nano/Nano-Syntax-Highlighting/asciidoc.nanorc new file mode 100644 index 0000000..1f9d2cc --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/asciidoc.nanorc @@ -0,0 +1,47 @@ +syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$" + +# main header +color brightred "^=[[:space:]].+$" +# h1 +color red "^==[[:space:]].*$" +color red "^----+$" +# h2 +color magenta "^===[[:space:]].*$" +color magenta "^~~~~+$" +# h4 +color green "^====[[:space:]].*$" +color green "^\^\^\^\^+$" +# h5 +color brightblue "^=====[[:space:]].*$" +color brightblue "^\+\+\+\++$" + +# attributes +color brightgreen ":.*:" +color brightred "\{[a-z0-9]*\}" +color red "\\\{[a-z0-9]*\}" +color red "\+\+\+\{[a-z0-9]*\}\+\+\+" + +# Paragraph Title +color yellow "^\..*$" + +# source +color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]" + +# Other markup +color yellow ".*[[:space:]]\+$" +color yellow "_[^_]+_" +color yellow "\*[^\*]+\*" +color yellow "\+[^\+]+\+" +color yellow "`[^`]+`" +color yellow "\^[^\^]+\^" +color yellow "~[^~]+~" +color yellow "'[^']+'" + +color cyan "`{1,2}[^']+'{1,2}" + +# bullets +color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]" + +# anchors +color brightwhite "\[\[.*\]\]" +color brightwhite "<<.*>>" diff --git a/Nano/Nano-Syntax-Highlighting/asm.nanorc b/Nano/Nano-Syntax-Highlighting/asm.nanorc new file mode 100644 index 0000000..b27a272 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/asm.nanorc @@ -0,0 +1,20 @@ +## Here is an example for assembler. +## +syntax "ASM" "\.(S|s|asm)$" +magic "assembler source" +comment "//" + +color red "\<[A-Z_]{2,}\>" +color brightgreen "\.(data|subsection|text)" +color green "\.(align|file|globl|global|hidden|section|size|type|weak)" +color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" +## Highlight strings (note: VERY resource intensive) +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +## Highlight comments +color brightblue "^\s*//.*" +color brightblue start="/\*" end="\*/" +## Highlight trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/awk.nanorc b/Nano/Nano-Syntax-Highlighting/awk.nanorc new file mode 100644 index 0000000..501bc97 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/awk.nanorc @@ -0,0 +1,27 @@ +syntax "AWK" "\.awk$" +header "^#!.*bin/(env +)?awk( |$)" +magic "awk script" +comment "#" + +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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/batch.nanorc b/Nano/Nano-Syntax-Highlighting/batch.nanorc new file mode 100644 index 0000000..bc936d8 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/batch.nanorc @@ -0,0 +1,34 @@ +## Here is an example for Batch file shell script. +## Author: davidhcefx (https://github.com/davidhcefx), based on Mitch Bumgarner's version. +## License: MIT License + +syntax "batch" "\.(bat|cmd)$" +header "^@[eE](cho|CHO) (on|off|ON|OFF)" +comment "::" + +# Native commands, symbols, and comparisons. +icolor green "\<(ASSOC|CALL|CD|CLS|CMDEXTVERSION|COLOR|COPY|DATE|DEL|DIR|ECHO|ENDLOCAL|ERASE|ERRORLEVEL|EXIT|FOR|FTYPE|GOTO|IF|MD|MKLINK|MOVE|PATH|PAUSE|POPD|PROMPT|PUSHD|RD|REM|REN|SET|SETLOCAL|SHIFT|START|TIME|TITLE|TYPE|VER|VERIFY|VOL)\>" +icolor green "\<(EQU|NEQ|LSS|LEQ|GTR|GEQ|DEFINED|EXIST|NOT)\>" +color green "[:|<>=&@\\^]" + +# Options. +color brightmagenta "[[:blank:]]/[A-Za-z]+\>" + +# Common commands. (with Sublime and Github highlighting as a reference) +icolor brightblue "\<(APPEND|ARP|AT|ATTRIB|AUTOFAIL|BACKUP|BCDBOOT|BCDEDIT|BITSADMIN|BREAK|CACLS|CERTREQ|CERTUTIL|CHANGE|CHCP|CHDIR|CHKDSK|CHKNTFS|CHOICE|CIPHER|CleanMgr|CLIP|CMD|CMDKEY|COMP|COMPACT|CONVERT|CSVDE|DEFRAG|DELTREE|DevCon|DIRQUOTA|DISKCOMP|DISKCOPY|DISKPART|DISKSHADOW|DNSCMD|DOSKEY|DriverQuery|DSACLs|DSAdd|DSGet|DSQuery|DSMod|DSMove|DSRM|Dsmgmt|EVENTCREATE|EXPAND|EXPLORER|EXTRACT|FC|FIND|FINDSTR|FORFILES|FORMAT|FREEDISK|FSUTIL|FTP|GETMAC|GPRESULT|GPUPDATE|GRAFTABL|HELP|HOSTNAME|iCACLS|IEXPRESS|IPCONFIG|INUSE|KEYB|LABEL|LODCTR|LOGMAN|LOGOFF|MAKECAB|MKDIR|MODE|MORE|MOUNTVOL|MSG|MSIEXEC|MSINFO32|MSTSC|NET|NETDOM|NETSH|NBTSTAT|NETSTAT|NLTEST|NSLOOKUP|NTBACKUP|NTDSUtil|OPENFILES|PATHPING|PING|POWERCFG|PRINT|PRNCNFG|PRNMNGR|Query|RASDIAL|RASPHONE|RECOVER|REG|REGEDIT|REGSVR32|REGINI|RENAME|REPLACE|Reset|RESTORE|RMDIR|ROBOCOPY|ROUTE|RUNAS|RUNDLL32|SC|SCHTASKS|SetSPN|SETX|SFC|SHUTDOWN|SORT|SSH|SUBINACL|SUBST|SYSTEMINFO|TAKEOWN|TASKLIST|TASKKILL|TELNET|TIMEOUT|TRACERT|TREE|TSDISCON|TSKILL|TypePerf|TZUTIL|VSSADMIN|W32TM|WAITFOR|WBADMIN|WECUTIL|WEVTUTIL|WHERE|WHOAMI|WINRM|WINRS|WMIC|XCACLS|XCOPY)\>" + +# Variable names. (spaces not allowed) +color brightred "%([[:alpha:]`~@#$*(){}:',.?+=_-]|\[|\])([[:alnum:]`~@#$*(){}:',.?+=_-]|\[|\])*%" +color brightred "!([[:alnum:]`~@#$%*(){}:',.?+=_-]|\[|\])([[:alnum:]`~@#$%*(){}:',.?+=_-]|\[|\])*!" + +# Parameter names for arguments and loop. +color brightred "%(~[[:alpha:]$]*)?[0-9*]\>" "%%(~[[:alpha:]$]*)?[[:alpha:]]\>" + +# Comments. +icolor cyan "^[[:space:]]*(\|::).*" + +# Strings. +icolor brightyellow ""(\^.|[^"])*"" + +# Trailling whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/c.nanorc b/Nano/Nano-Syntax-Highlighting/c.nanorc new file mode 100644 index 0000000..d05f482 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/c.nanorc @@ -0,0 +1,52 @@ +## Here is an example for C/C++. +## +syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino" +magic "^(C|C\+\+) (source|program)" +comment "//" +color brightred "\<[A-Z_][0-9A-Z_]+\>" +color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" +color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>" +color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" +color green "\<(for|if|while|do|else|case|default|switch)\>" +color green "\<(try|throw|catch|operator|new|delete)\>" +color green "\<((const|dynamic|reinterpret|static)_cast)\>" +color green "\<(alignas|alignof|asm|auto|compl|concept|constexpr|decltype|export|noexcept|nullptr|requires|static_assert|thread_local|typeid|override|final)\>" +color green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>" +color brightmagenta "\<(goto|continue|break|return)\>" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" + +## +## GCC builtins +color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" + +#Operator Color +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" + +#Parenthetical Color +color magenta "[(){}]" "\[" "\]" + + +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color cyan "<[^= ]*>" ""(\\.|[^"])*"" +## +## This string is VERY resource intensive! +#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## printf-family format specifiers +color yellow "%(\#|(0-+))?(hh|h|l|ll|q|L|j|z|Z|t)?[A-Za-z]" "%%" + +## Comment highlighting +color brightblue "//.*" +color brightblue start="/\*" end="\*/" + +# Highlighting for documentation comments +color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+" +color magenta "@return" +color magenta "@author.*" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/clojure.nanorc b/Nano/Nano-Syntax-Highlighting/clojure.nanorc new file mode 100644 index 0000000..aac31f4 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/clojure.nanorc @@ -0,0 +1,33 @@ +## Clojure Syntax Highlighting +## + +syntax "clojure" "\.((clj[s|c]?)|edn)" + +icolor green "defn? [0-9A-Z_]+" + +color brightgreen "[#']" +color brightgreen "\" +color green "\<(map|reduce|filter|println)\>" + +color brightyellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>" +color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>" +color brightyellow "\<(try|catch|finally|throw)\>" +color yellow "(\:else) " + +color brightcyan "\<(require|use|import|ns)\>" +color cyan "(\:(require|use|import)) " + +color brightred "\<(let(fn)?|defn?)\>" +color brightwhite "\((\/|((not|[<>\=])?\=?))" +color brightwhite "\((\+|-|\*)'?" +color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>" + +color magenta "[\(\)]" +color magenta "(\[|\])" + +color yellow "\<(true|false|nil)\>" +color brightyellow "(["][^"]*[^\\]["])|("")" + +color brightblue ";.*$" + +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/cmake.nanorc b/Nano/Nano-Syntax-Highlighting/cmake.nanorc new file mode 100644 index 0000000..728d14a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/cmake.nanorc @@ -0,0 +1,26 @@ +## CMake syntax highlighter for GNU Nano +## +syntax "CMake" "(CMakeLists\.txt|\.cmake)$" +comment "#" + +icolor green "^[[:space:]]*[A-Z0-9_]+" +icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" + +icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>" +color brightgreen "\<(COPY|NOT|COMMAND|PROPERTY|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]" +color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]" + +icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)" + +#String Color +color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" + +icolor brightred start="\$(\{|ENV\{)" end="\}" +color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" + +icolor brightblue "^([[:space:]]*)?#.*" +icolor brightblue "[[:space:]]#.*" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/coffeescript.nanorc b/Nano/Nano-Syntax-Highlighting/coffeescript.nanorc new file mode 100644 index 0000000..b901c25 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/coffeescript.nanorc @@ -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 brightblue "[()]" +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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/colortest.nanorc b/Nano/Nano-Syntax-Highlighting/colortest.nanorc new file mode 100644 index 0000000..f2b44f2 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/colortest.nanorc @@ -0,0 +1,17 @@ +syntax "colorTest" "ColorTest$" + +color black "\" + +color red "\" +color green "\" +color yellow "\" +color blue "\" +color magenta "\" +color cyan "\" + +color brightred "\" +color brightgreen "\" +color brightyellow "\" +color brightblue "\" +color brightmagenta "\" +color brightcyan "\" diff --git a/Nano/Nano-Syntax-Highlighting/conf.nanorc b/Nano/Nano-Syntax-Highlighting/conf.nanorc new file mode 100644 index 0000000..cf9f58a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/conf.nanorc @@ -0,0 +1,11 @@ +## Here is an example for nanorc files. +## +syntax "Conf" "\.c[o]?nf$" +## Possible errors and parameters +## Strings +icolor white ""(\\.|[^"])*"" +## Comments +icolor brightblue "^[[:space:]]*#.*$" +icolor cyan "^[[:space:]]*##.*$" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/conky.nanorc b/Nano/Nano-Syntax-Highlighting/conky.nanorc new file mode 100644 index 0000000..518938d --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/conky.nanorc @@ -0,0 +1,18 @@ +## +## Syntax highlighting for conkyrc files. +## +## +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)\>" + +## Configuration item constants +color yellow "\<(above|below|bottom_left|bottom_right|bottom_middle|desktop|dock|no|none|normal|override|skip_pager|skip_taskbar|sticky|top_left|top_right|top_middle|middle_left|middle_right|middle_middle|undecorated|yes)\>" + +## Variables +color brightblue "\<(acpiacadapter|acpifan|acpitemp|addr|addrs|alignc|alignr|apcupsd|apcupsd_cable|apcupsd_charge|apcupsd_lastxfer|apcupsd_linev|apcupsd_load|apcupsd_loadbar|apcupsd_loadgauge|apcupsd_loadgraph|apcupsd_model|apcupsd_name|apcupsd_status|apcupsd_temp|apcupsd_timeleft|apcupsd_upsmode|apm_adapter|apm_battery_life|apm_battery_time|audacious_bar|audacious_bitrate|audacious_channels|audacious_filename|audacious_frequency|audacious_length|audacious_length_seconds|audacious_main_volume|audacious_playlist_length|audacious_playlist_position|audacious_position|audacious_position_seconds|audacious_status|audacious_title|battery|battery_bar|battery_percent|battery_short|battery_time|blink|bmpx_album|bmpx_artist|bmpx_bitrate|bmpx_title|bmpx_track|bmpx_uri|buffers|cached|cmdline_to_pid|color|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|combine|conky_build_arch|conky_build_date|conky_version|cpu|cpubar|cpugauge|cpugraph|curl|desktop|desktop_name|desktop_number|disk_protect|diskio|diskio_read|diskio_write|diskiograph|diskiograph_read|diskiograph_write|distribution|downspeed|downspeedf|downspeedgraph|draft_mails|else|endif|entropy_avail|entropy_bar|entropy_perc|entropy_poolsize|eval|eve|exec|execbar|execgauge|execgraph|execi|execibar|execigauge|execigraph|execp|execpi|flagged_mails|font|format_time|forwarded_mails|freq|freq_g|fs_bar|fs_bar_free|fs_free|fs_free_perc|fs_size|fs_type|fs_used|fs_used_perc|goto|gw_iface|gw_ip|hddtemp|head|hr|hwmon|i2c|i8k_ac_status|i8k_bios|i8k_buttons_status|i8k_cpu_temp|i8k_left_fan_rpm|i8k_left_fan_status|i8k_right_fan_rpm|i8k_right_fan_status|i8k_serial|i8k_version|ibm_brightness|ibm_fan|ibm_temps|ibm_volume|ical|iconv_start|iconv_stop|if_empty|if_existing|if_gw|if_match|if_mixer_mute|if_mounted|if_mpd_playing|if_running|if_smapi_bat_installed|if_up|if_updatenr|if_xmms2_connected|image|imap_messages|imap_unseen|ioscheduler|irc|kernel|laptop_mode|lines|loadavg|loadgraph|lua|lua_bar|lua_gauge|lua_graph|lua_parse|machine|mails|mboxscan|mem|memwithbuffers|membar|memwithbuffersbar|memeasyfree|memfree|memgauge|memgraph|memmax|memperc|mixer|mixerbar|mixerl|mixerlbar|mixerr|mixerrbar|moc_album|moc_artist|moc_bitrate|moc_curtime|moc_file|moc_rate|moc_song|moc_state|moc_timeleft|moc_title|moc_totaltime|monitor|monitor_number|mpd_album|mpd_artist|mpd_bar|mpd_bitrate|mpd_elapsed|mpd_file|mpd_length|mpd_name|mpd_percent|mpd_random|mpd_repeat|mpd_smart|mpd_status|mpd_title|mpd_track|mpd_vol|mysql|nameserver|new_mails|nodename|nodename_short|no_update|nvidia|obsd_product|obsd_sensors_fan|obsd_sensors_temp|obsd_sensors_volt|obsd_vendor|offset|outlinecolor|pb_battery|pid_chroot|pid_cmdline|pid_cwd|pid_environ|pid_environ_list|pid_exe|pid_nice|pid_openfiles|pid_parent|pid_priority|pid_state|pid_state_short|pid_stderr|pid_stdin|pid_stdout|pid_threads|pid_thread_list|pid_time_kernelmode|pid_time_usermode|pid_time|pid_uid|pid_euid|pid_suid|pid_fsuid|pid_gid|pid_egid|pid_sgid|pid_fsgid|pid_read|pid_vmpeak|pid_vmsize|pid_vmlck|pid_vmhwm|pid_vmrss|pid_vmdata|pid_vmstk|pid_vmexe|pid_vmlib|pid_vmpte|pid_write|platform|pop3_unseen|pop3_used|processes|read_tcp|read_udp|replied_mails|rss|running_processes|running_threads|scroll|seen_mails|shadecolor|smapi|smapi_bat_bar|smapi_bat_perc|smapi_bat_power|smapi_bat_temp|sony_fanspeed|stippled_hr|stock|swap|swapbar|swapfree|swapmax|swapperc|sysname|tab|tail|tcp_ping|tcp_portmon|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|texeci|texecpi|threads|time|to_bytes|top|top_io|top_mem|top_time|totaldown|totalup|trashed_mails|tztime|gid_name|uid_name|unflagged_mails|unforwarded_mails|unreplied_mails|unseen_mails|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|user_names|user_number|user_terms|user_times|user_time|utime|voffset|voltage_mv|voltage_v|weather|wireless_ap|wireless_bitrate|wireless_essid|wireless_link_bar|wireless_link_qual|wireless_link_qual_max|wireless_link_qual_perc|wireless_mode|words|xmms2_album|xmms2_artist|xmms2_bar|xmms2_bitrate|xmms2_comment|xmms2_date|xmms2_duration|xmms2_elapsed|xmms2_genre|xmms2_id|xmms2_percent|xmms2_playlist|xmms2_size|xmms2_smart|xmms2_status|xmms2_timesplayed|xmms2_title|xmms2_tracknr|xmms2_url)\>" + +color brightblue "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color brightred "^TEXT$" diff --git a/Nano/Nano-Syntax-Highlighting/creole.nanorc b/Nano/Nano-Syntax-Highlighting/creole.nanorc new file mode 100644 index 0000000..cca97a6 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/creole.nanorc @@ -0,0 +1,22 @@ +syntax "Creole" "\.creole$" + +# Headers +color magenta "^=.*=$" + +# Lists +color green "^[#*]+\s.*" + +# Links and images +color cyan start="\[\[" end="\]\]" +color cyan start="\{\{" end="\}\}" + +# Emphasis +color yellow "//.*//" +color brightyellow "\*\*.*\*\*" + +# Pre and tables +color red start="\{\{\{" end="\}\}\}" +color red "\|" +color brightred "\|=" + +color ,red "\s+$" diff --git a/Nano/Nano-Syntax-Highlighting/csh.nanorc b/Nano/Nano-Syntax-Highlighting/csh.nanorc new file mode 100644 index 0000000..da13126 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/csh.nanorc @@ -0,0 +1,15 @@ +## Here is an example for c-shell scripts. +## +syntax "CSH" "\.csh$" "\.tcshrc" "\.cshrc" "\.login" "\.logout" "\.history" +header "^#!.*/(env +)?(t)?csh( |$)" + +color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|exit|foreach|goto|if|repeat|shift|switch|then|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>" +color green "-(A\:|M\:|U\:|G\:)\>" +color brightblue "\<(alias|bindkey|cat|cd|chmod|chown|complete|cp|echo|env|grep|install|ln|make|mkdir|mv|printenv|rm|sed|set|setenv|tar|touch|umask|unalias|uncomplete|unset|unsetenv)\>" +icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color cyan "(^|[[:space:]])#.*$" +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/csharp.nanorc b/Nano/Nano-Syntax-Highlighting/csharp.nanorc new file mode 100644 index 0000000..893bb37 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/csharp.nanorc @@ -0,0 +1,26 @@ +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 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="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/css.nanorc b/Nano/Nano-Syntax-Highlighting/css.nanorc new file mode 100644 index 0000000..04d4a97 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/css.nanorc @@ -0,0 +1,13 @@ +## Here is an example for css files. +## + +syntax "CSS" "\.(css|scss|less)$" +color brightred "." +color brightyellow start="\{" end="\}" +color brightwhite start=":" end="[;^\{]" +color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" +color brightblue start="\/\*" end="\*\/" +color green ";|:|\{|\}" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/csv.nanorc b/Nano/Nano-Syntax-Highlighting/csv.nanorc new file mode 100644 index 0000000..14d7d9c --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/csv.nanorc @@ -0,0 +1,16 @@ +# Rainbow CSV highlighting rules (12 column coverage) +# Inspired by https://github.com/mechatroner/rainbow_csv +syntax "CSV" "\.csv$" + +color brightmagenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightcyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightblue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightyellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightgreen "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightred "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color cyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color magenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color blue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color yellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?" +color green "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?" +color red "^("([^"]*"")*[^"]*",?)|^([^,]*,?))?" diff --git a/Nano/Nano-Syntax-Highlighting/cython.nanorc b/Nano/Nano-Syntax-Highlighting/cython.nanorc new file mode 100644 index 0000000..0f73704 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/cython.nanorc @@ -0,0 +1,33 @@ +## Cython nanorc, based off of Python nanorc. +## +syntax "Cython" "\.pyx$" "\.pxd$" "\.pyi$" +icolor brightred "def [ 0-9A-Z_]+" +icolor brightred "cpdef [0-9A-Z_]+\(.*\):" +icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*\):" + + + +# Python Keyword Color +color green "\<(and|as|assert|class|def|DEF|del|elif|ELIF|else|ELSE|except|exec|finally|for|from|global|if|IF|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with|yield)\>" +color brightmagenta "\<(continue|break|return)\>" + +# Cython Keyword Color +color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>" +color red "\<(bint|char|double|int|public|void|unsigned)\>" + +#Operator Color +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" + +#Parenthetical Color +color magenta "[(){}]" "\[" "\]" + +#String Color +color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" +color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''" + +# Comment Color +color brightblue "#.*$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/dot.nanorc b/Nano/Nano-Syntax-Highlighting/dot.nanorc new file mode 100644 index 0000000..40d4d06 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/dot.nanorc @@ -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="^\s*/\*" end="\*/" diff --git a/Nano/Nano-Syntax-Highlighting/dotenv.nanorc b/Nano/Nano-Syntax-Highlighting/dotenv.nanorc new file mode 100644 index 0000000..3f21b9b --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/dotenv.nanorc @@ -0,0 +1,10 @@ +## Syntax highlight for .env files, eg. https://symfony.com/doc/current/components/dotenv.html +## +## Derived from sh.nanorc +## +syntax "dotenv" "\.env" "\.env\..+" + +color green "(\(|\)|\$|=)" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color cyan "(^|[[:space:]])#.*$" +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/elixir.nanorc b/Nano/Nano-Syntax-Highlighting/elixir.nanorc new file mode 100644 index 0000000..25b0cb0 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/elixir.nanorc @@ -0,0 +1,50 @@ +## Here is an example for Elixir. +## +syntax "Elixir" "\.ex$" "\.exs$" +header "^#!.*/(env +)?elixir( |$)" + +## reserved words +color yellow "\<(case|cond|true|if|false|nil|when|and|or|not|in|fn|do|end|catch|rescue|after|else|with)\>" +color yellow "def[a-z]*" + +## Constants +color brightblue "@[a-z]+" + +## Elixir atoms +color magenta ":[0-9a-z_]+" + +## Elixir Modules +color magenta "[A-Z][a-zA-Z0-9]*" + +## Elixir types +color red "[A-Z][A-Za-z]+\.t\(\)" + +## Some unique things we want to stand out +color brightyellow "\<(__CALLER__|__DIR__|__ENV__|__MODULE__|__STACKTRACE__)\>" +color brightyellow "\<(__add__|__aliases__|__build__|__block__|__deriving__|__info__|__protocol__|__struct__|__using__)\>" + +## sigils +color brightmagenta "~[a-z]\/([^\/])*\/[a-z]*" "~[a-z]\|([^\|])*\|[a-z]*" "~[a-z]\"([^\"])*\"[a-z]*" "~[a-z]\'([^\'])*\'[a-z]*" "~[a-z]\(([^\(\)])*\)[a-z]*" "~[a-z]\[([^\[\]])*\][a-z]*" "~[a-z]\{([^\{\}])*\}[a-z]*" "~[a-z]\<([^\<\>])*\>[a-z]*" + +## Strings, double-quoted +color green ""([^"]|(\\"))*"" + +## Expression substitution. These go inside double-quoted strings, +## "like #{this}". +color brightgreen "#\{[^}]*\}" + +## Strings, single-quoted +color green "'([^']|(\\'))*'" + +## Comments +color cyan "#.*$" "#$" +color brightcyan "##.*$" "##$" + +## "Here" docs +color green start="\"\"\"" end="\"\"\"" + +## Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/email.nanorc b/Nano/Nano-Syntax-Highlighting/email.nanorc new file mode 100644 index 0000000..60eea88 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/email.nanorc @@ -0,0 +1,5 @@ +syntax "Email" "\.em(ai)?l$" + +color magenta "^>([^>].*|$)" +color blue "^> ?>([^>].*|$)" +color green "^> ?> ?>.*" diff --git a/Nano/Nano-Syntax-Highlighting/erb.nanorc b/Nano/Nano-Syntax-Highlighting/erb.nanorc new file mode 100644 index 0000000..9a581b2 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/erb.nanorc @@ -0,0 +1,26 @@ +## A HTML+Ruby set for Syntax Highlighting .erb files (Embedded RubyRails Views etc) ERB +## (c) 2009, Georgios V. Michalakidis - g.michalakidis@computer.org +## Licensed under the CC (Creative Commons) License. +## +## https://github.com/geomic/ERB-And-More-Code-Highlighting-for-nano + +syntax "ERB" "\.erb$" "\.rhtml$" +color blue start="<" end=">" +color white start="<%" end="%>" +color red "&[^;[[:space:]]]*;" +color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +icolor magenta "([ ]|^):[0-9A-Z_]+\>" +color brightyellow "\<(__FILE__|__LINE__)\>" +color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +color brightblue "`[^`]*`" "%x\{[^}]*\}" +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +color brightgreen "#\{[^}]*\}" +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +color cyan "#[^{].*$" "#$" +color brightcyan "##[^{].*$" "##$" +color green start="<<-?'?EOT'?" end="^EOT" +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/etc-hosts.nanorc b/Nano/Nano-Syntax-Highlighting/etc-hosts.nanorc new file mode 100644 index 0000000..eb8a51e --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/etc-hosts.nanorc @@ -0,0 +1,15 @@ +## Make /etc/hosts nicer to read, see `man hosts 5` to see the format +syntax "/etc/hosts" "hosts" + +# IPv4 +color yellow "^[0-9\.]+\s" + +# IPv6 +icolor green "^[0-9a-f:]+\s" + +# interpunction +color normal "[.:]" + +# comments +color brightblack "^#.*" + diff --git a/Nano/Nano-Syntax-Highlighting/fish.nanorc b/Nano/Nano-Syntax-Highlighting/fish.nanorc new file mode 100644 index 0000000..081ee9a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/fish.nanorc @@ -0,0 +1,15 @@ +## Here is an example for Fish shell scripts. +## +syntax "Fish" "\.fish$" +header "^#!.*/(env +)?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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "\<(and|isatty|not|or|in)\>" +color yellow "--[a-z-]+" +color brightmagenta "\ -[a-z]+" +color brightblue "\<(bg|bind|block|breakpoint|builtin|cd|command|commandline|complete|dirh|dirs|echo|emit|eval|exec|exit|fg|fish|fish_config|fish_ident|fish_pager|fish_prompt|fish_right_prompt|fish_update_completions|fishd|funced|funcsave|functions|help|history|jobs|mimedb|nextd|open|popd|prevd|psub|pushd|pwd|random|read|set_color|status|trap|type|ulimit|umask|vared)\>" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color cyan "(^|[[:space:]])#.*$" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/fortran.nanorc b/Nano/Nano-Syntax-Highlighting/fortran.nanorc new file mode 100644 index 0000000..73534d8 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/fortran.nanorc @@ -0,0 +1,53 @@ +## Here is an example for Fortran 90/95 + +syntax "Fortran" "\.([Ff]|[Ff]90|[Ff]95|[Ff][Oo][Rr])$" +comment "!" +#color red "\<[A-Z_]a[0-9A-Z_]+\>" +color red "\<[0-9]+\>" + +icolor green "\<(action|advance|all|allocatable|allocated|any|apostrophe)\>" +icolor green "\<(append|asis|assign|assignment|associated|character|common)\>" +icolor green "\<(complex|data|default|delim|dimension|double precision)\>" +icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>" +icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>" +icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)\>" +icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>" +icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>" +icolor green "\<(selected_real_kind|subroutine|status)\>" + +icolor cyan "\<(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\>" +icolor cyan "\<(close|contains|count|cpu_time|cshift|date_and_time)\>" +icolor cyan "\<(deallocate|digits|dot_product|eor|eoshift|function|iachar)\>" +icolor cyan "\<(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\>" +icolor cyan "\<(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\>" +icolor cyan "\<(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\>" +icolor cyan "\<(open|pad|present|print|product|pure|quote|radix)\>" +icolor cyan "\<(random_number|random_seed|range|read|readwrite|replace)\>" +icolor cyan "\<(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\>" +icolor cyan "\<(spread|sum|system_clock|target|transfer|transpose|trim)\>" +icolor cyan "\<(ubound|unpack|verify|write|tiny|type|use|yes)\>" + +icolor yellow "\<(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\>" +icolor yellow "\<(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\>" +icolor yellow "\<(.or.|repeat|select case|then|where|while)\>" + +icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>" + +#Operator Color +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" + +#Parenthetical Color +color magenta "[(){}]" "\[" "\]" + +# Add preprocessor commands. +color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" + +## String highlighting. +icolor cyan "<[^= ]*>" ""(\\.|[^"])*"" +icolor cyan "<[^= ]*>" "'(\\.|[^"])*'" + +## Comment highlighting +icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/fsharp.nanorc b/Nano/Nano-Syntax-Highlighting/fsharp.nanorc new file mode 100644 index 0000000..0ec109d --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/fsharp.nanorc @@ -0,0 +1,39 @@ +syntax "F#" "\.fs$" "\.fsx$" + +# Type and Module Definitions +color brightgreen "type +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" +color brightgreen "module +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" +color brightmagenta "\<(List|Seq|Array|Option|Choice|Map|list|seq|array|option|choice|ref|in|out)\>" +color brightgreen "<+[A-Za-z0-9'^]+ *((:) +[A-Za-z0-9'^.]+)?>" +# Attributes +color brightmagenta "[<+[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?>]" + +# Annotation +color magenta "@[A-Za-z]+" + +# Basic Types +color brightgreen "\<(bool|byte|sbyte|int16|uint16|int|uint32|int64|uint64|char|decimal|double|float|float32|single|nativeint|IntPtr|unativeint|UIntPtr|object|string)\>" + +# Keywords +color cyan "\<(abstract|and|let|as|assert|base|begin|class|default|delegate|do|for|to|in|while|done|downcast|downto|elif|if|then|else|end|exception|extern|false|finally|try|fixed|fun|function|match|global|inherit|inline|interface|internal|lazy|let!|match!|member|module|mutable|namespace|new|not|not struct|null|of|open|or|override|private|public|rec|return|return!|select|static|struct|true|with|type|upcast|use|use!|val|void|when|yield|yield!)\>" + +color red "[-+/*=<>?:!~%&|]" +color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" +color magenta "\\([btnfr]|'|\"|\\)" +color magenta "\\u[A-Fa-f0-9]{4}" +# String +color yellow ""(\\.|[^"])*"" + +# Comments +color brightblack "(^|[[:space:]])//.*" +color brightblack start="^\s*/\*" end="\*/" +color brightblack start="\(\*" end="\*\)" +color brightwhite,cyan "TODO:?" + +color ,green "[[:space:]]+$" +color ,red " + +| + +" + +color red "#if .+" +color red "#endif" + +color white start="``" end="``" diff --git a/Nano/Nano-Syntax-Highlighting/gemini.nanorc b/Nano/Nano-Syntax-Highlighting/gemini.nanorc new file mode 100644 index 0000000..ac8f9d4 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/gemini.nanorc @@ -0,0 +1,21 @@ +## syntax highlighting for gemini:// markup language + +syntax gemini "\.(gemini|gmi)$" + +# Heading levels +color brightgreen "^#.*" +color brightcyan "^##.*" +color brightmagenta "^###.*" + +# Link Text +color brightred "^=>\s*\S+\s+.*" +# Link URL +color green "^=>\s*\S+" +# Link Prefix +color yellow "^=>" + +# Bullet Lists +color brightblue "^\*.*" + +# Monospaced Blocks +color white,black start="^```" end="^```" diff --git a/Nano/Nano-Syntax-Highlighting/genie.nanorc b/Nano/Nano-Syntax-Highlighting/genie.nanorc new file mode 100644 index 0000000..0cd3722 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/genie.nanorc @@ -0,0 +1,53 @@ +## Here is an example for Genie. +syntax "genie" "\.gs$" + +# Namespace. +color magenta "\<(uses|namespace)\>" + +# Data types. +color green "\<(bool|byte|char|date|datetime|decimal|double|float|int|long|object|sbyte|short|single|string|ulong|ushort)\>" + +# Definitions. +color brightred "\<(const|class|construct|def|delegate|enum|exception|extern|event|final|get|init|inline|interface|override|prop|return|set|static|struct|var|virtual|weak)\>" + +# Keywords. +color red "\<(abstract|as|and|break|case|cast|continue|default|delete|div|do|downto|dynamic|else|ensures|except|extern|finally|for|if|implements|in|isa|is|lock|new|not|of|out|or|otherwise|pass|private|raise|raises|readonly|ref|requires|to|try|unless|when|while)\>" + +# Special variables. +color brightcyan "\<(self|super)\>" + +# Null value. +color brightyellow "\<(null)\>" + +# Boolean. +color yellow "\<(false|true)\>" + +# Builtin functions. +color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>" + +# Numbers. +color brightmagenta "[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?" + +# Regular expression. +color brightgreen "/(\\.|[^/])*/" + +# Double quoted string. +color brightblue ""(\\.|[^"])*"" + +# Single quoted string. +color brightblue "'(\\.|[^'])*'" + +# Multiline string. +color blue start=""""" end=""""" + +# Line comment. +color yellow "(^|[[:space:]])//.*" + +# Block comment. +color yellow start="^\s*/\*" end="\*/" + +# Trailing whitespace. +color ,green "[[:space:]]+$" + +# Spaces in front or rear of tabs. +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/gentoo.nanorc b/Nano/Nano-Syntax-Highlighting/gentoo.nanorc new file mode 100644 index 0000000..4959fa9 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/gentoo.nanorc @@ -0,0 +1,52 @@ +## Here is an example for ebuilds/eclasses +## +syntax "Ebuild" "\.e(build|class)$" +comment "#" + +## All the standard portage functions +color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" +## Highlight bash related syntax +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while|continue|break)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-(e|d|f|r|g|u|w|x|L)\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +## Highlight variables ... official portage ones in red, all others in bright red +color brightred "\$\{?[a-zA-Z_0-9]+\}?" +color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>" +color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\" "\" "\" +## Highlight portage commands +color magenta "\ [!a-zA-Z0-9_+ -]*" "inherit.*" +color brightblue "\" +color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" "\" +color brightblue "\<(do|new)(ins|s?bin|doc|lib(\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color brightblue "\" "\" +color brightblue "prepall(docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" +color brightblue "\<(doc|ins|exe)into\>" "\" "\<(exe|ins|dir)opts\>" +## Highlight common commands used in ebuilds +color blue "\" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" +## Highlight comments (doesnt work that well) +color yellow "#.*$" +## Highlight strings (doesnt work that well) +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" +## Trailing space is bad! +color ,green "[[:space:]]+$" + +## Here is an example for Portage control files +## +syntax "etc-portage" "\.(keywords|mask|unmask|use)$" +## Base text: +color green "^.+$" +## Use flags: +color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+" +color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+" +## Likely version numbers: +color magenta "-[[:digit:]].*([[:space:]]|$)" +## Accepted arches: +color white "[~-]?\<(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd)\>" +color white "[[:space:]][~-]?\*" +## Categories: +color cyan "^[[:space:]]*.*/" +## Masking regulators: +color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)" +## Comments: +color yellow "#.*$" diff --git a/Nano/Nano-Syntax-Highlighting/git.nanorc b/Nano/Nano-Syntax-Highlighting/git.nanorc new file mode 100644 index 0000000..0aaf475 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/git.nanorc @@ -0,0 +1,80 @@ +syntax "git-config" "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. +# +# Copyright (c) 2010, Sebastian Staudt + +# 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" "COMMIT_EDITMSG|TAG_EDITMSG" + +# Commit message +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 (+LINT is not ok, git uses tabs) +color ,green "[[:space:]]+$" + + +# This syntax format is used for interactive rebasing +syntax "git-rebase-todo" "git-rebase-todo" + +# Default +color yellow ".*" + +# Comments +color brightblack "^#.*" + +# Rebase commands +color green "^(e|edit) [0-9a-f]{7,40}" +color green "^# (e, edit)" +color brightgreen "^(f|fixup) [0-9a-f]{7,40}" +color brightgreen "^# (f, fixup)" +color brightwhite "^(p|pick) [0-9a-f]{7,40}" +color brightwhite "^# (p, pick)" +color blue "^(r|reword) [0-9a-f]{7,40}" +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, exec)" + +# Recolor hash symbols +color brightblack "#" + +# Commit IDs +color brightblue "[0-9a-f]{7,40}" + diff --git a/Nano/Nano-Syntax-Highlighting/gitcommit.nanorc b/Nano/Nano-Syntax-Highlighting/gitcommit.nanorc new file mode 100644 index 0000000..0aaf475 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/gitcommit.nanorc @@ -0,0 +1,80 @@ +syntax "git-config" "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. +# +# Copyright (c) 2010, Sebastian Staudt + +# 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" "COMMIT_EDITMSG|TAG_EDITMSG" + +# Commit message +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 (+LINT is not ok, git uses tabs) +color ,green "[[:space:]]+$" + + +# This syntax format is used for interactive rebasing +syntax "git-rebase-todo" "git-rebase-todo" + +# Default +color yellow ".*" + +# Comments +color brightblack "^#.*" + +# Rebase commands +color green "^(e|edit) [0-9a-f]{7,40}" +color green "^# (e, edit)" +color brightgreen "^(f|fixup) [0-9a-f]{7,40}" +color brightgreen "^# (f, fixup)" +color brightwhite "^(p|pick) [0-9a-f]{7,40}" +color brightwhite "^# (p, pick)" +color blue "^(r|reword) [0-9a-f]{7,40}" +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, exec)" + +# Recolor hash symbols +color brightblack "#" + +# Commit IDs +color brightblue "[0-9a-f]{7,40}" + diff --git a/Nano/Nano-Syntax-Highlighting/glsl.nanorc b/Nano/Nano-Syntax-Highlighting/glsl.nanorc new file mode 100644 index 0000000..d098e29 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/glsl.nanorc @@ -0,0 +1,15 @@ +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)\>" +color green "\" +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="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/go.nanorc b/Nano/Nano-Syntax-Highlighting/go.nanorc new file mode 100644 index 0000000..acd32df --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/go.nanorc @@ -0,0 +1,23 @@ +syntax "GO" "\.go$" +comment "//" + +color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +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="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/gophermap.nanorc b/Nano/Nano-Syntax-Highlighting/gophermap.nanorc new file mode 100644 index 0000000..7c868e2 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/gophermap.nanorc @@ -0,0 +1,45 @@ +## syntax for gophernicus gophermaps + +syntax gophermap "\.(gophermap|gph)$" + + +# Port Numbers +color yellow "^.[ -~]*.[ -~]*.[ -~]*.[ -~]+" + +# Domains +color red "^.[ -~]*.[ -~]*.[ -~]+" + +# Resource Path (no directories) +color green "^[^1][ -~]*.[ -~]*" + +# Directories (w/ Name) +color brightmagenta "^1[ -~]*.[ -~]*" + +# Names +color brightblue "^[ -~]+." + +# Directories (w/o Name) +color brightyellow "^1[ -~]+.$" + +# URLs +color brightcyan "URL:.*" + + +# Types + +# General +color magenta "^." + +# HTML & Interactive Content +color brightcyan "^(h|7|8)" + +# Info Text +color cyan "^i.*" +color cyan "^[ -~]*$" +color blue "^i" + +# Special Tags & Characters +color brightgreen "^(!|-|:|~|%|=|\*|\.).*" + +# Comments +color white,blue "#.*" diff --git a/Nano/Nano-Syntax-Highlighting/gradle.nanorc b/Nano/Nano-Syntax-Highlighting/gradle.nanorc new file mode 100644 index 0000000..58d7376 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/gradle.nanorc @@ -0,0 +1,23 @@ +syntax "groovy" "\.(groovy|gradle)$" + +# Keywords +color brightblue "\<(boolean|byte|char|double|enum|float|int|long|new|short|super|this|transient)\>" +color brightblue "\<(as|assert|break|case|catch|continue|default|do|else|finally|for|goto|if|in|return|switch|throw|try|while)\>" +color brightblue "\<(abstract|class|extends|implements|import|interface|native|package|private|protected|public|static|strictfp|synchronized|throws|trait|void|volatile)\>" +color brightblue "\<(const|def|final|instanceof)\>" +color brightblue "\<(true|false|null)\>" + +# Strings +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" + +# Interpolation +icolor yellow "\$\{[^\}]*}" + +# Comments +color cyan "^//.*" +color cyan "\s//.*" +color cyan start="^/\*(\*)?" end="\*/" +color cyan start="\s/\*(\*)?" end="\*/" + +# Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/groff.nanorc b/Nano/Nano-Syntax-Highlighting/groff.nanorc new file mode 100644 index 0000000..fdf794f --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/groff.nanorc @@ -0,0 +1,27 @@ +## Here is an example for groff. +## +syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." +comment ".\"" + +## The argument of .ds or .nr +color cyan "^\.(ds|nr) [^[[:space:]]]*[^[[:space:]]]*" +## Single character escapes +color brightmagenta "\\." +## Highlight the argument of \f or \s in the same color +color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" +## Newlines +color cyan "(\\|\\\\)n(.|\(..)" +color cyan start="(\\|\\\\)n\[" end="]" +## Requests +color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*" +color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +## Comments +color yellow "^\.\\".*$" +## Strings +color green "(\\|\\\\)\*(.|\(..)" +color green start="(\\|\\\\)\*\[" end="]" +## Characters +color brightred "\\\(.." +color brightred start="\\\[" end="]" +## Macro arguments +color brightcyan "\\\\\$[1-9]" diff --git a/Nano/Nano-Syntax-Highlighting/haml.nanorc b/Nano/Nano-Syntax-Highlighting/haml.nanorc new file mode 100644 index 0000000..3337882 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/haml.nanorc @@ -0,0 +1,18 @@ +syntax "Haml" "\.haml$" + +color cyan "-|=" +color white "->|=>" +icolor cyan "([ ]|^)%[0-9A-Z_]+\>" +icolor magenta ":[0-9A-Z_]+\>" +icolor yellow "\.[A-Z_]+\>" +## Double quote & single quote +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +## Vars +color brightgreen "#\{[^}]*\}" +color brightblue "(@|@@)[0-9A-Z_a-z]+" +## Comments +color brightcyan "#[^{].*$" "#$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/haskell.nanorc b/Nano/Nano-Syntax-Highlighting/haskell.nanorc new file mode 100644 index 0000000..bb2a290 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/haskell.nanorc @@ -0,0 +1,35 @@ +syntax "haskell" "\.hs$" +comment "--" + +## 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)\>" + +## Various symbols +color cyan "(\||@|!|:|_|~|=|\\|;|\(\)|,|\[|\]|\{|\})" + +## Operators +color magenta "(==|/=|&&|\|\||<|>|<=|>=)" + +## Various symbols +color cyan "(->|<-|=>)" +color magenta "\.|\$" + +## Data constructors +color magenta "\<(True|False|Nothing|Just|Left|Right|LT|EQ|GT)\>" + +## Data classes +color magenta "\<(Read|Show|Enum|Eq|Ord|Data|Bounded|Typeable|Num|Real|Fractional|Integral|RealFrac|Floating|RealFloat|Monad|MonadPlus|Functor)\>" + +## Strings +color yellow ""([^\"]|\\.)*"" +## Chars +color brightyellow "'([^\']|\\.)'" + +## Comments +color green "--.*" +color green start="\{-" end="-\}" + +color brightred "undefined" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/hcl.nanorc b/Nano/Nano-Syntax-Highlighting/hcl.nanorc new file mode 100644 index 0000000..f02308b --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/hcl.nanorc @@ -0,0 +1,36 @@ +## Syntax highlighting for Hashicorp Terraform / HCL files. + +# See: https://github.com/hashicorp/hcl +# Original author: John Boero +# License: GPLv3 or newer + +syntax "hcl" "\.(tf|hcl)$" +# No comments are permitted in JSON. +comment "" + +# Numbers (used as value). +color green ":[[:space:]]*\-?(0|[1-9][0-9]*)(\.[0-9]+)?([Ee]?[-+]?[0-9]+)?" +# Values (well, any string). +color brightmagenta "\".+\"" +# Hex numbers (used as value). +color green ":[[:space:]]*\"#[0-9abcdefABCDEF]+\"" +# Escapes. +color green "\\\\" "\\\"" "\\[bfnrt]" "\\u[0-9abcdefABCDEF]{4})" +# Special words. +color green "(true|false|null|output|path|vault|description|default|value)" + +color brightgreen "(variable|terraform|resource|provider|module)" + +# Names (very unlikely to contain a quote). +color brightblue "\"[^"]+\"[[:space:]]*:" + +# Brackets, braces, and separators. +color brightblue "\[" "\]" +color brightred "\{" "\}" +color brightred "," ":" + +# Comments. +color cyan "(^|[[:space:]]+)(//|#).*$" + +# Trailing whitespace. +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/html.j2.nanorc b/Nano/Nano-Syntax-Highlighting/html.j2.nanorc new file mode 100644 index 0000000..01bb24a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/html.j2.nanorc @@ -0,0 +1,41 @@ +## HTML syntax highlighting rules for Nano + +syntax "HTML" "\.html?(.j2)?(.twig)?$" +magic "HTML document" +comment "" + +## Emphasis tags +color brightwhite start="<([biu]|em|strong)[^>]*>" end="" + +## Tags +color cyan start="<" end=">" + +## Attributes +color brightblue "[[:space:]](abbr|accept(-charset)?|accesskey|action|[av]?link|alt|archive|axis|background|(bg)?color|border)=" +color brightblue "[[:space:]](cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)=" +color brightblue "[[:space:]](content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|enctype)=" +color brightblue "[[:space:]](for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)=" +color brightblue "[[:space:]](label|lang|longdesc|margin(height|width)|maxlength|media|method|multiple)=" +color brightblue "[[:space:]](name|nohref|noresize|noshade|object|on(click|focus|load|mouseover|keypress)|profile|readonly|rel|rev)=" +color brightblue "[[:space:]](rows(pan)?|rules|scheme|scope|scrolling|shape|size|span|src|standby|start|style|summary|pattern)=" +color brightblue "[[:space:]](tabindex|target|text|title|type|usemap|v?align|value(type)?|vspace|width|xmlns|xml:space)=" +color brightblue "[[:space:]](required|disabled|selected)[[:space:]=>]" + +## Strings +color yellow ""(\\.|[^"])*"" + +## Named character references and entities +color red "&#?[[:alnum:]]*;" + +## Template strings (not in the HTML spec, but very commonly used) +color magenta "\{[^\}]*\}\}?" +color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]" + +## Comments +color green start="" + +## Trailing spaces +color ,green "[[:space:]]+$" + +## Reminders +color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/Nano/Nano-Syntax-Highlighting/html.nanorc b/Nano/Nano-Syntax-Highlighting/html.nanorc new file mode 100644 index 0000000..01bb24a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/html.nanorc @@ -0,0 +1,41 @@ +## HTML syntax highlighting rules for Nano + +syntax "HTML" "\.html?(.j2)?(.twig)?$" +magic "HTML document" +comment "" + +## Emphasis tags +color brightwhite start="<([biu]|em|strong)[^>]*>" end="" + +## Tags +color cyan start="<" end=">" + +## Attributes +color brightblue "[[:space:]](abbr|accept(-charset)?|accesskey|action|[av]?link|alt|archive|axis|background|(bg)?color|border)=" +color brightblue "[[:space:]](cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)=" +color brightblue "[[:space:]](content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|enctype)=" +color brightblue "[[:space:]](for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)=" +color brightblue "[[:space:]](label|lang|longdesc|margin(height|width)|maxlength|media|method|multiple)=" +color brightblue "[[:space:]](name|nohref|noresize|noshade|object|on(click|focus|load|mouseover|keypress)|profile|readonly|rel|rev)=" +color brightblue "[[:space:]](rows(pan)?|rules|scheme|scope|scrolling|shape|size|span|src|standby|start|style|summary|pattern)=" +color brightblue "[[:space:]](tabindex|target|text|title|type|usemap|v?align|value(type)?|vspace|width|xmlns|xml:space)=" +color brightblue "[[:space:]](required|disabled|selected)[[:space:]=>]" + +## Strings +color yellow ""(\\.|[^"])*"" + +## Named character references and entities +color red "&#?[[:alnum:]]*;" + +## Template strings (not in the HTML spec, but very commonly used) +color magenta "\{[^\}]*\}\}?" +color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]" + +## Comments +color green start="" + +## Trailing spaces +color ,green "[[:space:]]+$" + +## Reminders +color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/Nano/Nano-Syntax-Highlighting/i3.nanorc b/Nano/Nano-Syntax-Highlighting/i3.nanorc new file mode 100644 index 0000000..196836e --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/i3.nanorc @@ -0,0 +1,15 @@ +## Here is an example for i3 Window Manager config +## +syntax "i3" "i3/config" +header "^(.*)i3 config file" + +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color cyan "(^|[[:space:]])#.*$" +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/ical.nanorc b/Nano/Nano-Syntax-Highlighting/ical.nanorc new file mode 100644 index 0000000..cd946e7 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/ical.nanorc @@ -0,0 +1,20 @@ +syntax "iCal" "\.ics$" + +color green start="^BEGIN:VCALENDAR$" end="^END:VCALENDAR$" +color yellow start="^BEGIN:VCARD$" end="^END:VCARD$" +color brightblue start="^BEGIN:VJOURNAL$" end="^END:VJOURNAL$" +color magenta start="^BEGIN:VTIMEZONE$" end="^END:VTIMEZONE" +color cyan start="^BEGIN:VEVENT$" end="^END:VEVENT$" +color brightmagenta start="^BEGIN:VALARM$" end="^END:VALARM$" +color brightcyan start="^BEGIN:VFREEBUSY$" end="^END:VFREEBUSY$" + +# URLs +color blue start="(https?|ftp)://" end="^[^ ]" +# email +icolor blue "mailto:[^ ]+" +icolor white "mailto:" +# parameters +color brightyellow start="^[-A-Z0-9]" end=":" +color white "^[-A-Z0-9]+" +# section markers +color red "^(BEGIN|END):.*$" diff --git a/Nano/Nano-Syntax-Highlighting/ini.nanorc b/Nano/Nano-Syntax-Highlighting/ini.nanorc new file mode 100644 index 0000000..d89f729 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/ini.nanorc @@ -0,0 +1,11 @@ +syntax "INI" "\.(ini|desktop|lfl|override|cfg)$" "(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 brightblue "(^|[[:space:]])(#([^{].*)?|;.*)$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/inputrc.nanorc b/Nano/Nano-Syntax-Highlighting/inputrc.nanorc new file mode 100644 index 0000000..c2f6005 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/inputrc.nanorc @@ -0,0 +1,10 @@ +syntax "Inputrc" "inputrc$" + +color red "\<(off|none)\>" +color green "\" +color brightblue "\" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color magenta "\\.?" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/jade.nanorc b/Nano/Nano-Syntax-Highlighting/jade.nanorc new file mode 100644 index 0000000..54fddd1 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/jade.nanorc @@ -0,0 +1,45 @@ +syntax "Jade" "\.jade$" +# Elements +color yellow "^\s*([a-z0-9]+)" +# Main elements +color red "^\s*(html|head|body)" +# Includes +icolor magenta "^\s*(include)" +# Variables +color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)" +icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s" +# Cases +color brightblue "^\s*(case)\s(.*)" +color cyan "^\s*(when)\s(.*)" +icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s" +color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s" +# Conditionals +icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" +# For loops +icolor magenta "^\s*-\s(for)" +# Each +icolor magenta "^\s*(each)$" "^\s*(each)\s" +# Parenthesis content +color blue start="\(" end="\)" +# Strings +color cyan "('[^']*')|(\"[^\"]*\")" +# Parenthesis, commas, equals +icolor green "\(" "\)" "\," "\=" +# Comments, dashes and spaces +color blue "\s+(//.*)" +color blue start="/\*" end="\*/" +color white "^\s*(\-)" +color ,green "[[:space:]]+$" +# Unbuffered comments +color brightblue "\s+(//-.*)" +# HTML-style conditional comments +color brightmagenta start="" +color brightmagenta "" +# HTML-style elements +color yellow "<([^!].*)>" +# Pipes +color yellow,magenta "\|" +# Doctype +color brightblack "^\s*(doctype)(.*)" +# Links +icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank" diff --git a/Nano/Nano-Syntax-Highlighting/java.nanorc b/Nano/Nano-Syntax-Highlighting/java.nanorc new file mode 100644 index 0000000..fe3f286 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/java.nanorc @@ -0,0 +1,22 @@ +## Here is an example for Java. +## +syntax "Java" "\.java$" +magic "Java " +comment "//" + +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)\>" +color red ""[^"]*"" +color yellow "\<(true|false|null)\>" +icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" +color blue "//.*" +color blue start="^\s*/\*" end="\*/" +color brightblue start="/\*\*" end="\*/" + +# Highlighting for javadoc stuff +color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+" +color magenta "@return" +color magenta "@author.*" + +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/javascript.nanorc b/Nano/Nano-Syntax-Highlighting/javascript.nanorc new file mode 100644 index 0000000..2cdd4a2 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/javascript.nanorc @@ -0,0 +1,25 @@ +syntax "JavaScript" "\.(js|ts)$" +comment "//" +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 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 cyan "\<(import|as|from|export)\>" +color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>" +color brightcyan "\<(true|false)\>" +color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>" +color green "\<(Number|Object|RegExp|String)\>" +color red "[-+/*=<>!~%?:&|]" +color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*" +color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" +color brightblack "//.*" +color brightblack "/\*.+\*/" +color brightwhite,cyan "TODO:?" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/js.nanorc b/Nano/Nano-Syntax-Highlighting/js.nanorc new file mode 100644 index 0000000..8991928 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/js.nanorc @@ -0,0 +1,56 @@ +### all *js files ( e.g. Firefox user.js, prefs.js ) + +## Old version + +#syntax "JavaScript" "(\.|/|)js$" +#color green "//.*$" start="\/\*" end="\*\/" +#color blue "'(\\.|[^'])*'" +#color red ""(\\.|[^\"])*"" +#color brightgreen "\<(true)\>" +#color brightred "\<(false)\>" "http\:\/\/.*$" +#color brightmagenta "[0-9](\\.|[^\"])*)" + +## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting + +syntax "JavaScript" "\.(js)$" +header "^#!.*\/(env +)node" +comment "//" + +## Default +color white "^.+$" + +## Decimal, cotal and hexadecimal numbers +color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" + +## Floating point number with at least one digit before decimal point +color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" + +## Keywords +color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" +color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" +color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" +color green "\<(import|as|from|export)\>" +color green "\<(const|let|class|extends|of|get|set|await|async|yield)\>" + +## Type specifiers +color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color red "\<(WeakMap|Map|WeakSet|Set|Symbol|Promise)\>" +color red "\<(Number|Object|RegExp|String)\>" +color red "\<(true|false)\>" + +## String +color brightyellow "L?\"(\\"|[^"])*\"" +color brightyellow "L?'(\'|[^'])*'" +color brightcyan "L?`(\`|[^`])*`" +color brightwhite,blue start="\$\{" end="\}" + +## Trailing spaces +color ,green "[[:space:]]+$" + +## Escapes +color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" + +## Comments +color brightblue start="^\s*/\*" end="\*/" +color brightblue "^\s*//.*$" diff --git a/Nano/Nano-Syntax-Highlighting/json.nanorc b/Nano/Nano-Syntax-Highlighting/json.nanorc new file mode 100644 index 0000000..1f79c18 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/json.nanorc @@ -0,0 +1,13 @@ +syntax "JSON" "\.json$" +header "^\{$" +# You can't add a comment to JSON. +comment "" + +color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" +color cyan "\" +color brightcyan "\<(true|false)\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" +color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/keymap.nanorc b/Nano/Nano-Syntax-Highlighting/keymap.nanorc new file mode 100644 index 0000000..bd49759 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/keymap.nanorc @@ -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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/kickstart.nanorc b/Nano/Nano-Syntax-Highlighting/kickstart.nanorc new file mode 100644 index 0000000..255618f --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/kickstart.nanorc @@ -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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/kotlin.nanorc b/Nano/Nano-Syntax-Highlighting/kotlin.nanorc new file mode 100644 index 0000000..bde7592 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/kotlin.nanorc @@ -0,0 +1,26 @@ +# Nano syntax file +# Language: Kotlin +# Maintainer: Bjarne Holen +# Edited by: Ritiek Malhotra +# Last Change: 2017 May 24 +# Copyright (c) 2014, Bjarne Holen + +syntax "kotlin" "\.kt$" "\.kts$" +color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" +color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" +color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const|suspend|sealed)\>" +color yellow "\<(true|false|null)\>" +color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" +color brightred "\<(inner|outer)\>" +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightblue "<[^= ]*>" ""(\\.|[^"])*"" + +## Comment highlighting +color red "^\s*//.*" +color red start="^\s*/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/ledger.nanorc b/Nano/Nano-Syntax-Highlighting/ledger.nanorc new file mode 100644 index 0000000..8d07329 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/ledger.nanorc @@ -0,0 +1,10 @@ +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}" +color brightyellow "^~ .*" +color brightblue "^= .*" +color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?" +color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z_-]+(:[A-Za-z_-]+)*\)?" +color red "[*!]" +color brightblack "^[[:space:]]*;.*" diff --git a/Nano/Nano-Syntax-Highlighting/lisp.nanorc b/Nano/Nano-Syntax-Highlighting/lisp.nanorc new file mode 100644 index 0000000..5039255 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/lisp.nanorc @@ -0,0 +1,13 @@ +syntax "Lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$" + +color brightblue "\([a-z-]+" +color red "\(([-+*/<>]|<=|>=)|'" +color blue "\<[0-9]+\>" +icolor cyan "\" +color brightcyan "\<[tT]\>" +color yellow "\"(\\.|[^"])*\"" +color magenta "'[A-Za-z][A-Za-z0-9_-]+" +color magenta "\\.?" +color brightblack "(^|[[:space:]]);.*" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/lua.nanorc b/Nano/Nano-Syntax-Highlighting/lua.nanorc new file mode 100644 index 0000000..bec44ad --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/lua.nanorc @@ -0,0 +1,80 @@ +############################################################################## +# +# Lua syntax highlighting for Nano. +# +# Author: Matthew Wild +# License: GPL 2 or later +# +# Version: 2007-06-06 +# +# Notes: Originally based on Ruby syntax rc by Josef 'Jupp' Schugt +############################################################################## + + +# Automatically use for '.lua' files +syntax "Lua" ".*\.lua$" +magic "Lua script" +comment "--" + +linter luacheck --no-color + +# General +color brightwhite ".+" + +# Operators +color brightyellow ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" + +# Statements +color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return)\>" + +# Keywords +color brightyellow "\<(debug|string|math|table|io|coroutine|os|utf8|bit32)\>\." +color brightyellow "\<(_ENV|_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\(" + +# Standard library +color brightyellow "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)\>" +color brightyellow "math\.\<(abs|acos|asin|atan2|atan|ceil|cosh|cos|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log|max|maxinteger|min|mininteger|modf|pi|pow|rad|random|randomseed|sinh|sqrt|tan|tointeger|type|ult)\>" +color brightyellow "os\.\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>" +color brightyellow "package\.\<(config|cpath|loaded|loadlib|path|preload|seeall|searchers|searchpath)\>" +color brightyellow "string\.\<(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)\>" +color brightyellow "table\.\<(concat|insert|maxn|move|pack|remove|sort|unpack)\>" +color brightyellow "utf8\.\<(char|charpattern|codes|codepoint|len|offset)\>" +color brightyellow "coroutine\.\<(create|isyieldable|resume|running|status|wrap|yield)\>" +color brightyellow "debug\.\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|getuservalue|setfenv|sethook|setlocal|setmetatable|setupvalue|setuservalue|traceback|upvalueid|upvaluejoin)\>" +color brightyellow "bit32\.\<(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)\>" + +# File handle methods +color brightyellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>" + +# false, nil, true +color brightmagenta "\<(false|nil|true)\>" + +# External files +color brightgreen "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>" + +# Numbers +color red "\<([0-9]+)\>" + +# Symbols +color brightmagenta "(\(|\)|\[|\]|\{|\})" + +# Strings +color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" + +# Multiline strings +color red start="\s*\[\[" end="\]\]" + +# Escapes +color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)." + +# Shebang +color brightcyan "^#!.*" + +# Simple comments +color green "\-\-.*$" + +# Multiline comments +color green start="\s*\-\-\s*\[\[" end="\]\]" + +# Trailing whitespaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/m3u.nanorc b/Nano/Nano-Syntax-Highlighting/m3u.nanorc new file mode 100644 index 0000000..3e237e3 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/m3u.nanorc @@ -0,0 +1,22 @@ +syntax "m3u" "\.(m3u|m3u8)$" + +# Header text +color brightcyan "^#EXTINF.*,[^,]*$" + +# Header property values +color brightyellow "^#[^:]*:[^ ,]*" +color brightyellow "=[^ ,]*" +color brightyellow "=[\"][^\"]*[\"]" + +# Header property keys +color brightgreen "[a-zA-Z-]*=" + +# Headers +color brightred "^#EXT[-A-Z]*:" +color brightmagenta "^#EXTM3U" + +# Separators +color normal "[,=]" + +# URLs +color normal "^[^#].*" diff --git a/Nano/Nano-Syntax-Highlighting/makefile.nanorc b/Nano/Nano-Syntax-Highlighting/makefile.nanorc new file mode 100644 index 0000000..5bda434 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/makefile.nanorc @@ -0,0 +1,25 @@ +syntax "Makefile" "([Mm]akefile|\.ma?k)$" +header "^#!.*/(env +)?[bg]?make( |$)" +magic "makefile script" +comment "#" + +color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" +color cyan "^(export|include|override)\>" +color brightmagenta "^[^:= ]+:" +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:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/man.nanorc b/Nano/Nano-Syntax-Highlighting/man.nanorc new file mode 100644 index 0000000..5239bea --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/man.nanorc @@ -0,0 +1,12 @@ +## Here is an example for manpages. +## +syntax "Man" "\.[1-9]x?$" +magic "troff or preprocessor input" +comment ".\"" + +color green "\.(S|T)H.*$" +color brightgreen "\.(S|T)H" "\.TP" +color brightred "\.(BR?|I[PR]?).*$" +color brightblue "\.(BR?|I[PR]?|PP)" +color brightwhite "\\f[BIPR]" +color yellow "\.(br|DS|RS|RE|PD)" diff --git a/Nano/Nano-Syntax-Highlighting/markdown.nanorc b/Nano/Nano-Syntax-Highlighting/markdown.nanorc new file mode 100644 index 0000000..448a396 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/markdown.nanorc @@ -0,0 +1,51 @@ +syntax "Markdown" "\.(md|mkd|mkdn|markdown)$" + +# Tables (Github extension) +color cyan ".*[ :]\|[ :].*" + +# quotes +color brightblack start="^>" end="^$" +color brightblack "^>.*" + +# Emphasis +color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" + +# Strong emphasis +color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" + +# strike-through +color red "(^|[[:space:]])~~[^ ][^~]*~~" + +# horizontal rules +color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$" + +# headlines +color brightmagenta "^#{1,6}.*" + +# lists +color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " + +# leading whitespace +color black "^[[:space:]]+" + +# misc +color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" + +# links +color brightblue "\[[^]]+\]" +color brightblue "\[([^][]|\[[^]]*\])*\]\([^)]+\)" + +# images +color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])" + +# urls +color brightyellow "https?://[^ )>]+" + +# code +color yellow "`[^`]*`|^ {4}[^-+*].*" +# code blocks +color yellow start="^```[^$]" end="^```$" +color yellow "^```$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/moonscript.nanorc b/Nano/Nano-Syntax-Highlighting/moonscript.nanorc new file mode 100644 index 0000000..776a27a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/moonscript.nanorc @@ -0,0 +1,54 @@ +#syntax highlighting for MoonScript +#based on leafo/moonscript-vim + +syntax "MoonScript" "\.moon$" + +#statement +color yellow "\<(return|break|continue)\>" +#conditional +color yellow "\<(if|else|elseif|then|switch|when|unless)\>" +#keyword +color yellow "\<(export|local|import|from|with|in|and|or|not|class|extends|super|using|do)\>" +#repeat +color yellow "\<(for|while)\>" +#identifiers (lua 5.1 functions) +color green "\<(assert|collectgarbage|dofile|error|next|print|rawget|rawset|tonumber|tostring)\>" +color green "\<(type|_VERSION|_G|getfenv|getmetatable|ipairs|loadfile|loadstring|pairs)\>" +color green "\<(pcall|rawequal|require|setfenv|setmetatable|unpack|xpcallload|module|select)\>" +color green "package\.(cpath|loaded|loadlib|path|preload|seeall)" +color green "coroutine\.(running|create|resume|status|wrap|yield)" +color green "string\.(byte|char|dump|find|len|lower|rep|sub|upper|format|gsub|gmatch|match|reverse)" +color green "table\.(maxn|concat|sort|insert|remove)" +color green "math\.(abs|acos|asin|atan|atan2|ceil|sin|cos|tan|deg|exp|floor|log|log10|max|min|fmod|modf|cosh|sinh|tanh|pow|rad|sqrt|frexp|ldexp|random|randomseed|pi)" +color green "io\.(stdin|stdout|stderr|close|flush|input|lines|open|output|popen|read|tmpfile|type|write)" +color green "os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)" +color green "debug\.(debug|gethook|getinfo|getlocal|getupvalue|setlocal|setupvalue|sethook|traceback|getfenv|getmetatable|getregistry|setfenv|setmetatable)" +#operator +color red "[-+=^*.<>&?%#@!:|\/\\]+" +color red "(and=|or=)" +#function +color brightblue "(->|=>|\(|\)|\[|\]|\{|\}|!\s|!$)" +#boolean +color brightcyan "\<(true|false)\>" +#special type +color brightred "\<(nil)\>" +#class-like name starting with a capital letter +color green "\<[A-Z]\w*\>" +#special variable +color green "\<(self|self\.\w+)\>" +color green "\B@@?\w*" +#constant +color brightgreen "\<[A-Z0-9_]+\>" +#integer (incl. leading plus or minus) +color brightmagenta "\<[-+]?[0-9]+\>" +#float (incl. leading plus or minus) +color brightmagenta "\<[-+]?[0-9]+\.[0-9]+\>" +#hex number +color brightmagenta "\<0[xX]\x+\>" +#some common errors +color green,red "(;$|[[:space:]]+$)" +#string +color brightyellow start="\"" end="\"" +color brightyellow start="\'" end="\'" +#comment +color blue "--.*" diff --git a/Nano/Nano-Syntax-Highlighting/mpdconf.nanorc b/Nano/Nano-Syntax-Highlighting/mpdconf.nanorc new file mode 100644 index 0000000..3b4220b --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/mpdconf.nanorc @@ -0,0 +1,9 @@ +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)\>" +color brightmagenta "^(input|audio_output|decoder)[[:space:]]*\{|\}" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/mutt.nanorc b/Nano/Nano-Syntax-Highlighting/mutt.nanorc new file mode 100644 index 0000000..5f90a5b --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/mutt.nanorc @@ -0,0 +1,4 @@ +## Here is an example for quoted emails (under e.g. mutt). +## +syntax "Mutt" +color green "^>.*" diff --git a/Nano/Nano-Syntax-Highlighting/nanorc.nanorc b/Nano/Nano-Syntax-Highlighting/nanorc.nanorc new file mode 100644 index 0000000..211878c --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/nanorc.nanorc @@ -0,0 +1,48 @@ +## Here is an example for nanorc files. +## +syntax "Nanorc" "\.?nanorc$" +comment "#" + +## Possible errors and parameters +icolor brightred "^[[:space:]]*((un)?set|include|syntax|i?color).*$" +## Colors +icolor black " black" +icolor red " red" +icolor green " green" +icolor yellow " yellow" +icolor blue " blue" +icolor magenta " magenta" +icolor cyan " cyan" +icolor white " white" +icolor normal " normal" +icolor brightblack " brightblack" +icolor brightred " brightred" +icolor brightgreen " brightgreen" +icolor brightyellow " brightyellow" +icolor brightblue " brightblue" +icolor brightmagenta " brightmagenta" +icolor brightcyan " brightcyan" +icolor brightwhite " brightwhite" +icolor ,black ",black " +icolor ,red ",red " +icolor ,green ",green " +icolor ,yellow ",yellow " +icolor ,blue ",blue " +icolor ,magenta ",magenta " +icolor ,cyan ",cyan " +icolor ,white ",white " +icolor ,normal ",normal" +icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" +icolor yellow "^[[:space:]]*(set|unset)[[:space:]]+(errorcolor|functioncolor|keycolor|numbercolor|selectedcolor|statuscolor|stripecolor|titlecolor)[[:space:]]+(bright)?(white|black|red|blue|green|yellow|magenta|cyan|normal)?(,(white|black|red|blue|green|yellow|magenta|cyan|normal))?\>" + +## Keywords +icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|backupdir|boldtext|brackets|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|errorcolor|fill|functioncolor|guidestripe|historylog|jumpyscrolling|keycolor|linenumbers|locking|matchbrackets|morespace|mouse|multibuffer|noconvert|nohelp|nonewlines|nopauses|nowrap|numbercolor|operatingdir|positionlog|preserve|punct|quickblank|quotestr|rawsequences|rebinddelete|regexp|selectedcolor|showcursor|smarthome|smooth|softwrap|speller|statuscolor|stripecolor|suspend|tabsize|tabstospaces|tempfile|titlecolor|trimblanks|unix|view|whitespace|wordbounds|wordchars|zap)\>" +icolor green "^[[:space:]]*(bind|set|unset|syntax|header|include|magic)\>" +## Strings +icolor white ""(\\.|[^"])*"" +## Comments +icolor brightblue "^[[:space:]]*#.*$" +icolor cyan "^[[:space:]]*##.*$" + +## Trailing whitespace +icolor ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/nginx.nanorc b/Nano/Nano-Syntax-Highlighting/nginx.nanorc new file mode 100644 index 0000000..6735073 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/nginx.nanorc @@ -0,0 +1,13 @@ +syntax "Nginx" "nginx.*\.conf$" "\.nginx$" ".*\/sites\-available\/.*$" ".*\/sites\-enabled\/.*$" +header "^(server|upstream)[^{]*\{$" + +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|proxy_cache_methods|proxy_pass_request_body|proxy_pass_request_headers|proxy_cache_convert_head|proxy_cache_lock_age|proxy_cache_max_range_offset|proxy_send_lowat|proxy_set_body|proxy_socket_keepalive|proxy_ssl_trusted_certificate|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|ssl_ecdh_curve|ssl_session_tickets|ssl_stapling|ssl_stapling_verify|ssl_stapling_file|ssl_stapling_responder|ssl_buffer_size|ssl_early_data|ssl_password_file|ssl_session_ticket_key|ssl_trusted_certificate|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 brightcyan "\<(on|off)\>" +color brightyellow "\$[A-Za-z][A-Za-z0-9_]*" +color red "[*]" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow start="'$" end="';$" +color brightblue "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/nmap.nanorc b/Nano/Nano-Syntax-Highlighting/nmap.nanorc new file mode 100644 index 0000000..c573f42 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/nmap.nanorc @@ -0,0 +1,18 @@ +syntax "NMAP" "\.nmap$" + +color yellow "^Nmap scan report for.*" +color brightwhite "^Not shown.*" +color brightwhite "^Host is up.*" +color brightwhite "^All.*" + +color yellow "^[0-9]+/(tcp|udp).*$" +color cyan "^[0-9]+/(tcp|udp)" + +color brightgreen "(Host is )?(open|up)" +color white "\(([0-9]+\.[0-9]+s latency)\)\." +color brightyellow "filtered" +color brightred "(Host is )?(All .* scanned ports on .*)?(^Not shown: [0-9]+ )?(closed|down)( ports)?" + +color magenta "^PORT *STATE *SERVICE" + +color brightblue "^#.*" \ No newline at end of file diff --git a/Nano/Nano-Syntax-Highlighting/ocaml.nanorc b/Nano/Nano-Syntax-Highlighting/ocaml.nanorc new file mode 100644 index 0000000..d1bba12 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/ocaml.nanorc @@ -0,0 +1,32 @@ +## Syntax highlighting for OCaml. + +syntax "OCaml" "\.mli?$" +magic "OCaml" +comment "(*|*)" + +#uid +color red "\<[A-Z][0-9a-z_]{2,}\>" +#declarations +color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" +#structure items +color red "\<(type|open|class|module|exception|external)\>" +#patterns +color blue "\<(fun|function|functor|match|try|with)\>" +#patterns-modifiers +color yellow "\<(as|when|of)\>" +#conditions +color cyan "\<(if|then|else)\>" +#blocs +color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>" +#constantes +color green "\<(true|false)\>" +#modules/classes +color green "\<(include|inherit|initializer)\>" +#expr modifiers +color yellow "\<(new|ref|mutable|lazy|assert|raise)\>" +#comments +color white start="\(\*" end="\*\)" +#strings (no multiline handling yet) +color brightblack ""[^\"]*"" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/octave.nanorc b/Nano/Nano-Syntax-Highlighting/octave.nanorc new file mode 100644 index 0000000..0b188b9 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/octave.nanorc @@ -0,0 +1,24 @@ +# Source: https://wiki.octave.org/Nano +# Octave syntax colors +syntax "octave" "\.m$" "\.octaverc$" + +# keywords +color brightyellow "(case|catch|do|else(if)?|for|function|if|otherwise|switch|try|until|unwind_protect(_cleanup)?|vararg(in|out)|while)" +color brightyellow "end(_try_catch|_unwind_protect|for|function|if|switch|while)?" +color magenta "(break|continue|return)" + +# storage-type +color green "(global|persistent|static)" +# data-type +color green "(cell(str)?|char|double|(u)?int(8|16|32|64)|logical|single|struct)" + +# embraced +# TODO: the next line needs to be fixed to work properly in all cases +color brightred start="\(" end="\)" +color blue start="\[|\{" end="\]|\}" + +# strings +color yellow ""(\\.|[^\"])*"|'(\\.|[^\"])*'" + +# comments +color brightblue "#.*|%.*" diff --git a/Nano/Nano-Syntax-Highlighting/patch.nanorc b/Nano/Nano-Syntax-Highlighting/patch.nanorc new file mode 100644 index 0000000..bd282b7 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/patch.nanorc @@ -0,0 +1,14 @@ +## Here is an example for patch files. +## +syntax "Patch" "\.(patch|diff)$" +magic "diff output" +# You can't add comments in patch files. +comment "" + +color brightgreen "^\+.*" +color green "^\+\+\+.*" +color brightblue "^ .*" +color brightred "^-.*" +color red "^---.*" +color brightyellow "^@@.*" +color magenta "^diff.*" diff --git a/Nano/Nano-Syntax-Highlighting/peg.nanorc b/Nano/Nano-Syntax-Highlighting/peg.nanorc new file mode 100644 index 0000000..3229752 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/peg.nanorc @@ -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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/perl.nanorc b/Nano/Nano-Syntax-Highlighting/perl.nanorc new file mode 100644 index 0000000..117a95c --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/perl.nanorc @@ -0,0 +1,18 @@ +## Here is an example for Perl. +## +syntax "Perl" "\.p[lm]$" +header "^#!.*/(env +)?perl( |$)" +magic "Perl script" +comment "#" + +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)\>" +color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" +icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)" +color yellow ""[^"]*"|'[^']*'|qq\|.*\|" +color white "[sm]/.*/" +color white start="(^use| = new)" end=";" +color green "#.*" +color yellow start="<< 'STOP'" end="STOP" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/perl6.nanorc b/Nano/Nano-Syntax-Highlighting/perl6.nanorc new file mode 100644 index 0000000..0660c56 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/perl6.nanorc @@ -0,0 +1,19 @@ +## Here is an example for perl +## Hybrid perl5 / perl6 syntax highlighting +### Found in CPAN - http://cpansearch.perl.org/src/NIGE/Goo-0.09/lib/.gooskel/nanorc + +syntax "Perl6" "\.p6$" "\.pl6$" "\.pm6" +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)\>" + +# Perl 6 words +color brightcyan "\<(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\>" +color brightmagenta start="[$@%]" end="( |\\W|-)" +color brightred "".*"|qq\|.*\|" +color white "[sm]/.*/" +color brightblue start="(^use| = new)" end=";" +color brightgreen "#.*" +color brightred start="<]" +color green "\->[a-zA-Z_0-9$]*|[=!<>]" +# Functions +color brightblue "([a-zA-Z0-9_-]*)\(" +# Special values +color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)$" +color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)[^a-z0-9_-]{1}" +# Special Characters +color yellow "[.,{}();]" +color cyan "\[" +color cyan "\]" +# Numbers +color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*" +color magenta "0x[0-9a-zA-Z]*" +# Special Variables +color brightblue "(\$this|parent::|self::|\$this->)" +color magenta ";" +# Comparison operators +color yellow "(<|>)" +# Assignment operator +color brightblue "=" +# Bitwise Operations +color magenta "(&|\||\^)" +color magenta "(<<|>>)" +# Comparison operators +color yellow "(==|===|!=|<>|!==|<=|>=|<=>)" +# Logical Operators +color yellow "( and | or | xor |!|&&|\|\|)" +# And/Or/SRO/etc +color cyan "(\;\;|\|\||::|=>|->)" +# Double quoted STRINGS! +color red "(\"[^\"]*\")" +# Heredoc (typically ends with a semicolon). +color red start="<<<['\"]?[A-Z][A-Z0-9_]*['\"]?" end="^[A-Z][A-Z0-9_]*;" +# Inline Variables +color white "\{\$[^}]*\}" +# Single quoted string +color red "('[^']*')" +# Online Comments +color brightyellow "^(#.*|//.*)$" +color brightyellow "[ | ](#.*|//.*)$" +# PHP Tags +color red "(<\?(php)?|\?>)" +# General HTML +color red start="\?>" end="<\?(php|=)?" +# trailing whitespace +color ,green "[[:space:]]+$" +# multi-line comments +color brightyellow start="/\*" end="\*/" +# Nowdoc +color red start="<<<'[A-Z][A-Z0-9_]*'" end="^[A-Z][A-Z0-9_]*;" diff --git a/Nano/Nano-Syntax-Highlighting/pkg-config.nanorc b/Nano/Nano-Syntax-Highlighting/pkg-config.nanorc new file mode 100644 index 0000000..4c83ce8 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/pkg-config.nanorc @@ -0,0 +1,8 @@ +syntax "PC" "\.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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/pkgbuild.nanorc b/Nano/Nano-Syntax-Highlighting/pkgbuild.nanorc new file mode 100644 index 0000000..85d359c --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/pkgbuild.nanorc @@ -0,0 +1,26 @@ +## Arch PKGBUILD files +## +syntax "PKGBUILD" "^.*PKGBUILD$" +color green start="^." end="$" +color cyan "^.*(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$" +color brightcyan "\<(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license)\>" +color brightcyan "(\$|\$\{|\$\()(pkgbase|epoch|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(\}|\))" +color cyan "^.*(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces).*=.*$" +color brightcyan "\<(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces)\>" +color brightcyan "(\$|\$\{|\$\()(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces)(\}|\))" +color cyan "^.*(groups|backup|noextract|options|validpgpkeys|changelog).*=.*$" +color brightcyan "\<(groups|backup|noextract|options|validpgpkeys|changelog)\>" +color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options|validpgpkeys|changelog)(\}|\))" +color cyan "^.*(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums).*=.*$" +color brightcyan "\<(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums)\>" +color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums)(\}|\))" +color brightcyan "\<(startdir|srcdir|pkgdir)\>" +color cyan "\.install" +color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}" +color brightred "build\(\)" +color brightred "package_.*.*$" +color brightred "\<(configure|make|cmake|scons)\>" +color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/po.nanorc b/Nano/Nano-Syntax-Highlighting/po.nanorc new file mode 100644 index 0000000..24bc6a6 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/po.nanorc @@ -0,0 +1,9 @@ +syntax "PO" "\.pot?$" +comment "#" + +color cyan "\<(msgid|msgstr)\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color magenta "\\.?" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/pov.nanorc b/Nano/Nano-Syntax-Highlighting/pov.nanorc new file mode 100644 index 0000000..9151792 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/pov.nanorc @@ -0,0 +1,17 @@ +## Here is an example for POV-Ray. +## +syntax "POV" "\.(pov|POV|povray|POVRAY)$" +comment "//" + +color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" +color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" +color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" +color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" +color brightred "^\<(texture)\>" +color brightred "\<(light_source|background)\>" +color brightred "\<(fog|object|camera)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color brightmagenta "\<(union|group|subgroup)\>" +## Comment highlighting +color brightblue "^\s*//.*" +color brightblue start="^\s*/\*" end="\*/" diff --git a/Nano/Nano-Syntax-Highlighting/powershell.nanorc b/Nano/Nano-Syntax-Highlighting/powershell.nanorc new file mode 100644 index 0000000..db459ee --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/powershell.nanorc @@ -0,0 +1,34 @@ +## Nano syntax highlighting file for PowerShell +## Written by Rashil Gandhi https://github.com/rashil2000 + +syntax "PowerShell" "\.[pP][sS][1]$" "\.[pP][sS][mM][1]$" + +## Commands +icolor cyan "\<(Add-AppPackage|Add-AppPackageVolume|Add-AppProvisionedPackage|Add-ProvisionedAppPackage|Add-ProvisionedAppxPackage|Add-ProvisioningPackage|Add-TrustedProvisioningCertificate|Apply-WindowsUnattend|Disable-PhysicalDiskIndication|Disable-StorageDiagnosticLog|Dismount-AppPackageVolume|Enable-PhysicalDiskIndication|Enable-StorageDiagnosticLog|Flush-Volume|Get-AppPackage|Get-AppPackageDefaultVolume|Get-AppPackageLastError|Get-AppPackageLog|Get-AppPackageManifest|Get-AppPackageVolume|Get-AppProvisionedPackage|Get-DiskSNV|Get-PhysicalDiskSNV|Get-ProvisionedAppPackage|Get-ProvisionedAppxPackage|Get-StorageEnclosureSNV|Initialize-Volume|Mount-AppPackageVolume|Move-AppPackage|Move-SmbClient|Optimize-AppProvisionedPackages|Optimize-ProvisionedAppPackages|Optimize-ProvisionedAppxPackages|Remove-AppPackage|Remove-AppPackageVolume|Remove-AppProvisionedPackage|Remove-EtwTraceSession|Remove-ProvisionedAppPackage|Remove-ProvisionedAppxPackage|Remove-ProvisioningPackage|Remove-TrustedProvisioningCertificate|Set-AppPackageDefaultVolume|Set-AppPackageProvisionedDataFile|Set-AutologgerConfig|Set-EtwTraceSession|Set-ProvisionedAppPackageDataFile|Set-ProvisionedAppXDataFile|Write-FileSystemCache|A:|Add-BitLockerKeyProtector|Add-DnsClientNrptRule|Add-DtcClusterTMMapping|Add-EtwTraceProvider|Add-InitiatorIdToMaskingSet|Add-MpPreference|Add-MpPreference|Add-NetEventNetworkAdapter|Add-NetEventPacketCaptureProvider|Add-NetEventProvider|Add-NetEventVFPProvider|Add-NetEventVmNetworkAdapter|Add-NetEventVmSwitch|Add-NetEventVmSwitchProvider|Add-NetEventWFPCaptureProvider|Add-NetIPHttpsCertBinding|Add-NetLbfoTeamMember|Add-NetLbfoTeamNic|Add-NetNatExternalAddress|Add-NetNatStaticMapping|Add-NetSwitchTeamMember|Add-OdbcDsn|Add-PartitionAccessPath|Add-PhysicalDisk|Add-PoshGitToProfile|Add-Printer|Add-PrinterDriver|Add-PrinterPort|Add-SshKey|Add-StorageFaultDomain|Add-TargetPortToMaskingSet|Add-VirtualDiskToMaskingSet|Add-VpnConnection|Add-VpnConnectionRoute|Add-VpnConnectionTriggerApplication|Add-VpnConnectionTriggerDnsConfiguration|Add-VpnConnectionTriggerTrustedNetwork|AfterAll|AfterEach|Assert-MockCalled|Assert-VerifiableMocks|B:|Backup-BitLockerKeyProtector|BackupToAAD-BitLockerKeyProtector|BeforeAll|BeforeEach|Block-FileShareAccess|Block-SmbShareAccess|C:|cd..|cd\|Clear-BitLockerAutoUnlock|Clear-Disk|Clear-DnsClientCache|Clear-FileStorageTier|Clear-Host|Clear-PcsvDeviceLog|Clear-StorageBusDisk|Clear-StorageDiagnosticInfo|Close-SmbOpenFile|Close-SmbSession|Compress-Archive|Configuration|Connect-IscsiTarget|Connect-VirtualDisk|Context|ConvertFrom-SddlString|Copy-NetFirewallRule|Copy-NetIPsecMainModeCryptoSet|Copy-NetIPsecMainModeRule|Copy-NetIPsecPhase1AuthSet|Copy-NetIPsecPhase2AuthSet|Copy-NetIPsecQuickModeCryptoSet|Copy-NetIPsecRule|D:|Debug-FileShare|Debug-MMAppPrelaunch|Debug-StorageSubSystem|Debug-Volume|Describe|Disable-BitLocker|Disable-BitLockerAutoUnlock|Disable-DAManualEntryPointSelection|Disable-DeliveryOptimizationVerboseLogs|Disable-DscDebug|Disable-MMAgent|Disable-NetAdapter|Disable-NetAdapterBinding|Disable-NetAdapterChecksumOffload|Disable-NetAdapterEncapsulatedPacketTaskOffload|Disable-NetAdapterIPsecOffload|Disable-NetAdapterLso|Disable-NetAdapterPacketDirect|Disable-NetAdapterPowerManagement|Disable-NetAdapterQos|Disable-NetAdapterRdma|Disable-NetAdapterRsc|Disable-NetAdapterRss|Disable-NetAdapterSriov|Disable-NetAdapterUso|Disable-NetAdapterVmq|Disable-NetDnsTransitionConfiguration|Disable-NetFirewallRule|Disable-NetIPHttpsProfile|Disable-NetIPsecMainModeRule|Disable-NetIPsecRule|Disable-NetNatTransitionConfiguration|Disable-NetworkSwitchEthernetPort|Disable-NetworkSwitchFeature|Disable-NetworkSwitchVlan|Disable-OdbcPerfCounter|Disable-PhysicalDiskIdentification|Disable-PnpDevice|Disable-PSTrace|Disable-PSWSManCombinedTrace|Disable-ScheduledTask|Disable-SmbDelegation|Disable-StorageBusCache|Disable-StorageBusDisk|Disable-StorageEnclosureIdentification|Disable-StorageEnclosurePower|Disable-StorageHighAvailability|Disable-StorageMaintenanceMode|Disable-WdacBidTrace|Disable-WSManTrace|Disconnect-IscsiTarget|Disconnect-VirtualDisk|Dismount-DiskImage|E:|Enable-BitLocker|Enable-BitLockerAutoUnlock|Enable-DAManualEntryPointSelection|Enable-DeliveryOptimizationVerboseLogs|Enable-DscDebug|Enable-GitColors|Enable-MMAgent|Enable-NetAdapter|Enable-NetAdapterBinding|Enable-NetAdapterChecksumOffload|Enable-NetAdapterEncapsulatedPacketTaskOffload|Enable-NetAdapterIPsecOffload|Enable-NetAdapterLso|Enable-NetAdapterPacketDirect|Enable-NetAdapterPowerManagement|Enable-NetAdapterQos|Enable-NetAdapterRdma|Enable-NetAdapterRsc|Enable-NetAdapterRss|Enable-NetAdapterSriov|Enable-NetAdapterUso|Enable-NetAdapterVmq|Enable-NetDnsTransitionConfiguration|Enable-NetFirewallRule|Enable-NetIPHttpsProfile|Enable-NetIPsecMainModeRule|Enable-NetIPsecRule|Enable-NetNatTransitionConfiguration|Enable-NetworkSwitchEthernetPort|Enable-NetworkSwitchFeature|Enable-NetworkSwitchVlan|Enable-OdbcPerfCounter|Enable-PhysicalDiskIdentification|Enable-PnpDevice|Enable-PSTrace|Enable-PSWSManCombinedTrace|Enable-ScheduledTask|Enable-SmbDelegation|Enable-StorageBusCache|Enable-StorageBusDisk|Enable-StorageEnclosureIdentification|Enable-StorageEnclosurePower|Enable-StorageHighAvailability|Enable-StorageMaintenanceMode|Enable-WdacBidTrace|Enable-WSManTrace|Expand-Archive|Expand-GitCommand|Export-ODataEndpointProxy|Export-ScheduledTask|F:|Find-Command|Find-Command|Find-Command|Find-DSCResource|Find-DSCResource|Find-DscResource|Find-Module|Find-Module|Find-Module|Find-NetIPsecRule|Find-NetRoute|Find-RoleCapability|Find-RoleCapability|Find-RoleCapability|Find-Script|Find-Script|Find-Script|Flush-EtwTraceSession|Format-Hex|Format-Volume|G:|Get-AliasPattern|Get-AppBackgroundTask|Get-AppxLastError|Get-AppxLog|Get-AutologgerConfig|Get-BitLockerVolume|Get-ClusteredScheduledTask|Get-ComputerName|Get-CredsFromCredentialProvider|Get-CredsFromCredentialProvider|Get-DAClientExperienceConfiguration|Get-DAConnectionStatus|Get-DAEntryPointTableItem|Get-DedupProperties|Get-DeliveryOptimizationPerfSnap|Get-DeliveryOptimizationPerfSnapThisMonth|Get-DeliveryOptimizationStatus|Get-Disk|Get-DiskImage|Get-DiskStorageNodeView|Get-DnsClient|Get-DnsClientCache|Get-DnsClientGlobalSetting|Get-DnsClientNrptGlobal|Get-DnsClientNrptPolicy|Get-DnsClientNrptRule|Get-DnsClientServerAddress|Get-DOConfig|Get-DODownloadMode|Get-DOPercentageMaxBackgroundBandwidth|Get-DOPercentageMaxForegroundBandwidth|Get-DscConfiguration|Get-DscConfigurationStatus|Get-DscLocalConfigurationManager|Get-DscResource|Get-Dtc|Get-DtcAdvancedHostSetting|Get-DtcAdvancedSetting|Get-DtcClusterDefault|Get-DtcClusterTMMapping|Get-DtcDefault|Get-DtcLog|Get-DtcNetworkSetting|Get-DtcTransaction|Get-DtcTransactionsStatistics|Get-DtcTransactionsTraceSession|Get-DtcTransactionsTraceSetting|Get-EtwTraceProvider|Get-EtwTraceSession|Get-FileHash|Get-FileIntegrity|Get-FileShare|Get-FileShareAccessControlEntry|Get-FileStorageTier|Get-FormattedRootLocation|Get-FullPath|Get-GitBranch|Get-GitDirectory|Get-GitStatus|Get-HnsEndpoint|Get-HnsNamespace|Get-HnsNetwork|Get-HnsPolicyList|Get-InitiatorId|Get-InitiatorPort|Get-InstalledModule|Get-InstalledModule|Get-InstalledModule|Get-InstalledScript|Get-InstalledScript|Get-InstalledScript|Get-IscsiConnection|Get-IscsiSession|Get-IscsiTarget|Get-IscsiTargetPortal|Get-IseSnippet|Get-LogProperties|Get-MaskingSet|Get-MMAgent|Get-MockDynamicParameters|Get-MpComputerStatus|Get-MpComputerStatus|Get-MpPreference|Get-MpPreference|Get-MpThreat|Get-MpThreat|Get-MpThreatCatalog|Get-MpThreatCatalog|Get-MpThreatDetection|Get-MpThreatDetection|Get-NCSIPolicyConfiguration|Get-Net6to4Configuration|Get-NetAdapter|Get-NetAdapterAdvancedProperty|Get-NetAdapterBinding|Get-NetAdapterChecksumOffload|Get-NetAdapterEncapsulatedPacketTaskOffload|Get-NetAdapterHardwareInfo|Get-NetAdapterIPsecOffload|Get-NetAdapterLso|Get-NetAdapterPacketDirect|Get-NetAdapterPowerManagement|Get-NetAdapterQos|Get-NetAdapterRdma|Get-NetAdapterRsc|Get-NetAdapterRss|Get-NetAdapterSriov|Get-NetAdapterSriovVf|Get-NetAdapterStatistics|Get-NetAdapterUso|Get-NetAdapterVmq|Get-NetAdapterVMQQueue|Get-NetAdapterVPort|Get-NetCompartment|Get-NetConnectionProfile|Get-NetDnsTransitionConfiguration|Get-NetDnsTransitionMonitoring|Get-NetEventNetworkAdapter|Get-NetEventPacketCaptureProvider|Get-NetEventProvider|Get-NetEventSession|Get-NetEventVFPProvider|Get-NetEventVmNetworkAdapter|Get-NetEventVmSwitch|Get-NetEventVmSwitchProvider|Get-NetEventWFPCaptureProvider|Get-NetFirewallAddressFilter|Get-NetFirewallApplicationFilter|Get-NetFirewallInterfaceFilter|Get-NetFirewallInterfaceTypeFilter|Get-NetFirewallPortFilter|Get-NetFirewallProfile|Get-NetFirewallRule|Get-NetFirewallSecurityFilter|Get-NetFirewallServiceFilter|Get-NetFirewallSetting|Get-NetIPAddress|Get-NetIPConfiguration|Get-NetIPHttpsConfiguration|Get-NetIPHttpsState|Get-NetIPInterface|Get-NetIPsecDospSetting|Get-NetIPsecMainModeCryptoSet|Get-NetIPsecMainModeRule|Get-NetIPsecMainModeSA|Get-NetIPsecPhase1AuthSet|Get-NetIPsecPhase2AuthSet|Get-NetIPsecQuickModeCryptoSet|Get-NetIPsecQuickModeSA|Get-NetIPsecRule|Get-NetIPv4Protocol|Get-NetIPv6Protocol|Get-NetIsatapConfiguration|Get-NetLbfoTeam|Get-NetLbfoTeamMember|Get-NetLbfoTeamNic|Get-NetNat|Get-NetNatExternalAddress|Get-NetNatGlobal|Get-NetNatSession|Get-NetNatStaticMapping|Get-NetNatTransitionConfiguration|Get-NetNatTransitionMonitoring|Get-NetNeighbor|Get-NetOffloadGlobalSetting|Get-NetPrefixPolicy|Get-NetQosPolicy|Get-NetRoute|Get-NetSwitchTeam|Get-NetSwitchTeamMember|Get-NetTCPConnection|Get-NetTCPSetting|Get-NetTeredoConfiguration|Get-NetTeredoState|Get-NetTransportFilter|Get-NetUDPEndpoint|Get-NetUDPSetting|Get-NetView|Get-NetworkSwitchEthernetPort|Get-NetworkSwitchFeature|Get-NetworkSwitchGlobalData|Get-NetworkSwitchVlan|Get-OdbcDriver|Get-OdbcDsn|Get-OdbcPerfCounter|Get-OffloadDataTransferSetting|Get-OperationValidation|Get-Partition|Get-PartitionSupportedSize|Get-PcsvDevice|Get-PcsvDeviceLog|Get-PhysicalDisk|Get-PhysicalDiskStorageNodeView|Get-PhysicalExtent|Get-PhysicalExtentAssociation|Get-PnpDevice|Get-PnpDeviceProperty|Get-PrintConfiguration|Get-Printer|Get-PrinterDriver|Get-PrinterPort|Get-PrinterProperty|Get-PrintJob|Get-PromptPath|Get-PSRepository|Get-PSRepository|Get-PSRepository|Get-ResiliencySetting|Get-ScheduledTask|Get-ScheduledTaskInfo|Get-ShortPath|Get-SmbBandWidthLimit|Get-SmbClientConfiguration|Get-SmbClientNetworkInterface|Get-SmbConnection|Get-SmbDelegation|Get-SmbGlobalMapping|Get-SmbMapping|Get-SmbMultichannelConnection|Get-SmbMultichannelConstraint|Get-SmbOpenFile|Get-SmbServerCertificateMapping|Get-SmbServerConfiguration|Get-SmbServerNetworkInterface|Get-SmbSession|Get-SmbShare|Get-SmbShareAccess|Get-SmbWitnessClient|Get-SshAgent|Get-SshPath|Get-StartApps|Get-StorageAdvancedProperty|Get-StorageBusBinding|Get-StorageBusDisk|Get-StorageChassis|Get-StorageDiagnosticInfo|Get-StorageEnclosure|Get-StorageEnclosureStorageNodeView|Get-StorageEnclosureVendorData|Get-StorageExtendedStatus|Get-StorageFaultDomain|Get-StorageFileServer|Get-StorageFirmwareInformation|Get-StorageHealthAction|Get-StorageHealthReport|Get-StorageHealthSetting|Get-StorageHistory|Get-StorageJob|Get-StorageNode|Get-StoragePool|Get-StorageProvider|Get-StorageRack|Get-StorageReliabilityCounter|Get-StorageScaleUnit|Get-StorageSetting|Get-StorageSite|Get-StorageSubSystem|Get-StorageTier|Get-StorageTierSupportedSize|Get-SupportedClusterSizes|Get-SupportedFileSystems|Get-TargetPort|Get-TargetPortal|Get-TestDriveItem|Get-Theme|Get-ThemesLocation|Get-VcsInfo|Get-VCSStatus|Get-Verb|Get-VirtualDisk|Get-VirtualDiskSupportedSize|Get-VirtualEnvName|Get-Volume|Get-VolumeCorruptionCount|Get-VolumeScrubPolicy|Get-VpnConnection|Get-VpnConnectionTrigger|Get-WdacBidTrace|Get-WindowsUpdateLog|Get-WUAVersion|Get-WUIsPendingReboot|Get-WULastInstallationDate|Get-WULastScanSuccessDate|Grant-FileShareAccess|Grant-SmbShareAccess|H:|help|Hide-VirtualDisk|I:|Import-IseSnippet|Import-PowerShellDataFile|ImportSystemModules|In|Initialize-Disk|InModuleScope|Install-Dtc|Install-Module|Install-Module|Install-Module|Install-Script|Install-Script|Install-Script|Install-WUUpdates|Invoke-AsWorkflow|Invoke-Mock|Invoke-NullCoalescing|Invoke-OperationValidation|Invoke-Pester|It|J:|K:|L:|Lock-BitLocker|M:|mkdir|Mock|more|Mount-DiskImage|Move-SmbWitnessClient|N:|New-AutologgerConfig|New-DAEntryPointTableItem|New-DscChecksum|New-EapConfiguration|New-EtwTraceSession|New-FileShare|New-Fixture|New-Guid|New-IscsiTargetPortal|New-IseSnippet|New-MaskingSet|New-NetAdapterAdvancedProperty|New-NetEventSession|New-NetFirewallRule|New-NetIPAddress|New-NetIPHttpsConfiguration|New-NetIPsecDospSetting|New-NetIPsecMainModeCryptoSet|New-NetIPsecMainModeRule|New-NetIPsecPhase1AuthSet|New-NetIPsecPhase2AuthSet|New-NetIPsecQuickModeCryptoSet|New-NetIPsecRule|New-NetLbfoTeam|New-NetNat|New-NetNatTransitionConfiguration|New-NetNeighbor|New-NetQosPolicy|New-NetRoute|New-NetSwitchTeam|New-NetTransportFilter|New-NetworkSwitchVlan|New-Partition|New-PesterOption|New-PSWorkflowSession|New-ScheduledTask|New-ScheduledTaskAction|New-ScheduledTaskPrincipal|New-ScheduledTaskSettingsSet|New-ScheduledTaskTrigger|New-ScriptFileInfo|New-ScriptFileInfo|New-ScriptFileInfo|New-SmbGlobalMapping|New-SmbMapping|New-SmbMultichannelConstraint|New-SmbServerCertificateMapping|New-SmbShare|New-StorageBusBinding|New-StorageBusCacheStore|New-StorageFileServer|New-StoragePool|New-StorageSubsystemVirtualDisk|New-StorageTier|New-TemporaryFile|New-VirtualDisk|New-VirtualDiskClone|New-VirtualDiskSnapshot|New-Volume|New-VpnServerAddress|O:|Open-NetGPO|Optimize-StoragePool|Optimize-Volume|oss|Out-Default|P:|Pause|prompt|PSConsoleHostReadLine|Publish-Module|Publish-Module|Publish-Module|Publish-Script|Publish-Script|Publish-Script|Q:|R:|Read-PrinterNfcTag|Register-ClusteredScheduledTask|Register-DnsClient|Register-IscsiSession|Register-PSRepository|Register-PSRepository|Register-PSRepository|Register-ScheduledTask|Register-StorageSubsystem|Remove-AutologgerConfig|Remove-BitLockerKeyProtector|Remove-DAEntryPointTableItem|Remove-DnsClientNrptRule|Remove-DscConfigurationDocument|Remove-DtcClusterTMMapping|Remove-EtwTraceProvider|Remove-FileShare|Remove-HnsEndpoint|Remove-HnsNamespace|Remove-HnsNetwork|Remove-HnsPolicyList|Remove-InitiatorId|Remove-InitiatorIdFromMaskingSet|Remove-IscsiTargetPortal|Remove-MaskingSet|Remove-MpPreference|Remove-MpPreference|Remove-MpThreat|Remove-MpThreat|Remove-NetAdapterAdvancedProperty|Remove-NetEventNetworkAdapter|Remove-NetEventPacketCaptureProvider|Remove-NetEventProvider|Remove-NetEventSession|Remove-NetEventVFPProvider|Remove-NetEventVmNetworkAdapter|Remove-NetEventVmSwitch|Remove-NetEventVmSwitchProvider|Remove-NetEventWFPCaptureProvider|Remove-NetFirewallRule|Remove-NetIPAddress|Remove-NetIPHttpsCertBinding|Remove-NetIPHttpsConfiguration|Remove-NetIPsecDospSetting|Remove-NetIPsecMainModeCryptoSet|Remove-NetIPsecMainModeRule|Remove-NetIPsecMainModeSA|Remove-NetIPsecPhase1AuthSet|Remove-NetIPsecPhase2AuthSet|Remove-NetIPsecQuickModeCryptoSet|Remove-NetIPsecQuickModeSA|Remove-NetIPsecRule|Remove-NetLbfoTeam|Remove-NetLbfoTeamMember|Remove-NetLbfoTeamNic|Remove-NetNat|Remove-NetNatExternalAddress|Remove-NetNatStaticMapping|Remove-NetNatTransitionConfiguration|Remove-NetNeighbor|Remove-NetQosPolicy|Remove-NetRoute|Remove-NetSwitchTeam|Remove-NetSwitchTeamMember|Remove-NetTransportFilter|Remove-NetworkSwitchEthernetPortIPAddress|Remove-NetworkSwitchVlan|Remove-OdbcDsn|Remove-Partition|Remove-PartitionAccessPath|Remove-PhysicalDisk|Remove-Printer|Remove-PrinterDriver|Remove-PrinterPort|Remove-PrintJob|Remove-SmbBandwidthLimit|Remove-SmbGlobalMapping|Remove-SmbMapping|Remove-SmbMultichannelConstraint|Remove-SmbServerCertificateMapping|Remove-SmbShare|Remove-StorageBusBinding|Remove-StorageFaultDomain|Remove-StorageFileServer|Remove-StorageHealthIntent|Remove-StorageHealthSetting|Remove-StoragePool|Remove-StorageTier|Remove-TargetPortFromMaskingSet|Remove-VirtualDisk|Remove-VirtualDiskFromMaskingSet|Remove-VpnConnection|Remove-VpnConnectionRoute|Remove-VpnConnectionTriggerApplication|Remove-VpnConnectionTriggerDnsConfiguration|Remove-VpnConnectionTriggerTrustedNetwork|Rename-DAEntryPointTableItem|Rename-MaskingSet|Rename-NetAdapter|Rename-NetFirewallRule|Rename-NetIPHttpsConfiguration|Rename-NetIPsecMainModeCryptoSet|Rename-NetIPsecMainModeRule|Rename-NetIPsecPhase1AuthSet|Rename-NetIPsecPhase2AuthSet|Rename-NetIPsecQuickModeCryptoSet|Rename-NetIPsecRule|Rename-NetLbfoTeam|Rename-NetSwitchTeam|Rename-Printer|Repair-FileIntegrity|Repair-VirtualDisk|Repair-Volume|Reset-DAClientExperienceConfiguration|Reset-DAEntryPointTableItem|Reset-DtcLog|Reset-NCSIPolicyConfiguration|Reset-Net6to4Configuration|Reset-NetAdapterAdvancedProperty|Reset-NetDnsTransitionConfiguration|Reset-NetIPHttpsConfiguration|Reset-NetIsatapConfiguration|Reset-NetTeredoConfiguration|Reset-PhysicalDisk|Reset-StorageReliabilityCounter|Resize-Partition|Resize-StorageTier|Resize-VirtualDisk|Restart-NetAdapter|Restart-PcsvDevice|Restart-PrintJob|Restore-DscConfiguration|Restore-NetworkSwitchConfiguration|Resume-BitLocker|Resume-PrintJob|Resume-StorageBusDisk|Revoke-FileShareAccess|Revoke-SmbShareAccess|S:|SafeGetCommand|Save-EtwTraceSession|Save-Module|Save-Module|Save-Module|Save-NetGPO|Save-NetworkSwitchConfiguration|Save-Script|Save-Script|Save-Script|Send-EtwTraceSession|Set-ClusteredScheduledTask|Set-CursorForRightBlockWrite|Set-CursorUp|Set-DAClientExperienceConfiguration|Set-DAEntryPointTableItem|Set-Disk|Set-DnsClient|Set-DnsClientGlobalSetting|Set-DnsClientNrptGlobal|Set-DnsClientNrptRule|Set-DnsClientServerAddress|Set-DtcAdvancedHostSetting|Set-DtcAdvancedSetting|Set-DtcClusterDefault|Set-DtcClusterTMMapping|Set-DtcDefault|Set-DtcLog|Set-DtcNetworkSetting|Set-DtcTransaction|Set-DtcTransactionsTraceSession|Set-DtcTransactionsTraceSetting|Set-DynamicParameterVariables|Set-EtwTraceProvider|Set-FileIntegrity|Set-FileShare|Set-FileStorageTier|Set-InitiatorPort|Set-IscsiChapSecret|Set-LogProperties|Set-MMAgent|Set-MpPreference|Set-MpPreference|Set-NCSIPolicyConfiguration|Set-Net6to4Configuration|Set-NetAdapter|Set-NetAdapterAdvancedProperty|Set-NetAdapterBinding|Set-NetAdapterChecksumOffload|Set-NetAdapterEncapsulatedPacketTaskOffload|Set-NetAdapterIPsecOffload|Set-NetAdapterLso|Set-NetAdapterPacketDirect|Set-NetAdapterPowerManagement|Set-NetAdapterQos|Set-NetAdapterRdma|Set-NetAdapterRsc|Set-NetAdapterRss|Set-NetAdapterSriov|Set-NetAdapterUso|Set-NetAdapterVmq|Set-NetConnectionProfile|Set-NetDnsTransitionConfiguration|Set-NetEventPacketCaptureProvider|Set-NetEventProvider|Set-NetEventSession|Set-NetEventVFPProvider|Set-NetEventVmSwitchProvider|Set-NetEventWFPCaptureProvider|Set-NetFirewallAddressFilter|Set-NetFirewallApplicationFilter|Set-NetFirewallInterfaceFilter|Set-NetFirewallInterfaceTypeFilter|Set-NetFirewallPortFilter|Set-NetFirewallProfile|Set-NetFirewallRule|Set-NetFirewallSecurityFilter|Set-NetFirewallServiceFilter|Set-NetFirewallSetting|Set-NetIPAddress|Set-NetIPHttpsConfiguration|Set-NetIPInterface|Set-NetIPsecDospSetting|Set-NetIPsecMainModeCryptoSet|Set-NetIPsecMainModeRule|Set-NetIPsecPhase1AuthSet|Set-NetIPsecPhase2AuthSet|Set-NetIPsecQuickModeCryptoSet|Set-NetIPsecRule|Set-NetIPv4Protocol|Set-NetIPv6Protocol|Set-NetIsatapConfiguration|Set-NetLbfoTeam|Set-NetLbfoTeamMember|Set-NetLbfoTeamNic|Set-NetNat|Set-NetNatGlobal|Set-NetNatTransitionConfiguration|Set-NetNeighbor|Set-NetOffloadGlobalSetting|Set-NetQosPolicy|Set-NetRoute|Set-NetTCPSetting|Set-NetTeredoConfiguration|Set-NetUDPSetting|Set-NetworkSwitchEthernetPortIPAddress|Set-NetworkSwitchPortMode|Set-NetworkSwitchPortProperty|Set-NetworkSwitchVlanProperty|Set-Newline|Set-OdbcDriver|Set-OdbcDsn|Set-Partition|Set-PcsvDeviceBootConfiguration|Set-PcsvDeviceNetworkConfiguration|Set-PcsvDeviceUserPassword|Set-PhysicalDisk|Set-PrintConfiguration|Set-Printer|Set-PrinterProperty|Set-Prompt|Set-PSRepository|Set-PSRepository|Set-PSRepository|Set-ResiliencySetting|Set-ScheduledTask|Set-SmbBandwidthLimit|Set-SmbClientConfiguration|Set-SmbPathAcl|Set-SmbServerConfiguration|Set-SmbShare|Set-StorageBusProfile|Set-StorageFileServer|Set-StorageHealthSetting|Set-StoragePool|Set-StorageProvider|Set-StorageSetting|Set-StorageSubSystem|Set-StorageTier|Set-TestInconclusive|Set-Theme|Setup|Set-VirtualDisk|Set-Volume|Set-VolumeScrubPolicy|Set-VpnConnection|Set-VpnConnectionIPsecConfiguration|Set-VpnConnectionProxy|Set-VpnConnectionTriggerDnsConfiguration|Set-VpnConnectionTriggerTrustedNetwork|Should|Show-Colors|Show-NetFirewallRule|Show-NetIPsecRule|Show-StorageHistory|Show-ThemeColors|Show-ThemeSymbols|Show-VirtualDisk|Start-AppBackgroundTask|Start-AutologgerConfig|Start-Dtc|Start-DtcTransactionsTraceSession|Start-EtwTraceSession|Start-MpScan|Start-MpScan|Start-MpWDOScan|Start-MpWDOScan|Start-NetEventSession|Start-PcsvDevice|Start-ScheduledTask|Start-SshAgent|Start-StorageDiagnosticLog|Start-Trace|Start-WUScan|Stop-DscConfiguration|Stop-Dtc|Stop-DtcTransactionsTraceSession|Stop-EtwTraceSession|Stop-NetEventSession|Stop-PcsvDevice|Stop-ScheduledTask|Stop-SshAgent|Stop-StorageDiagnosticLog|Stop-StorageJob|Stop-Trace|Suspend-BitLocker|Suspend-PrintJob|Suspend-StorageBusDisk|Sync-NetIPsecRule|T:|TabExpansion|TabExpansion2|Test-Administrator|Test-Dtc|Test-NetConnection|Test-NotDefaultUser|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-VirtualEnv|tgit|U:|Unblock-FileShareAccess|Unblock-SmbShareAccess|Uninstall-Dtc|Uninstall-Module|Uninstall-Module|Uninstall-Module|Uninstall-Script|Uninstall-Script|Uninstall-Script|Unlock-BitLocker|Unregister-AppBackgroundTask|Unregister-ClusteredScheduledTask|Unregister-IscsiSession|Unregister-PSRepository|Unregister-PSRepository|Unregister-PSRepository|Unregister-ScheduledTask|Unregister-StorageSubsystem|Update-AllBranches|Update-AutologgerConfig|Update-Disk|Update-DscConfiguration|Update-EtwTraceSession|Update-HostStorageCache|Update-IscsiTarget|Update-IscsiTargetPortal|Update-Module|Update-Module|Update-Module|Update-ModuleManifest|Update-ModuleManifest|Update-ModuleManifest|Update-MpSignature|Update-MpSignature|Update-NetIPsecRule|Update-Script|Update-Script|Update-Script|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-SmbMultichannelConnection|Update-StorageFirmware|Update-StoragePool|Update-StorageProviderCache|V:|vimdiff|W:|Write-ColorPreview|Write-DtcTransactionsTraceSession|Write-GitStatus|Write-PrinterNfcTag|Write-Prompt|Write-VcsStatus|Write-VolumeCache|Write-WithPrompt|X:|Y:|Z:|Add-AppxPackage|Add-AppxProvisionedPackage|Add-AppxVolume|Add-BitsFile|Add-CertificateEnrollmentPolicyServer|Add-Computer|Add-Content|Add-History|Add-JobTrigger|Add-KdsRootKey|Add-LocalGroupMember|Add-Member|Add-PSSnapin|Add-Type|Add-WindowsCapability|Add-WindowsDriver|Add-WindowsImage|Add-WindowsPackage|Checkpoint-Computer|Clear-Content|Clear-EventLog|Clear-History|Clear-Item|Clear-ItemProperty|Clear-KdsCache|Clear-RecycleBin|Clear-Tpm|Clear-Variable|Clear-WindowsCorruptMountPoint|Compare-Object|Complete-BitsTransfer|Complete-DtcDiagnosticTransaction|Complete-Transaction|Confirm-SecureBootUEFI|Connect-PSSession|Connect-WSMan|ConvertFrom-Csv|ConvertFrom-Json|ConvertFrom-SecureString|ConvertFrom-String|ConvertFrom-StringData|Convert-Path|Convert-String|ConvertTo-Csv|ConvertTo-Html|ConvertTo-Json|ConvertTo-ProcessMitigationPolicy|ConvertTo-SecureString|ConvertTo-TpmOwnerAuth|ConvertTo-Xml|Copy-Item|Copy-ItemProperty|Debug-Job|Debug-Process|Debug-Runspace|Delete-DeliveryOptimizationCache|Disable-AppBackgroundTaskDiagnosticLog|Disable-ComputerRestore|Disable-JobTrigger|Disable-LocalUser|Disable-PSBreakpoint|Disable-PSRemoting|Disable-PSSessionConfiguration|Disable-RunspaceDebug|Disable-ScheduledJob|Disable-TlsCipherSuite|Disable-TlsEccCurve|Disable-TlsSessionTicketKey|Disable-TpmAutoProvisioning|Disable-WindowsErrorReporting|Disable-WindowsOptionalFeature|Disable-WSManCredSSP|Disconnect-PSSession|Disconnect-WSMan|Dismount-AppxVolume|Dismount-WindowsImage|Enable-AppBackgroundTaskDiagnosticLog|Enable-ComputerRestore|Enable-JobTrigger|Enable-LocalUser|Enable-PSBreakpoint|Enable-PSRemoting|Enable-PSSessionConfiguration|Enable-RunspaceDebug|Enable-ScheduledJob|Enable-TlsCipherSuite|Enable-TlsEccCurve|Enable-TlsSessionTicketKey|Enable-TpmAutoProvisioning|Enable-WindowsErrorReporting|Enable-WindowsOptionalFeature|Enable-WSManCredSSP|Enter-PSHostProcess|Enter-PSSession|Exit-PSHostProcess|Exit-PSSession|Expand-WindowsCustomDataImage|Expand-WindowsImage|Export-Alias|Export-BinaryMiLog|Export-Certificate|Export-Clixml|Export-Console|Export-Counter|Export-Csv|Export-FormatData|Export-ModuleMember|Export-PfxCertificate|Export-ProvisioningPackage|Export-PSSession|Export-StartLayout|Export-StartLayoutEdgeAssets|Export-TlsSessionTicketKey|Export-Trace|Export-WindowsCapabilitySource|Export-WindowsDriver|Export-WindowsImage|Find-Package|Find-PackageProvider|ForEach-Object|Format-Custom|Format-List|Format-SecureBootUEFI|Format-Table|Format-Wide|Get-Acl|Get-Alias|Get-AppxDefaultVolume|Get-AppxPackage|Get-AppxPackageManifest|Get-AppxProvisionedPackage|Get-AppxVolume|Get-AuthenticodeSignature|Get-BitsTransfer|Get-Certificate|Get-CertificateAutoEnrollmentPolicy|Get-CertificateEnrollmentPolicyServer|Get-CertificateNotificationTask|Get-ChildItem|Get-CimAssociatedInstance|Get-CimClass|Get-CimInstance|Get-CimSession|Get-Clipboard|Get-CmsMessage|Get-Command|Get-ComputerInfo|Get-ComputerRestorePoint|Get-Content|Get-ControlPanelItem|Get-Counter|Get-Credential|Get-Culture|Get-DAPolicyChange|Get-Date|Get-DeliveryOptimizationLog|Get-DeliveryOptimizationLogAnalysis|Get-Event|Get-EventLog|Get-EventSubscriber|Get-ExecutionPolicy|Get-FormatData|Get-Help|Get-History|Get-Host|Get-HotFix|Get-Item|Get-ItemProperty|Get-ItemPropertyValue|Get-Job|Get-JobTrigger|Get-KdsConfiguration|Get-KdsRootKey|Get-LocalGroup|Get-LocalGroupMember|Get-LocalUser|Get-Location|Get-Member|Get-Module|Get-NonRemovableAppsPolicy|Get-Package|Get-PackageProvider|Get-PackageSource|Get-PfxCertificate|Get-PfxData|Get-PmemDisk|Get-PmemPhysicalDevice|Get-PmemUnusedRegion|Get-Process|Get-ProcessMitigation|Get-ProvisioningPackage|Get-PSBreakpoint|Get-PSCallStack|Get-PSDrive|Get-PSHostProcessInfo|Get-PSProvider|Get-PSReadLineKeyHandler|Get-PSReadLineOption|Get-PSSession|Get-PSSessionCapability|Get-PSSessionConfiguration|Get-PSSnapin|Get-Random|Get-Runspace|Get-RunspaceDebug|Get-ScheduledJob|Get-ScheduledJobOption|Get-SecureBootPolicy|Get-SecureBootUEFI|Get-Service|Get-TimeZone|Get-TlsCipherSuite|Get-TlsEccCurve|Get-Tpm|Get-TpmEndorsementKeyInfo|Get-TpmSupportedFeature|Get-TraceSource|Get-Transaction|Get-TroubleshootingPack|Get-TrustedProvisioningCertificate|Get-TypeData|Get-UICulture|Get-Unique|Get-Variable|Get-WheaMemoryPolicy|Get-WIMBootEntry|Get-WinAcceptLanguageFromLanguageListOptOut|Get-WinCultureFromLanguageListOptOut|Get-WinDefaultInputMethodOverride|Get-WindowsCapability|Get-WindowsDeveloperLicense|Get-WindowsDriver|Get-WindowsEdition|Get-WindowsErrorReporting|Get-WindowsImage|Get-WindowsImageContent|Get-WindowsOptionalFeature|Get-WindowsPackage|Get-WindowsReservedStorageState|Get-WindowsSearchSetting|Get-WinEvent|Get-WinHomeLocation|Get-WinLanguageBarOption|Get-WinSystemLocale|Get-WinUILanguageOverride|Get-WinUserLanguageList|Get-WmiObject|Get-WSManCredSSP|Get-WSManInstance|Group-Object|Import-Alias|Import-BinaryMiLog|Import-Certificate|Import-Clixml|Import-Counter|Import-Csv|Import-LocalizedData|Import-Module|Import-PackageProvider|Import-PfxCertificate|Import-PSSession|Import-StartLayout|Import-TpmOwnerAuth|Initialize-PmemPhysicalDevice|Initialize-Tpm|Install-Package|Install-PackageProvider|Install-ProvisioningPackage|Install-TrustedProvisioningCertificate|Invoke-CimMethod|Invoke-Command|Invoke-CommandInDesktopPackage|Invoke-DscResource|Invoke-Expression|Invoke-History|Invoke-Item|Invoke-RestMethod|Invoke-TroubleshootingPack|Invoke-WebRequest|Invoke-WmiMethod|Invoke-WSManAction|Join-DtcDiagnosticResourceManager|Join-Path|Limit-EventLog|Measure-Command|Measure-Object|Mount-AppxVolume|Mount-WindowsImage|Move-AppxPackage|Move-Item|Move-ItemProperty|New-Alias|New-CertificateNotificationTask|New-CimInstance|New-CimSession|New-CimSessionOption|New-DtcDiagnosticTransaction|New-Event|New-EventLog|New-FileCatalog|New-Item|New-ItemProperty|New-JobTrigger|New-LocalGroup|New-LocalUser|New-Module|New-ModuleManifest|New-NetIPsecAuthProposal|New-NetIPsecMainModeCryptoProposal|New-NetIPsecQuickModeCryptoProposal|New-Object|New-PmemDisk|New-ProvisioningRepro|New-PSDrive|New-PSRoleCapabilityFile|New-PSSession|New-PSSessionConfigurationFile|New-PSSessionOption|New-PSTransportOption|New-PSWorkflowExecutionOption|New-ScheduledJobOption|New-SelfSignedCertificate|New-Service|New-TimeSpan|New-TlsSessionTicketKey|New-Variable|New-WebServiceProxy|New-WindowsCustomImage|New-WindowsImage|New-WinEvent|New-WinUserLanguageList|New-WSManInstance|New-WSManSessionOption|Optimize-AppxProvisionedPackages|Optimize-WindowsImage|Out-Default|Out-File|Out-GridView|Out-Host|Out-Null|Out-Printer|Out-String|Pop-Location|Protect-CmsMessage|Publish-DscConfiguration|Push-Location|Read-Host|Receive-DtcDiagnosticTransaction|Receive-Job|Receive-PSSession|Register-ArgumentCompleter|Register-CimIndicationEvent|Register-EngineEvent|Register-ObjectEvent|Register-PackageSource|Register-PSSessionConfiguration|Register-ScheduledJob|Register-WmiEvent|Remove-AppxPackage|Remove-AppxProvisionedPackage|Remove-AppxVolume|Remove-BitsTransfer|Remove-CertificateEnrollmentPolicyServer|Remove-CertificateNotificationTask|Remove-CimInstance|Remove-CimSession|Remove-Computer|Remove-Event|Remove-EventLog|Remove-Item|Remove-ItemProperty|Remove-Job|Remove-JobTrigger|Remove-LocalGroup|Remove-LocalGroupMember|Remove-LocalUser|Remove-Module|Remove-PmemDisk|Remove-PSBreakpoint|Remove-PSDrive|Remove-PSReadLineKeyHandler|Remove-PSSession|Remove-PSSnapin|Remove-TypeData|Remove-Variable|Remove-WindowsCapability|Remove-WindowsDriver|Remove-WindowsImage|Remove-WindowsPackage|Remove-WmiObject|Remove-WSManInstance|Rename-Computer|Rename-Item|Rename-ItemProperty|Rename-LocalGroup|Rename-LocalUser|Repair-WindowsImage|Reset-ComputerMachinePassword|Resolve-DnsName|Resolve-Path|Restart-Computer|Restart-Service|Restore-Computer|Resume-BitsTransfer|Resume-Job|Resume-ProvisioningSession|Resume-Service|Save-Help|Save-Package|Save-WindowsImage|Select-Object|Select-String|Select-Xml|Send-DtcDiagnosticTransaction|Send-MailMessage|Set-Acl|Set-Alias|Set-AppBackgroundTaskResourcePolicy|Set-AppxDefaultVolume|Set-AppXProvisionedDataFile|Set-AuthenticodeSignature|Set-BitsTransfer|Set-CertificateAutoEnrollmentPolicy|Set-CimInstance|Set-Clipboard|Set-Content|Set-Culture|Set-Date|Set-DeliveryOptimizationStatus|Set-DODownloadMode|Set-DOPercentageMaxBackgroundBandwidth|Set-DOPercentageMaxForegroundBandwidth|Set-DscLocalConfigurationManager|Set-ExecutionPolicy|Set-Item|Set-ItemProperty|Set-JobTrigger|Set-KdsConfiguration|Set-LocalGroup|Set-LocalUser|Set-Location|Set-NonRemovableAppsPolicy|Set-PackageSource|Set-ProcessMitigation|Set-PSBreakpoint|Set-PSDebug|Set-PSReadLineKeyHandler|Set-PSReadLineOption|Set-PSSessionConfiguration|Set-ScheduledJob|Set-ScheduledJobOption|Set-SecureBootUEFI|Set-Service|Set-StrictMode|Set-TimeZone|Set-TpmOwnerAuth|Set-TraceSource|Set-Variable|Set-WheaMemoryPolicy|Set-WinAcceptLanguageFromLanguageListOptOut|Set-WinCultureFromLanguageListOptOut|Set-WinDefaultInputMethodOverride|Set-WindowsEdition|Set-WindowsProductKey|Set-WindowsReservedStorageState|Set-WindowsSearchSetting|Set-WinHomeLocation|Set-WinLanguageBarOption|Set-WinSystemLocale|Set-WinUILanguageOverride|Set-WinUserLanguageList|Set-WmiInstance|Set-WSManInstance|Set-WSManQuickConfig|Show-Command|Show-ControlPanelItem|Show-EventLog|Show-WindowsDeveloperLicenseRegistration|Sort-Object|Split-Path|Split-WindowsImage|Start-BitsTransfer|Start-DscConfiguration|Start-DtcDiagnosticResourceManager|Start-Job|Start-OSUninstall|Start-Process|Start-Service|Start-Sleep|Start-Transaction|Start-Transcript|Stop-Computer|Stop-DtcDiagnosticResourceManager|Stop-Job|Stop-Process|Stop-Service|Stop-Transcript|Suspend-BitsTransfer|Suspend-Job|Suspend-Service|Switch-Certificate|Tee-Object|Test-Certificate|Test-ComputerSecureChannel|Test-Connection|Test-DscConfiguration|Test-FileCatalog|Test-KdsRootKey|Test-ModuleManifest|Test-Path|Test-PSSessionConfigurationFile|Test-WSMan|Trace-Command|Unblock-File|Unblock-Tpm|Undo-DtcDiagnosticTransaction|Undo-Transaction|Uninstall-Package|Uninstall-ProvisioningPackage|Uninstall-TrustedProvisioningCertificate|Unprotect-CmsMessage|Unregister-Event|Unregister-PackageSource|Unregister-PSSessionConfiguration|Unregister-ScheduledJob|Unregister-WindowsDeveloperLicense|Update-DscConfiguration|Update-FormatData|Update-Help|Update-List|Update-TypeData|Update-WIMBootEntry|Use-Transaction|Use-WindowsUnattend|Wait-Debugger|Wait-Event|Wait-Job|Wait-Process|Where-Object|Write-Debug|Write-Error|Write-EventLog|Write-Host|Write-Information|Write-Output|Write-Progress|Write-Verbose|Write-Warning)\>" + +## Functions +icolor brightyellow "\" + +## Comparison operators +icolor brightyellow "-\<(eq|ne|gt|lt|ge|le|like|notlike|match|notmatch|contains|notcontains|in|notin|replace|is|isnot)\>" + +## Variables +icolor brightred "\$[a-zA-Z0-9_]+" + +## Statements +icolor brightcyan "\<(if|do|else|elseif|for|foreach|switch|until|while)\>" + +## Comments +color brightblue "#.*$" +color brightblue start="<#" end="#>" + +## Quoted text +color brightwhite "\"[^\"]*\"" +color brightwhite "'[^']*'" + +## Text between %'s and @'s +icolor brightmagenta "\%[^\%]*\%" +icolor brightmagenta start="@\"" end="\"@" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/privoxy.nanorc b/Nano/Nano-Syntax-Highlighting/privoxy.nanorc new file mode 100644 index 0000000..6f1f609 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/privoxy.nanorc @@ -0,0 +1,27 @@ +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 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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/properties.nanorc b/Nano/Nano-Syntax-Highlighting/properties.nanorc new file mode 100644 index 0000000..bb75d45 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/properties.nanorc @@ -0,0 +1,6 @@ +syntax "properties" "\.properties$" +# property key +icolor green "^[^:=]+[:=]" + +# comments +icolor blue "([[:space:]])*[#!].*$" diff --git a/Nano/Nano-Syntax-Highlighting/pug.nanorc b/Nano/Nano-Syntax-Highlighting/pug.nanorc new file mode 100644 index 0000000..a1855c0 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/pug.nanorc @@ -0,0 +1,45 @@ +syntax "Pug" "\.pug$" +# Elements +color yellow "^\s*([a-z0-9]+)" +# Main elements +color red "^\s*(html|head|body)" +# Includes +icolor magenta "^\s*(include)" +# Variables +color brightblue "^\s*(\-)\s(var)\s([a-z0-9]+)" +icolor magenta "^\s*-\s(var)$" "^\s*-\s(var)\s" +# Cases +color brightblue "^\s*(case)\s(.*)" +color cyan "^\s*(when)\s(.*)" +icolor magenta "^\s*(case|when|default)$" "^\s*(case|when|default)\s" +color brightred "^\s*-\s(break)$" "^\s*-\s(break)\s" +# Conditionals +icolor magenta "^\s*(if|else|else if)$" "^\s*(if|else|else if)\s" +# For loops +icolor magenta "^\s*-\s(for)" +# Each +icolor magenta "^\s*(each)$" "^\s*(each)\s" +# Parenthesis content +color blue start="\(" end="\)" +# Strings +color cyan "('[^']*')|(\"[^\"]*\")" +# Parenthesis, commas, equals +icolor green "\(" "\)" "\," "\=" +# Comments, dashes and spaces +color blue "\s+(//.*)" +color blue start="^\s*/\*" end="\*/" +color white "^\s*(\-)" +color ,green "[[:space:]]+$" +# Unbuffered comments +color brightblue "\s+(//-.*)" +# HTML-style conditional comments +color brightmagenta start="" +color brightmagenta "" +# HTML-style elements +color yellow "<([^!].*)>" +# Pipes +color yellow,magenta "\|" +# Doctype +color brightblack "^\s*(doctype)(.*)" +# Links +icolor brightgreen "https?:\/\/(www\.)?[a-zA-Z0-9@%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)" "_blank" diff --git a/Nano/Nano-Syntax-Highlighting/puppet.nanorc b/Nano/Nano-Syntax-Highlighting/puppet.nanorc new file mode 100644 index 0000000..8511dc5 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/puppet.nanorc @@ -0,0 +1,38 @@ +## Nano syntax highlighting for Puppet. +## +syntax "Puppet" "\.pp$" + +#This goes first, so the normal builtins will override in some classes +## Paramerers +color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)" +color brightgreen "\$[a-z:][a-z0-9_:]+" + +## List of built in types, also catches defines +color yellow "\<(augeas|computer|cron|exec|file|filebucket|group|host|interface|k5login|macauthorization|mailalias|maillist|mcx|mount|nagios_command|nagios_contact|nagios_contactgroup|nagios_host|nagios_hostdependency|nagios_hostescalation|nagios_hostextinfo|nagios_hostgroup|nagios_service|nagios_servicedependency|nagios_serviceescalation|nagios_serviceextinfo|nagios_servicegroup|nagios_timeperiod|notify|package|resources|router|schedule|scheduled_task|selboolean|selmodule|service|ssh_authorized_key|sshkey|stage|tidy|user|vlan|yumrepo|zfs|zone|zpool|anchor)\>" +color yellow "\<(class|define|if|else|undef|inherits)\>" +color red "(=|-|~|>)" + +## Constants +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +## Ruby "symbols" +color magenta "([ ]|^):[0-9A-Z_]+\>" +## Regular expressions +color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +## Shell command expansion is in `backticks` or like %x{this}. These are +## "double-quotish" (to use a perlism). +color brightblue "`[^`]*`" "%x\{[^}]*\}" +## Strings, double-quoted +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +## Expression substitution. These go inside double-quoted strings, +## "like ${this}". +color brightgreen "\$\{[^}]*\}" +## Strings, single-quoted +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +## Comments +color cyan "#[^{].*$" "#$" +color brightcyan "##[^{].*$" "##$" +## Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +## Trailing spaces +color ,green "[[:space:]]+$" + diff --git a/Nano/Nano-Syntax-Highlighting/python.nanorc b/Nano/Nano-Syntax-Highlighting/python.nanorc new file mode 100644 index 0000000..014b26b --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/python.nanorc @@ -0,0 +1,56 @@ +## Python syntax highlighting rules for Nano + +syntax "python" "\.py$" +header "^#!.*/(env +)?python[-0-9._]*( |$)" +magic "Python script" +comment "#" + +linter pyflakes + +## built-in objects +color cyan "\<(None|self|True|False)\>" +## built-in attributes +color cyan "\<(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\>" +## built-in functions +color cyan "\<(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|exec|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|print|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip|bool)\>" +## built-in functions that were previously keywords +color brightblue "\<(print|exec)\>([[:space:]]|$)" +## special method names +color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__|__bool__)\>" +## exception classes +color cyan "\<(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\>" +## types +color brightcyan "\<(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringType|UnicodeType|BufferType|TupleType|ListType|DictType|FunctionType|LambdaType|CodeType|ClassType|UnboundMethodType|InstanceType|MethodType|BuiltinFunctionType|BuiltinMethodType|ModuleType|FileType|XRangeType|TracebackType|FrameType|SliceType|EllipsisType)\>" +## definitions +color brightcyan "def [a-zA-Z_0-9]+" +## keywords +color brightblue "\<(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|raise|return|try|with|while|yield)\>" + +## decorators +color brightgreen "@.*[(]" + +## operators +color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" + +## parentheses +color magenta "[(){}]" "\[" "\]" + +## numbers +icolor brightyellow "\b(([1-9][0-9]+)|0+)\.[0-9]+j?\b" "\b([1-9][0-9]*[Lj]?)\b" "\b0o?[0-7]*L?\b" "\b0x[1-9a-f][0-9a-f]*L?\b" "\b0b[01]+\b" + + +## strings +color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" + +## comments +color green "^#.*|[[:space:]]#.*$" + +## block comments +color yellow start=""""[^"]" end=""""" start="'''[^']" end="'''" + +## trailing spaces +color ,green "[[:space:]]+$" + +## reminders +color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/Nano/Nano-Syntax-Highlighting/reST.nanorc b/Nano/Nano-Syntax-Highlighting/reST.nanorc new file mode 100644 index 0000000..c0152fd --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/reST.nanorc @@ -0,0 +1,27 @@ +## For reST +syntax "RST" "\.rest$" "\.rst$" +# italics +#color magenta "\*[^*]\*" +# bold +color red "\*\*[^*]+\*\*" +# code block +color brightred "::" +# link reference +color blue "`[^`]+`_{1,2}" +# code +color yellow "``[^`]+``" +# directives or comments +color cyan "^\.\. .*$" +# anon link targets +color cyan "^__ .*$" +# h1 +color yellow "^###+$" +color yellow "^\*\*\*+$" +# h2 +color magenta "^===+$" +# h3 +color red "^---+$" +# h4 +color green "^\^\^\^+$" +# h5 +color blue "^"""+$" diff --git a/Nano/Nano-Syntax-Highlighting/rego.nanorc b/Nano/Nano-Syntax-Highlighting/rego.nanorc new file mode 100644 index 0000000..f48673a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/rego.nanorc @@ -0,0 +1,22 @@ +# Syntax highlighting for Rego (https://www.openpolicyagent.org/) + +syntax "Rego" "\.rego" +comment "#" + +## Reserved words +color cyan "\<(as|default|else|import|package|not|some|with)\>" +color brightblue "\<(false|null|true)\>" + +## Built-ins +### Generated from `cat v0.25.2.json | jq -r .builtins[].name | tr '\n' '|'` +color yellow "\<(abs|all|and|any|array.concat|array.slice|assign|base64.decode|base64.encode|base64.is_valid|base64url.decode|base64url.encode|base64url.encode_no_pad|bits.and|bits.lsh|bits.negate|bits.or|bits.rsh|bits.xor|cast_array|cast_boolean|cast_null|cast_object|cast_set|cast_string|concat|contains|count|crypto.md5|crypto.sha1|crypto.sha256|crypto.x509.parse_certificate_request|crypto.x509.parse_certificates|div|endswith|eq|equal|format_int|glob.match|glob.quote_meta|graph.reachable|gt|gte|hex.decode|hex.encode|http.send|indexof|intersection|io.jwt.decode|io.jwt.decode_verify|io.jwt.encode_sign|io.jwt.encode_sign_raw|io.jwt.verify_es256|io.jwt.verify_es384|io.jwt.verify_es512|io.jwt.verify_hs256|io.jwt.verify_hs384|io.jwt.verify_hs512|io.jwt.verify_ps256|io.jwt.verify_ps384|io.jwt.verify_ps512|io.jwt.verify_rs256|io.jwt.verify_rs384|io.jwt.verify_rs512|is_array|is_boolean|is_null|is_number|is_object|is_set|is_string|json.filter|json.is_valid|json.marshal|json.patch|json.remove|json.unmarshal|lower|lt|lte|max|min|minus|mul|neq|net.cidr_contains|net.cidr_contains_matches|net.cidr_expand|net.cidr_intersects|net.cidr_merge|net.cidr_overlap|numbers.range|object.filter|object.get|object.remove|object.union|opa.runtime|or|plus|product|re_match|regex.find_all_string_submatch_n|regex.find_n|regex.globs_match|regex.is_valid|regex.match|regex.split|regex.template_match|rego.parse_module|rem|replace|round|semver.compare|semver.is_valid|set_diff|sort|split|sprintf|startswith|strings.replace_n|substring|sum|time.add_date|time.clock|time.date|time.now_ns|time.parse_duration_ns|time.parse_ns|time.parse_rfc3339_ns|time.weekday|to_number|trace|trim|trim_left|trim_prefix|trim_right|trim_space|trim_suffix|type_name|union|units.parse_bytes|upper|urlquery.decode|urlquery.decode_object|urlquery.encode|urlquery.encode_object|uuid.rfc4122|walk|yaml.is_valid|yaml.marshal|yaml.unmarshal)\>" + +# Numbers +color purple "\<([0-9]+)\>" + +# Strings +color green ""(\\.|[^"])*"" +color green "`(\\.|[^\\`])*`" + +## Comments +color brightblack "^\s*#.*" diff --git a/Nano/Nano-Syntax-Highlighting/rpmspec.nanorc b/Nano/Nano-Syntax-Highlighting/rpmspec.nanorc new file mode 100644 index 0000000..eab8ee5 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/rpmspec.nanorc @@ -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:?" diff --git a/Nano/Nano-Syntax-Highlighting/ruby.nanorc b/Nano/Nano-Syntax-Highlighting/ruby.nanorc new file mode 100644 index 0000000..7e8aef1 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/ruby.nanorc @@ -0,0 +1,37 @@ +## Here is an example for Ruby. +## +syntax "Ruby" "\.rb$" "Gemfile" "config.ru" "Rakefile" "Capfile" "Vagrantfile" +header "^#!.*/(env +)?ruby( |$)" +magic "Ruby script" +linter ruby -w -c +comment "#" + +## Asciibetical list of reserved words +color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" +## Constants +color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +## Ruby "symbols" +icolor magenta "([ ]|^):[0-9A-Z_]+\>" +## Some unique things we want to stand out +color brightyellow "\<(__FILE__|__LINE__)\>" +## Regular expressions +color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +## Shell command expansion is in `backticks` or like %x{this}. These are +## "double-quotish" (to use a perlism). +color brightblue "`[^`]*`" "%x\{[^}]*\}" +## Strings, double-quoted +color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +## Expression substitution. These go inside double-quoted strings, +## "like #{this}". +color brightgreen "#\{[^}]*\}" +## Strings, single-quoted +color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +## Comments +color cyan "#[^{].*$" "#$" +color brightcyan "##[^{].*$" "##$" +## "Here" docs +color green start="<<-?'?EOT'?" end="^EOT" +## Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/rust.nanorc b/Nano/Nano-Syntax-Highlighting/rust.nanorc new file mode 100644 index 0000000..88a0be8 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/rust.nanorc @@ -0,0 +1,42 @@ +# Nano configuration for Rust +# Copyright 2015 The Rust Project Developers. +# +# NOTE: Rules are applied in order: later rules re-colorize matching text. + + +syntax "Rust" "\.rs" +comment "//" + +# function definition +color magenta "fn [a-z0-9_]+" + +# Reserved words +color yellow "\<(abstract|alignof|as|become|box|break|const|continue|crate|do|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|offsetof|override|priv|pub|pure|ref|return|sizeof|static|self|struct|super|true|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\>" + +# macros +color red "[a-z_]+!" + +# Constants +color magenta "[A-Z][A-Z_]+" + +# Traits/Enums/Structs/Types/etc. +color magenta "[A-Z][a-z]+" + +# Strings +color green "\".*\"" +color green start="\".*\\$" end=".*\"" +# NOTE: This isn't accurate but matching "#{0,} for the end of the string is too liberal +color green start="r#+\"" end="\"#+" + +# Comments +color blue "^\s*//.*" +color blue start="^\s*/\*" end="\*/" + +# Attributes +color magenta start="#!\[" end="\]" + +# Some common markers +color brightcyan "(XXX|TODO|FIXME|\?\?\?)" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/scala.nanorc b/Nano/Nano-Syntax-Highlighting/scala.nanorc new file mode 100644 index 0000000..53fc5f7 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/scala.nanorc @@ -0,0 +1,12 @@ +## Here is an example for Scala. +## +syntax "Scala" "\.(scala|sc|sbt)$" +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)\>" +color red ""[^"]*"" +color yellow "\<(true|false|null)\>" +color blue "^\s*//.*" +color blue start="^\s*/\*" end="\*/" +color brightblue start="/\*\*" end="\*/" +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/sed.nanorc b/Nano/Nano-Syntax-Highlighting/sed.nanorc new file mode 100644 index 0000000..286c8ca --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/sed.nanorc @@ -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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/sh.nanorc b/Nano/Nano-Syntax-Highlighting/sh.nanorc new file mode 100644 index 0000000..febc22c --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/sh.nanorc @@ -0,0 +1,23 @@ +## Here is an example for Bourne shell scripts. +## +syntax "SH" "\.sh$" "\.ash" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_login" "\.bash_logout" "\.bash_profile" "bash_profile" "\.profile" "revise\..+$" +header "^#!.*/(env +)?(ba|da|a)?sh( |$)" +magic "(POSIX|Bourne-Again) shell script.*text" +comment "#" + +linter dash -n + +## keywords: +color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>" +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +## builtins: +color brightblue "\<(alias|bg|bind|break|builtin|caller|cd|command|compgen|complete|compopt|continue|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|mapfile|popd|printf|pushd|pwd|read|readarray|readonly|return|set|shift|shopt|source|suspend|test|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)\>" +## not buitins: +## cat|chmod|chown|cp|env|grep|install|ln|make|mkdir|mv|rm|sed|tar|touch +icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color cyan "(^|[[:space:]])#.*$" +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/sieve.nanorc b/Nano/Nano-Syntax-Highlighting/sieve.nanorc new file mode 100644 index 0000000..d33eb48 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/sieve.nanorc @@ -0,0 +1,187 @@ +#syntax highlighting for the Sieve email filtering language +#based on: +# RFC's { 3894,5173,5228,5229,5230,5231,5232,5233 +# 5235,5260,5293,5435,5437,5463,5490,5703 +# 6009,6131,6134,6558,6609,7352,8579,8580 } +# vnd.dovecot { debug,execute,report } +# Spec Drafts { IETF Sieve Regex,Martin Sieve Notify +# Melnikov Sieve IMAPFlags } + +syntax Sieve "\.(siv|sieve)$" + +#-----------------------------# + +##control + #RFC 5228 (base spec) +icolor yellow "\<(stop|require)\>" + #RFC 5463 (ihave extension) +icolor yellow "\<(error)\>" + #RFC 6609 (include extension) +icolor yellow "\<(include)\>" + +#-----------------------------# + +##conditional + #RFC 5228 (base spec) +icolor brightgreen "\<(if|else|elsif)\>" + #RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure) +icolor brightgreen "\<(foreverypart)\>" + +#-----------------------------# + +##test modifiers + #RFC 5228 (base spec) +icolor brightred "\<(allof|anyof|true|false|not)\>" + +#-----------------------------# + +##tests + #RFC 5228 (base spec) +icolor brightcyan "\<(address|envelope|exists|header|size)\>" + #RFC 5173 (body extension) +icolor brightcyan "\<(body)\>" + #RFC 5183 (environment extension) +icolor brightcyan "\<(environment)\>" + #RFC 5232 (imap4flags extension) +icolor brightcyan "\<(hasflag)\>" + #RFC 5235 (spamtest and virustest extensions) +icolor brightcyan "\<(spamtest|virustest)\>" + #RFC 5260 (date and index extensions) +icolor brightcyan "\<(date|currentdate)\>" + #RFC 5437 (notification mechanism for xmpp) +icolor brightcyan "\<(notify_method_capability)\>" + #RFC 5463 (ihave extension) +icolor brightcyan "\<(ihave)\>" + #RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata) +icolor brightcyan "\<(mailboxexists|metadata|metadataexists)\>" +icolor brightcyan "\<(servermetadata|servermetadataexists)\>" + #RFC 6134 (extension for externally stored lists) +icolor brightcyan "\<(valid_ext_list)\>" + #RFC 7352 (extension for detecting duplicate deliveries) +icolor brightcyan "\<(duplicate)\>" + #RFC 8579 (extension for delivering to special-use mailboxes) +icolor brightcyan "\<(specialuse_exists)\>" + +#-----------------------------# + +##comparators + #RFC 5228 (base spec) +icolor cyan "\s:(contains|is|matches|over|under)\>" + +#-----------------------------# + +##match-types + #RFC 5228 (base spec) +icolor green "\s:(localpart|domain|all)\>" + #RFC 5231 (relational extension) +icolor green "\s:(count|value)\>" + #RFC 5233 (subaddress extension) +icolor green "\s:(user|detail)\>" + #RFC 5235 (spamtest and virustest extensions) +icolor green "\s:(percent)\>" + #RFC 5260 (date and index extensions) +icolor green "\s:(zone|originalzone|index|last)\>" + #RFC 6134 (extension for externally stored lists) +icolor green "\s:(list)\>" + #Draft IETF Sieve Regex 01 (regular expression extension) +icolor green "\s:(regex|quoteregex)\>" + +#-----------------------------# + +##variables + #RFC 5229" (variables extension) +color red "\$\{.*\}" + +#-----------------------------# + +##actions + #RFC 5228 (base spec) +icolor brightblue "\<(keep|fileinto|discard|reject|redirect)\>" + #RFC 5229 (variables extension) +icolor brightblue "\<(set)\>" + #RFC 5230 (vacation extension) +icolor brightblue "\<(vacation)\>" + #RFC 5232 (imap4flags extension) +icolor brightblue "\<(setflag|addflag|removeflag)\>" + #RFC 5293 (editheader extension) +icolor brightblue "\<(addheader|deleteheader)\>" + #RFC 5429 (reject and ereject extensions) +icolor brightblue "\<(reject|ereject)\>" + #RFC 5435 (extension for notifications) +icolor brightblue "\<(notify)\>" + #RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure) +icolor brightblue "\<(break|replace|enclose|extracttext)\>" + #RFC 6558 (extension for converting messages before delivery) +icolor brightblue "\<(convert)\>" + #RFC 6609 (include extension) +icolor brightblue "\<(return)\>" + #vnd.dovecot.debug (extension for logging debug messages) +icolor brightblue "\<(debug_log)\>" + #vnd.dovecot.execute (extension for external programs) +icolor brightblue "\<(pipe|filter|execute)\>" + #vnd.dovecot.report (extension for sending abuse feedback reports) +icolor brightblue "\<(report)\>" + #Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated] +icolor brightblue "\<(denotify)\>" + #Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated] +icolor brightblue "\<(mark|unmark)\>" + +#-----------------------------# + +##modifiers, parameters, etc. + #RFC 5228 (base spec) +icolor magenta "\s:(comparator)\>" + #RFC 3894 (extension for copying without side effects) +icolor magenta "\s:(copy)\>" + #RFC 5173 (body extension) +icolor magenta "\s:(raw|content|text)\>" + #RFC 5229 (variables extension) +icolor magenta "\s:(length|quotewildcard)\>" +icolor magenta "\s:(upper|lower|upperfirst|lowerfirst)\>" + #RFC 5230 (vacation extension) +icolor magenta "\s:(days|subject|from|addresses|handle)\>" + #RFC 5232 (imap4flags extension) +icolor magenta "\s:(flags)\>" + #RFC 5435 (extension for notifications) +icolor magenta "\s:(from|importance|options|message)\>" + #RFC 5490 (extensions for checking mailbox status and accessing mailbox metadata) +icolor magenta "\s:(create)\>" + #RFC 5703 (extensions for mime part tests, iteration, extraction, replacement, and enclosure) +icolor magenta "\s:(name|mime|anychild|type|subtype)\>" +icolor magenta "\s:(contenttype|param|headers|first)\>" + #RFC 6009 (dsn and deliver-by extensions) +icolor magenta "\s:(notify|ret|bymode|bytrace)\>" +icolor magenta "\s:(bytimerelative|bytimeabsolute)\>" + #RFC 6131 (vacation extension seconds parameter) +icolor magenta "\s:(seconds)\>" + #RFC 6609 (include extension) +icolor magenta "\s:(once|optional|personal|global)\>" + #RFC 7352 (extension for detecting duplicate deliveries) +icolor magenta "\s:(header|uniqueid)\>" + #RFC 8579 (extension for delivering to special-use mailboxes) +icolor magenta "\s:(specialuse)\>" + #RFC 8580 (extension for file carbon copy) +icolor magenta "\s:(fcc)\>" + #vnd.dovecot.execute (extension for external programs) +icolor magenta "\s:(try|pipe|input|output)\>" + #Draft Martin Sieve Notify 01 (extension for providing instant notifications) [deprecated] +icolor magenta "\s:(method|id|low|normal|high)\>" + #Draft Melnikov Sieve IMAPFlags 04 (imap flag extension) [deprecated] +icolor magenta "\s:(globalflags)(_plus|_minus)?\>" + +#-----------------------------# + +##number (incl. proceeding K, M, or G) +icolor brightmagenta "\<[0-9]+[KMG]?\>" + +#-----------------------------# + +##comment +color blue "\#.*" + +#-----------------------------# + +##string +color brightyellow start="\"" end="\"" +color brightyellow start="\/\*" end="\*\/" +icolor brightyellow start="text\:.*" end="^.$" diff --git a/Nano/Nano-Syntax-Highlighting/sls.nanorc b/Nano/Nano-Syntax-Highlighting/sls.nanorc new file mode 100644 index 0000000..c8affff --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/sls.nanorc @@ -0,0 +1,29 @@ +## SaltStack files (*.sls) +## + +syntax "Salt" "\.sls$" + +# Anything ending in a colon (:), including things that start with a dash (-) +color blue "^[^ -].*:$" +color blue ".*:" +# Except for salt:// URLs +color white "salt:" + +# Numbers, etc +color red "/*[0-9]/*" +color red "\<(True|False)\>" + +# Anything between two single quotes +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" + +# Matching keywords +color yellow "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>" + +# Comments +color brightblack "^#.*" + +# Logic keywords +color magenta "\<(if|elif|else|or|not|and|endif|end)\>" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/sparql.nanorc b/Nano/Nano-Syntax-Highlighting/sparql.nanorc new file mode 100644 index 0000000..932b97e --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/sparql.nanorc @@ -0,0 +1,49 @@ +## SPARQL 1.1 and SPARQL 1.1 UPDATE +# +syntax "SPARQL" ".*\.(rq|sparql)$" + +icolor brightcyan "\<(ADD|AS|ASK)\>" +icolor brightcyan "\<(BIND|BY)\>" +icolor brightcyan "\<(CLEAR|CONSTRUCT|CREATE)\>" +icolor brightcyan "\<(DATA|DEFAULT|DELETE|DESCRIBE|DISTINCT|DROP)\>" +icolor brightcyan "\<(FILTER|FROM)\>" +icolor brightcyan "\<(GRAPH|GROUP)\>" +icolor brightcyan "\<(HAVING)\>" +icolor brightcyan "\<(INSERT)\>" +icolor brightcyan "\<(LIMIT|LOAD)\>" +icolor brightcyan "\<(MINUS|MOVE)\>" +icolor brightcyan "\<(NAMED|NOT)\>" +icolor brightcyan "\<(OFFSET|OPTIONAL|ORDER)\>" +icolor brightcyan "\<(PREFIX)\>" +icolor brightcyan "\<(REDUCED)\>" +icolor brightcyan "\<(SELECT|SERVICE|SILENT)\>" +icolor brightcyan "\<(TO)\>" +icolor brightcyan "\<(UPDATE|USING)\>" +icolor brightcyan "\<(VALUES)\>" +icolor brightcyan "\<(WHERE|WITH)\>" + +# functions +icolor brightmagenta "\<(ABS|AVG)\>" +icolor brightmagenta "\<(BNODE|BOUND)\>" +icolor brightmagenta "\<(CEIL|COALESCE|CONCAT|CONTAINS|COUNT)\>" +icolor brightmagenta "\<(DATATYPE|DAY)\>" +icolor brightmagenta "\<(ENCODE_FOR_URI|EXISTS)\>" +icolor brightmagenta "\<(FLOOR)\>" +icolor brightmagenta "\<(GROUP_CONCAT)\>" +icolor brightmagenta "\<(HOURS)\>" +icolor brightmagenta "\<(IF|IN|IRI|ISBLANK|ISIRI|ISLITERAL|ISNUMERIC)\>" +icolor brightmagenta "\<(LANG|LANGMATCHES|LCASE)\>" +icolor brightmagenta "\<(MAX|MD5|MIN|MINUTES|MONTH)\>" +icolor brightmagenta "\<(NOW)\>" +icolor brightmagenta "\<(RAND|REGEX|REPLACE|ROUND)\>" +icolor brightmagenta "\<(SAMETERM|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRLANG|STRLEN|STRSTARTS|STRUUID|SUBSTR|SUM)\>" +icolor brightmagenta "\<(TIMEZONE|TZ)\>" +icolor brightmagenta "\<(UCASE|UUID)\>" +icolor brightmagenta "\<(YEAR)\>" + +# variables, IRI +# +icolor cyan "\?\w+" +icolor brightgreen "<.+:[^ >]+>" +icolor green " \w+:" + diff --git a/Nano/Nano-Syntax-Highlighting/sql.nanorc b/Nano/Nano-Syntax-Highlighting/sql.nanorc new file mode 100644 index 0000000..1ebd574 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/sql.nanorc @@ -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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/svn.nanorc b/Nano/Nano-Syntax-Highlighting/svn.nanorc new file mode 100644 index 0000000..c2f89ab --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/svn.nanorc @@ -0,0 +1,14 @@ +syntax "svn-commit" "svn-commit(\.[[:digit:]]+)?\.tmp$" + +# commit message +color yellow ".*" + +# ignore after line EDITOR_EOF_PREFIX (see svn/util.c) +color brightblack "^--.+--$" + +# files changes +color white "^[ADM_](M|[[:space:]])[[:space:]](\+|[[:space:]])[[:space:]].*" +color red "^D[[:space:]]{4}" +color green "^[M_](M|[[:space:]])[[:space:]]{3}" +color brightgreen "^A(M|[[:space:]])[[:space:]]{3}" +color brightblue "^A(M|[[:space:]])[[:space:]]\+[[:space:]]" diff --git a/Nano/Nano-Syntax-Highlighting/swift.nanorc b/Nano/Nano-Syntax-Highlighting/swift.nanorc new file mode 100644 index 0000000..636441a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/swift.nanorc @@ -0,0 +1,64 @@ +############################################################################## +# Swift syntax highlighting for Nano. v.1.1 +############################################################################## + +syntax "Swift" "\.swift$" + +# Default +color white ".+" + +# Operators +color yellow "[.:;,+*|=!?\%]" "<" ">" "/" "-" "&" +color brightyellow "[!]" + +# Statements +color magenta "\<(class|import|let|var|struct|enum|func|if|else|switch|case|default|for|in|static|private|public|throws)\>" +color magenta "\<(lazy|get|set|self|willSet|didSet|override|super|convenience|weak|strong|mutating|return|guard)\>" +color magenta "\<(protocol|typealias|prefix|postfix|operator|extension|internal|external|unowned)\>" + +# Keywords +color cyan "\<(print)\>" +color magenta "\<(init)\>" + +# Attribute +color red "(@+[a-zA-Z]+)" + +# Numbers / Decimal Literal +color blue "\<([0-9]+)\>" +# Unicode Literal "U+" +color blue "\<(U\++[0-9A-Z]+)\>" +# Binary Literal "0b" +color blue "\<(0b+[0-1]+)\>" +# Octal Literal "0o" +color blue "\<(0o+[0-7]+)\>" +# Hexadecimal Literal "0x" +color blue "\<(0x+[0-9A-Fa-f]+)\>" + +# Standard Types +color brightmagenta "\<((U)?Int(8|16|32|64))\>" +color brightmagenta "\<(true|false|nil)\>" +color brightmagenta "\<(UInt|Int|Double|String|Float|Bool|Dictionary|Array|Character|Range|Set|Bit|RawByte|Slice)\>" +color brightmagenta "\<(UnicodeScalar|UnsafePointer|UnsafeMutablePointer)\>" +color magenta "\<(AnyObject)\>" + +# Standard Type Aliases and Protocols +color magenta "\<(AnyObject|AnyClass|GeneratorType|AnyGenerator|Element|Optional|Mirror)\>" +color magenta "\<(UnicodeScalarType|IntMax|UIntMax|Void|Any|Comparable|Equatable|Hashable|SequenceType)\>" + +# Standard Libraries +color cyan "\<(Foundation|Glibc|Darwin|XCTest)\>" + +# Text +color red ""[^"]*"" + +# Variable in Text +color white start="\\\(" end="\)" + +# Comments +color green "^\s*//.*" +color brightgreen "^\s*///.*" +color green start="/\*\*" end="\*/" +color green "[/**]" + +# Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/systemd.nanorc b/Nano/Nano-Syntax-Highlighting/systemd.nanorc new file mode 100644 index 0000000..0a2787a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/systemd.nanorc @@ -0,0 +1,12 @@ +syntax "Systemd" "\.(service|socket|timer)$" +header "^\[Unit\]$" + +color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|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|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectControlGroups|ProtectHome|ProtectKernelModules|ProtectKernelTunables|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RestrictAddressFamilies|RestrictNamespaces|RestrictRealtime|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|SystemCallArchitectures|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 green "^\.include\>" +color red "=" +color brightmagenta "^\[(Unit|Install|Service|Socket)\]" +color brightyellow "\$MAINPID" +color brightcyan "\<(true|false)\>" +color brightblue "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/tcl.nanorc b/Nano/Nano-Syntax-Highlighting/tcl.nanorc new file mode 100644 index 0000000..99c9ae0 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/tcl.nanorc @@ -0,0 +1,27 @@ +syntax "TCL" "\.tcl$" +header "^#!.*/(env +)?tclsh( |$)" + +magic "Tcl(/Tk)? script" +comment "#" + +## Standard Tcl [info commands] +color cyan "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|else|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>" +## Basic Tcl sub commands +color cyan "\<(array anymore|array donesearch|array exists|array get|array names|array nextelement|array set|array size|array startsearch|array statistics|array unset)\>" +color cyan "\<(string bytelength|string compare|string equal|string first|string index|string is|string last|string length|string map|string match|string range|string repeat|string replace|string to|string tolower|string totitle|string toupper|string trim|string trimleft|string trimright|string will|string wordend|string wordstart)\>" +## Extended TclX [info commands] +color cyan "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>" +## Function declaration +color brightblue "proc[[:space:]]" "(\{|\})" +## Syntax +color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)" +## Numbers +color brightyellow "\<[0-9]+(\.[0-9]+)?\>" +## Strings +color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +## Variables +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +## Comments +color magenta "(^|;)[[:space:]]*#.*" +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/tex.nanorc b/Nano/Nano-Syntax-Highlighting/tex.nanorc new file mode 100644 index 0000000..8b281d5 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/tex.nanorc @@ -0,0 +1,14 @@ +## Here is a short example for TeX files. +## +syntax "TeX" "\.tex$" "bib" "\.bib$" "cls" "\.cls$" +magic "(La)?TeX document" +comment "%" + +linter chktex -v0 -q -I + +color yellow "\$(\\\$|[^$])*[^\\]\$" +color yellow "\$\$(\\\$|[^$])*[^\\]\$\$" +icolor green "\\.|\\[A-Z]*" +color magenta "[{}]" +color blue "%.*" +color blue start="\\begin\{comment\}" end="\\end\{comment\}" diff --git a/Nano/Nano-Syntax-Highlighting/toml.nanorc b/Nano/Nano-Syntax-Highlighting/toml.nanorc new file mode 100644 index 0000000..3bafa74 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/toml.nanorc @@ -0,0 +1,54 @@ +syntax "toml" "\.toml$" +comment "#" + +# Booleans +color magenta "true|false" + +# Numbers +color green "[+-]?[[:space:]]*[0-9]+(\.[0-9]+)?([Ee][+-]?[0-9]+)?" +color green "[0-9]+(_[0-9]+)*" + +# Tables / unwrapped keys +color brightgreen "[a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)*" + +# Invalid Table names +color ,red "^[[:space:]]*\[\]" +color ,red "^[[:space:]]*\[[a-zA-Z0-9_]\.\]" +color ,red "^[[:space:]]*\[.*\.\..*\]" +color ,red "^[[:space:]]*\[\..*?\]" + +# Strings +color brightyellow ""(\.|[^"])*"" "'(\.|[^'])*'" +color yellow start="\"\"\"" end="\"\"\"" + +# Comments +color brightblue "#.*" + +# Keyless value +color ,red "^[[:space:]]*=.*" + +# Trailing whitespace +color ,green "[[:space:]]+$" + + +# MIT License + +# Copyright (c) 2017 Uninteresting Account + +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. diff --git a/Nano/Nano-Syntax-Highlighting/ts.nanorc b/Nano/Nano-Syntax-Highlighting/ts.nanorc new file mode 100644 index 0000000..b504c1e --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/ts.nanorc @@ -0,0 +1,47 @@ +syntax "typescript" "\.(ts)$" +header "^#!.*\/(env +)ts-node" + +## Default +color white "^.+$" + +## Decimal, octal and hexadecimal numbers +color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" + +## Floating point number with at least one digit before decimal point +color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" + +## Keywords +color green "\<(as|abstract|asserts|boolean|break|byte|case|catch)\>" +color green "\<(class|const|continue|debugger|default|delete|readonly)\>" +color green "\<(do|else|enum|export|extends|finally|final|for)\>" +color green "\<(from|function|goto|if|implements|import|instanceof)\>" +color green "\<(var|interface|int|in|is|infer|let|new|package|private)\>" +color green "\<(protected|public|return|static|super|switch)\>" +color green "\<(this|throw|try|typeof|type)\>" +color green "\<(void|while|with|yield)\>" +color green "\<(async|await)\>" +color green "\<(set|get)\>" +color green "\<(module|namespace)\>" +color green "\<(declare)\>" + +## Type specifiers +color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>" +color red "\<(Number|Object|RegExp|String)\>" +color red "\<(true|false)\>" + +## String +color brightyellow "L?\"(\\"|[^"])*\"" +color brightyellow "L?'(\'|[^'])*'" +color brightcyan "L?`(\`|[^`])*`" +color brightwhite,blue start="\$\{" end="\}" + +## Escapes +color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" + +## Comments +color magenta start="/\*" end="\*/" +color magenta "^\s*//.*$" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/twig.nanorc b/Nano/Nano-Syntax-Highlighting/twig.nanorc new file mode 100644 index 0000000..01bb24a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/twig.nanorc @@ -0,0 +1,41 @@ +## HTML syntax highlighting rules for Nano + +syntax "HTML" "\.html?(.j2)?(.twig)?$" +magic "HTML document" +comment "" + +## Emphasis tags +color brightwhite start="<([biu]|em|strong)[^>]*>" end="" + +## Tags +color cyan start="<" end=">" + +## Attributes +color brightblue "[[:space:]](abbr|accept(-charset)?|accesskey|action|[av]?link|alt|archive|axis|background|(bg)?color|border)=" +color brightblue "[[:space:]](cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)=" +color brightblue "[[:space:]](content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|enctype)=" +color brightblue "[[:space:]](for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)=" +color brightblue "[[:space:]](label|lang|longdesc|margin(height|width)|maxlength|media|method|multiple)=" +color brightblue "[[:space:]](name|nohref|noresize|noshade|object|on(click|focus|load|mouseover|keypress)|profile|readonly|rel|rev)=" +color brightblue "[[:space:]](rows(pan)?|rules|scheme|scope|scrolling|shape|size|span|src|standby|start|style|summary|pattern)=" +color brightblue "[[:space:]](tabindex|target|text|title|type|usemap|v?align|value(type)?|vspace|width|xmlns|xml:space)=" +color brightblue "[[:space:]](required|disabled|selected)[[:space:]=>]" + +## Strings +color yellow ""(\\.|[^"])*"" + +## Named character references and entities +color red "&#?[[:alnum:]]*;" + +## Template strings (not in the HTML spec, but very commonly used) +color magenta "\{[^\}]*\}\}?" +color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]" + +## Comments +color green start="" + +## Trailing spaces +color ,green "[[:space:]]+$" + +## Reminders +color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/Nano/Nano-Syntax-Highlighting/vala.nanorc b/Nano/Nano-Syntax-Highlighting/vala.nanorc new file mode 100644 index 0000000..0864cf1 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/vala.nanorc @@ -0,0 +1,18 @@ +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 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="^\s*/\*" end="\*/" +color brightwhite,cyan "TODO:?" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/vi.nanorc b/Nano/Nano-Syntax-Highlighting/vi.nanorc new file mode 100644 index 0000000..a2e2888 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/vi.nanorc @@ -0,0 +1,10 @@ +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)\>" +color cyan "\<(snor|nun|nm|set|if|endif|let|unlet)\>" +color red "[!&=]" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])\"[^"]*$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/x11basic.nanorc b/Nano/Nano-Syntax-Highlighting/x11basic.nanorc new file mode 100644 index 0000000..2a8d236 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/x11basic.nanorc @@ -0,0 +1,172 @@ +## Sytax highlighting for nano and pico for X11-Basic. (c) Markus Hoffmann 2019 + +# This file is part of X11-Basic, the basic interpreter for Unix/X +# ====================================================================== +# X11-Basic is free software and comes with NO WARRANTY - read the file +# COPYING for details + +syntax "x11basic" "\.(bas|xbas|LST|BAS)$" + +# Variable names + +icolor brightwhite "\<[A-Z_][A-Za-z0-9_]*(|\$|\%|\&|\||\(\))\>" + +# system vars +icolor cyan "\<(CCSAPLID|CCSERR|COLS|CRSCOL|CRSLIN|CTIMER|ERR|FALSE)\>" +icolor cyan "\<(GPS_ALT|GPS_LAT|GPS_LON|MOUSEK|MOUSES|MOUSEX|MOUSEY)\>" +icolor cyan "\<(PC|PI|ROWS|SP|STIMER|TIMER|TRUE)\>" + +# system string vars +icolor cyan "\<(DATE|FILEEVENT|INKEY|TERMINALNAME|TIME|TRACE)\$" + +#special system vars +icolor cyan "\<(ANDROID|GPIO|GPS|SENSOR|WIN32|UNIX)\?" + + +# system array vars + +# regular functions + +icolor green "\<(ABS|ACOS|ACOSH|ADD|AND|ARG|ARRPTR|ASC|ASIN|ASINH|ATAN|ATANH|ATN)\(" +icolor green "\<(BCHG|BCLR|BSET|BTST|BYTE)\(" +icolor green "\<(CALL|CALLD|CARD|CBRT|CEIL|COLOR_RGB|COMBIN|CONJ|COS|COSH|CRC|CVD|CVF|CVI|CVL|CVS)\(" +icolor green "\<(DEG|DET|DEVICE|DIV|DPEEK)\(" +icolor green "\<(EOF|EVAL|EVEN|EXEC|EXIST|EXP|EXPM1)\(" +icolor green "\<(FACT|FIX|FLOOR|FORK|FORM_ALERT|FORM_CENTER|FORM_DIAL|FORM_DO|FRAC|FREEFILE)\(" +icolor green "\<(GAMMA|GASDEV|GCD|GET_COLOR|GLOB|GPIO|GRAY)\(" +icolor green "\<(HYPOT)\(" +icolor green "\<(IMAG|INODE|INP|INSTR|INT|INVERT|IOCTL)\(" +icolor green "\<(JULIAN)\(" +icolor green "\<(LCM|LEN|LGAMMA|LISTSELECT|LN|LOC|LOF|LOG|LOG10|LOG1P|LOGB|LPEEK|LTEXTLEN)\(" +icolor green "\<(MALLOC|MAX|MIN|MOD|MODE|MSHRINK|MUL)\(" +icolor green "\<(NEXTPRIME|NLINK|NOT)\(" +icolor green "\<(OBJC_DRAW|OBJC_FIND|OBJC_OFFSET|ODD|OR)\(" +icolor green "\<(PEEK|POINT|POWM|PRED|PTST)\(" +icolor green "\<(RAD|RAND|RANDOM|REAL|REALLOC|RINSTR|RND|ROL|ROOT|ROR|ROUND|RSRC_GADDR)\(" +icolor green "\<(SENSOR|SGN|SHL|SHM_ATTACH|SHM_MALLOC|SHR|SIN|SINH|SIZE|SQR|SQRT|SRAND|SUB|SUCC|SWAP|SYM_ADR)\(" +icolor green "\<(TALLY|TAN|TANH|TRUNC)\(" +icolor green "\<(UBOUND)\(" +icolor green "\<(VAL|VARIAT|VARPTR|VRFY)\(" +icolor green "\<(WORD|WORT_SEP)\(" +icolor green "\<(XOR)\(" + +# question functions +icolor green "\<(DIM|EVENT|INP|TYP|VAL)\?\(" + +# special functions + +icolor green "\<(INP)\%\(" +icolor green "\<(INP)\&\(" + + + +# string functions +icolor green "\<(ARID|ARIE)\$\(" +icolor green "\<(BIN|BWTD|BWTE)\$\(" +icolor green "\<(CALL|CHR|COMPRESS)\$\(" +icolor green "\<(DECLOSE|DECRYPT|DIR)\$\(" +icolor green "\<(ENCLOSE|ENCRYPT|ENV|ERR)\$\(" +icolor green "\<(FSFIRST|FSNEXT)\$\(" +icolor green "\<(HASH|HEX)\$\(" +icolor green "\<(INLINE|INPUT)\$\(" +icolor green "\<(JULDATE)\$\(" +icolor green "\<(LEFT|LEFTOF|LINEINPUT|LOWER)\$\(" +icolor green "\<(MID|MKA|MKD|MKF|MKI|MKL|MKS|MTFD|MTFE)\$\(" +icolor green "\<(OCT)\$\(" +icolor green "\<(PARAM|PNGDECODE|PNGENCODE|PRG)\$\(" +icolor green "\<(REPLACE|REVERSE|RADIX|RIGHT|RIGHTOF|RLD|RLE)\$\(" +icolor green "\<(SIGN|SPACE|STR|STRING|SYSTEM)\$\(" +icolor green "\<(TERMINALNAME|TRIM)\$\(" +icolor green "\<(UCASE|UNCOMPRESS|UNIXDATE|UNIXTIME|UPPER|USING)\$\(" +icolor green "\<(WORD)\$\(" +icolor green "\<(XTRIM)\$\(" + +# array functions + +icolor green "\<(0|1|CONVOLUT|CVA|FFT|INV|SMUL|SOLVE|TRANS)\(" + + + +# special commands + +icolor brightmagenta "(^|^[[:space:]]*)(DIM|LOCAL|LET)\>" +icolor cyan "(^|^[[:space:]]*)DATA.*$" + +icolor red "(^|^[[:space:]]*)ENDFUNCTION\>" +icolor red "(^|^[[:space:]]*)(RETURN|BREAK|CONTINUE|EXIT\ IF)\>" +icolor red "(^|^[[:space:]]*)(FUNCTION|PROCEDURE|DEFFN)\>" + +icolor blue "(^|^[[:space:]]*)(endselect|select|default|endif|else\ if|else|case|do|loop|next|for|if|while|wend|repeat|until|goto|gosub|spawn|void)\>" +icolor brightred "(^|^[[:space:]]*)(END|QUIT|STOP|TRON|TROFF|ECHO|EDIT|NEW|RUN)\>" + + +# regular commands + +icolor brightgreen "(^|^[[:space:]]*)(ABSOLUTE|ADD|AFTER|ALERT|ARRAYCOPY|ARRAYFILL)\>" +icolor brightgreen "(^|^[[:space:]]*)(BEEP|BELL|BGET|BLOAD|BMOVE|BOTTOMW|BOUNDARY|BOX|BPUT|BSAVE)\>" +icolor brightgreen "(^|^[[:space:]]*)(CALL|CHAIN|CHDIR|CHMOD|CIRCLE|CLEAR|CLEARW|CLIP|CLOSE|CLOSEW|CLR|CLS|COLOR|CONNECT|COPYAREA|CURVE)\>" +icolor brightgreen "(^|^[[:space:]]*)(DEC|DEFFILL|DEFLINE|DEFMARK|DEFMOUSE|DEFTEXT|DELAY|DIV|DPOKE|DRAW|DUMP)\>" +icolor brightgreen "(^|^[[:space:]]*)(ELLIPSE|ERASE|ERROR|EVAL|EVENT|EVERY|EXEC)\>" +icolor brightgreen "(^|^[[:space:]]*)(FFT|FILESELECT|FILL|FIT|FIT_LINEAR|FIT_POLY|FLUSH|FREE|FULLW)\>" +icolor brightgreen "(^|^[[:space:]]*)(GET|GET_GEOMETRY|GET_LOCATION|GET_SCREENSIZE|GPIO|GPRINT|GPS|GRAPHMODE)\>" +icolor brightgreen "(^|^[[:space:]]*)(HELP|HIDEK|HIDEM|HOME)\>" +icolor brightgreen "(^|^[[:space:]]*)(INC|INFOW|INPUT)\>" +icolor brightgreen "(^|^[[:space:]]*)(KEYEVENT|KILL)\>" +icolor brightgreen "(^|^[[:space:]]*)(LINE|LINEINPUT|LINK|LIST|LOAD|LOCATE|LPOKE|LTEXT)\>" +icolor brightgreen "(^|^[[:space:]]*)(MEMDUMP|MENU|MENUDEF|MENUKILL|MENUSET|MERGE|MFREE|MKDIR|MOUSE|MOUSEEVENT|MOTIONEVENT|MOVEW|MSYNC|MUL)\>" +icolor brightgreen "(^|^[[:space:]]*)(NOOP|NOP|NOROOTWINDOW)\>" +icolor brightgreen "(^|^[[:space:]]*)(OBJC_ADD|OBJC_DELETE|ON|OPEN|OPENW|OUT)\>" +icolor brightgreen "(^|^[[:space:]]*)(PAUSE|PBOX|PCIRCLE|PELLIPSE|PIPE|PLAYSOUND|PLAYSOUNDFILE|PLIST|PLOT|POKE|POLYFILL|POLYLINE|POLYMARK|PRBOX|PRINT|PUT|PUTBACK|PUT_BITMAP)\>" +icolor brightgreen "(^|^[[:space:]]*)(RANDOMIZE|RBOX|READ|RECEIVE|RELSEEK|RENAME|RESTORE|RMDIR|ROOTWINDOW|RSRC_FREE|RSRC_LOAD)\>" +icolor brightgreen "(^|^[[:space:]]*)(SAVE|SAVESCREEN|SAVEWINDOW|SCOPE|SCREEN|SEEK|SEND|SENSOR|SETFONT|SETMOUSE|SGET|SHELL|SHM_DETACH|SHM_FREE|SHOWK|SHOWM|SHOEPAGE|SIZEW|SORT|SOUND|SPEAK|SPLIT|SPUT|SUB|SWAP|SYSTEM)\>" +icolor brightgreen "(^|^[[:space:]]*)(TEXT|TITLEW|TOPW|TOUCH)\>" +icolor brightgreen "(^|^[[:space:]]*)(UNLINK|UNMAP|USEWINDOW)\>" +icolor brightgreen "(^|^[[:space:]]*)(VERSION|VSYNC)\>" +icolor brightgreen "(^|^[[:space:]]*)(WATCH|WAVE|WORT_SEP)\>" +icolor brightgreen "(^|^[[:space:]]*)(XLOAD|XRUN)\>" + +## commands with a blank in it + +icolor brightblue "(^|^[[:space:]]*)(ON\ ERROR\ CONT)" +icolor brightblue "(^|^[[:space:]]*)(ON\ BREAK\ CONT)" +icolor brightred "(^|^[[:space:]]*)(ECHO\ (ON|OFF))" + + +## keywords +icolor brightblue "\<(and|or|not|to|xor|not|then|step|var|tab|using)\>" + +## operators +color white "[+*=\^]" "<" ">" "/" "-" +color brightred "[@\~]" + + +## number constants +icolor brightyellow "\b(([1-9][0-9]+)|0+)\.[0-9]+j?\b" "\b([1-9][0-9]*[Lj]?)\b" "\b0o?[0-7]*L?\b" "\b0x[1-9a-f][0-9a-f]*L?\b" "\b0b[01]+\b" +icolor brightyellow "[\ ,\(]\#[1-9][0-9]*\b" + +## parentheses +color magenta "[(){}]" "\[" "\]" + +# labels +icolor red "(^|^[[:space:]]*)[^\ ^=.]*:" + +# Comments. +color yellow "(^|^[[:space:]]*)'.*$" +icolor yellow "(^|^[[:space:]]*)REM.*$" +color yellow "!.*$" + +icolor brightwhite,blue "(^|^[[:space:]]*)PROGRAM.*$" + +#shebang line +icolor brightwhite,green "^\#\!.*$" + + + +# Strings +color yellow "<[^= ]*>" ""(\\.|[^"])*"" + +## trailing spaces +color ,green "[[:space:]]+$" + +## reminders +color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/Nano/Nano-Syntax-Highlighting/xml.nanorc b/Nano/Nano-Syntax-Highlighting/xml.nanorc new file mode 100644 index 0000000..809a048 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/xml.nanorc @@ -0,0 +1,18 @@ +## Here is an example for xml files. +## + +syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$" +header "<\?xml.*version=.*\?>" +magic "(XML|SGML) (sub)?document" +comment "" + +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/xresources.nanorc b/Nano/Nano-Syntax-Highlighting/xresources.nanorc new file mode 100644 index 0000000..7773642 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/xresources.nanorc @@ -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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/yaml.nanorc b/Nano/Nano-Syntax-Highlighting/yaml.nanorc new file mode 100644 index 0000000..f202cd8 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/yaml.nanorc @@ -0,0 +1,24 @@ +syntax "yaml" "\.ya?ml$" +#comment "#" +header "^---" "%YAML" + +# Values +color green "(:|^|\s)+\S+" + +# Keys +color red "(^|\s+).*+\s*:(\s|$)" + +# Special values +color yellow "[:-]\s+(true|false|null)\s*$" +color yellow "[:-]\s+[0-9]+\.?[0-9]*(\s*($|#))" +color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " + +# Separator +color brightwhite "^\s+-" +color brightwhite ":(\s|\t|$)" + +# Comments +color brightblue "(^|[[:space:]])#.*$" + +# Trailing whitespace +color ,red "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/yum.nanorc b/Nano/Nano-Syntax-Highlighting/yum.nanorc new file mode 100644 index 0000000..b463922 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/yum.nanorc @@ -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 " + +| + +" diff --git a/Nano/Nano-Syntax-Highlighting/zig.nanorc b/Nano/Nano-Syntax-Highlighting/zig.nanorc new file mode 100644 index 0000000..4dce80a --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/zig.nanorc @@ -0,0 +1,9 @@ +syntax "Zig" "\.zig$$" +color latte "\<(align|allowzero|and|anyframe|anytype|asm|async|await|break|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|noalias|nosuspend|or|orelse|packed|pub|resume|return|linksection|struct|suspend|switch|test|threadlocal|try|union|unreachable|usingnamespace|var|volatile|while)\>" +color brightcyan "@[a-zA-Z]+[0-9]{0,2}" +color cyan "(true|false|null|undefined)" +color cyan "\<(0[xob])?([0-9]_?)+\>" +color blue "\<([iu][0-9]{1,5}|f16|f32|f64|f128)\>" +color magenta "\"[^"]*\"" +comment "//" +tabgives " " diff --git a/Nano/Nano-Syntax-Highlighting/zsh.nanorc b/Nano/Nano-Syntax-Highlighting/zsh.nanorc new file mode 100644 index 0000000..4e77b36 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/zsh.nanorc @@ -0,0 +1,42 @@ +## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc) +syntax "ZSH" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout|zsh-theme)$" +header "^#!.*/(env +)?zsh( |$)" + +## Numbers +color brightyellow "\b[0-9]+\b" + +## Conditionals and control flow +color green "\<(always|break|bye|case|continue|disown|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" + +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +## Conditional flags +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" + +## Bash-inherited +color brightblue "\<((un)?alias|bindkey|builtin|cd|command|declare|eval|exec|export|jobs|let|popd|pushd|set|source|typeset|umask|unset)\>" +## ZSH-specific +color brightblue "\<(add-zsh-hook|autoload|cdr|chdir|compinit|dirs|(dis|en)able|echotc|echoti|emulate|print|printf|prompt(init)?|(un)?setopt|zle|zmodload|zstyle|whence|zargs|zmv)\>" + +## Common linux commands +color brightmagenta "\<((g|ig)?awk|find|diff|\w{0,4}grep|kill|killall|\w{0,4}less|make|pkill|sed|sudo|tar)\>" + +## Coreutils commands +color brightmagenta "\<(base(32|64)|basename|cat|chcon|chgrp|chmod|chown|chroot|cksum|comm|cp|csplit|cut|date|dd|df|dir|dircolors|dirname|du|echo|env|expand|expr|factor|false|fmt|fold|head|hostid|id|install|join|link|ln|logname|ls|md5sum|mkdir|mkfifo|mknod|mktemp|mv|nice|nl|nohup|nproc|numfmt|od|paste|pathchk|pinky|pr|printenv|ptx|pwd|readlink|realpath|rm|rmdir|runcon|seq|(sha1|sha224|sha256|sha384|sha512)sum|shred|shuf|sleep|sort|split|stat|stdbuf|stty|sum|sync|tac|tail|tee|test|timeout|touch|tr|true|truncate|tsort|tty|uname|unexpand|uniq|unlink|users|vdir|wc|who|whoami|yes)\>" + +## Function definition +icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)" + +## Variables +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" + +## Strings +color yellow ""(\\.|[^"])*"" +color yellow "'(\\.|[^'])*'" + +## Comments +color cyan "(^|[[:space:]])#.*$" +color brightcyan "(^|[[:space:]])##.*$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/Nano/Nano-Syntax-Highlighting/zshrc.nanorc b/Nano/Nano-Syntax-Highlighting/zshrc.nanorc new file mode 100644 index 0000000..4e77b36 --- /dev/null +++ b/Nano/Nano-Syntax-Highlighting/zshrc.nanorc @@ -0,0 +1,42 @@ +## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc) +syntax "ZSH" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout|zsh-theme)$" +header "^#!.*/(env +)?zsh( |$)" + +## Numbers +color brightyellow "\b[0-9]+\b" + +## Conditionals and control flow +color green "\<(always|break|bye|case|continue|disown|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" + +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +## Conditional flags +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" + +## Bash-inherited +color brightblue "\<((un)?alias|bindkey|builtin|cd|command|declare|eval|exec|export|jobs|let|popd|pushd|set|source|typeset|umask|unset)\>" +## ZSH-specific +color brightblue "\<(add-zsh-hook|autoload|cdr|chdir|compinit|dirs|(dis|en)able|echotc|echoti|emulate|print|printf|prompt(init)?|(un)?setopt|zle|zmodload|zstyle|whence|zargs|zmv)\>" + +## Common linux commands +color brightmagenta "\<((g|ig)?awk|find|diff|\w{0,4}grep|kill|killall|\w{0,4}less|make|pkill|sed|sudo|tar)\>" + +## Coreutils commands +color brightmagenta "\<(base(32|64)|basename|cat|chcon|chgrp|chmod|chown|chroot|cksum|comm|cp|csplit|cut|date|dd|df|dir|dircolors|dirname|du|echo|env|expand|expr|factor|false|fmt|fold|head|hostid|id|install|join|link|ln|logname|ls|md5sum|mkdir|mkfifo|mknod|mktemp|mv|nice|nl|nohup|nproc|numfmt|od|paste|pathchk|pinky|pr|printenv|ptx|pwd|readlink|realpath|rm|rmdir|runcon|seq|(sha1|sha224|sha256|sha384|sha512)sum|shred|shuf|sleep|sort|split|stat|stdbuf|stty|sum|sync|tac|tail|tee|test|timeout|touch|tr|true|truncate|tsort|tty|uname|unexpand|uniq|unlink|users|vdir|wc|who|whoami|yes)\>" + +## Function definition +icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)" + +## Variables +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" + +## Strings +color yellow ""(\\.|[^"])*"" +color yellow "'(\\.|[^'])*'" + +## Comments +color cyan "(^|[[:space:]])#.*$" +color brightcyan "(^|[[:space:]])##.*$" + +## Trailing spaces +color ,green "[[:space:]]+$"