1 2009-12-30 Tim Retout <diocles@gnu.org>
3 * over.in: Use "$@" instead of $*.
5 2009-01-13 Tim Retout <diocles@gnu.org>
7 * gram.c, gram.h, lex.c: Remove generated files from repository.
9 2008-01-29 Tim Retout <diocles@gnu.org>
11 * Makefile.am (CLEANFILES): Clean up installed scripts.
13 2008-01-02 Tim Retout <diocles@gnu.org>
15 * main.c (main): Use PACKAGE_STRING to produce version string.
17 2008-01-01 Tim Retout <diocles@gnu.org>
19 * ChangeLog: Run M-x change-log-redate. Add copyright notice at end.
21 1999-09-24 Markku Rossi <mtr@amme.ssh.fi>
23 * utils.c (eval_expr): Added filename and linenumber information
24 to some error messages.
26 1999-07-19 Markku Rossi <mtr@amme.ssh.fi>
28 * enscript.st (mail_body): Changes by Matthew Weigel
31 * prims.c (prim_sprintf): Implemented `%c' format to print
34 1999-07-13 Markku Rossi <mtr@amme.ssh.fi>
36 * utils.c (lookup_var): Fixed memory leaks from the special
39 1999-07-08 Markku Rossi <mtr@amme.ssh.fi>
41 * enscript.st: Highlighting rules for TeX/LaTeX. Thanks to Toni
42 Giorgino <toni@pcape2.pi.infn.it>.
44 1999-04-28 Markku Rossi <mtr@amme.ssh.fi>
46 * prims.c (prim_system): Implemented the system() primitive.
48 1999-04-01 Markku Rossi <mtr@amme.ssh.fi>
50 * enscript.st (namerules): Changed the `.m' suffix from
51 Objective-C to Matlab.
52 Matlab changes Jack Dunn.
54 1999-03-30 Markku Rossi <mtr@amme.ssh.fi>
56 * enscript.st (ansi_faces): New output language ANSI for color
57 xterms. It should be used with the `tty' style. Thanks to Bill
58 Petheram <petheram@acm.org>.
60 1999-03-12 Markku Rossi <mtr@amme.ssh.fi>
62 * enscript.st (makefile): Added highlighting for Matlab files.
63 Thanks to Jack Dunn <h.j.dunn@larc.nasa.gov>.
65 1999-01-07 Markku Rossi <mtr@amme.ssh.fi>
67 * enscript.st (ksh): In ${#text}, the '#' character does not start
68 a comment. Thanks to Tobias Buchal <buchal41@che41a0.der.edf.fr>.
69 (cpp): Allow '&' characters in function names. Thans to Tobias
72 1998-10-28 Markku Rossi <mtr@ngs.fi>
74 * process.c (execute_state): Added initialization for the variable
77 1998-10-23 Markku Rossi <mtr@ngs.fi>
79 * Makefile.am: Changed the enscript to use the new highlighting
80 style. The highlighting definition files are in the `hl'
83 * prims.c (prim_calln): New primitive function to call a state by
85 (prim_require_state): New primitive function to check that the
86 arugment state is defined.
88 * main.c (main): Use PATH_SEPARATOR when constructing the path.
90 * utils.c (autoload_file): Fixed to use PATH_SEPARATOR.
92 1998-10-22 Markku Rossi <mtr@ngs.fi>
94 * enscript.st (vrml): Added built-in nodes. Thanks to James
97 * utils.c (load_states_file): The `global_stmts' must be
98 initialized to list() instead of NULL.
99 (autoload_file): Send verbose messages to stderr.
101 * enscript.st (vrml): Small fixes by James Sørlie.
102 (overstrike_faces): Fixed to handle newline characters correctly
105 1998-10-21 Markku Rossi <mtr@ngs.fi>
107 * utils.c: Changed all input file related error messages to use
108 the correct file name.
109 (load_states_file): New function to load a states file.
110 (autoload_file): New function to autoload a feature.
111 (lookup_state): Moved here from process.c.
113 * process.c: The function lookup_state() was moved to utils.c and
116 * main.c: New options -p, --path, -v, --verbose.
118 * defs.h: Added `filename' members to all types that report errors
119 from a source file locations.
120 Added support for state autoloading.
122 * enscript.st (vrml): Small fixes by James Sørlie.
124 * process.c (execute_state): Fixed to execute the BEGIN and END
125 rules of the inherited states.
127 * enscript.st (vrml): Added highlighting for the Virtual Reality
128 Modeling Language (VRML97). Thanks to James Sørlie
129 <sorliej@imm.dtu.dk>.
131 1998-10-15 Markku Rossi <mtr@ngs.fi>
133 * gram.y: Added support for state inheritance.
135 * lex.l: New keyword `extends'.
137 * process.c (lookup_state): New function to lookup a state by its
138 name. This function is extented in the future to support
140 (execute_state): Fixed to support state heritance.
142 * utils.c (define_state): Added argument `super' for the super
143 state of our new state.
145 * defs.h (struct state_st): New type for the states. The states
146 can be ~inherited, so we can't use the basic list anymore.
148 1998-09-17 Markku Rossi <mtr@ngs.fi>
150 * enscript.st: Updated C, C++, and Objective-C mode highlightings
151 to support bitfields in structure definitions. Thanks to Chris
152 Jepeway <jepeway@cs.utk.edu>.
154 1998-08-03 Markku Rossi <mtr@ngs.fi>
156 * enscript.st: New highlighting rules for: bash, csh, ksh, m4,
157 skill, tcsh, and zsh. Thanks to Jean-Marc Calvez
158 <jean-marc.calvez@st.com>.
159 (fortran): Some fortran highlighting fixes. Thanks to Philip
162 1998-07-01 Markku Rossi <mtr@ngs.fi>
164 * enscript.st (c, cpp, objc): Major updates. Now these are pretty
165 close to Emacs' font-lock mode.
166 (html_faces): Changed type faces to be printed in boldface instead
168 (start): Changed `type_face_font' to be the `bold_font' instead of
171 1998-06-26 Markku Rossi <mtr@ngs.fi>
173 * enscript.st (c): Added support for the C++'ish //-single line
176 1998-06-23 Markku Rossi <mtr@ngs.fi>
178 * enscript.st (html_faces): Cleaned up the HTML faces.
179 (start): Added support for `LucidaSans-Typewriter' font.
181 * main.c (main): Changed the name of the stdin to "-".
183 1998-06-22 Markku Rossi <mtr@ngs.fi>
185 * main.c (main): Enscript gives the stdin as an empty argument.
186 Fixed the main() to handle it.
188 1998-06-11 Markku Rossi <mtr@ngs.fi>
190 * enscript.st: Fixed Python function definition highlighting.
191 Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
193 1998-05-29 Markku Rossi <mtr@ngs.fi>
195 * enscript.st (idl): Added highlighting for the CORBA Interface
196 Definition Language IDL. Thanks to Alexis Layton
197 <alex@InConcert.COM>.
199 1998-05-27 Markku Rossi <mtr@ngs.fi>
201 * enscript.st (javascript): Updated the function name regexp. The
202 function names - and all other symbols - can contain the dollar
204 (javascript): Fixed ''-strings and character constants.
206 1998-03-09 Markku Rossi <mtr@ngs.fi>
208 * enscript.st (vba): Added highlighting for Visual Basic (for
209 Applications). Thanks to Kevin Grover <grover@wizard.com>.
210 Added new output language RTF (Rich Text Format). Thanks to Kevin
211 Grover <grover@wizard.com>.
212 (python): Updated Python highlighting rules.
214 1998-02-27 Markku Rossi <mtr@ngs.fi>
216 * enscript.st (python): Added highlighting for the Python
217 language. Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
218 (asm): Added highlighting rules for Assembler listings.
220 1998-02-11 Markku Rossi <mtr@ngs.fi>
222 * enscript.st (javascript): Initialize from_html to 0 at the
223 global level. Now we can print JavaScript files that are not
226 1998-01-29 Markku Rossi <mtr@ngs.fi>
228 * enscript.st (perl): Fixed to handle oddities in OO perl and perl
229 used for cgi scripts. Thanks to Jim Villani.
231 1998-01-28 Markku Rossi <mtr@ngs.fi>
233 * enscript.st (sh): Added highlighting for bourne shell scripts.
234 Thanks to Juergen Kahrs <Juergen.Kahrs@t-online.de>.
235 (startrules): Fixed perl and awk rules to accept space after
238 1998-01-20 Markku Rossi <mtr@ngs.fi>
240 * enscript.st (awk): Added highlighting for awk. Thanks to
241 Juergen Kahrs <Juergen.Kahrs@t-online.de>.
243 1997-12-31 Markku Rossi <mtr@ngs.fi>
245 * enscript.st (namerules): Added suffix `.pm' for perl mode.
246 (startrules): Fixed perl mode to recognize files which start with
249 1997-12-30 Markku Rossi <mtr@ngs.fi>
251 * enscript.st: Added colors `cadet blue' and `orchid'.
252 Fixed `emacs' color model to conform the emacs' defaults.
253 (changelog): Updated ChangeLog highlighting to conform emacs.
255 1997-12-17 Markku Rossi <mtr@ngs.fi>
257 * utils.c (lookup_var): Made special variable `$`' an alias for
260 1997-12-15 Markku Rossi <mtr@ngs.fi>
262 * enscript.st (html_faces): Added navigation links: top, next,
264 (start): New colormode `ifh'. Thanks to Tobias Buchal
265 <buch@ifh.bau-verm.uni-karlsruhe.de>
266 (diff): Added highlighting for diffs. Thanks to Tobias Buchal.
267 (diffu): Added highlighting for unified diffs. Thanks to Tobias
269 (html_annotate_mailtos): Fixed addresses which contain '-'
271 (html_annotate_mailtos): Fixed addresses which contain '.'
272 characters in the user name.
274 1997-11-13 Markku Rossi <mtr@ngs.fi>
276 * enscript.st (delphi): Added support for C++ style comments.
277 (fortran): Updated Fortran highlighting. Thanks to Keith Refson
278 <Keith.Refson@earth.ox.ac.uk>.
280 1997-08-27 Markku Rossi <mtr@ngs.fi>
282 * prims.c (prim_regexp_syntax): New primitive to modify regexp
283 engine's character syntax table.
285 * enscript.st (scheme): Improved keyword highlighting, thanks to
286 the new regexp_syntax() primitive which can be used to modify
287 regexp character syntax table.
289 1997-08-11 Markku Rossi <mtr@ngs.fi>
291 * enscript.st (start): Fixed PostScript font resolving to work
292 with the `Souvenir' font.
294 1997-07-18 Markku Rossi <mtr@ngs.fi>
296 * lex.l: Implemented case-insensitive regular expressions.
298 1997-07-16 Markku Rossi <mtr@ngs.fi>
300 * enscript.st (sql): Updated Sybase SQL highlighting rules, thanks
301 to Chris Jack <chris_jack@msn.com>.
303 1997-07-04 Markku Rossi <mtr@ngs.fi>
305 * utils.c (compile_regexp): New function to handle regular
306 expression compilations.
307 (compile_regexp): Added fastmaps for regexps, this speeds up the
308 processing noticeably.
310 1997-06-23 Markku Rossi <mtr@ngs.fi>
312 * enscript.st (sql): Added highlighting for SQL language by
313 Chris Jack <chris_jack@msn.com>.
315 * utils.c (lookup_var): Renamed special variable `$`' to `$B'.
317 * enscript.st (perl): Added highlighting for Perl programming
318 language by Jim Villani, Logistics Management Institute
321 1997-06-10 Markku Rossi <mtr@ngs.fi>
323 * utils.c (lookup_var): New special variable `$.'.
324 (lookup_var): New special variable `$`'.
326 1997-06-06 Markku Rossi <mtr@ngs.fi>
328 * prims.c (prim_float): New primitive to convert items to float
331 1997-06-03 Markku Rossi <mtr@ngs.fi>
333 * enscript.st (c): Improved C pre-processor line highlighting to
334 highlights also string and character constansts.
335 (c): Added highlighting for goto's labels and targets.
336 (c): Added highlighting for function definitions and prototypes.
337 (changelog): Added highlighting for description entries with
338 function name but without file name.
339 (cpp): Added highlighting for goto's labels and targes.
340 (cpp): Added highlighting for function definitions and
342 (objc): Added highlighting for goto's labels and targets.
344 1997-05-20 Markku Rossi <mtr@ngs.fi>
346 * enscript.st (delphi): Added highlighting for Delphi language by
347 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
349 * main.c (main): Moved the initialization of `ofp' from the
350 variable declaration to main().
352 1997-05-02 Markku Rossi <mtr@ngs.fi>
354 * enscript.el (build-re): Added support for case-insensitive
357 * enscript.st (fortran): Added highlighting for Fortran77
359 Re-generated case-insensitive keyword regular expressions with the
360 new build-re function.
362 1997-04-25 Markku Rossi <mtr@ngs.fi>
364 * enscript.st (pascal): Added highlighting for Pascal language by
365 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
367 1997-04-16 Markku Rossi <mtr@ngs.fi>
369 * gram.y: Implemented expressions: +=, -=, *=, div=.
371 1997-04-14 Markku Rossi <mtr@ngs.fi>
373 * gram.y: Implemented prefix and postfix increment (++) and
374 decrement (--) operators.
376 1997-04-04 Markku Rossi <mtr@ngs.fi>
378 * enscript.st (java): Added highlighting for Java language by Paul
379 Fisher <pnfisher@eos.ncsu.edu>.
380 (html_faces): Fixed 1.5.0 compatibility bug.
382 1997-04-03 Markku Rossi <mtr@ngs.fi>
384 * prims.c (prim_range): New primitive to fetch sub-ranges from
386 Changed all primitives' error messages to be in format
387 `FILE:LINE: MESSAGE'.
389 1997-03-25 Markku Rossi <mtr@ngs.fi>
391 * prims.c (prim_regexp): New primitive to create regular
392 expressions from strings.
393 (prim_split): New primitive to split string to list.
395 1997-03-21 Markku Rossi <mtr@ngs.fi>
397 * enscript.st (html): Added support for nested scripts.
398 (javascript): Added highlighting for JavaScript.
400 1997-03-19 Markku Rossi <mtr@ngs.fi>
402 * enscript.st (need_version): New help subroutine to check that a
403 specified version of the states program is in use.
404 (html_faces): Changed HTML output language to co-operate with
405 enscript's new --language option.
406 (passthrough): New state which simply pass its input to output
407 preserving only face specific headers, footers and language
410 * main.c (main): New built-in variable `argv' which holds input
413 1997-03-17 Markku Rossi <mtr@ngs.fi>
415 * enscript.st (elisp): Added highlighting for Emacs Lisp.
416 (overstrike_faces): New output language `overstrike' for line
417 printers and less by François Pinard.
418 (tcl): Updated Tcl and Tk keywords from Tcl/Tk 8.0a1.
419 Added highlighting for procedure names and variable names.
420 (scheme): Fixed keywords to recognize `set!'.
422 1997-03-11 Markku Rossi <mtr@ngs.fi>
424 * enscript.st (states): Updated keyword list.
425 Implemented highlighting for built-in functions.
426 Added highlighting for function names.
428 1997-03-10 Markku Rossi <mtr@ngs.fi>
430 * enscript.st (postscript): Added highlighting for PostScript
431 language by Dave Hylands <DHylands@creo.com>.
432 Sorted highlighting states according to their names.
434 1997-03-06 Markku Rossi <mtr@ngs.fi>
436 * enscript.st: Implemented new `variable_name_face' typeface.
437 (c_ppline): Implemented a smarter C preprocessor line highlighting
438 support. Now it should be identical with Emacs's highlight.
440 1997-03-04 Markku Rossi <mtr@ngs.fi>
442 * enscript.st (ada): Added highlighting for the Ada95 programming
443 language by Rolf Ebert <ebert@waporo.muc.de>.
445 1997-03-03 Markku Rossi <mtr@ngs.fi>
447 * enscript.st (start): Cleaned bold, italic and bold-italic font
449 (makefile): Fixed highlighting to handle nested (){} structures.
450 (scheme): Updated to highlight function names and ':'-started
453 1997-02-27 Markku Rossi <mtr@ngs.fi>
455 * enscript.st: Implemented new type faces: `builtin_face' and
457 (haskell): Added highlighting for the Haskell programming language
458 by Hans-Wolfgang Loidl <hwloidl@dcs.gla.ac.uk>.
459 Updated highlighting rule guidelines and updated all current rules
461 Implemented new documentation state `describe_languages_html'
462 which will create a HTML report about all supported highlighting
465 1997-02-26 Markku Rossi <mtr@ngs.fi>
467 * Release enscript-1.5.0.
469 1997-02-21 Markku Rossi <mtr@ngs.fi>
471 * gram.y: Implemented logical operators `not', `and' and `or'.
473 * main.c: New option -W, --warning to set the warning level.
475 * Added test subdirectory and tests for States.
477 1997-02-19 Markku Rossi <mtr@ngs.fi>
479 * enscript.st (synopsys): Added highlighting for the Synopsys DC
480 Shell scripting language by Brian Silveira (brian@nortel.ca) and
481 Hartley Horwitz (harts@nortel.ca).
482 (synopsys): New synopsys mode with some minor fixes.
484 1997-02-18 Markku Rossi <mtr@ngs.fi>
486 * enscript.st: Added guidelines for new highlighting rules.
487 (vhdl): Added VHDL highlighting by Brian Silveira
490 1997-02-11 Markku Rossi <mtr@ngs.fi>
492 * enscript.st (verilog): Added new '`' keywords.
493 (verilog): Added highlighting for references of the pre-processor
496 1997-02-05 Markku Rossi <mtr@ngs.fi>
498 * prims.c (prim_tointeger): Renamed primitive `tonumber' to
500 (prim_string): Renamed primitive `tostring' to `string'.
501 (prim_sprintf): New primitive to create formatted strings.
503 * utils.c (eval_expr): Implemented integer and real values and
504 expressions and conversions betweeen them.
506 * prims.c (prim_concat): Renamed primitive `strcat' to `concat'.
508 1997-02-04 Markku Rossi <mtr@ngs.fi>
510 * prims.c (prim_list): New primitive `list' to create lists.
511 (prim_length): Renamed primitive `strlen' to `length'.
513 * gram.y: Implemented array references and assignments for lists
516 * lex.l: Implemented C's character constants ('a').
518 1997-02-03 Markku Rossi <mtr@ngs.fi>
520 * enscript.st: Added `describe_languages' state which can be used
521 to extract information about the supported --pretty-print
522 languages from the enscript.st file.
523 Added documentation comments (/** */) to all supported languages
525 Changed start state resolving to check the startrules before the
527 Added colors for HTML target.
529 * Fixed bugs encountered with enscript-1.4.4.
530 Updated developement tools: flex-2.5.4 and bison-1.25.
532 1997-01-31 Markku Rossi <mtr@ngs.fi>
534 * prims.c (prim_prereq): New primitive to check that a recent
535 enough version of States is being used.
537 1997-01-25 Markku Rossi <mtr@ngs.fi>
539 * enscript.st (changelog): Implemented ChangeLog highlighting.
541 * enscript.el: Emacs lisp commands to help enscript.st editing.
543 * enscript.st (objc): Implemented Objective-C highlighting.
544 Regenerated keyword regular expressions with the Emacs-lisp
547 1997-01-24 Markku Rossi <mtr@ngs.fi>
549 * prims.c: New primitives: regmatch, regsub and regsuball.
551 1997-01-23 Markku Rossi <mtr@ngs.fi>
553 * prims.c (prim_getenv): New primitive: getenv.
555 * Makefile.am: Moved libcompat.a before libintl.a so intl library
558 * De-ANSI-fied states sources since bison generated gram.c is
561 1997-01-22 Markku Rossi <mtr@ngs.fi>
563 * Makefile.am: Added many2html script.
565 * enscript.st: Added support for multiple output languages and
566 implemented HTML target for all supported input languages.
568 * gram.y: changed top-level expressions to statements and moved
569 subroutine definition from top-level to statements. This allows
570 conditional subroutine definitions.
571 added tSYMBOL for state rule's expr part. This allows
572 user-definable matches.
574 1997-01-20 Markku Rossi <mtr@ngs.fi>
576 * enscript.st (tcl): Implemented Tcl highlighting.
578 * defs.h (struct environment_st): Changed procedure call's
579 environment from StringHash to linked list, this gives major
582 * Version 0.9 of States, this is an early beta.
585 Copyright (C) 1997, 1998, 1999, 2008 Free Software Foundation, Inc.
587 Copying and distribution of this file, with or without modification,
588 are permitted in any medium without royalty provided the copyright
589 notice and this notice are preserved.