From e2769e766187ac44f4a47c41421f4946c80b9542 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Mon, 22 Jul 2013 21:24:55 -0700 Subject: [PATCH] Compatibility fixes for OSX. Closes scoptaz/nanorc#13 * cython.nanorc: Remove non-greedy repetition operator, as it is not supported on OSX * fish.nanorc: Remove incompatible "magic" hint * pkgbuild.nanorc: Remove empty sub-expressions --- cython.nanorc | 4 ++-- fish.nanorc | 1 - pkgbuild.nanorc | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cython.nanorc b/cython.nanorc index 3be7546..2e7b958 100644 --- a/cython.nanorc +++ b/cython.nanorc @@ -2,8 +2,8 @@ ## syntax "cython" "\.pyx$" "\.pxd$" "\.pyi$" icolor brightred "def [ 0-9A-Z_]+" -icolor brightred "cpdef [ 0-9A-Z_]+\(.*?\):" -icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*?\):" +icolor brightred "cpdef [0-9A-Z_]+\(.*\):" +icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*\):" diff --git a/fish.nanorc b/fish.nanorc index d4cb305..97d7d55 100644 --- a/fish.nanorc +++ b/fish.nanorc @@ -1,7 +1,6 @@ ## Here is an example for Fish shell scripts. ## syntax "fish" "\.fish$" -magic "(Fish.*) shell script text" icolor brightgreen "^[0-9A-Z_]+\(\)" color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" diff --git a/pkgbuild.nanorc b/pkgbuild.nanorc index aaea48e..c601523 100644 --- a/pkgbuild.nanorc +++ b/pkgbuild.nanorc @@ -4,16 +4,16 @@ syntax "pkgbuild" "^.*PKGBUILD$" color green start="^." end="$" color cyan "^.*(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$" color brightcyan "\<(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)\>" -color brightcyan "(\$|\$\{|\$\()(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(|\}|\))" +color brightcyan "(\$|\$\{|\$\()(pkgbase|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(\}|\))" color cyan "^.*(depends|makedepends|optdepends|conflicts|provides|replaces).*=.*$" color brightcyan "\<(depends|makedepends|optdepends|conflicts|provides|replaces)\>" -color brightcyan "(\$|\$\{|\$\()(depends|makedepends|optdepends|conflicts|provides|replaces)(|\}|\))" +color brightcyan "(\$|\$\{|\$\()(depends|makedepends|optdepends|conflicts|provides|replaces)(\}|\))" color cyan "^.*(groups|backup|noextract|options).*=.*$" color brightcyan "\<(groups|backup|noextract|options)\>" -color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options)(|\}|\))" +color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options)(\}|\))" color cyan "^.*(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums).*=.*$" color brightcyan "\<(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>" -color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)(|\}|\))" +color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)(\}|\))" color brightcyan "\<(startdir|srcdir|pkgdir)\>" color cyan "\.install" color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}"