diff --git a/syntax/Makefile.am b/syntax/Makefile.am index 4c5bce37..d31e2399 100644 --- a/syntax/Makefile.am +++ b/syntax/Makefile.am @@ -43,7 +43,6 @@ nobase_pkgdata_DATA = \ extra/ada.nanorc \ extra/debian.nanorc \ extra/fortran.nanorc \ - extra/gentoo.nanorc \ extra/haskell.nanorc \ extra/povray.nanorc \ extra/spec.nanorc diff --git a/syntax/extra/gentoo.nanorc b/syntax/extra/gentoo.nanorc deleted file mode 100644 index 84e9bcf2..00000000 --- a/syntax/extra/gentoo.nanorc +++ /dev/null @@ -1,74 +0,0 @@ -## Syntax highlighting for Gentoo ebuilds/eclasses, -## and (further down) for Portage control files. - -syntax ebuild "\.e(build|class)$" -comment "#" - -## All the standard portage functions: -color brightgreen "(^|\" -color brightgreen "^pkg_(config|nofetch|info|pretend|setup|(pre|post)(inst|rm))\>" -color brightgreen "\" -## Bash-related syntax: -color green "\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>" -color green "\<(declare|eval|exec|export|let|local)\>" -color green "[][{}():;|`$<>!=&\]" -color green "-[defhnrsuwxzL]\>" -color green "-(eq|ne|gt|lt|ge|le)\>" -## Variables... official portage ones in red, all others in bright red: -color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*" -color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:digit:]]|@)+\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})" -color red "\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|[BIPR]?DEPEND|PROVIDE|PROPERTIES|REQUIRED_USE|RESTRICT|USERLAND)\>" -color red "\<(S|E?D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|EPREFIX|(B|E|E?SYS)?ROOT|WORKDIR)\>" -color red "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\" "\<(MERGE_TYPE|REPLACING_VERSIONS|REPLACED_BY_VERSION)\>" -color red "\" -color red "\" -color red "\<(PATCHES|(HTML_)?DOCS)\>" "\" "\" -## Portage commands: -color magenta "\<(use(_(with|enable|if_iuse)|x)?|in_iuse) [!a-zA-Z0-9_+ -]*" "inherit.*" -color brightblue "\" -color brightblue "\" "\" -color brightblue "\" "\" "\" "\" -color brightblue "\" "\" -color brightblue "\<(die|hasv?|inherit|nonfatal)\>" "\<(use(_(with|enable|if_iuse)|x)?|in_iuse)\>" "\<(has|best)_version\>" -color brightblue "\<(do|new)(ins|s?bin|doc|header|lib(\.so|\.a)?|man|info|exe|initd|confd|envd|pam|menu|icon)\>" -color brightblue "\" "\" -color brightblue "\" "\" -color brightblue "\<(doc|ins|exe)?into\>" "\" "\<(exe|ins|dir)opts\>" -color brightblue "\" -color brightblue "\" -## Common commands used in ebuilds: -color blue "\<(awk|cat|cd|chmod|chown|cp|echo|env|find|e?grep|ln|make|mkdir|mv|popd|printf|pushd|rm|rmdir|sed|set|tar|touch|unset|xargs)\>" -## Comments (doesn't work that well): -color yellow "(^|[[:space:]])#.*" -## Strings (doesn't work that well): -color brightyellow ""([^"\]|\\.)*"|'([^'\]|\\.)*'" -## Trailing space is bad! -color ,green "[[:space:]]+$" -## Mixed whitespace is also bad. -color ,green " " - - -syntax /etc/portage "\.(accept_keywords|env|keywords|mask|unmask|use)(/.+)?$" -comment "#" - -## Base text: -color green ".+" -## Likely version and slot numbers: -color magenta "-[[:digit:].]+(_(alpha|beta|pre|rc|p)[[:digit:]]*)*(-r[[:digit:]]+)?([:[:space:]]|$)" -color magenta ":[^[:space:]]+([[:space:]]|$)" -## Use flags (must come after version/slot): -color brightred "[[:space:]]+\+?[A-Za-z0-9+_@-]+" -color brightblue "[[:space:]]+-[A-Za-z0-9+_@-]+" -## Accepted arches: -color white "[~-]?\<(alpha|amd64|arm(64)?|hppa|ia64|m68k|mips|ppc(64)?|riscv|s390|sparc|x86)(-(cygwin|linux|macos|solaris|winnt))?\>" -color white "[[:space:]][*~-]?\*" -## Categories: -color cyan "^[[:space:]]*[^/]*/" -## Masking regulators: -color brightmagenta "^[[:space:]]*(=|~|<|<=|>|>=)" -## Comments: -color yellow "#.*" -## Trailing space is bad! -color ,green "[[:space:]]+$" -## Mixed whitespace is also bad. -color ,green " "