From 2944360474590724c77cf374bbf35fa483fe1ab3 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Thu, 3 Feb 2011 00:50:07 -0600 Subject: [PATCH] Some more cython improvements. --- cython.nanorc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cython.nanorc b/cython.nanorc index 0182e65..0784c05 100644 --- a/cython.nanorc +++ b/cython.nanorc @@ -1,7 +1,9 @@ ## Cython nanorc, based off of Python nanorc. ## -syntax "python" "\.pyx$" "\.pyd$" "\.pyi$" -icolor brightred "def [0-9A-Z_]+" +syntax "cython" "\.pyx$" "\.pyd$" "\.pyi$" +icolor brightred "def [ 0-9A-Z_]+" +icolor brightred "cpdef [ 0-9A-Z_]+" +icolor brightred "cdef cppclass [ 0-9A-Z_]+" @@ -10,8 +12,8 @@ color green "\<(and|as|assert|class|def|del|elif|else|except|exec|finally|for|fr color brightmagenta "\<(continue|break|return)\>" # Cython Keyword Color -color green "\<(cdef|extern|namespace)\>" -color red "\<(bint|double|int)\>" +color green "\<(cdef|cpdef|cppclass|extern|namespace)\>" +color red "\<(bint|char|double|int|public)\>" #Operator Color color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"