1 2008-01-01 Tim Retout <diocles@gnu.org>
3 * ChangeLog: Run M-x change-log-redate. Add copyright notice at end.
5 1999-09-24 Markku Rossi <mtr@amme.ssh.fi>
7 * utils.c (eval_expr): Added filename and linenumber information
8 to some error messages.
10 1999-07-19 Markku Rossi <mtr@amme.ssh.fi>
12 * enscript.st (mail_body): Changes by Matthew Weigel
15 * prims.c (prim_sprintf): Implemented `%c' format to print
18 1999-07-13 Markku Rossi <mtr@amme.ssh.fi>
20 * utils.c (lookup_var): Fixed memory leaks from the special
23 1999-07-08 Markku Rossi <mtr@amme.ssh.fi>
25 * enscript.st: Highlighting rules for TeX/LaTeX. Thanks to Toni
26 Giorgino <toni@pcape2.pi.infn.it>.
28 1999-04-28 Markku Rossi <mtr@amme.ssh.fi>
30 * prims.c (prim_system): Implemented the system() primitive.
32 1999-04-01 Markku Rossi <mtr@amme.ssh.fi>
34 * enscript.st (namerules): Changed the `.m' suffix from
35 Objective-C to Matlab.
36 Matlab changes Jack Dunn.
38 1999-03-30 Markku Rossi <mtr@amme.ssh.fi>
40 * enscript.st (ansi_faces): New output language ANSI for color
41 xterms. It should be used with the `tty' style. Thanks to Bill
42 Petheram <petheram@acm.org>.
44 1999-03-12 Markku Rossi <mtr@amme.ssh.fi>
46 * enscript.st (makefile): Added highlighting for Matlab files.
47 Thanks to Jack Dunn <h.j.dunn@larc.nasa.gov>.
49 1999-01-07 Markku Rossi <mtr@amme.ssh.fi>
51 * enscript.st (ksh): In ${#text}, the '#' character does not start
52 a comment. Thanks to Tobias Buchal <buchal41@che41a0.der.edf.fr>.
53 (cpp): Allow '&' characters in function names. Thans to Tobias
56 1998-10-28 Markku Rossi <mtr@ngs.fi>
58 * process.c (execute_state): Added initialization for the variable
61 1998-10-23 Markku Rossi <mtr@ngs.fi>
63 * Makefile.am: Changed the enscript to use the new highlighting
64 style. The highlighting definition files are in the `hl'
67 * prims.c (prim_calln): New primitive function to call a state by
69 (prim_require_state): New primitive function to check that the
70 arugment state is defined.
72 * main.c (main): Use PATH_SEPARATOR when constructing the path.
74 * utils.c (autoload_file): Fixed to use PATH_SEPARATOR.
76 1998-10-22 Markku Rossi <mtr@ngs.fi>
78 * enscript.st (vrml): Added built-in nodes. Thanks to James
81 * utils.c (load_states_file): The `global_stmts' must be
82 initialized to list() instead of NULL.
83 (autoload_file): Send verbose messages to stderr.
85 * enscript.st (vrml): Small fixes by James Sørlie.
86 (overstrike_faces): Fixed to handle newline characters correctly
89 1998-10-21 Markku Rossi <mtr@ngs.fi>
91 * utils.c: Changed all input file related error messages to use
92 the correct file name.
93 (load_states_file): New function to load a states file.
94 (autoload_file): New function to autoload a feature.
95 (lookup_state): Moved here from process.c.
97 * process.c: The function lookup_state() was moved to utils.c and
100 * main.c: New options -p, --path, -v, --verbose.
102 * defs.h: Added `filename' members to all types that report errors
103 from a source file locations.
104 Added support for state autoloading.
106 * enscript.st (vrml): Small fixes by James Sørlie.
108 * process.c (execute_state): Fixed to execute the BEGIN and END
109 rules of the inherited states.
111 * enscript.st (vrml): Added highlighting for the Virtual Reality
112 Modeling Language (VRML97). Thanks to James Sørlie
113 <sorliej@imm.dtu.dk>.
115 1998-10-15 Markku Rossi <mtr@ngs.fi>
117 * gram.y: Added support for state inheritance.
119 * lex.l: New keyword `extends'.
121 * process.c (lookup_state): New function to lookup a state by its
122 name. This function is extented in the future to support
124 (execute_state): Fixed to support state heritance.
126 * utils.c (define_state): Added argument `super' for the super
127 state of our new state.
129 * defs.h (struct state_st): New type for the states. The states
130 can be ~inherited, so we can't use the basic list anymore.
132 1998-09-17 Markku Rossi <mtr@ngs.fi>
134 * enscript.st: Updated C, C++, and Objective-C mode highlightings
135 to support bitfields in structure definitions. Thanks to Chris
136 Jepeway <jepeway@cs.utk.edu>.
138 1998-08-03 Markku Rossi <mtr@ngs.fi>
140 * enscript.st: New highlighting rules for: bash, csh, ksh, m4,
141 skill, tcsh, and zsh. Thanks to Jean-Marc Calvez
142 <jean-marc.calvez@st.com>.
143 (fortran): Some fortran highlighting fixes. Thanks to Philip
146 1998-07-01 Markku Rossi <mtr@ngs.fi>
148 * enscript.st (c, cpp, objc): Major updates. Now these are pretty
149 close to Emacs' font-lock mode.
150 (html_faces): Changed type faces to be printed in boldface instead
152 (start): Changed `type_face_font' to be the `bold_font' instead of
155 1998-06-26 Markku Rossi <mtr@ngs.fi>
157 * enscript.st (c): Added support for the C++'ish //-single line
160 1998-06-23 Markku Rossi <mtr@ngs.fi>
162 * enscript.st (html_faces): Cleaned up the HTML faces.
163 (start): Added support for `LucidaSans-Typewriter' font.
165 * main.c (main): Changed the name of the stdin to "-".
167 1998-06-22 Markku Rossi <mtr@ngs.fi>
169 * main.c (main): Enscript gives the stdin as an empty argument.
170 Fixed the main() to handle it.
172 1998-06-11 Markku Rossi <mtr@ngs.fi>
174 * enscript.st: Fixed Python function definition highlighting.
175 Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
177 1998-05-29 Markku Rossi <mtr@ngs.fi>
179 * enscript.st (idl): Added highlighting for the CORBA Interface
180 Definition Language IDL. Thanks to Alexis Layton
181 <alex@InConcert.COM>.
183 1998-05-27 Markku Rossi <mtr@ngs.fi>
185 * enscript.st (javascript): Updated the function name regexp. The
186 function names - and all other symbols - can contain the dollar
188 (javascript): Fixed ''-strings and character constants.
190 1998-03-09 Markku Rossi <mtr@ngs.fi>
192 * enscript.st (vba): Added highlighting for Visual Basic (for
193 Applications). Thanks to Kevin Grover <grover@wizard.com>.
194 Added new output language RTF (Rich Text Format). Thanks to Kevin
195 Grover <grover@wizard.com>.
196 (python): Updated Python highlighting rules.
198 1998-02-27 Markku Rossi <mtr@ngs.fi>
200 * enscript.st (python): Added highlighting for the Python
201 language. Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
202 (asm): Added highlighting rules for Assembler listings.
204 1998-02-11 Markku Rossi <mtr@ngs.fi>
206 * enscript.st (javascript): Initialize from_html to 0 at the
207 global level. Now we can print JavaScript files that are not
210 1998-01-29 Markku Rossi <mtr@ngs.fi>
212 * enscript.st (perl): Fixed to handle oddities in OO perl and perl
213 used for cgi scripts. Thanks to Jim Villani.
215 1998-01-28 Markku Rossi <mtr@ngs.fi>
217 * enscript.st (sh): Added highlighting for bourne shell scripts.
218 Thanks to Juergen Kahrs <Juergen.Kahrs@t-online.de>.
219 (startrules): Fixed perl and awk rules to accept space after
222 1998-01-20 Markku Rossi <mtr@ngs.fi>
224 * enscript.st (awk): Added highlighting for awk. Thanks to
225 Juergen Kahrs <Juergen.Kahrs@t-online.de>.
227 1997-12-31 Markku Rossi <mtr@ngs.fi>
229 * enscript.st (namerules): Added suffix `.pm' for perl mode.
230 (startrules): Fixed perl mode to recognize files which start with
233 1997-12-30 Markku Rossi <mtr@ngs.fi>
235 * enscript.st: Added colors `cadet blue' and `orchid'.
236 Fixed `emacs' color model to conform the emacs' defaults.
237 (changelog): Updated ChangeLog highlighting to conform emacs.
239 1997-12-17 Markku Rossi <mtr@ngs.fi>
241 * utils.c (lookup_var): Made special variable `$`' an alias for
244 1997-12-15 Markku Rossi <mtr@ngs.fi>
246 * enscript.st (html_faces): Added navigation links: top, next,
248 (start): New colormode `ifh'. Thanks to Tobias Buchal
249 <buch@ifh.bau-verm.uni-karlsruhe.de>
250 (diff): Added highlighting for diffs. Thanks to Tobias Buchal.
251 (diffu): Added highlighting for unified diffs. Thanks to Tobias
253 (html_annotate_mailtos): Fixed addresses which contain '-'
255 (html_annotate_mailtos): Fixed addresses which contain '.'
256 characters in the user name.
258 1997-11-13 Markku Rossi <mtr@ngs.fi>
260 * enscript.st (delphi): Added support for C++ style comments.
261 (fortran): Updated Fortran highlighting. Thanks to Keith Refson
262 <Keith.Refson@earth.ox.ac.uk>.
264 1997-08-27 Markku Rossi <mtr@ngs.fi>
266 * prims.c (prim_regexp_syntax): New primitive to modify regexp
267 engine's character syntax table.
269 * enscript.st (scheme): Improved keyword highlighting, thanks to
270 the new regexp_syntax() primitive which can be used to modify
271 regexp character syntax table.
273 1997-08-11 Markku Rossi <mtr@ngs.fi>
275 * enscript.st (start): Fixed PostScript font resolving to work
276 with the `Souvenir' font.
278 1997-07-18 Markku Rossi <mtr@ngs.fi>
280 * lex.l: Implemented case-insensitive regular expressions.
282 1997-07-16 Markku Rossi <mtr@ngs.fi>
284 * enscript.st (sql): Updated Sybase SQL highlighting rules, thanks
285 to Chris Jack <chris_jack@msn.com>.
287 1997-07-04 Markku Rossi <mtr@ngs.fi>
289 * utils.c (compile_regexp): New function to handle regular
290 expression compilations.
291 (compile_regexp): Added fastmaps for regexps, this speeds up the
292 processing noticeably.
294 1997-06-23 Markku Rossi <mtr@ngs.fi>
296 * enscript.st (sql): Added highlighting for SQL language by
297 Chris Jack <chris_jack@msn.com>.
299 * utils.c (lookup_var): Renamed special variable `$`' to `$B'.
301 * enscript.st (perl): Added highlighting for Perl programming
302 language by Jim Villani, Logistics Management Institute
305 1997-06-10 Markku Rossi <mtr@ngs.fi>
307 * utils.c (lookup_var): New special variable `$.'.
308 (lookup_var): New special variable `$`'.
310 1997-06-06 Markku Rossi <mtr@ngs.fi>
312 * prims.c (prim_float): New primitive to convert items to float
315 1997-06-03 Markku Rossi <mtr@ngs.fi>
317 * enscript.st (c): Improved C pre-processor line highlighting to
318 highlights also string and character constansts.
319 (c): Added highlighting for goto's labels and targets.
320 (c): Added highlighting for function definitions and prototypes.
321 (changelog): Added highlighting for description entries with
322 function name but without file name.
323 (cpp): Added highlighting for goto's labels and targes.
324 (cpp): Added highlighting for function definitions and
326 (objc): Added highlighting for goto's labels and targets.
328 1997-05-20 Markku Rossi <mtr@ngs.fi>
330 * enscript.st (delphi): Added highlighting for Delphi language by
331 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
333 * main.c (main): Moved the initialization of `ofp' from the
334 variable declaration to main().
336 1997-05-02 Markku Rossi <mtr@ngs.fi>
338 * enscript.el (build-re): Added support for case-insensitive
341 * enscript.st (fortran): Added highlighting for Fortran77
343 Re-generated case-insensitive keyword regular expressions with the
344 new build-re function.
346 1997-04-25 Markku Rossi <mtr@ngs.fi>
348 * enscript.st (pascal): Added highlighting for Pascal language by
349 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
351 1997-04-16 Markku Rossi <mtr@ngs.fi>
353 * gram.y: Implemented expressions: +=, -=, *=, div=.
355 1997-04-14 Markku Rossi <mtr@ngs.fi>
357 * gram.y: Implemented prefix and postfix increment (++) and
358 decrement (--) operators.
360 1997-04-04 Markku Rossi <mtr@ngs.fi>
362 * enscript.st (java): Added highlighting for Java language by Paul
363 Fisher <pnfisher@eos.ncsu.edu>.
364 (html_faces): Fixed 1.5.0 compatibility bug.
366 1997-04-03 Markku Rossi <mtr@ngs.fi>
368 * prims.c (prim_range): New primitive to fetch sub-ranges from
370 Changed all primitives' error messages to be in format
371 `FILE:LINE: MESSAGE'.
373 1997-03-25 Markku Rossi <mtr@ngs.fi>
375 * prims.c (prim_regexp): New primitive to create regular
376 expressions from strings.
377 (prim_split): New primitive to split string to list.
379 1997-03-21 Markku Rossi <mtr@ngs.fi>
381 * enscript.st (html): Added support for nested scripts.
382 (javascript): Added highlighting for JavaScript.
384 1997-03-19 Markku Rossi <mtr@ngs.fi>
386 * enscript.st (need_version): New help subroutine to check that a
387 specified version of the states program is in use.
388 (html_faces): Changed HTML output language to co-operate with
389 enscript's new --language option.
390 (passthrough): New state which simply pass its input to output
391 preserving only face specific headers, footers and language
394 * main.c (main): New built-in variable `argv' which holds input
397 1997-03-17 Markku Rossi <mtr@ngs.fi>
399 * enscript.st (elisp): Added highlighting for Emacs Lisp.
400 (overstrike_faces): New output language `overstrike' for line
401 printers and less by François Pinard.
402 (tcl): Updated Tcl and Tk keywords from Tcl/Tk 8.0a1.
403 Added highlighting for procedure names and variable names.
404 (scheme): Fixed keywords to recognize `set!'.
406 1997-03-11 Markku Rossi <mtr@ngs.fi>
408 * enscript.st (states): Updated keyword list.
409 Implemented highlighting for built-in functions.
410 Added highlighting for function names.
412 1997-03-10 Markku Rossi <mtr@ngs.fi>
414 * enscript.st (postscript): Added highlighting for PostScript
415 language by Dave Hylands <DHylands@creo.com>.
416 Sorted highlighting states according to their names.
418 1997-03-06 Markku Rossi <mtr@ngs.fi>
420 * enscript.st: Implemented new `variable_name_face' typeface.
421 (c_ppline): Implemented a smarter C preprocessor line highlighting
422 support. Now it should be identical with Emacs's highlight.
424 1997-03-04 Markku Rossi <mtr@ngs.fi>
426 * enscript.st (ada): Added highlighting for the Ada95 programming
427 language by Rolf Ebert <ebert@waporo.muc.de>.
429 1997-03-03 Markku Rossi <mtr@ngs.fi>
431 * enscript.st (start): Cleaned bold, italic and bold-italic font
433 (makefile): Fixed highlighting to handle nested (){} structures.
434 (scheme): Updated to highlight function names and ':'-started
437 1997-02-27 Markku Rossi <mtr@ngs.fi>
439 * enscript.st: Implemented new type faces: `builtin_face' and
441 (haskell): Added highlighting for the Haskell programming language
442 by Hans-Wolfgang Loidl <hwloidl@dcs.gla.ac.uk>.
443 Updated highlighting rule guidelines and updated all current rules
445 Implemented new documentation state `describe_languages_html'
446 which will create a HTML report about all supported highlighting
449 1997-02-26 Markku Rossi <mtr@ngs.fi>
451 * Release enscript-1.5.0.
453 1997-02-21 Markku Rossi <mtr@ngs.fi>
455 * gram.y: Implemented logical operators `not', `and' and `or'.
457 * main.c: New option -W, --warning to set the warning level.
459 * Added test subdirectory and tests for States.
461 1997-02-19 Markku Rossi <mtr@ngs.fi>
463 * enscript.st (synopsys): Added highlighting for the Synopsys DC
464 Shell scripting language by Brian Silveira (brian@nortel.ca) and
465 Hartley Horwitz (harts@nortel.ca).
466 (synopsys): New synopsys mode with some minor fixes.
468 1997-02-18 Markku Rossi <mtr@ngs.fi>
470 * enscript.st: Added guidelines for new highlighting rules.
471 (vhdl): Added VHDL highlighting by Brian Silveira
474 1997-02-11 Markku Rossi <mtr@ngs.fi>
476 * enscript.st (verilog): Added new '`' keywords.
477 (verilog): Added highlighting for references of the pre-processor
480 1997-02-05 Markku Rossi <mtr@ngs.fi>
482 * prims.c (prim_tointeger): Renamed primitive `tonumber' to
484 (prim_string): Renamed primitive `tostring' to `string'.
485 (prim_sprintf): New primitive to create formatted strings.
487 * utils.c (eval_expr): Implemented integer and real values and
488 expressions and conversions betweeen them.
490 * prims.c (prim_concat): Renamed primitive `strcat' to `concat'.
492 1997-02-04 Markku Rossi <mtr@ngs.fi>
494 * prims.c (prim_list): New primitive `list' to create lists.
495 (prim_length): Renamed primitive `strlen' to `length'.
497 * gram.y: Implemented array references and assignments for lists
500 * lex.l: Implemented C's character constants ('a').
502 1997-02-03 Markku Rossi <mtr@ngs.fi>
504 * enscript.st: Added `describe_languages' state which can be used
505 to extract information about the supported --pretty-print
506 languages from the enscript.st file.
507 Added documentation comments (/** */) to all supported languages
509 Changed start state resolving to check the startrules before the
511 Added colors for HTML target.
513 * Fixed bugs encountered with enscript-1.4.4.
514 Updated developement tools: flex-2.5.4 and bison-1.25.
516 1997-01-31 Markku Rossi <mtr@ngs.fi>
518 * prims.c (prim_prereq): New primitive to check that a recent
519 enough version of States is being used.
521 1997-01-25 Markku Rossi <mtr@ngs.fi>
523 * enscript.st (changelog): Implemented ChangeLog highlighting.
525 * enscript.el: Emacs lisp commands to help enscript.st editing.
527 * enscript.st (objc): Implemented Objective-C highlighting.
528 Regenerated keyword regular expressions with the Emacs-lisp
531 1997-01-24 Markku Rossi <mtr@ngs.fi>
533 * prims.c: New primitives: regmatch, regsub and regsuball.
535 1997-01-23 Markku Rossi <mtr@ngs.fi>
537 * prims.c (prim_getenv): New primitive: getenv.
539 * Makefile.am: Moved libcompat.a before libintl.a so intl library
542 * De-ANSI-fied states sources since bison generated gram.c is
545 1997-01-22 Markku Rossi <mtr@ngs.fi>
547 * Makefile.am: Added many2html script.
549 * enscript.st: Added support for multiple output languages and
550 implemented HTML target for all supported input languages.
552 * gram.y: changed top-level expressions to statements and moved
553 subroutine definition from top-level to statements. This allows
554 conditional subroutine definitions.
555 added tSYMBOL for state rule's expr part. This allows
556 user-definable matches.
558 1997-01-20 Markku Rossi <mtr@ngs.fi>
560 * enscript.st (tcl): Implemented Tcl highlighting.
562 * defs.h (struct environment_st): Changed procedure call's
563 environment from StringHash to linked list, this gives major
566 * Version 0.9 of States, this is an early beta.
569 Copyright (C) 1997, 1998, 1999, 2008 Free Software Foundation, Inc.
571 Copying and distribution of this file, with or without modification,
572 are permitted in any medium without royalty provided the copyright
573 notice and this notice are preserved.