[Lunar-commits] CVS: moonbase/editors/nano BUILD, 1.3, 1.4 nanorc, 1.1, 1.2

Jon South striker at lunar-linux.org
Thu Jun 24 15:44:42 GMT 2004


Update of /var/cvs/lunar/moonbase/editors/nano
In directory dbguin.lunar-linux.org:/tmp/cvs-serv29891

Modified Files:
	BUILD nanorc 
Log Message:
Fix overwriting nanorc if modified
Updated nanorc: CSS syntax added


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/editors/nano/BUILD,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- BUILD	26 May 2004 16:47:55 -0000	1.3
+++ BUILD	24 Jun 2004 15:44:39 -0000	1.4
@@ -12,7 +12,9 @@
    fi
   
   default_build						&&
-  install -m 0644 $SCRIPT_DIRECTORY/nanorc /etc/
+  if [ ! -f "/etc/nanorc" ]; then
+    install -m 0644 $SCRIPT_DIRECTORY/nanorc /etc/
+  fi
 
 ) > $C_FIFO 2>&1
 

Index: nanorc
===================================================================
RCS file: /var/cvs/lunar/moonbase/editors/nano/nanorc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- nanorc	26 May 2004 16:47:55 -0000	1.1
+++ nanorc	24 Jun 2004 15:44:39 -0000	1.2
@@ -130,7 +130,8 @@
 color brightblack "//.*"
 color brightblack start="/\*" end="\*/"
 
-## Here is a short example for HTML
+## HTML
+##
 syntax "HTML" "\.(s|)htm(l|)$"
 color brightyellow start="<" end=">"
 color brightred "<[^> 	]*"
@@ -139,6 +140,24 @@
 color brightgreen "(ht|f)tp(s|)://[-a-zA-Z0-9]*\.[-a-zA-Z]{3}([^"[:space:]]*|)"
 color brightblack start="<!-- " end=" -->"
 
+## Cascading Style Sheets
+##
+syntax "CSS" "\.css$"
+color green "^[^{]*\{"
+color brightyellow start="\{" end="\}"
+color white ":[^;:{}]*;"
+color white ":[^;:{}]*\>"
+color brightred " *[^;{]*:"
+color green "^[^{}]:(link|visited|active|hover|first-line|first-letter)[^{]*"
+color green "^[ a-zA-Z0-9,.-]*$"
+color brightblue "url\([^)]*\)"
+color brightcyan "! *important"
+# Only using w3.org's "suggested" colors
+color brightmagenta "(#[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]|rgb\([0-9% ]*,[0-9% ]*,[0-9% ]*\)|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|purple|red|silver|teal|white|yellow)"
+# *grin*
+color brightred "white-space"
+color brightblack start="/\*" end="\*/"
+
 syntax "PHP" "\.ph(p|tml)(3|4|)$"
 # HTML Stuff
 color brightyellow start="<" end=">"
@@ -233,7 +252,7 @@
 color cyan "^ *(set|unset) (autoindent|backup|const|cut|fill|keypad|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|regexp|smooth|speller|suspend|tabsize|tempfile|historylog|view)"
 color brightwhite "^ *syntax \"[^\"]*\""
 color brightblue "^ *set\>" "^ *unset\>" "^ *syntax\>"
-color brightmagenta "^ *color (bright)?(white|black|red|blue|green|yellow|magenta|cyan)\>"
+color brightmagenta "^ *color (bright)?(white|black|red|blue|green|yellow|magenta|cyan)(,(bright)?(white|black|red|blue|green|yellow|magenta|cyan))?\>"
 color magenta "^ *color\>"
 color brightblack "^#.*$"
 



More information about the Lunar-commits mailing list