diff options
author | serialhex <serialhex@gmail.com> | 2013-04-23 06:07:37 +0400 |
---|---|---|
committer | serialhex <serialhex@gmail.com> | 2013-04-23 06:07:37 +0400 |
commit | 6aa506d5fd52fe436cfca2ce0e7e5f67d0271c14 (patch) | |
tree | 31158ca457cbc6b824428bf2de24a395176ece8c | |
parent | 421a5db0046f42c0de7f85ab0fcfc34149ad0afa (diff) | |
parent | be18b37d4c30c3c3ea0370e64595f902c98d8ccd (diff) |
Merge pull request #8 from aaronhamilton/master
More removed duplicates, some silly comment text removed.
-rw-r--r-- | asm.nanorc | 2 | ||||
-rw-r--r-- | c.nanorc | 2 | ||||
-rw-r--r-- | clike.nanorc | 27 | ||||
-rw-r--r-- | ebuild.nanorc | 28 | ||||
-rw-r--r-- | emailquote.nanorc | 4 | ||||
-rw-r--r-- | etcportage.nanorc | 19 | ||||
-rw-r--r-- | fortran.nanorc | 2 | ||||
-rw-r--r-- | gentoo.nanorc | 4 | ||||
-rw-r--r-- | groff.nanorc | 2 | ||||
-rw-r--r-- | html.nanorc | 2 | ||||
-rw-r--r-- | java.nanorc | 2 | ||||
-rw-r--r-- | man.nanorc | 2 | ||||
-rw-r--r-- | mutt.nanorc | 4 | ||||
-rw-r--r-- | nanorc.nanorc | 2 | ||||
-rw-r--r-- | patch.nanorc | 2 | ||||
-rw-r--r-- | perl.nanorc | 2 | ||||
-rw-r--r-- | pov.nanorc | 2 | ||||
-rw-r--r-- | python.nanorc | 2 | ||||
-rw-r--r-- | ruby.nanorc | 2 | ||||
-rw-r--r-- | sh.nanorc | 13 | ||||
-rw-r--r-- | shlike.nanorc | 12 | ||||
-rw-r--r-- | tex.nanorc | 2 |
22 files changed, 20 insertions, 119 deletions
@@ -1,4 +1,4 @@ -## Here is an example for assembler. +## assembler. ## syntax "asm" "\.(S|s|asm)$" color red "\<[A-Z_]{2,}\>" @@ -1,4 +1,4 @@ -## Here is an example for C/C++. +## C/C++. ## syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" color brightred "\<[A-Z_][0-9A-Z_]+\>" diff --git a/clike.nanorc b/clike.nanorc deleted file mode 100644 index c8eb5ad..0000000 --- a/clike.nanorc +++ /dev/null @@ -1,27 +0,0 @@ -## Here is an example for C/C++. -## -syntax "clike" "\.(m|pch)$" -color brightred "\<[A-Z_][0-9A-Z_]+\>" -color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" -color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" -color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" -color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" -color brightyellow "\<(try|throw|catch|operator|new|delete)\>" -color magenta "\<(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 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="^(\\.|[^"])*"" - -## Comment highlighting -color brightblue "//.*" -color brightblue start="/\*" end="\*/" diff --git a/ebuild.nanorc b/ebuild.nanorc deleted file mode 100644 index c562c48..0000000 --- a/ebuild.nanorc +++ /dev/null @@ -1,28 +0,0 @@ -## Here is an example for ebuilds/eclasses -## -syntax "ebuild" "\.e(build|class)$" -## All the standard portage functions -color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" -## Highlight bash related syntax -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 "-(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)\>" -color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\<C(XX)?FLAGS\>" -## Highlight portage commands -color magenta "\<use(_(with|enable))?\> [a-z0-9X ]*" "inherit.*" -color brightblue "e(begin|end|conf|install|make|warn|infon?|error|patch)" -color brightblue "\<die\>" "\<use((v|_(with|enable)))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>" -color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe)\>" -color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>" -color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.so|man|strip)" -color brightblue "\<(|doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>" -## Highlight common commands used in ebuilds -color blue "\<make\>" "\<(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 "'(\\.|[^\"])*'" "'(\\.|[^'])*'"
\ No newline at end of file diff --git a/emailquote.nanorc b/emailquote.nanorc new file mode 100644 index 0000000..94b7909 --- /dev/null +++ b/emailquote.nanorc @@ -0,0 +1,4 @@ +## Email quoting +## +syntax "emailquote" +color green "^>.*" diff --git a/etcportage.nanorc b/etcportage.nanorc deleted file mode 100644 index 22ae9bd..0000000 --- a/etcportage.nanorc +++ /dev/null @@ -1,19 +0,0 @@ -## 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$)" -color white "[[:space:]][\*~-]?\*" -## Categories: -color cyan "^[[:space:]]*.*/" -## Masking regulators: -color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)" -## Comments: -color yellow "#.*$" diff --git a/fortran.nanorc b/fortran.nanorc index 6854138..10c7730 100644 --- a/fortran.nanorc +++ b/fortran.nanorc @@ -1,4 +1,4 @@ -## Here is an example for Fortran 90/95 +## Fortran 90/95 syntax "fortran" "\.(f|f90|f95|for)$" diff --git a/gentoo.nanorc b/gentoo.nanorc index 6e3470b..b0d2c98 100644 --- a/gentoo.nanorc +++ b/gentoo.nanorc @@ -1,4 +1,4 @@ -## Here is an example for Gentoo ebuilds/eclasses +## ebuilds/eclasses ## syntax "ebuild" "\.e(build|class)$" ## All the standard portage functions @@ -29,7 +29,7 @@ color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" ## Trailing space is bad! color ,green "[[:space:]]+$" -## Here is an example for Portage control files +## Portage control files ## syntax "/etc/portage" "\.(keywords|mask|unmask|use)$" ## Base text: diff --git a/groff.nanorc b/groff.nanorc index 02b82b8..621351f 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -1,4 +1,4 @@ -## Here is an example for groff. +## groff. ## syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." ## The argument of .ds or .nr diff --git a/html.nanorc b/html.nanorc index d31467d..257ae76 100644 --- a/html.nanorc +++ b/html.nanorc @@ -1,4 +1,4 @@ -## Here is a short example for HTML. +## HTML. ## syntax "html" "\.html$" color blue start="<" end=">" diff --git a/java.nanorc b/java.nanorc index a432f81..0eb966f 100644 --- a/java.nanorc +++ b/java.nanorc @@ -1,4 +1,4 @@ -## Here is an example for Java. +## Java. ## syntax "java" "\.java$" color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" @@ -1,4 +1,4 @@ -## Here is an example for manpages. +## manpages. ## syntax "man" "\.[1-9]x?$" color green "\.(S|T)H.*$" diff --git a/mutt.nanorc b/mutt.nanorc deleted file mode 100644 index 2e68399..0000000 --- a/mutt.nanorc +++ /dev/null @@ -1,4 +0,0 @@ -## Here is an example for quoted emails (under e.g. mutt). -## -syntax "mutt" -color green "^>.*" diff --git a/nanorc.nanorc b/nanorc.nanorc index f63d770..8790bee 100644 --- a/nanorc.nanorc +++ b/nanorc.nanorc @@ -1,4 +1,4 @@ -## Here is an example for nanorc files. +## nanorc. ## syntax "nanorc" "\.?nanorc$" ## Possible errors and parameters diff --git a/patch.nanorc b/patch.nanorc index a788b35..f4c9330 100644 --- a/patch.nanorc +++ b/patch.nanorc @@ -1,4 +1,4 @@ -## Here is an example for patch files. +## patch files. ## syntax "patch" "\.(patch|diff)$" color brightgreen "^\+.*" diff --git a/perl.nanorc b/perl.nanorc index 7bca4cd..c875e68 100644 --- a/perl.nanorc +++ b/perl.nanorc @@ -1,4 +1,4 @@ -## Here is an example for Perl. +## Perl. ## syntax "perl" "\.p[lm]$" 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)\>" @@ -1,4 +1,4 @@ -## Here is an example for POV-Ray. +## POV-Ray. ## syntax "pov" "\.(pov|POV|povray|POVRAY)$" color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" diff --git a/python.nanorc b/python.nanorc index fc0907a..4c58aee 100644 --- a/python.nanorc +++ b/python.nanorc @@ -1,4 +1,4 @@ -## Here is an example for Python. +## Python. ## syntax "python" "\.py$" icolor brightblue "def [0-9A-Z_]+" diff --git a/ruby.nanorc b/ruby.nanorc index a557287..c1d4a35 100644 --- a/ruby.nanorc +++ b/ruby.nanorc @@ -1,4 +1,4 @@ -## Here is an example for Ruby. +## Ruby. ## syntax "ruby" "\.rb$" ## Asciibetical list of reserved words diff --git a/sh.nanorc b/sh.nanorc deleted file mode 100644 index f540f1b..0000000 --- a/sh.nanorc +++ /dev/null @@ -1,13 +0,0 @@ -## Here is an example for Bourne shell scripts. -## -syntax "sh" "\.sh$" -icolor brightgreen "^[0-9A-Z_]+\(\)" -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 brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" -color cyan "(^|[[:space:]])#.*$" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" -color ,green "[[:space:]]+$" diff --git a/shlike.nanorc b/shlike.nanorc deleted file mode 100644 index 2370cbe..0000000 --- a/shlike.nanorc +++ /dev/null @@ -1,12 +0,0 @@ -## Here is an example for Bourne shell scripts. -## -syntax "shlike" "\.(m4|sub|guess)$" "missing$" "configure\.ac$" "config\.(charset|rpath|status)$" "configure$" -icolor brightgreen "^[0-9A-Z_]+\(\)" -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 brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" -color cyan "(^|[[:space:]])#.*$" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" @@ -1,4 +1,4 @@ -## Here is a short example for TeX files. +## TeX. ## syntax "tex" "\.tex$" icolor green "\\.|\\[A-Z]*" |