diff --git a/ChangeLog b/ChangeLog index 9677f53dfa4cbcf11b7175bcb5c268c2b5201111..2a419eb6794bb13672c6a27e5aeaaed67ae2566c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,9 @@ CVS code - be included per line, and change the comment for the "whitespace" option so that the hexadecimal character values 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 - General: diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 6788829aac3a2501c06724692ae806c4125abae7..7c40f8cf9a2c5587c015f9bc5c78c92fc238c509 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -275,6 +275,15 @@ # color green "#.*" # 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 ## # syntax "Java source" "\.java$"