[Lunar-commits] CVS: moonbase/editors/nano nanorc,1.4,1.5

Jon South striker at lunar-linux.org
Fri Jun 25 18:53:30 GMT 2004


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

Modified Files:
	nanorc 
Log Message:
New syntax highlighting: fstab resolv.conf lilo.conf passwd group shadow hosts
Tweaks: added dot profile and basrc files


Index: nanorc
===================================================================
RCS file: /var/cvs/lunar/moonbase/editors/nano/nanorc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- nanorc	24 Jun 2004 19:55:14 -0000	1.4
+++ nanorc	25 Jun 2004 18:53:28 -0000	1.5
@@ -134,7 +134,7 @@
 ##
 syntax "HTML" "\.(s|)htm(l|)$"
 color brightyellow start="<" end=">"
-color brightred "<[^> 	]*"
+color brightred "<[^>[:space:]]*"
 color brightblue "<" ">"
 color brightmagenta "&[^;[:space:]]*;"
 color brightgreen "(ht|f)tp(s|)://[-a-zA-Z0-9]*\.[-a-zA-Z]{3}([^"[:space:]]*|)"
@@ -261,7 +261,6 @@
 ## Ruby
 ##
 syntax "ruby" ".*\.*rb$"
-color brightblue ""
 color brightyellow "(::|\*\*|!|~|\*|/|%|\+|-|&|<<|>>|\|\^|>|>=|<|<=)"
 color brightyellow "(<=>|\|\||!=|=~|!~|&&|\+=|-=|=|\.\.|\.\.\.)"
 color brightyellow "(\<not\>|\<and\>|\<or\>)"
@@ -309,7 +308,7 @@
 
 ## shell scripts and lunar-linux special files
 ##
-syntax "lunar-sh" "^(DETAILS|CONFIGURE|CONFLICTS|PRE_BUILD|BUILD|POST_BUILD|POST_INSTALL|POST_REMOVE|.*\.lunar|lin|lrm|lget|lunar|.*\.sh)$"
+syntax "lunar-sh" "^(DETAILS|CONFIGURE|CONFLICTS|PRE_BUILD|BUILD|POST_BUILD|POST_INSTALL|POST_REMOVE|.*\.lunar|lin|lrm|lget|lunar|.*bashrc.*|\.(bash_|)profile|.*\.sh)$"
 color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
 color green "-(e|d|f|r|g|u|w|x|L)\>"
 color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
@@ -328,3 +327,98 @@
 color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
 color green start=" << EOF" end="EOF"
 color brightblack "^[[:space:]]*#.*$"
+
+## fstab
+##
+syntax "fstab" "fstab.*"
+color brightred "."
+color brightyellow "^[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*"
+color brightgreen "^[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*"
+color brightwhite "(=|,)"
+color brightmagenta "^[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*"
+color brightblue "^[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*"
+color brightcyan "^[[:space:]]*[[:graph:]]*"
+color brightblack "^[[:space:]]*#.*"
+
+## resolv.conf
+##
+syntax "resolv" "resolv\.conf.*"
+color brightred "."
+color brightyellow "^[[:space:]]*[[:graph:]]*[[:space:]]*[[:graph:]]*"
+color brightyellow "^[[:space:]]*(sortlist|search)[[:space:]]*.*"
+color brightgreen "((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))"
+color brightcyan "^[[:space:]]*(nameserver|domain|search|sortlist|options)[[:space:]]*"
+
+## lilo.conf
+##
+syntax "lilo" "lilo\.conf.*"
+color brightred "."
+color brightcyan "^[[:space:]]*[^[:space:]=]*[[:space:]]*=[[:space:]]*[[:graph:]]*"
+color brightred "^[[:space:]]*[^[:space:]=]*[[:space:]]*=[[:space:]]*"[^"]*""
+color brightyellow "^[[:space:]]*(append|literal|menu-title)[[:space:]]*=[[:space:]]*"[^"]*""
+color brightred "^[[:space:]]*[^[:space:]=]*[[:space:]]*="
+color brightwhite "^[[:space:]]*(alias|append|backup|bios-passes-dl|bitmap|bmp-colors|bmp-table|bmp-timer|boot-as|boot|default|delay|disk|disktab|force-backup|image|initrd|install|label|literal|loader|map-drive|map|menu-scheme|menu-title|message|other|password|password|raid-extra-boot|ramdisk|range|range|range|root|serial|table|table|timeout|verbose|vga|vmdefault)*[[:space:]]*="
+color brightblue "^[[:space:]]*(alias|append|backup|bios-passes-dl|bitmap|bmp-colors|bmp-table|bmp-timer|boot-as|boot|default|delay|disk|disktab|force-backup|image|initrd|install|label|literal|loader|map-drive|map|menu-scheme|menu-title|message|other|password|password|raid-extra-boot|ramdisk|range|range|range|root|serial|table|table|timeout|verbose|vga|vmdefault)*[[:space:]]*"
+color brightblue "^[[:space:]]*(bypass|change|change-rules|compact|el-torito-bootable-CD|fix-table|geometric|ignore-table|large-memory|lba32|linear|lock|mandatory|master-boot|nowarn|optional|prompt|read-only|read-write|reset|restricted|single-key|suppress-boot-time-BIOS-data|unsafe|vmwarn)[[:space:]]*$"
+color brightblack "[[:space:]]*#.*$"
+
+## passwd
+##
+syntax "passwd" "passwd.*$"
+color brightred "."
+color brightcyan "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:"
+color brightgreen "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:"
+color brightmagenta "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:"
+color brightgreen "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:"
+color brightblue "^[[:space:]]*[^[:space:]:]*"
+
+## group
+##
+syntax "group" "group.*$"
+color brightred "."
+color brightcyan "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:"
+color brightgreen "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:"
+color brightblue "^[[:space:]]*[^[:space:]:]*"
+
+## shadow
+##
+syntax "shadow" "shadow.*$"
+color brightred "."
+color brightmagenta "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:"
+color brightcyan "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:[^[:space:]:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*:"
+color brightyellow "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*:"
+color brightgreen "^[[:space:]]*[^[:space:]:]*:[^[:space:]:]*"
+color brightwhite "^[[:space:]]*[^[:space:]:]*:"
+color brightcyan "^[[:space:]]*[^[:space:]:]*"
+
+## hosts
+##
+syntax "hosts" "^hosts(|-|~|(|.)bak.*)$"
+color brightred "."
+color brightmagenta "^[[:space:]]*((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))[[:space:]]*[-a-zA-Z0-9. ]*$"
+color brightcyan "^[[:space:]]*((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))[[:space:]]*[-a-zA-Z0-9.]*"
+color brightgreen "^[[:space:]]*((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\.((|0|1)?([0-9]?[0-9])|2([0-4][0-9]|5[0-5]))\>"
+color brightblack "^[[:space:]]*#.*$"



More information about the Lunar-commits mailing list