0d7be1f2c968a3db318ccfff53fa5a32de1b4c10
[enscript.git] / states / ChangeLog
1 2008-01-29  Tim Retout  <diocles@gnu.org>
2
3         * Makefile.am (CLEANFILES): Clean up installed scripts.
4
5 2008-01-02  Tim Retout  <diocles@gnu.org>
6
7         * main.c (main): Use PACKAGE_STRING to produce version string.
8
9 2008-01-01  Tim Retout  <diocles@gnu.org>
10
11         * ChangeLog: Run M-x change-log-redate. Add copyright notice at end.
12
13 1999-09-24  Markku Rossi  <mtr@amme.ssh.fi>
14
15         * utils.c (eval_expr): Added filename and linenumber information
16         to some error messages.
17
18 1999-07-19  Markku Rossi  <mtr@amme.ssh.fi>
19
20         * enscript.st (mail_body): Changes by Matthew Weigel
21         <weigel@pitt.edu>.
22
23         * prims.c (prim_sprintf): Implemented `%c' format to print
24         characters.
25
26 1999-07-13  Markku Rossi  <mtr@amme.ssh.fi>
27
28         * utils.c (lookup_var): Fixed memory leaks from the special
29         variable lookup.
30
31 1999-07-08  Markku Rossi  <mtr@amme.ssh.fi>
32
33         * enscript.st: Highlighting rules for TeX/LaTeX.  Thanks to Toni
34         Giorgino <toni@pcape2.pi.infn.it>.
35
36 1999-04-28  Markku Rossi  <mtr@amme.ssh.fi>
37
38         * prims.c (prim_system): Implemented the system() primitive.
39
40 1999-04-01  Markku Rossi  <mtr@amme.ssh.fi>
41
42         * enscript.st (namerules): Changed the `.m' suffix from
43         Objective-C to Matlab.
44         Matlab changes Jack Dunn.
45
46 1999-03-30  Markku Rossi  <mtr@amme.ssh.fi>
47
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>.
51
52 1999-03-12  Markku Rossi  <mtr@amme.ssh.fi>
53
54         * enscript.st (makefile): Added highlighting for Matlab files.
55         Thanks to Jack Dunn <h.j.dunn@larc.nasa.gov>.
56
57 1999-01-07  Markku Rossi  <mtr@amme.ssh.fi>
58
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
62         Buchal.
63
64 1998-10-28  Markku Rossi  <mtr@ngs.fi>
65
66         * process.c (execute_state): Added initialization for the variable
67         `found'.
68
69 1998-10-23  Markku Rossi  <mtr@ngs.fi>
70
71         * Makefile.am: Changed the enscript to use the new highlighting
72         style.  The highlighting definition files are in the `hl'
73         sub-directory.
74
75         * prims.c (prim_calln): New primitive function to call a state by
76         its name.
77         (prim_require_state): New primitive function to check that the
78         arugment state is defined.
79
80         * main.c (main): Use PATH_SEPARATOR when constructing the path.
81
82         * utils.c (autoload_file): Fixed to use PATH_SEPARATOR.
83
84 1998-10-22  Markku Rossi  <mtr@ngs.fi>
85
86         * enscript.st (vrml): Added built-in nodes.  Thanks to James
87         Sørlie.
88
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.
92
93         * enscript.st (vrml): Small fixes by James Sørlie.
94         (overstrike_faces): Fixed to handle newline characters correctly
95         in the bold mode.
96
97 1998-10-21  Markku Rossi  <mtr@ngs.fi>
98
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.
104
105         * process.c: The function lookup_state() was moved to utils.c and
106         made global.
107
108         * main.c: New options -p, --path, -v, --verbose.
109
110         * defs.h: Added `filename' members to all types that report errors
111         from a source file locations.
112         Added support for state autoloading.
113
114         * enscript.st (vrml): Small fixes by James Sørlie.
115
116         * process.c (execute_state): Fixed to execute the BEGIN and END
117         rules of the inherited states.
118
119         * enscript.st (vrml): Added highlighting for the Virtual Reality
120         Modeling Language (VRML97).  Thanks to James Sørlie
121         <sorliej@imm.dtu.dk>.
122
123 1998-10-15  Markku Rossi  <mtr@ngs.fi>
124
125         * gram.y: Added support for state inheritance.
126
127         * lex.l: New keyword `extends'.
128
129         * process.c (lookup_state): New function to lookup a state by its
130         name.  This function is extented in the future to support
131         autoloading.
132         (execute_state): Fixed to support state heritance.
133
134         * utils.c (define_state): Added argument `super' for the super
135         state of our new state.
136
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.
139
140 1998-09-17  Markku Rossi  <mtr@ngs.fi>
141
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>.
145
146 1998-08-03  Markku Rossi  <mtr@ngs.fi>
147
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
152         Sterne.
153
154 1998-07-01  Markku Rossi  <mtr@ngs.fi>
155
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
159         of italic.
160         (start): Changed `type_face_font' to be the `bold_font' instead of
161         `italic_font'.
162
163 1998-06-26  Markku Rossi  <mtr@ngs.fi>
164
165         * enscript.st (c): Added support for the C++'ish //-single line
166         comments.
167
168 1998-06-23  Markku Rossi  <mtr@ngs.fi>
169
170         * enscript.st (html_faces): Cleaned up the HTML faces.
171         (start): Added support for `LucidaSans-Typewriter' font.
172
173         * main.c (main): Changed the name of the stdin to "-".
174
175 1998-06-22  Markku Rossi  <mtr@ngs.fi>
176
177         * main.c (main): Enscript gives the stdin as an empty argument.
178         Fixed the main() to handle it.
179
180 1998-06-11  Markku Rossi  <mtr@ngs.fi>
181
182         * enscript.st: Fixed Python function definition highlighting.
183         Thanks to Andy Eskilsson <andy.eskilsson@telelogic.se>.
184
185 1998-05-29  Markku Rossi  <mtr@ngs.fi>
186
187         * enscript.st (idl): Added highlighting for the CORBA Interface
188         Definition Language IDL.  Thanks to Alexis Layton
189         <alex@InConcert.COM>.
190
191 1998-05-27  Markku Rossi  <mtr@ngs.fi>
192
193         * enscript.st (javascript): Updated the function name regexp.  The
194         function names - and all other symbols - can contain the dollar
195         sign.
196         (javascript): Fixed ''-strings and character constants.
197
198 1998-03-09  Markku Rossi  <mtr@ngs.fi>
199
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.
205
206 1998-02-27  Markku Rossi  <mtr@ngs.fi>
207
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.
211
212 1998-02-11  Markku Rossi  <mtr@ngs.fi>
213
214         * enscript.st (javascript): Initialize from_html to 0 at the
215         global level.  Now we can print JavaScript files that are not
216         embedded to HTML.
217
218 1998-01-29  Markku Rossi  <mtr@ngs.fi>
219
220         * enscript.st (perl): Fixed to handle oddities in OO perl and perl
221         used for cgi scripts.  Thanks to Jim Villani.
222
223 1998-01-28  Markku Rossi  <mtr@ngs.fi>
224
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
228         `#!'.
229
230 1998-01-20  Markku Rossi  <mtr@ngs.fi>
231
232         * enscript.st (awk): Added highlighting for awk.  Thanks to
233         Juergen Kahrs <Juergen.Kahrs@t-online.de>.
234
235 1997-12-31  Markku Rossi  <mtr@ngs.fi>
236
237         * enscript.st (namerules): Added suffix `.pm' for perl mode.
238         (startrules): Fixed perl mode to recognize files which start with
239         `#!...perl'.
240
241 1997-12-30  Markku Rossi  <mtr@ngs.fi>
242
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.
246
247 1997-12-17  Markku Rossi  <mtr@ngs.fi>
248
249         * utils.c (lookup_var): Made special variable `$`' an alias for
250         `$B'.
251
252 1997-12-15  Markku Rossi  <mtr@ngs.fi>
253
254         * enscript.st (html_faces): Added navigation links: top, next,
255         prev.
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
260         Buchal.
261         (html_annotate_mailtos): Fixed addresses which contain '-'
262         characters.
263         (html_annotate_mailtos): Fixed addresses which contain '.'
264         characters in the user name.
265
266 1997-11-13  Markku Rossi  <mtr@ngs.fi>
267
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>.
271
272 1997-08-27  Markku Rossi  <mtr@ngs.fi>
273
274         * prims.c (prim_regexp_syntax): New primitive to modify regexp
275         engine's character syntax table.
276
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.
280
281 1997-08-11  Markku Rossi  <mtr@ngs.fi>
282
283         * enscript.st (start): Fixed PostScript font resolving to work
284         with the `Souvenir' font.
285
286 1997-07-18  Markku Rossi  <mtr@ngs.fi>
287
288         * lex.l: Implemented case-insensitive regular expressions.
289
290 1997-07-16  Markku Rossi  <mtr@ngs.fi>
291
292         * enscript.st (sql): Updated Sybase SQL highlighting rules, thanks
293         to Chris Jack <chris_jack@msn.com>.
294
295 1997-07-04  Markku Rossi  <mtr@ngs.fi>
296
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.
301
302 1997-06-23  Markku Rossi  <mtr@ngs.fi>
303
304         * enscript.st (sql): Added highlighting for SQL language by
305         Chris Jack <chris_jack@msn.com>.
306
307         * utils.c (lookup_var): Renamed special variable `$`' to `$B'.
308
309         * enscript.st (perl): Added highlighting for Perl programming
310         language by Jim Villani, Logistics Management Institute
311         (jvillani@lmi.org).
312
313 1997-06-10  Markku Rossi  <mtr@ngs.fi>
314
315         * utils.c (lookup_var): New special variable `$.'.
316         (lookup_var): New special variable `$`'.
317
318 1997-06-06  Markku Rossi  <mtr@ngs.fi>
319
320         * prims.c (prim_float): New primitive to convert items to float
321         numbers.
322
323 1997-06-03  Markku Rossi  <mtr@ngs.fi>
324
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
333         prototypes.
334         (objc): Added highlighting for goto's labels and targets.
335
336 1997-05-20  Markku Rossi  <mtr@ngs.fi>
337
338         * enscript.st (delphi): Added highlighting for Delphi language by
339         Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
340
341         * main.c (main): Moved the initialization of `ofp' from the
342         variable declaration to main().
343
344 1997-05-02  Markku Rossi  <mtr@ngs.fi>
345
346         * enscript.el (build-re): Added support for case-insensitive
347         regular expressions.
348
349         * enscript.st (fortran): Added highlighting for Fortran77
350         language.
351         Re-generated case-insensitive keyword regular expressions with the
352         new build-re function.
353
354 1997-04-25  Markku Rossi  <mtr@ngs.fi>
355
356         * enscript.st (pascal): Added highlighting for Pascal language by
357         Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>.
358
359 1997-04-16  Markku Rossi  <mtr@ngs.fi>
360
361         * gram.y: Implemented expressions: +=, -=, *=, div=.
362
363 1997-04-14  Markku Rossi  <mtr@ngs.fi>
364
365         * gram.y: Implemented prefix and postfix increment (++) and
366         decrement (--) operators.
367
368 1997-04-04  Markku Rossi  <mtr@ngs.fi>
369
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.
373
374 1997-04-03  Markku Rossi  <mtr@ngs.fi>
375
376         * prims.c (prim_range): New primitive to fetch sub-ranges from
377         lists and strings.
378         Changed all primitives' error messages to be in format
379         `FILE:LINE: MESSAGE'.
380
381 1997-03-25  Markku Rossi  <mtr@ngs.fi>
382
383         * prims.c (prim_regexp): New primitive to create regular
384         expressions from strings.
385         (prim_split): New primitive to split string to list.
386
387 1997-03-21  Markku Rossi  <mtr@ngs.fi>
388
389         * enscript.st (html): Added support for nested scripts.
390         (javascript): Added highlighting for JavaScript.
391
392 1997-03-19  Markku Rossi  <mtr@ngs.fi>
393
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
400         specials.
401
402         * main.c (main): New built-in variable `argv' which holds input
403         file names.
404
405 1997-03-17  Markku Rossi  <mtr@ngs.fi>
406
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!'.
413
414 1997-03-11  Markku Rossi  <mtr@ngs.fi>
415
416         * enscript.st (states): Updated keyword list.
417         Implemented highlighting for built-in functions.
418         Added highlighting for function names.
419
420 1997-03-10  Markku Rossi  <mtr@ngs.fi>
421
422         * enscript.st (postscript): Added highlighting for PostScript
423         language by Dave Hylands <DHylands@creo.com>.
424         Sorted highlighting states according to their names.
425
426 1997-03-06  Markku Rossi  <mtr@ngs.fi>
427
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.
431
432 1997-03-04  Markku Rossi  <mtr@ngs.fi>
433
434         * enscript.st (ada): Added highlighting for the Ada95 programming
435         language by Rolf Ebert <ebert@waporo.muc.de>.
436
437 1997-03-03  Markku Rossi  <mtr@ngs.fi>
438
439         * enscript.st (start): Cleaned bold, italic and bold-italic font
440         resolving.
441         (makefile): Fixed highlighting to handle nested (){} structures.
442         (scheme): Updated to highlight function names and ':'-started
443         function arguments.
444
445 1997-02-27  Markku Rossi  <mtr@ngs.fi>
446
447         * enscript.st: Implemented new type faces: `builtin_face' and
448         `type_face'.
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
452         to obey them.
453         Implemented new documentation state `describe_languages_html'
454         which will create a HTML report about all supported highlighting
455         formats.
456 \f
457 1997-02-26  Markku Rossi  <mtr@ngs.fi>
458
459         * Release enscript-1.5.0.
460
461 1997-02-21  Markku Rossi  <mtr@ngs.fi>
462
463         * gram.y: Implemented logical operators `not', `and' and `or'.
464
465         * main.c: New option -W, --warning to set the warning level.
466
467         * Added test subdirectory and tests for States.
468
469 1997-02-19  Markku Rossi  <mtr@ngs.fi>
470
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.
475
476 1997-02-18  Markku Rossi  <mtr@ngs.fi>
477
478         * enscript.st: Added guidelines for new highlighting rules.
479         (vhdl): Added VHDL highlighting by Brian Silveira
480         (brian@nortel.ca).
481
482 1997-02-11  Markku Rossi  <mtr@ngs.fi>
483
484         * enscript.st (verilog): Added new '`' keywords.
485         (verilog): Added highlighting for references of the pre-processor
486         defined things.
487
488 1997-02-05  Markku Rossi  <mtr@ngs.fi>
489
490         * prims.c (prim_tointeger): Renamed primitive `tonumber' to
491         `int'.
492         (prim_string): Renamed primitive `tostring' to `string'.
493         (prim_sprintf): New primitive to create formatted strings.
494
495         * utils.c (eval_expr): Implemented integer and real values and
496         expressions and conversions betweeen them.
497
498         * prims.c (prim_concat): Renamed primitive `strcat' to `concat'.
499
500 1997-02-04  Markku Rossi  <mtr@ngs.fi>
501
502         * prims.c (prim_list): New primitive `list' to create lists.
503         (prim_length): Renamed primitive `strlen' to `length'.
504
505         * gram.y: Implemented array references and assignments for lists
506         and strings.
507
508         * lex.l: Implemented C's character constants ('a').
509
510 1997-02-03  Markku Rossi  <mtr@ngs.fi>
511
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
516         and file formats.
517         Changed start state resolving to check the startrules before the
518         namerules.
519         Added colors for HTML target.
520
521         * Fixed bugs encountered with enscript-1.4.4.
522         Updated developement tools: flex-2.5.4 and bison-1.25.
523
524 1997-01-31  Markku Rossi  <mtr@ngs.fi>
525
526         * prims.c (prim_prereq): New primitive to check that a recent
527         enough version of States is being used.
528
529 1997-01-25  Markku Rossi  <mtr@ngs.fi>
530
531         * enscript.st (changelog): Implemented ChangeLog highlighting.
532
533         * enscript.el: Emacs lisp commands to help enscript.st editing.
534
535         * enscript.st (objc): Implemented Objective-C highlighting.
536         Regenerated keyword regular expressions with the Emacs-lisp
537         build-re command.
538
539 1997-01-24  Markku Rossi  <mtr@ngs.fi>
540
541         * prims.c: New primitives: regmatch, regsub and regsuball.
542
543 1997-01-23  Markku Rossi  <mtr@ngs.fi>
544
545         * prims.c (prim_getenv): New primitive: getenv.
546
547         * Makefile.am: Moved libcompat.a before libintl.a so intl library
548         can use alloca.
549
550         * De-ANSI-fied states sources since bison generated gram.c is
551         already in K&R.
552
553 1997-01-22  Markku Rossi  <mtr@ngs.fi>
554
555         * Makefile.am: Added many2html script.
556
557         * enscript.st: Added support for multiple output languages and
558         implemented HTML target for all supported input languages.
559
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.
565
566 1997-01-20  Markku Rossi  <mtr@ngs.fi>
567
568         * enscript.st (tcl): Implemented Tcl highlighting.
569
570         * defs.h (struct environment_st): Changed procedure call's
571         environment from StringHash to linked list, this gives major
572         speedup.
573
574         * Version 0.9 of States, this is an early beta.
575
576
577 Copyright (C) 1997, 1998, 1999, 2008 Free Software Foundation, Inc.
578
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.