Commit d9d29c62 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add sample Python regexes to nanorc.sample

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3345 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent eae8f930
Showing with 12 additions and 0 deletions
+12 -0
...@@ -20,6 +20,9 @@ CVS code - ...@@ -20,6 +20,9 @@ CVS code -
be included per line, and change the comment for the be included per line, and change the comment for the
"whitespace" option so that the hexadecimal character values "whitespace" option so that the hexadecimal character values
are six digits long. (DLR) are six digits long. (DLR)
- Add sample regexes for Python. (singular on the Gentoo forums,
http://forums.gentoo.org/viewtopic.php?t=86562; minor tweaks
by DLR, suggested by John M. Gabriele)
GNU nano 1.3.11 - 2006.03.30 GNU nano 1.3.11 - 2006.03.30
- General: - General:
......
...@@ -275,6 +275,15 @@ ...@@ -275,6 +275,15 @@
# color green "#.*" # color green "#.*"
# color yellow start="<< 'STOP'" end="STOP" # color yellow start="<< 'STOP'" end="STOP"
## Here is an example for Python
##
# syntax "python" "\.py$"
# icolor brightblue "def [A-Z_0-9]+"
# color brightcyan "\<(and|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|return|try|while)\>"
# color brightgreen "(["']).*[^\\]\1" "(["']){3}.*[^\\]\1"
# color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''"
# color brightred "#.*$"
## Here is an example for Java source ## Here is an example for Java source
## ##
# syntax "Java source" "\.java$" # syntax "Java source" "\.java$"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment