1 2008-01-29 Tim Retout <diocles@gnu.org>
3 * Makefile.am (CLEANFILES): Clean up installed scripts.
5 2008-01-02 Tim Retout <diocles@gnu.org>
7 * main.c (main): Use PACKAGE_STRING to produce version string.
9 2008-01-01 Tim Retout <diocles@gnu.org>
11 * ChangeLog: Run M-x change-log-redate. Add copyright notice at end.
13 1999-09-24 Markku Rossi <mtr@amme.ssh.fi>
15 * utils.c (eval_expr): Added filename and linenumber information
16 to some error messages.
18 1999-07-19 Markku Rossi <mtr@amme.ssh.fi>
20 * enscript.st (mail_body): Changes by Matthew Weigel
23 * prims.c (prim_sprintf): Implemented `%c' format to print
26 1999-07-13 Markku Rossi <mtr@amme.ssh.fi>
28 * utils.c (lookup_var): Fixed memory leaks from the special
31 1999-07-08 Markku Rossi <mtr@amme.ssh.fi>
33 * enscript.st: Highlighting rules for TeX/LaTeX. Thanks to Toni
34 Giorgino <toni@pcape2.pi.infn.it>.
36 1999-04-28 Markku Rossi <mtr@amme.ssh.fi>
38 * prims.c (prim_system): Implemented the system() primitive.
40 1999-04-01 Markku Rossi <mtr@amme.ssh.fi>
42 * enscript.st (namerules): Changed the `.m' suffix from
43 Objective-C to Matlab.
44 Matlab changes Jack Dunn.
46 1999-03-30 Markku Rossi <mtr@amme.ssh.fi>
48 * enscript.st (ansi_faces): New output language ANSI for color
49 xterms. It should be used with the `tty' style. Thanks to Bill
50 Petheram <petheram@acm.org>.
52 1999-03-12 Markku Rossi <mtr@amme.ssh.fi>
54 * enscript.st (makefile): Added highlighting for Matlab files.
55 Thanks to Jack Dunn <h.j.dunn@larc.nasa.gov>.
57 1999-01-07 Markku Rossi <mtr@amme.ssh.fi>
59 * enscript.st (ksh): In ${#text}, the '#' character does not start
60 a comment. Thanks to Tobias Buchal <buchal41@che41a0.der.edf.fr>.
61 (cpp): Allow '&' characters in function names. Thans to Tobias
64 1998-10-28 Markku Rossi <mtr@ngs.fi>
66 * process.c (execute_state): Added initialization for the variable
69 1998-10-23 Markku Rossi <mtr@ngs.fi>
71 * Makefile.am: Changed the enscript to use the new highlighting
72 style. The highlighting definition files are in the `hl'
75 * prims.c (prim_calln): New primitive function to call a state by
77 (prim_require_state): New primitive function to check that the
78 arugment state is defined.
80 * main.c (main): Use PATH_SEPARATOR when constructing the path.
82 * utils.c (autoload_file): Fixed to use PATH_SEPARATOR.
84 1998-10-22 Markku Rossi <mtr@ngs.fi>
86 * enscript.st (vrml): Added built-in nodes. Thanks to James
89 * utils.c (load_states_file): The `global_stmts' must be
90 initialized to list() instead of NULL.
91 (autoload_file): Send verbose messages to stderr.
93 * enscript.st (vrml): Small fixes by James Sørlie.
94 (overstrike_faces): Fixed to handle newline characters correctly
97 1998-10-21 Markku Rossi <mtr@ngs.fi>
99 * utils.c: Changed all input file related error messages to use
100 the correct file name.
101 (load_states_file): New function to load a states file.
102 (autoload_file): New function to autoload a feature.
103 (lookup_state): Moved here from process.c.
105 * process.c: The function lookup_state() was moved to utils.c and
108 * main.c: New options -p, --path, -v, --verbose.
110 * defs.h: Added `filename' members to all types that report errors
111 from a source file locations.
112 Added support for state autoloading.
114 * enscript.st (vrml): Small fixes by James Sørlie.
116 * process.c (execute_state): Fixed to execute the BEGIN and END
117 rules of the inherited states.
119 * enscript.st (vrml): Added highlighting for the Virtual Reality
120 Modeling Language (VRML97). Thanks to James Sørlie
121 <sorliej@imm.dtu.dk>.
123 1998-10-15 Markku Rossi <mtr@ngs.fi>
125 * gram.y: Added support for state inheritance.
127 * lex.l: New keyword `extends'.
129 * process.c (lookup_state): New function to lookup a state by its
130 name. This function is extented in the future to support
132 (execute_state): Fixed to support state heritance.
134 * utils.c (define_state): Added argument `super' for the super
135 state of our new state.
137 * defs.h (struct state_st): New type for the states. The states
138 can be ~inherited, so we can't use the basic list anymore.
140 1998-09-17 Markku Rossi <mtr@ngs.fi>
142 * enscript.st: Updated C, C++, and Objective-C mode highlightings
143 to support bitfields in structure definitions. Thanks to Chris
144 Jepeway <jepeway@cs.utk.edu>.
146 1998-08-03 Markku Rossi <mtr@ngs.fi>
148 * enscript.st: New highlighting rules for: bash, csh, ksh, m4,
149 skill, tcsh, and zsh. Thanks to Jean-Marc Calvez
150 <jean-marc.calvez@st.com>.
151 (fortran): Some fortran highlighting fixes. Thanks to Philip
154 1998-07-01 Markku Rossi <mtr@ngs.fi>
156 * enscript.st (c, cpp, objc): Major updates. Now these are pretty
157 close to Emacs' font-lock mode.
158 (html_faces): Changed type faces to be printed in boldface instead
160 (start): Changed `type_face_font' to be the `bold_font' instead of
163 1998-06-26 Markku Rossi <mtr@ngs.fi>
165 * enscript.st (c): Added support for the C++'ish //-single line
168 1998-06-23 Markku Rossi <mtr@ngs.fi>
170 * enscript.st (html_faces): Cleaned up the HTML faces.
171 (start): Added support for `LucidaSans-Typewriter' font.
173 * main.c (main): Changed the name of the stdin to "-".
175 1998-06-22 Markku Rossi <mtr@ngs.fi>
177 * main.c (main): Enscript gives the stdin as an empty argument.
178 Fixed the main() to handle it.
180 1998-06-11 Markku Rossi <mtr@ngs.fi>
182 * enscript.st: Fixed Python function definition highlighting.
183 Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
185 1998-05-29 Markku Rossi <mtr@ngs.fi>
187 * enscript.st (idl): Added highlighting for the CORBA Interface
188 Definition Language IDL. Thanks to Alexis Layton
189 <alex@InConcert.COM>.
191 1998-05-27 Markku Rossi <mtr@ngs.fi>
193 * enscript.st (javascript): Updated the function name regexp. The
194 function names - and all other symbols - can contain the dollar
196 (javascript): Fixed ''-strings and character constants.
198 1998-03-09 Markku Rossi <mtr@ngs.fi>
200 * enscript.st (vba): Added highlighting for Visual Basic (for
201 Applications). Thanks to Kevin Grover <grover@wizard.com>.
202 Added new output language RTF (Rich Text Format). Thanks to Kevin
203 Grover <grover@wizard.com>.
204 (python): Updated Python highlighting rules.
206 1998-02-27 Markku Rossi <mtr@ngs.fi>
208 * enscript.st (python): Added highlighting for the Python
209 language. Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
210 (asm): Added highlighting rules for Assembler listings.
212 1998-02-11 Markku Rossi <mtr@ngs.fi>
214 * enscript.st (javascript): Initialize from_html to 0 at the
215 global level. Now we can print JavaScript files that are not
218 1998-01-29 Markku Rossi <mtr@ngs.fi>
220 * enscript.st (perl): Fixed to handle oddities in OO perl and perl
221 used for cgi scripts. Thanks to Jim Villani.
223 1998-01-28 Markku Rossi <mtr@ngs.fi>
225 * enscript.st (sh): Added highlighting for bourne shell scripts.
226 Thanks to Juergen Kahrs <Juergen.Kahrs@t-online.de>.
227 (startrules): Fixed perl and awk rules to accept space after
230 1998-01-20 Markku Rossi <mtr@ngs.fi>
232 * enscript.st (awk): Added highlighting for awk. Thanks to
233 Juergen Kahrs <Juergen.Kahrs@t-online.de>.
235 1997-12-31 Markku Rossi <mtr@ngs.fi>
237 * enscript.st (namerules): Added suffix `.pm' for perl mode.
238 (startrules): Fixed perl mode to recognize files which start with
241 1997-12-30 Markku Rossi <mtr@ngs.fi>
243 * enscript.st: Added colors `cadet blue' and `orchid'.
244 Fixed `emacs' color model to conform the emacs' defaults.
245 (changelog): Updated ChangeLog highlighting to conform emacs.
247 1997-12-17 Markku Rossi <mtr@ngs.fi>
249 * utils.c (lookup_var): Made special variable `$`' an alias for
252 1997-12-15 Markku Rossi <mtr@ngs.fi>
254 * enscript.st (html_faces): Added navigation links: top, next,
256 (start): New colormode `ifh'. Thanks to Tobias Buchal
257 <buch@ifh.bau-verm.uni-karlsruhe.de>
258 (diff): Added highlighting for diffs. Thanks to Tobias Buchal.
259 (diffu): Added highlighting for unified diffs. Thanks to Tobias
261 (html_annotate_mailtos): Fixed addresses which contain '-'
263 (html_annotate_mailtos): Fixed addresses which contain '.'
264 characters in the user name.
266 1997-11-13 Markku Rossi <mtr@ngs.fi>
268 * enscript.st (delphi): Added support for C++ style comments.
269 (fortran): Updated Fortran highlighting. Thanks to Keith Refson
270 <Keith.Refson@earth.ox.ac.uk>.
272 1997-08-27 Markku Rossi <mtr@ngs.fi>
274 * prims.c (prim_regexp_syntax): New primitive to modify regexp
275 engine's character syntax table.
277 * enscript.st (scheme): Improved keyword highlighting, thanks to
278 the new regexp_syntax() primitive which can be used to modify
279 regexp character syntax table.
281 1997-08-11 Markku Rossi <mtr@ngs.fi>
283 * enscript.st (start): Fixed PostScript font resolving to work
284 with the `Souvenir' font.
286 1997-07-18 Markku Rossi <mtr@ngs.fi>
288 * lex.l: Implemented case-insensitive regular expressions.
290 1997-07-16 Markku Rossi <mtr@ngs.fi>
292 * enscript.st (sql): Updated Sybase SQL highlighting rules, thanks
293 to Chris Jack <chris_jack@msn.com>.
295 1997-07-04 Markku Rossi <mtr@ngs.fi>
297 * utils.c (compile_regexp): New function to handle regular
298 expression compilations.
299 (compile_regexp): Added fastmaps for regexps, this speeds up the
300 processing noticeably.
302 1997-06-23 Markku Rossi <mtr@ngs.fi>
304 * enscript.st (sql): Added highlighting for SQL language by
305 Chris Jack <chris_jack@msn.com>.
307 * utils.c (lookup_var): Renamed special variable `$`' to `$B'.
309 * enscript.st (perl): Added highlighting for Perl programming
310 language by Jim Villani, Logistics Management Institute
313 1997-06-10 Markku Rossi <mtr@ngs.fi>
315 * utils.c (lookup_var): New special variable `$.'.
316 (lookup_var): New special variable `$`'.
318 1997-06-06 Markku Rossi <mtr@ngs.fi>
320 * prims.c (prim_float): New primitive to convert items to float
323 1997-06-03 Markku Rossi <mtr@ngs.fi>
325 * enscript.st (c): Improved C pre-processor line highlighting to
326 highlights also string and character constansts.
327 (c): Added highlighting for goto's labels and targets.
328 (c): Added highlighting for function definitions and prototypes.
329 (changelog): Added highlighting for description entries with
330 function name but without file name.
331 (cpp): Added highlighting for goto's labels and targes.
332 (cpp): Added highlighting for function definitions and
334 (objc): Added highlighting for goto's labels and targets.
336 1997-05-20 Markku Rossi <mtr@ngs.fi>
338 * enscript.st (delphi): Added highlighting for Delphi language by
339 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
341 * main.c (main): Moved the initialization of `ofp' from the
342 variable declaration to main().
344 1997-05-02 Markku Rossi <mtr@ngs.fi>
346 * enscript.el (build-re): Added support for case-insensitive
349 * enscript.st (fortran): Added highlighting for Fortran77
351 Re-generated case-insensitive keyword regular expressions with the
352 new build-re function.
354 1997-04-25 Markku Rossi <mtr@ngs.fi>
356 * enscript.st (pascal): Added highlighting for Pascal language by
357 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
359 1997-04-16 Markku Rossi <mtr@ngs.fi>
361 * gram.y: Implemented expressions: +=, -=, *=, div=.
363 1997-04-14 Markku Rossi <mtr@ngs.fi>
365 * gram.y: Implemented prefix and postfix increment (++) and
366 decrement (--) operators.
368 1997-04-04 Markku Rossi <mtr@ngs.fi>
370 * enscript.st (java): Added highlighting for Java language by Paul
371 Fisher <pnfisher@eos.ncsu.edu>.
372 (html_faces): Fixed 1.5.0 compatibility bug.
374 1997-04-03 Markku Rossi <mtr@ngs.fi>
376 * prims.c (prim_range): New primitive to fetch sub-ranges from
378 Changed all primitives' error messages to be in format
379 `FILE:LINE: MESSAGE'.
381 1997-03-25 Markku Rossi <mtr@ngs.fi>
383 * prims.c (prim_regexp): New primitive to create regular
384 expressions from strings.
385 (prim_split): New primitive to split string to list.
387 1997-03-21 Markku Rossi <mtr@ngs.fi>
389 * enscript.st (html): Added support for nested scripts.
390 (javascript): Added highlighting for JavaScript.
392 1997-03-19 Markku Rossi <mtr@ngs.fi>
394 * enscript.st (need_version): New help subroutine to check that a
395 specified version of the states program is in use.
396 (html_faces): Changed HTML output language to co-operate with
397 enscript's new --language option.
398 (passthrough): New state which simply pass its input to output
399 preserving only face specific headers, footers and language
402 * main.c (main): New built-in variable `argv' which holds input
405 1997-03-17 Markku Rossi <mtr@ngs.fi>
407 * enscript.st (elisp): Added highlighting for Emacs Lisp.
408 (overstrike_faces): New output language `overstrike' for line
409 printers and less by François Pinard.
410 (tcl): Updated Tcl and Tk keywords from Tcl/Tk 8.0a1.
411 Added highlighting for procedure names and variable names.
412 (scheme): Fixed keywords to recognize `set!'.
414 1997-03-11 Markku Rossi <mtr@ngs.fi>
416 * enscript.st (states): Updated keyword list.
417 Implemented highlighting for built-in functions.
418 Added highlighting for function names.
420 1997-03-10 Markku Rossi <mtr@ngs.fi>
422 * enscript.st (postscript): Added highlighting for PostScript
423 language by Dave Hylands <DHylands@creo.com>.
424 Sorted highlighting states according to their names.
426 1997-03-06 Markku Rossi <mtr@ngs.fi>
428 * enscript.st: Implemented new `variable_name_face' typeface.
429 (c_ppline): Implemented a smarter C preprocessor line highlighting
430 support. Now it should be identical with Emacs's highlight.
432 1997-03-04 Markku Rossi <mtr@ngs.fi>
434 * enscript.st (ada): Added highlighting for the Ada95 programming
435 language by Rolf Ebert <ebert@waporo.muc.de>.
437 1997-03-03 Markku Rossi <mtr@ngs.fi>
439 * enscript.st (start): Cleaned bold, italic and bold-italic font
441 (makefile): Fixed highlighting to handle nested (){} structures.
442 (scheme): Updated to highlight function names and ':'-started
445 1997-02-27 Markku Rossi <mtr@ngs.fi>
447 * enscript.st: Implemented new type faces: `builtin_face' and
449 (haskell): Added highlighting for the Haskell programming language
450 by Hans-Wolfgang Loidl <hwloidl@dcs.gla.ac.uk>.
451 Updated highlighting rule guidelines and updated all current rules
453 Implemented new documentation state `describe_languages_html'
454 which will create a HTML report about all supported highlighting
457 1997-02-26 Markku Rossi <mtr@ngs.fi>
459 * Release enscript-1.5.0.
461 1997-02-21 Markku Rossi <mtr@ngs.fi>
463 * gram.y: Implemented logical operators `not', `and' and `or'.
465 * main.c: New option -W, --warning to set the warning level.
467 * Added test subdirectory and tests for States.
469 1997-02-19 Markku Rossi <mtr@ngs.fi>
471 * enscript.st (synopsys): Added highlighting for the Synopsys DC
472 Shell scripting language by Brian Silveira (brian@nortel.ca) and
473 Hartley Horwitz (harts@nortel.ca).
474 (synopsys): New synopsys mode with some minor fixes.
476 1997-02-18 Markku Rossi <mtr@ngs.fi>
478 * enscript.st: Added guidelines for new highlighting rules.
479 (vhdl): Added VHDL highlighting by Brian Silveira
482 1997-02-11 Markku Rossi <mtr@ngs.fi>
484 * enscript.st (verilog): Added new '`' keywords.
485 (verilog): Added highlighting for references of the pre-processor
488 1997-02-05 Markku Rossi <mtr@ngs.fi>
490 * prims.c (prim_tointeger): Renamed primitive `tonumber' to
492 (prim_string): Renamed primitive `tostring' to `string'.
493 (prim_sprintf): New primitive to create formatted strings.
495 * utils.c (eval_expr): Implemented integer and real values and
496 expressions and conversions betweeen them.
498 * prims.c (prim_concat): Renamed primitive `strcat' to `concat'.
500 1997-02-04 Markku Rossi <mtr@ngs.fi>
502 * prims.c (prim_list): New primitive `list' to create lists.
503 (prim_length): Renamed primitive `strlen' to `length'.
505 * gram.y: Implemented array references and assignments for lists
508 * lex.l: Implemented C's character constants ('a').
510 1997-02-03 Markku Rossi <mtr@ngs.fi>
512 * enscript.st: Added `describe_languages' state which can be used
513 to extract information about the supported --pretty-print
514 languages from the enscript.st file.
515 Added documentation comments (/** */) to all supported languages
517 Changed start state resolving to check the startrules before the
519 Added colors for HTML target.
521 * Fixed bugs encountered with enscript-1.4.4.
522 Updated developement tools: flex-2.5.4 and bison-1.25.
524 1997-01-31 Markku Rossi <mtr@ngs.fi>
526 * prims.c (prim_prereq): New primitive to check that a recent
527 enough version of States is being used.
529 1997-01-25 Markku Rossi <mtr@ngs.fi>
531 * enscript.st (changelog): Implemented ChangeLog highlighting.
533 * enscript.el: Emacs lisp commands to help enscript.st editing.
535 * enscript.st (objc): Implemented Objective-C highlighting.
536 Regenerated keyword regular expressions with the Emacs-lisp
539 1997-01-24 Markku Rossi <mtr@ngs.fi>
541 * prims.c: New primitives: regmatch, regsub and regsuball.
543 1997-01-23 Markku Rossi <mtr@ngs.fi>
545 * prims.c (prim_getenv): New primitive: getenv.
547 * Makefile.am: Moved libcompat.a before libintl.a so intl library
550 * De-ANSI-fied states sources since bison generated gram.c is
553 1997-01-22 Markku Rossi <mtr@ngs.fi>
555 * Makefile.am: Added many2html script.
557 * enscript.st: Added support for multiple output languages and
558 implemented HTML target for all supported input languages.
560 * gram.y: changed top-level expressions to statements and moved
561 subroutine definition from top-level to statements. This allows
562 conditional subroutine definitions.
563 added tSYMBOL for state rule's expr part. This allows
564 user-definable matches.
566 1997-01-20 Markku Rossi <mtr@ngs.fi>
568 * enscript.st (tcl): Implemented Tcl highlighting.
570 * defs.h (struct environment_st): Changed procedure call's
571 environment from StringHash to linked list, this gives major
574 * Version 0.9 of States, this is an early beta.
577 Copyright (C) 1997, 1998, 1999, 2008 Free Software Foundation, Inc.
579 Copying and distribution of this file, with or without modification,
580 are permitted in any medium without royalty provided the copyright
581 notice and this notice are preserved.