diff --git a/ChangeLog b/ChangeLog index 3b5bab1fb..f111f15d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,9 +11,6 @@ * src/find.c, src/main.c, src/panelize.c, src/util.c, src/utilunix.c, * src/widget.c, src/widget.h, src/wtools.c, vfs/fish.c: fixed shell escaping issues in commandline completion engine - -2009-01-31 Enrico Weigelt, metux ITS - * replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file() (in mhl/string.h) * replaced g_snprintf() by snprintf() @@ -21,6 +18,7 @@ * src/Makefile.am, edit/Makefile.am vfs/Makefile.am: fixed #208 (out-of-tree builds) + * syntax/Syntax, syntax/Makefile.am, syntax/vhdl.syntax: added VHDL syntax (#193) 2009-01-29 Mikhail S. Pobolovets * lib/mc.ext.in: update for OpenOffice and StarOffice viewer. @@ -36,9 +34,6 @@ * mhl/escape.h, src/complete.c, vfs/fish.c: introduced new type SHELL_ESCAPED_STR for more type safety - -2009-01-27 Enrico Weigelt, metux IT service - * mhl/escape.h, mhl/string.h: fixed comments to use /* ... */ 2009-01-27 Sergei Trofimovich @@ -66,7 +61,7 @@ * src/cmd.c src/option.c src/setup.c src/main.h: Automatic new directory(Mkdir, F7) name filling. Can be configured (on|off) in 'Configure options' -2009-01-25 Enrico Weigelt +2009-01-25 Enrico Weigelt, metux ITS * edit/editcmd.c, src/cmd.c, src/ext.c, src/history.h: * src/hotlist.c, src/panelize.c, src/tree.c, src/user.c: @@ -75,9 +70,11 @@ translated strings. This breaks now once every history file but afterwards this will be stable -2009-01-24 Enrico Weigelt +2009-01-24 Enrico Weigelt, metux ITS * src/cmd.c: fixed bug #35 (do_view_cmd is now calling repaint_screen()) + * syntax/Syntax, syntax/nemerle.syntax: Added syntax rules + for Nemerle source files 2009-01-24 Patrick Winnertz @@ -85,11 +82,6 @@ - prevent . to match a newline (\n) - match from start of line and not from cursor position -2009-01-24 Enrico Weigelt, metux IT service - - * syntax/Syntax, syntax/nemerle.syntax: Added syntax rules - for Nemerle source files - 2009-01-19 Patrick Winnertz * edit/edit.h: Add two more ints @@ -104,7 +96,7 @@ * src/main.c: Removed unused function do_mc_filename_rename * src/util.c: Removed unused struct whentm -2009-01-16 Enrico Weigelt, metux IT service +2009-01-16 Enrico Weigelt, metux ITS * src/subshell: setting subshell pty to close-on-exec (taken from mandriva patches) @@ -142,9 +134,6 @@ * syntax/Makefile.am syntax/Syntax syntax/haskell.syntax: added syntax definition for Haskell (taken from rhclub-tree) * syntax: added ebuild Syntax defition (taken from rhclub-tree) - -2009-01-10 Enrico Weigelt, metux ITS - * edit/editcmd.c: * src/achown.c src/background.c src/boxes.c src/chmod.c: * src/chown.c src/cmd.c src/command.c src/dir.c src/execute.c: diff --git a/syntax/Makefile.am b/syntax/Makefile.am index c6500b9f5..378c95616 100644 --- a/syntax/Makefile.am +++ b/syntax/Makefile.am @@ -52,6 +52,7 @@ SYNTAXFILES = \ syntax.syntax \ tcl.syntax \ texinfo.syntax \ + vhdl.syntax \ unknown.syntax \ xml.syntax diff --git a/syntax/Syntax b/syntax/Syntax index 4487aed3b..a82187588 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -187,5 +187,8 @@ include haskell.syntax file ..\*\\.(n|N)$ Nemerle\sProgram include nemerle.syntax +file ..\*\\.(hdl|vhdl|HDL|VHDL)$ VHDL\sProgram +include vhdl.syntax + file .\* unknown include unknown.syntax diff --git a/syntax/vhdl.syntax b/syntax/vhdl.syntax new file mode 100644 index 000000000..8945d3bb2 --- /dev/null +++ b/syntax/vhdl.syntax @@ -0,0 +1,147 @@ +# Adam Pribyl, based on ADA +# missing +# generate, disconnect, group, guarded, impure, inertial, linkage, literal, new, on, others, postponed, pure, register, reject, select, shared, sli, transport, unaffected, units + + +#wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.\\[]{} + +#ignore case?! + +context default + + keyword whole with yellow + keyword whole use yellow + keyword whole is yellow + keyword whole of yellow + keyword whole range yellow + keyword whole abs yellow + keyword whole delta yellow + keyword whole return yellow + keyword whole next yellow + keyword whole null yellow + keyword whole after yellow + keyword whole array yellow + keyword whole downto yellow + keyword whole to yellow + +# prevents - keyword from interfering with comment + keyword -- brown + +# expressions + keyword := brightgreen + keyword . brightgreen + keyword ; brightgreen + keyword .. brightgreen + keyword : brightgreen + keyword ( brightgreen + keyword ) brightgreen + keyword \+ brightgreen + keyword - brightgreen + keyword / brightgreen + keyword \* brightgreen + keyword \*\* brightgreen + keyword # brightgreen + keyword => brightgreen + keyword <= brightgreen + keyword >= brightgreen + keyword , brightgreen + keyword ' brightgreen + keyword = brightgreen + keyword /= brightgreen + +# operators + keyword whole sll green + keyword whole srl green + keyword whole sla green + keyword whole sra green + keyword whole rol green + keyword whole ror green + keyword whole rem green + keyword whole mod green + keyword whole not green + keyword whole and green + keyword whole nand green + keyword whole or green + keyword whole xor green + keyword whole nor green + keyword whole xnor green + +# sequential statements + keyword whole begin brightred + keyword whole end brightred + keyword whole exit brightred + keyword whole for brightred + keyword whole while brightred + keyword whole if brightred + keyword whole then brightred + keyword whole else brightred + keyword whole case brightred + keyword whole when brightred + keyword whole elsif brightred + keyword whole assert brightred + keyword whole wait brightred + keyword whole open brightred + keyword whole loop brightred + keyword whole until brightred + +# parallel statements + keyword whole block brightred + +# predefined types + keyword whole integer cyan + keyword whole natural cyan + keyword whole positive cyan + keyword whole string cyan + keyword whole character cyan + keyword whole boolean cyan + keyword whole real cyan + keyword whole bit cyan + keyword whole bit_vector cyan + keyword whole time cyan + +# declarations + keyword whole type brightcyan + keyword whole subtype brightcyan + + keyword whole variable brightcyan + keyword whole signal brightcyan + keyword whole constant brightcyan + keyword whole file brightcyan + + keyword whole port brightcyan + keyword whole map brightcyan + keyword whole label brightcyan + keyword whole record brightcyan + keyword whole generic brightcyan + keyword whole alias brightcyan + keyword whole attribute brightcyan + + keyword whole in white + keyword whole out white + keyword whole inout white + keyword whole buffer white + keyword whole bus white + +# library units + keyword whole library magenta + keyword whole entity magenta + keyword whole architecture magenta + keyword whole package magenta + keyword whole body magenta + keyword whole procedure magenta + keyword whole function magenta + keyword whole configuration magenta + keyword whole component magenta + keyword whole generic magenta + keyword whole process magenta + +# reports + keyword whole report red + keyword whole severity red + keyword whole note red + keyword whole warning red + keyword whole error red + keyword whole failure red + +context exclusive -- \n brown +context " " green/green