1 2009-01-13 Tim Retout <diocles@gnu.org>
3 * gram.c, gram.h, lex.c: Remove generated files from repository.
5 2008-01-29 Tim Retout <diocles@gnu.org>
7 * Makefile.am (CLEANFILES): Clean up installed scripts.
9 2008-01-02 Tim Retout <diocles@gnu.org>
11 * main.c (main): Use PACKAGE_STRING to produce version string.
13 2008-01-01 Tim Retout <diocles@gnu.org>
15 * ChangeLog: Run M-x change-log-redate. Add copyright notice at end.
17 1999-09-24 Markku Rossi <mtr@amme.ssh.fi>
19 * utils.c (eval_expr): Added filename and linenumber information
20 to some error messages.
22 1999-07-19 Markku Rossi <mtr@amme.ssh.fi>
24 * enscript.st (mail_body): Changes by Matthew Weigel
27 * prims.c (prim_sprintf): Implemented `%c' format to print
30 1999-07-13 Markku Rossi <mtr@amme.ssh.fi>
32 * utils.c (lookup_var): Fixed memory leaks from the special
35 1999-07-08 Markku Rossi <mtr@amme.ssh.fi>
37 * enscript.st: Highlighting rules for TeX/LaTeX. Thanks to Toni
38 Giorgino <toni@pcape2.pi.infn.it>.
40 1999-04-28 Markku Rossi <mtr@amme.ssh.fi>
42 * prims.c (prim_system): Implemented the system() primitive.
44 1999-04-01 Markku Rossi <mtr@amme.ssh.fi>
46 * enscript.st (namerules): Changed the `.m' suffix from
47 Objective-C to Matlab.
48 Matlab changes Jack Dunn.
50 1999-03-30 Markku Rossi <mtr@amme.ssh.fi>
52 * enscript.st (ansi_faces): New output language ANSI for color
53 xterms. It should be used with the `tty' style. Thanks to Bill
54 Petheram <petheram@acm.org>.
56 1999-03-12 Markku Rossi <mtr@amme.ssh.fi>
58 * enscript.st (makefile): Added highlighting for Matlab files.
59 Thanks to Jack Dunn <h.j.dunn@larc.nasa.gov>.
61 1999-01-07 Markku Rossi <mtr@amme.ssh.fi>
63 * enscript.st (ksh): In ${#text}, the '#' character does not start
64 a comment. Thanks to Tobias Buchal <buchal41@che41a0.der.edf.fr>.
65 (cpp): Allow '&' characters in function names. Thans to Tobias
68 1998-10-28 Markku Rossi <mtr@ngs.fi>
70 * process.c (execute_state): Added initialization for the variable
73 1998-10-23 Markku Rossi <mtr@ngs.fi>
75 * Makefile.am: Changed the enscript to use the new highlighting
76 style. The highlighting definition files are in the `hl'
79 * prims.c (prim_calln): New primitive function to call a state by
81 (prim_require_state): New primitive function to check that the
82 arugment state is defined.
84 * main.c (main): Use PATH_SEPARATOR when constructing the path.
86 * utils.c (autoload_file): Fixed to use PATH_SEPARATOR.
88 1998-10-22 Markku Rossi <mtr@ngs.fi>
90 * enscript.st (vrml): Added built-in nodes. Thanks to James
93 * utils.c (load_states_file): The `global_stmts' must be
94 initialized to list() instead of NULL.
95 (autoload_file): Send verbose messages to stderr.
97 * enscript.st (vrml): Small fixes by James Sørlie.
98 (overstrike_faces): Fixed to handle newline characters correctly
101 1998-10-21 Markku Rossi <mtr@ngs.fi>
103 * utils.c: Changed all input file related error messages to use
104 the correct file name.
105 (load_states_file): New function to load a states file.
106 (autoload_file): New function to autoload a feature.
107 (lookup_state): Moved here from process.c.
109 * process.c: The function lookup_state() was moved to utils.c and
112 * main.c: New options -p, --path, -v, --verbose.
114 * defs.h: Added `filename' members to all types that report errors
115 from a source file locations.
116 Added support for state autoloading.
118 * enscript.st (vrml): Small fixes by James Sørlie.
120 * process.c (execute_state): Fixed to execute the BEGIN and END
121 rules of the inherited states.
123 * enscript.st (vrml): Added highlighting for the Virtual Reality
124 Modeling Language (VRML97). Thanks to James Sørlie
125 <sorliej@imm.dtu.dk>.
127 1998-10-15 Markku Rossi <mtr@ngs.fi>
129 * gram.y: Added support for state inheritance.
131 * lex.l: New keyword `extends'.
133 * process.c (lookup_state): New function to lookup a state by its
134 name. This function is extented in the future to support
136 (execute_state): Fixed to support state heritance.
138 * utils.c (define_state): Added argument `super' for the super
139 state of our new state.
141 * defs.h (struct state_st): New type for the states. The states
142 can be ~inherited, so we can't use the basic list anymore.
144 1998-09-17 Markku Rossi <mtr@ngs.fi>
146 * enscript.st: Updated C, C++, and Objective-C mode highlightings
147 to support bitfields in structure definitions. Thanks to Chris
148 Jepeway <jepeway@cs.utk.edu>.
150 1998-08-03 Markku Rossi <mtr@ngs.fi>
152 * enscript.st: New highlighting rules for: bash, csh, ksh, m4,
153 skill, tcsh, and zsh. Thanks to Jean-Marc Calvez
154 <jean-marc.calvez@st.com>.
155 (fortran): Some fortran highlighting fixes. Thanks to Philip
158 1998-07-01 Markku Rossi <mtr@ngs.fi>
160 * enscript.st (c, cpp, objc): Major updates. Now these are pretty
161 close to Emacs' font-lock mode.
162 (html_faces): Changed type faces to be printed in boldface instead
164 (start): Changed `type_face_font' to be the `bold_font' instead of
167 1998-06-26 Markku Rossi <mtr@ngs.fi>
169 * enscript.st (c): Added support for the C++'ish //-single line
172 1998-06-23 Markku Rossi <mtr@ngs.fi>
174 * enscript.st (html_faces): Cleaned up the HTML faces.
175 (start): Added support for `LucidaSans-Typewriter' font.
177 * main.c (main): Changed the name of the stdin to "-".
179 1998-06-22 Markku Rossi <mtr@ngs.fi>
181 * main.c (main): Enscript gives the stdin as an empty argument.
182 Fixed the main() to handle it.
184 1998-06-11 Markku Rossi <mtr@ngs.fi>
186 * enscript.st: Fixed Python function definition highlighting.
187 Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
189 1998-05-29 Markku Rossi <mtr@ngs.fi>
191 * enscript.st (idl): Added highlighting for the CORBA Interface
192 Definition Language IDL. Thanks to Alexis Layton
193 <alex@InConcert.COM>.
195 1998-05-27 Markku Rossi <mtr@ngs.fi>
197 * enscript.st (javascript): Updated the function name regexp. The
198 function names - and all other symbols - can contain the dollar
200 (javascript): Fixed ''-strings and character constants.
202 1998-03-09 Markku Rossi <mtr@ngs.fi>
204 * enscript.st (vba): Added highlighting for Visual Basic (for
205 Applications). Thanks to Kevin Grover <grover@wizard.com>.
206 Added new output language RTF (Rich Text Format). Thanks to Kevin
207 Grover <grover@wizard.com>.
208 (python): Updated Python highlighting rules.
210 1998-02-27 Markku Rossi <mtr@ngs.fi>
212 * enscript.st (python): Added highlighting for the Python
213 language. Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
214 (asm): Added highlighting rules for Assembler listings.
216 1998-02-11 Markku Rossi <mtr@ngs.fi>
218 * enscript.st (javascript): Initialize from_html to 0 at the
219 global level. Now we can print JavaScript files that are not
222 1998-01-29 Markku Rossi <mtr@ngs.fi>
224 * enscript.st (perl): Fixed to handle oddities in OO perl and perl
225 used for cgi scripts. Thanks to Jim Villani.
227 1998-01-28 Markku Rossi <mtr@ngs.fi>
229 * enscript.st (sh): Added highlighting for bourne shell scripts.
230 Thanks to Juergen Kahrs <Juergen.Kahrs@t-online.de>.
231 (startrules): Fixed perl and awk rules to accept space after
234 1998-01-20 Markku Rossi <mtr@ngs.fi>
236 * enscript.st (awk): Added highlighting for awk. Thanks to
237 Juergen Kahrs <Juergen.Kahrs@t-online.de>.
239 1997-12-31 Markku Rossi <mtr@ngs.fi>
241 * enscript.st (namerules): Added suffix `.pm' for perl mode.
242 (startrules): Fixed perl mode to recognize files which start with
245 1997-12-30 Markku Rossi <mtr@ngs.fi>
247 * enscript.st: Added colors `cadet blue' and `orchid'.
248 Fixed `emacs' color model to conform the emacs' defaults.
249 (changelog): Updated ChangeLog highlighting to conform emacs.
251 1997-12-17 Markku Rossi <mtr@ngs.fi>
253 * utils.c (lookup_var): Made special variable `$`' an alias for
256 1997-12-15 Markku Rossi <mtr@ngs.fi>
258 * enscript.st (html_faces): Added navigation links: top, next,
260 (start): New colormode `ifh'. Thanks to Tobias Buchal
261 <buch@ifh.bau-verm.uni-karlsruhe.de>
262 (diff): Added highlighting for diffs. Thanks to Tobias Buchal.
263 (diffu): Added highlighting for unified diffs. Thanks to Tobias
265 (html_annotate_mailtos): Fixed addresses which contain '-'
267 (html_annotate_mailtos): Fixed addresses which contain '.'
268 characters in the user name.
270 1997-11-13 Markku Rossi <mtr@ngs.fi>
272 * enscript.st (delphi): Added support for C++ style comments.
273 (fortran): Updated Fortran highlighting. Thanks to Keith Refson
274 <Keith.Refson@earth.ox.ac.uk>.
276 1997-08-27 Markku Rossi <mtr@ngs.fi>
278 * prims.c (prim_regexp_syntax): New primitive to modify regexp
279 engine's character syntax table.
281 * enscript.st (scheme): Improved keyword highlighting, thanks to
282 the new regexp_syntax() primitive which can be used to modify
283 regexp character syntax table.
285 1997-08-11 Markku Rossi <mtr@ngs.fi>
287 * enscript.st (start): Fixed PostScript font resolving to work
288 with the `Souvenir' font.
290 1997-07-18 Markku Rossi <mtr@ngs.fi>
292 * lex.l: Implemented case-insensitive regular expressions.
294 1997-07-16 Markku Rossi <mtr@ngs.fi>
296 * enscript.st (sql): Updated Sybase SQL highlighting rules, thanks
297 to Chris Jack <chris_jack@msn.com>.
299 1997-07-04 Markku Rossi <mtr@ngs.fi>
301 * utils.c (compile_regexp): New function to handle regular
302 expression compilations.
303 (compile_regexp): Added fastmaps for regexps, this speeds up the
304 processing noticeably.
306 1997-06-23 Markku Rossi <mtr@ngs.fi>
308 * enscript.st (sql): Added highlighting for SQL language by
309 Chris Jack <chris_jack@msn.com>.
311 * utils.c (lookup_var): Renamed special variable `$`' to `$B'.
313 * enscript.st (perl): Added highlighting for Perl programming
314 language by Jim Villani, Logistics Management Institute
317 1997-06-10 Markku Rossi <mtr@ngs.fi>
319 * utils.c (lookup_var): New special variable `$.'.
320 (lookup_var): New special variable `$`'.
322 1997-06-06 Markku Rossi <mtr@ngs.fi>
324 * prims.c (prim_float): New primitive to convert items to float
327 1997-06-03 Markku Rossi <mtr@ngs.fi>
329 * enscript.st (c): Improved C pre-processor line highlighting to
330 highlights also string and character constansts.
331 (c): Added highlighting for goto's labels and targets.
332 (c): Added highlighting for function definitions and prototypes.
333 (changelog): Added highlighting for description entries with
334 function name but without file name.
335 (cpp): Added highlighting for goto's labels and targes.
336 (cpp): Added highlighting for function definitions and
338 (objc): Added highlighting for goto's labels and targets.
340 1997-05-20 Markku Rossi <mtr@ngs.fi>
342 * enscript.st (delphi): Added highlighting for Delphi language by
343 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
345 * main.c (main): Moved the initialization of `ofp' from the
346 variable declaration to main().
348 1997-05-02 Markku Rossi <mtr@ngs.fi>
350 * enscript.el (build-re): Added support for case-insensitive
353 * enscript.st (fortran): Added highlighting for Fortran77
355 Re-generated case-insensitive keyword regular expressions with the
356 new build-re function.
358 1997-04-25 Markku Rossi <mtr@ngs.fi>
360 * enscript.st (pascal): Added highlighting for Pascal language by
361 Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
363 1997-04-16 Markku Rossi <mtr@ngs.fi>
365 * gram.y: Implemented expressions: +=, -=, *=, div=.
367 1997-04-14 Markku Rossi <mtr@ngs.fi>
369 * gram.y: Implemented prefix and postfix increment (++) and
370 decrement (--) operators.
372 1997-04-04 Markku Rossi <mtr@ngs.fi>
374 * enscript.st (java): Added highlighting for Java language by Paul
375 Fisher <pnfisher@eos.ncsu.edu>.
376 (html_faces): Fixed 1.5.0 compatibility bug.
378 1997-04-03 Markku Rossi <mtr@ngs.fi>
380 * prims.c (prim_range): New primitive to fetch sub-ranges from
382 Changed all primitives' error messages to be in format
383 `FILE:LINE: MESSAGE'.
385 1997-03-25 Markku Rossi <mtr@ngs.fi>
387 * prims.c (prim_regexp): New primitive to create regular
388 expressions from strings.
389 (prim_split): New primitive to split string to list.
391 1997-03-21 Markku Rossi <mtr@ngs.fi>
393 * enscript.st (html): Added support for nested scripts.
394 (javascript): Added highlighting for JavaScript.
396 1997-03-19 Markku Rossi <mtr@ngs.fi>
398 * enscript.st (need_version): New help subroutine to check that a
399 specified version of the states program is in use.
400 (html_faces): Changed HTML output language to co-operate with
401 enscript's new --language option.
402 (passthrough): New state which simply pass its input to output
403 preserving only face specific headers, footers and language
406 * main.c (main): New built-in variable `argv' which holds input
409 1997-03-17 Markku Rossi <mtr@ngs.fi>
411 * enscript.st (elisp): Added highlighting for Emacs Lisp.
412 (overstrike_faces): New output language `overstrike' for line
413 printers and less by François Pinard.
414 (tcl): Updated Tcl and Tk keywords from Tcl/Tk 8.0a1.
415 Added highlighting for procedure names and variable names.
416 (scheme): Fixed keywords to recognize `set!'.
418 1997-03-11 Markku Rossi <mtr@ngs.fi>
420 * enscript.st (states): Updated keyword list.
421 Implemented highlighting for built-in functions.
422 Added highlighting for function names.
424 1997-03-10 Markku Rossi <mtr@ngs.fi>
426 * enscript.st (postscript): Added highlighting for PostScript
427 language by Dave Hylands <DHylands@creo.com>.
428 Sorted highlighting states according to their names.
430 1997-03-06 Markku Rossi <mtr@ngs.fi>
432 * enscript.st: Implemented new `variable_name_face' typeface.
433 (c_ppline): Implemented a smarter C preprocessor line highlighting
434 support. Now it should be identical with Emacs's highlight.
436 1997-03-04 Markku Rossi <mtr@ngs.fi>
438 * enscript.st (ada): Added highlighting for the Ada95 programming
439 language by Rolf Ebert <ebert@waporo.muc.de>.
441 1997-03-03 Markku Rossi <mtr@ngs.fi>
443 * enscript.st (start): Cleaned bold, italic and bold-italic font
445 (makefile): Fixed highlighting to handle nested (){} structures.
446 (scheme): Updated to highlight function names and ':'-started
449 1997-02-27 Markku Rossi <mtr@ngs.fi>
451 * enscript.st: Implemented new type faces: `builtin_face' and
453 (haskell): Added highlighting for the Haskell programming language
454 by Hans-Wolfgang Loidl <hwloidl@dcs.gla.ac.uk>.
455 Updated highlighting rule guidelines and updated all current rules
457 Implemented new documentation state `describe_languages_html'
458 which will create a HTML report about all supported highlighting
461 1997-02-26 Markku Rossi <mtr@ngs.fi>
463 * Release enscript-1.5.0.
465 1997-02-21 Markku Rossi <mtr@ngs.fi>
467 * gram.y: Implemented logical operators `not', `and' and `or'.
469 * main.c: New option -W, --warning to set the warning level.
471 * Added test subdirectory and tests for States.
473 1997-02-19 Markku Rossi <mtr@ngs.fi>
475 * enscript.st (synopsys): Added highlighting for the Synopsys DC
476 Shell scripting language by Brian Silveira (brian@nortel.ca) and
477 Hartley Horwitz (harts@nortel.ca).
478 (synopsys): New synopsys mode with some minor fixes.
480 1997-02-18 Markku Rossi <mtr@ngs.fi>
482 * enscript.st: Added guidelines for new highlighting rules.
483 (vhdl): Added VHDL highlighting by Brian Silveira
486 1997-02-11 Markku Rossi <mtr@ngs.fi>
488 * enscript.st (verilog): Added new '`' keywords.
489 (verilog): Added highlighting for references of the pre-processor
492 1997-02-05 Markku Rossi <mtr@ngs.fi>
494 * prims.c (prim_tointeger): Renamed primitive `tonumber' to
496 (prim_string): Renamed primitive `tostring' to `string'.
497 (prim_sprintf): New primitive to create formatted strings.
499 * utils.c (eval_expr): Implemented integer and real values and
500 expressions and conversions betweeen them.
502 * prims.c (prim_concat): Renamed primitive `strcat' to `concat'.
504 1997-02-04 Markku Rossi <mtr@ngs.fi>
506 * prims.c (prim_list): New primitive `list' to create lists.
507 (prim_length): Renamed primitive `strlen' to `length'.
509 * gram.y: Implemented array references and assignments for lists
512 * lex.l: Implemented C's character constants ('a').
514 1997-02-03 Markku Rossi <mtr@ngs.fi>
516 * enscript.st: Added `describe_languages' state which can be used
517 to extract information about the supported --pretty-print
518 languages from the enscript.st file.
519 Added documentation comments (/** */) to all supported languages
521 Changed start state resolving to check the startrules before the
523 Added colors for HTML target.
525 * Fixed bugs encountered with enscript-1.4.4.
526 Updated developement tools: flex-2.5.4 and bison-1.25.
528 1997-01-31 Markku Rossi <mtr@ngs.fi>
530 * prims.c (prim_prereq): New primitive to check that a recent
531 enough version of States is being used.
533 1997-01-25 Markku Rossi <mtr@ngs.fi>
535 * enscript.st (changelog): Implemented ChangeLog highlighting.
537 * enscript.el: Emacs lisp commands to help enscript.st editing.
539 * enscript.st (objc): Implemented Objective-C highlighting.
540 Regenerated keyword regular expressions with the Emacs-lisp
543 1997-01-24 Markku Rossi <mtr@ngs.fi>
545 * prims.c: New primitives: regmatch, regsub and regsuball.
547 1997-01-23 Markku Rossi <mtr@ngs.fi>
549 * prims.c (prim_getenv): New primitive: getenv.
551 * Makefile.am: Moved libcompat.a before libintl.a so intl library
554 * De-ANSI-fied states sources since bison generated gram.c is
557 1997-01-22 Markku Rossi <mtr@ngs.fi>
559 * Makefile.am: Added many2html script.
561 * enscript.st: Added support for multiple output languages and
562 implemented HTML target for all supported input languages.
564 * gram.y: changed top-level expressions to statements and moved
565 subroutine definition from top-level to statements. This allows
566 conditional subroutine definitions.
567 added tSYMBOL for state rule's expr part. This allows
568 user-definable matches.
570 1997-01-20 Markku Rossi <mtr@ngs.fi>
572 * enscript.st (tcl): Implemented Tcl highlighting.
574 * defs.h (struct environment_st): Changed procedure call's
575 environment from StringHash to linked list, this gives major
578 * Version 0.9 of States, this is an early beta.
581 Copyright (C) 1997, 1998, 1999, 2008 Free Software Foundation, Inc.
583 Copying and distribution of this file, with or without modification,
584 are permitted in any medium without royalty provided the copyright
585 notice and this notice are preserved.