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

Jon South striker at lunar-linux.org
Thu Jun 24 18:53:11 GMT 2004


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

Modified Files:
	nanorc 
Log Message:
Updated syntax highlighting: TCL/TK and Ruby


Index: nanorc
===================================================================
RCS file: /var/cvs/lunar/moonbase/editors/nano/nanorc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- nanorc	24 Jun 2004 15:44:39 -0000	1.2
+++ nanorc	24 Jun 2004 18:53:09 -0000	1.3
@@ -234,6 +234,56 @@
 color brightblue start="/\*\*" end="\*/"
 color brightgreen,brightgreen "[ 	]+$"
 
+## TCL/TK
+##
+syntax "TCL/TK" "^.*\.tcl$"
+color brightgreen "(set|incr|append|lappend|gets|read|variable|foreach|info exist) *[a-zA-Z0-9_]*(\([^)]*\))?"
+color brightcyan "proc *[[:graph:]]*"
+color brightred "global [^;]*"
+color brightblue "^ *[-a-zA-Z0-9_:.]* "
+color brightblue "; *[-a-zA-Z0-9_:.]* "
+color brightblue "\<(\.|after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_mkindex|auto_mkindex_old|auto_qualify|auto_reset|bell|binary|bind|bindtags|break|button|canvas|case|catch|cd|checkbutton|clipboard|clock|close|concat|continue|destroy|encoding|entry|eof|error|eval|event|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|focus|font|for|foreach|format|frame|gets|glob|global|grab|grid|history|if|image|incr|info|interp|join|label|labelframe|lappend|lindex|linsert|list|listbox|llength|load|lower|lrange|lreplace|lsearch|lset|lsort|menu|menubutton|message|namespace|open|option|pack|package|panedwindow|pid|pkg_compareExtension|pkg_mkIndex|place|proc|puts|pwd|radiobutton|raise|read|regexp|regsub|rename|return|scale|scan|scrollbar|seek|selection|send|set|socket|source|spinbox|split|string|subst|switch|tcl_findLibrary|tclLog|tclPkgSetup|tclPkgUnknown|tell|text|time|tk|tk_chooseColor|tk_chooseDirectory|tk_getOpenFile|tk_getSaveFile|tk_menuSetFocus|tk_messageBox|tk_popup)\>"
+color brightblue "\<(tk_textCopy|tk_textCut|tk_textPaste|tkwait|toplevel|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while|winfo|wm)\>"
+color brightblue "\[[[:graph:]]*\>"
+color brightmagenta "\<[0-9.]*\>"
+color brightmagenta "-[a-zA-Z][a-zA-Z]*\>"
+color brightyellow "[{}]"
+color brightyellow "["][^"]*["]"
+color brightyellow "['][^']*[']"
+color brightgreen "\$[a-zA-Z0-9_]*(\([^)]*\))?"
+color brightcyan "(\(|\)|\|\||&&|<|>|<=|>=|!=|==|\[|\]|stdin|stdout|stderr)"
+color brightred "\\."
+color brightred "\\[0-7]*"
+color brightblack "^ *#.*$"
+color brightblack "; *#.*$"
+
+## Ruby
+##
+syntax "ruby" ".*\.*rb$"
+color brightblue ""
+color brightyellow "(::|\*\*|!|~|\*|/|%|\+|-|&|<<|>>|\|\^|>|>=|<|<=)"
+color brightyellow "(<=>|\|\||!=|=~|!~|&&|\+=|-=|=|\.\.|\.\.\.)"
+color brightyellow "(\<not\>|\<and\>|\<or\>)"
+color brightgreen "\<(BEGIN|END|alias|and|begin|break|case)\>"
+color brightgreen "\<(class|def|defined|do|else|elsif|end)\>"
+color brightgreen "\<(ensure|for|if|in|module|next|not|or|redo)\>"
+color brightgreen "\<(rescue|retry|return|self|super|then|undef)\>"
+color brightgreen "\<(unless|until|when|while|yield)\>"
+color brightmagenta "\<(false|nil|true)\>"
+color white "\<nil\?"
+color brightgreen "\<(load|require|%q|%!|%Q|%r|%x)\>"
+color brightgreen "\|\w*\|"
+color yellow "\<[A-Z]\w*\>"
+color yellow "([ \t]|^):(@|@@|\$)?\w+\>"
+color brightyellow "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
+color green "`(\\.|[^\\\"])*`"
+color green "/(\\.|[^\\/])*/[imox]*"
+color brightred "(\\[0-7][0-7]*|\\x[0-9a-fA-F]*)"
+color brightred "\\[abefnrs]"
+color brightred "(\\c|\\C-|\\M-|\\M-\\C-)."
+color brightblack "#([^{].*)?$"
+color brightblack start="^=begin" end="^=end"
+
 ## Patch files
 ##
 syntax "patch" "\.(patch|diff)$"



More information about the Lunar-commits mailing list