1379N/A04_hilight.dpatch from Debian's 1.6.4-7 patchset, with a few changes:
1379N/Ao hilight *.xhtml as html
1379N/Ao install php.st and ruby.st bits
1379N/Ao patch Makefile.am too
1379N/A
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/changelog.st enscript-1.6.4/states/hl/changelog.st
1379N/A--- enscript-1.6.4.orig/states/hl/changelog.st 2003-03-05 09:26:33.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/changelog.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -43,7 +43,7 @@
1379N/A }
1379N/A
1379N/A /* File descriptions without function names. */
1379N/A- /(^\t\* )([^ :]+)(:)/ {
1379N/A+ /(^\t\* )([^:]+)(:)/ {
1379N/A language_print ($1);
1379N/A
1379N/A function_name_face (true);
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/dylan.st enscript-1.6.4/states/hl/dylan.st
1379N/A--- enscript-1.6.4.orig/states/hl/dylan.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/dylan.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,124 @@
1379N/A+/**
1379N/A+ * Name: dylan
1379N/A+ * Description: Dylan Programming Language template for Enscript.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ * (based on the Scheme version by Markku Rossi <mtr@iki.fi>)
1379N/A+ */
1379N/A+
1379N/A+dylan_mod_re =
1379N/A+/* Definition Modifiers
1379N/A+ (build-re '(abstract block concrete constant class domain exception exclude
1379N/A+ export function functional generic handler import inherited inline
1379N/A+ instance interface library macro method open primary sealed sideways
1379N/A+ singleton slot subclass variable virtual))
1379N/A+ */
1379N/A+ /\b(subclass|abstract|block|c(on(crete|stant)|lass)|domain\
1379N/A+|ex(c(eption|lude)|port)|f(unction(|al))|generic|handler\
1379N/A+|i(n(herited|line|stance|terface)|mport)|library|m(acro|ethod)\
1379N/A+|open|primary|sealed|si(deways|ngleton)|slot\
1379N/A+|v(ariable|irtual))\b/;
1379N/A+
1379N/A+state dylan extends HighlightEntry
1379N/A+{
1379N/A+ BEGIN {
1379N/A+ /*
1379N/A+ * Modify regexp character syntax so that we can distinguish all
1379N/A+ * dylan symbols.
1379N/A+ */
1379N/A+ extras = list ('!', '$', '%', '&', '*', '/', ':',
1379N/A+ '=', '?', '~', '^', '.', '+', '-');
1379N/A+ for (i = 0; i < length (extras); i = i + 1)
1379N/A+ regexp_syntax (extras[i], 'w');
1379N/A+ }
1379N/A+
1379N/A+ /* Modifiers */
1379N/A+ dylan_mod_re {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types */
1379N/A+ /<\w+>/ {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols */
1379N/A+ /#\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Comments. */
1379N/A+ /\/\// {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+ /\/\*/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Character constants. */
1379N/A+ /'.*'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords.
1379N/A+ "=>" +
1379N/A+ (build-re '(above afterwards begin below by case cleanup create
1379N/A+ define end else elseif finally for from if in let local otherwise rename
1379N/A+ select signal then to unless until use variable virtual when while
1379N/A+ */
1379N/A+ /=>|\b(a(bove|fterwards)|b(e(gin|low)|y)|c(ase|leanup|reate)\
1379N/A+|define|else(|if)|end|f(inally|or|rom)|i[fn]|l(et|ocal)|otherwise\
1379N/A+|rename|s(elect|ignal)|t(hen|o)|u(n(less|til)|se)|wh(en|ile))\b/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* ':'-names, Emacs highlights these, so do we. */
1379N/A+ /([ \t])([!\$%&\*\/:<=>\?~_^a-zA-Z0-9.+\-]*:)/ {
1379N/A+ language_print ($1);
1379N/A+ reference_face (true);
1379N/A+ language_print ($2);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Function faces */
1379N/A+ /([ \t]*)(\w+[^:])([ \t]*\([ \t]*)/ {
1379N/A+ language_print ($1);
1379N/A+ function_name_face(true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face(false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+}
1379N/A+
1379N/A+
1379N/A+/*
1379N/A+Local variables:
1379N/A+mode: c
1379N/A+End:
1379N/A+*/
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/eiffel.st enscript-1.6.4/states/hl/eiffel.st
1379N/A--- enscript-1.6.4.orig/states/hl/eiffel.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/eiffel.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,132 @@
1379N/A+/**
1379N/A+ * Name: eiffel
1379N/A+ * Description: Eiffel programming language.
1379N/A+ * Author: Julien Lemoine <speedblue@happycoders.org>
1379N/A+ * Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+eiffel_types =
1379N/A+/* Types */
1379N/A+ /\b(ABSTRACT_(FRACTION|INTEGER)|ANY|AR(GUMENTS|RAY(|2|3|ED_COLLECTION))\
1379N/A+|BASIC_(DIRECTORY|TIME)|BINARY_FILE_(READ|WRITE)|BIT_(N|STRING)|BOOLEAN\
1379N/A+|CHARACTER(|_CONSTANTS)|CLOCK|COLLECTION(|2|3|_SORTER)|COMPARABLE\
1379N/A+|COUNTER|DICTIONARY(|_NODE)|D(IRECTORY|OUBLE)|EXCEPTIONS|FILE(|_TOOLS)\
1379N/A+|FIXED_ARRAY(|2|3)|GE(NERAL|N_RAND)|HASH(ABLE|_TABLE_SIZE)|INPUT_STREAM\
1379N/A+|INTEGER(|_8|_16|_32|_64|_FRACTION|_GENERAL)\
1379N/A+|ITERATOR(|_ON_(COLLECTION|DICTIONARY(_ITEMS|_KEYS)|LINKED_LIST|SET\
1379N/A+|STRING|TWO_WAY_LINKED_LIST|UNICODE_STRING))\
1379N/A+|LARGE(|_NEGATIVE|_POSITIVE)_INTEGER|LINK(|2|ED(_COLLECTION|_LIST))\
1379N/A+|MATH_CONSTANTS|MEMO(|RY)|MICROSECOND_TIME|MINI_PARSER_BUFFER\
1379N/A+|MIN_STAND|MUTABLE_BIG_INTEGER|NATIVE_ARRAY|NULL_(INPUT|OUTPUT)\
1379N/A+|NUMBER(|_FRACTION|_TOOLS)|NUMERIC|OUTPUT_STREAM|PLATFORM|POINTER\
1379N/A+|REAL|REVERSE_COLLECTION_SORTER|SAFE_EQUAL|SCOOP_UTILITIES|SET(|_NODE)\
1379N/A+|SMALL_INTEGER|STD_(ERROR|FILE_(READ|READ_WRITE|WRITE)|INPUT(|_OUTPUT)\
1379N/A+|OUTPUT|RAND)|STRING(|_HANDLER)|SYSTEM|TIME(|_IN_(ENGLISH|FRENCH|GERMAN\
1379N/A+|ITALIAN|SOME_LANGUAGE|SPANISH))|TWO_WAY_LINKED_LIST\
1379N/A+|UNICODE_STRING(|_HANDLER)|UTF8_PARSER)\b/;
1379N/A+
1379N/A+eiffel_keywords =
1379N/A+/* Keywords */
1379N/A+ /\b(agent|a(ll|lias)|and|as(|sign)|check|class|convert|create|Current|debug\
1379N/A+|deferred|do|else(|if)|en(d|sure)|ex(panded|port|ternal)|False\
1379N/A+|feature|fro(m|zen)|if|implies|in(dexing|fix|herit|spect|variant)\
1379N/A+|is|like|local|loop|not|o(r|bsolete|ld|nce)|prefix|Precursor|pure\
1379N/A+|re(define|ference|name|quire|scue|try)|Result|separate|then|True\
1379N/A+|TUPLE|un(define|til)|creation)\b/;
1379N/A+
1379N/A+state eiffel extends HighlightEntry
1379N/A+{
1379N/A+
1379N/A+ /* One line comments. */
1379N/A+ /\-\-/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords. */
1379N/A+ eiffel_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types. */
1379N/A+ eiffel_types {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Character constants. */
1379N/A+ /'.'|'\\\\.'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols, etc. */
1379N/A+ /:=|==|<=|>=|=|!=|\/=|!|!!/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Type declarations */
1379N/A+ /([ \t])*([a-zA-Z]+[, \ta-zA-Z0-9_]*):[^=]/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, with args
1379N/A+ * fct_name (args...) is
1379N/A+ */
1379N/A+ /^([ \t]*[a-zA-Z_][a-zA-Z_0-9]*[ \t]*)(\([ \t]*[ \ta-z,A-Z_0-9]+)(:[ \ta-zA-Z0-9_\[\]]+)?(\)[ \t]*)(:[ \ta-zA-Z0-9_\[\]]+)?([ \t]+is)[ \t]*$/ {
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($1);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($2);
1379N/A+ type_face (true);
1379N/A+ language_print ($3);
1379N/A+ type_face (false);
1379N/A+ language_print ($4);
1379N/A+ type_face (true);
1379N/A+ language_print ($5);
1379N/A+ type_face (false);
1379N/A+ keyword_face (true);
1379N/A+ language_print ($6);
1379N/A+ keyword_face (false);
1379N/A+ language_print ($7);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, without args
1379N/A+ * fct_name is
1379N/A+ */
1379N/A+ /^([ \t]*[a-zA-Z_][a-zA-Z_0-9]*)([ \t]*)(is)[ \t]*$/ {
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($1);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print(" ");
1379N/A+ keyword_face (true);
1379N/A+ language_print ($3);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+}
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/enscript.st enscript-1.6.4/states/hl/enscript.st
1379N/A--- enscript-1.6.4.orig/states/hl/enscript.st 2003-03-05 10:31:31.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/enscript.st 2006-01-09 22:04:22.000000000 +0200
6636N/A@@ -472,24 +472,31 @@
1379N/A /\.m$/ matlab;
1379N/A /\.(mpl|mp|maple)$/ maple;
1379N/A /\.(scm|scheme)$/ scheme;
1379N/A+ /\.e$/ eiffel;
1379N/A+ /\.erl$/ erlang;
1379N/A /\b\.emacs$|\.el$/ elisp;
1379N/A /\.ad(s|b|a)$/ ada;
1379N/A /\.[Ss]$/ asm;
1379N/A+ /\.sml$/ sml;
1379N/A /\.st$/ states;
1379N/A+ /\.lua$/ lua;
1379N/A /(M|m)akefile.*/ makefile;
1379N/A /\.(MOD|DEF|mi|md)$/ modula_2;
1379N/A+ /\.oz$/ oz;
1379N/A /\.tcl$/ tcl;
1379N/A /\.(v|vh)$/ verilog;
1379N/A- /\.html?$/ html;
1379N/A+ /\.x?html?$/ html;
1379N/A /\bChangeLog$/ changelog;
1379N/A /\.(vhd|vhdl)$/ vhdl;
1379N/A /\.(scr|.syn|.synth)$/ synopsys;
1379N/A /\.idl$/ idl;
1379N/A /\.(hs|lhs|gs|lgs)$/ haskell;
1379N/A /\.(pm|pl)$/ perl;
1379N/A+ /\.php[34]?$/ php;
1379N/A /\.(eps|EPS|ps|PS)$/ postscript;
1379N/A /\.py$/ python;
1379N/A /\.pyx$/ pyrex;
1379N/A+ /\.rbw?$/ ruby;
1379N/A /\.js$/ javascript;
1379N/A /\.java$/ java;
1379N/A /\.([Pp][Aa][Ss]|[Pp][Pp]|[Pp])$/ pascal;
6636N/A@@ -529,6 +536,10 @@
1379N/A /-\*- [Ii][Dd][Ll] -\*-/ idl;
1379N/A /-\*- [Pp][Ee][Rr][Ll] -\*-/ perl;
1379N/A /^#![ \t]*\/.*\/perl/ perl;
1379N/A+ /-\*- [Pp][Hh][Pp] -\*-/ php;
1379N/A+ /^<\?php/ php;
1379N/A+ /-\*- [Rr][Uu][Bb][Yy] -\*-/ ruby;
1379N/A+ /^#![ \t]*\/.*\/ruby/ ruby;
1379N/A /^From:/ mail;
1379N/A /^#![ \t]*(\/usr)?\/bin\/[ngmt]?awk/ awk;
1379N/A /^#![ \t]*(\/usr)?\/bin\/sh/ sh;
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/erlang.st enscript-1.6.4/states/hl/erlang.st
1379N/A--- enscript-1.6.4.orig/states/hl/erlang.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/erlang.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,161 @@
1379N/A+/**
1379N/A+ * Name: erlang
1379N/A+ * Description: Erlang programming language.
1379N/A+ * Author: Sean Hinde
1379N/A+ */
1379N/A+
1379N/A+
1379N/A+/* Erlang atom: ([a-z][a-zA-Z0-9_]*|\'[^\n]*\') */
1379N/A+
1379N/A+state erlang extends HighlightEntry
1379N/A+{
1379N/A+ /* Comments */
1379N/A+ /%/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Special -record(rec_name, {}). pre-processor case */
1379N/A+ /(-record)(\([ \t]*)([a-z][a-zA-Z0-9_]*|\'[^\n]*\')/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($1);
1379N/A+ reference_face (false);
1379N/A+ language_print ($2);
1379N/A+ type_face (true);
1379N/A+ language_print ($3);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Special -define(Alter, "Hello"). pre-processor case */
1379N/A+ /(-define)(\([
1379N/A+\t]*)([a-z][a-zA-Z0-9_]*|\'[^\n]*\'|[A-Z_][a-zA-Z0-9_]*)/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($1);
1379N/A+ reference_face (false);
1379N/A+ language_print ($2);
1379N/A+ builtin_face (true);
1379N/A+ language_print ($3);
1379N/A+ builtin_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Pre-processor lines. */
1379N/A+ /^-([a-z][a-zA-Z0-9_]*)/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Defines */
1379N/A+ /(\?)([a-z][a-zA-Z0-9_]*|\'[^\n]*\'|[A-Z_][a-zA-Z0-9_]*)/ {
1379N/A+ language_print ($1);
1379N/A+ builtin_face (true);
1379N/A+ language_print ($2);
1379N/A+ builtin_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Records */
1379N/A+ /(#)([a-z][a-zA-Z0-9_]*|\'[^\n]*\')/ {
1379N/A+ language_print ($1);
1379N/A+ type_face (true);
1379N/A+ language_print ($2);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords.
1379N/A+ '(after begin case try catch end fun if of receive when)
1379N/A+ Regexp taken from emacs Erlang mode R9C
1379N/A+ */
1379N/A+ /\b(a(fter|ndalso)|begin|c(atch|ase)\
1379N/A+|end|fun|if|o(f|relse)|receive|try|when\
1379N/A+|query)\b/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Guards.
1379N/A+ Regexp taken from emacs Erlang mode R9C
1379N/A+ */
1379N/A+ /\b((is_)*(atom|function|binary|constant|float\
1379N/A+|integer|list|number|p(id|ort)\
1379N/A+|re(ference|cord)|tuple))\b/ {
1379N/A+ builtin_face (true);
1379N/A+ language_print ($0);
1379N/A+ builtin_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Built in functions */
1379N/A+
1379N/A+/\b(a(bs|live|pply|tom_to_list)\
1379N/A+|binary_to_(list|term)\
1379N/A+|concat_binary|d(ate|isconnect_node)\
1379N/A+|e(lement|rase|xit)\
1379N/A+|float(|_to_list)\
1379N/A+|g(arbage_collect|et(|_keys)|roup_leader)\
1379N/A+|h(alt|d)\
1379N/A+|i(nte(ger_to_list|rnal_bif)|s_alive)\
1379N/A+|l(ength|i(nk|st_to_(atom|binary|float|integer\
1379N/A+|pid|tuple)))\
1379N/A+|make_ref|no(de(|_(link|unlink)|s)|talive)\
1379N/A+|open_port\
1379N/A+|p(id_to_list|rocess(_(flag|info)|es)|ut)\
1379N/A+|r(egister(|ed)|ound)\
1379N/A+|s(e(lf|telement)|ize\
1379N/A+|p(awn(|_link)|lit_binary)|tatistics)\
1379N/A+|t(erm_to_binary|hrow|ime|l\
1379N/A+|r(ace|unc)|uple_to_list)\
1379N/A+|un(link|register)|whereis)\b/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions.
1379N/A+ */
1379N/A+ /^([a-z][a-zA-Z0-9_]*|'[^\n]*')/ {
1379N/A+ function_name_face (true);
1379N/A+ language_print ($1);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($2);
1379N/A+ }
1379N/A+
1379N/A+ /* Atom like strings */
1379N/A+ /('[^\n]*')/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Characters */
1379N/A+ /(\$.)/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Variable Names */
1379N/A+ /* /([\{\(\,\[ \t]+)([A-Z_][a-zA-Z0-9_]*)/ { */
1379N/A+ /([^a-z0-9_\"])([A-Z_][a-zA-Z0-9_]*)/ {
1379N/A+ language_print ($1);
1379N/A+ variable_name_face (true);
1379N/A+ language_print ($2);
1379N/A+ variable_name_face (false);
1379N/A+ }
1379N/A+}
1379N/A+
1379N/A+/*
1379N/A+Local variables:
1379N/A+mode: erlang
1379N/A+End:
1379N/A+*/
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/forth.st enscript-1.6.4/states/hl/forth.st
1379N/A--- enscript-1.6.4.orig/states/hl/forth.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/forth.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,96 @@
1379N/A+/**
1379N/A+ * Name: forth
1379N/A+ * Description: Forth Programming Language.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+forth_builtins =
1379N/A+/* builtins */
1379N/A+ /\b(abort|bye|c(atch|o(ld|ntext))|d(rop|up)|f(d(rop|up)|nip|o(r(get|th)|ver)|rot\
1379N/A+|s(eal|wap)|tuck)|include|l(ink|oad)|n(ip|eeds)|o(rder|ver)|pick|ro(ll|t)|swap|t(hrow|uck)\
1379N/A+|within|2(drop|nip|dup|over|tuck|swap|rot)|3dup|4dup\
1379N/A+)\b/;
1379N/A+
1379N/A+forth_types =
1379N/A+/* types */
1379N/A+ /\b(base|c(ell|har)|decimal|float|hex)\b/;
1379N/A+
1379N/A+forth_keywords =
1379N/A+/* keywords */
1379N/A+ /\b(a(bs|gain|head|lso|nd)|begin|c(ase|onstant)|d(abs|efinitions|m(ax|in)|negate|o(|ne))\
1379N/A+|e(lse|nd(|case|if|of)|xit)|f(a(bs|cos(|h)|log|sin(|h)|tan(|2|h))|cos(|h)|exp(|m1)|l(n(|p1)\
1379N/A+|o(g|or)|s(in(|cos|h)|qrt)|tan(|h))|m(ax|in)|negate|or|round|sqrt)|h(ere|old)|i(f|nvert)\
1379N/A+|l(eave|oop)|m(ax|in|od)|n(e(gate|xt)|ot)|o(f|nly|r)|r(epeat|oot)|s(eal|ign)|then\
1379N/A+|un(til|loop)|v(ariable|oc(abulary|s))|while|xor\
1379N/A+)\b/;
1379N/A+
1379N/A+state forth extends HighlightEntry
1379N/A+{
1379N/A+ /* Comments. */
1379N/A+ /\\\\/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* keywords. */
1379N/A+ forth_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types. */
1379N/A+ forth_types {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Builtins support */
1379N/A+ forth_builtins {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* character constants. */
1379N/A+ /'.'|'\\\\.'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* symbols, etc. */
1379N/A+ />|>=|<=|<>|!|\+|\-|\^|\/|\*|\|/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * function definitions, with args
1379N/A+ * fct_name (args...) is
1379N/A+ */
1379N/A+ /^(:[ \t]+)([^ ^\t]+)([ \t]*)/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($1);
1379N/A+ keyword_face (false);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+}
1379N/A+
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/icon.st enscript-1.6.4/states/hl/icon.st
1379N/A--- enscript-1.6.4.orig/states/hl/icon.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/icon.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,93 @@
1379N/A+/**
1379N/A+ * Name: icon
1379N/A+ * Description: Icon Programming Language.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+icon_builtins =
1379N/A+/* Builtins */
1379N/A+ /\b(break|create|default|fail|initial|l(ink|ocal)|not|s(tatic|uspend))\b/;
1379N/A+
1379N/A+icon_types =
1379N/A+/* Types */
1379N/A+ /\b(char|error|function|integer|proc|procedure|real|variable)\b/;
1379N/A+
1379N/A+icon_keywords =
1379N/A+/* Keywords */
1379N/A+ /\b(a(bs|cos|ny|rgs|sin|tan)|b(al|y)|c(a(llout|se)|enter|hdir|lose|o(llect|py|s)|set)\
1379N/A+|d(e(lay|lete|tab|isplay|tor)|o)|e(lse|n(d|tab)|rrorclear|very|xit|xp)|f(ind|lush)\
1379N/A+|get(|ch|che|env)|i(and|com|f|mage|nsert|or|shift|xor)|k(bhit|ey)|l(eft|ist|o(adfunc|g))\
1379N/A+|m(a(ny|p|tch)|ember|ove)|n(ame|ext|umeric)|o(f|pen|rd)|p(op|os|ull|ush|ut)\
1379N/A+|r(e(ad(|s)|move|name|p(eat|l)|turn|verse)|ight|tod|unerr)|s(ave|eek|eq|et|in|ort(|f)\
1379N/A+|qrt|top|tring|ystem)|t(a(b(|le)|n)|hen|o|rim|ype)|u(ntil|pto)|w(h(ere|ile)|rite(|s))\
1379N/A+)\b/;
1379N/A+
1379N/A+state icon extends HighlightEntry
1379N/A+{
1379N/A+ /* Comments. */
1379N/A+ /#/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords. */
1379N/A+ icon_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types. */
1379N/A+ icon_types {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Structure support */
1379N/A+ icon_builtins {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Character constants. */
1379N/A+ /'.'|'\\\\.'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols, etc. */
1379N/A+ />|>=|:=|<=|#|=+|!|::|\+|\-|\^|\/|\*|\|/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, with args
1379N/A+ * fct_name (args...) is
1379N/A+ */
1379N/A+ /([ \t]*procedure[ \t]+)(\w+)([ \t]*)/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($1);
1379N/A+ keyword_face (false);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+}
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/lua.st enscript-1.6.4/states/hl/lua.st
1379N/A--- enscript-1.6.4.orig/states/hl/lua.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/lua.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,91 @@
1379N/A+/**
1379N/A+ * Name: lua
1379N/A+ * Description: Lua Programming Language template for Enscript.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+lua_builtins =
1379N/A+/* Builtins */
1379N/A+ /\b(assert|call|foreach|globals|print|require|to(number|string))\b/;
1379N/A+
1379N/A+lua_keywords =
1379N/A+/* Keywords */
1379N/A+ /\b(and|break|do|e(nd|lse(|if))|f(alse|or|unction)|i(f|n)|local\
1379N/A+|or|n(il|ot)|re(peat|turn)|t(hen|rue)|until|while\
1379N/A+)\b/;
1379N/A+
1379N/A+state lua extends HighlightEntry
1379N/A+{
1379N/A+
1379N/A+ /* One line comments. */
1379N/A+ /\-\-|^#!/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords. */
1379N/A+ lua_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types. */
1379N/A+ lua_builtins {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Character constants. */
1379N/A+ /'.'|'\\\\.'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols, etc. */
1379N/A+ /+|-|\*|=|!=|==|<|>|<=|>=|~=|!/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Class references */
1379N/A+ /([ \t])*([a-zA-Z]+[, \ta-zA-Z0-9_]*):[^=]/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, with args
1379N/A+ * function fct_name (args...)
1379N/A+ */
1379N/A+ /^([ \t]*function[ \t]+)([a-zA-Z_][a-zA-Z_:0-9]*)([ \t]*)(\([^)]*\)[ \t]*)[ \t]*$/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($1);
1379N/A+ keyword_face (false);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print(" ");
1379N/A+ language_print ($3);
1379N/A+ keyword_face (true);
1379N/A+ language_print ($4);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+}
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/Makefile.am enscript-1.6.4/states/hl/Makefile.am
1379N/A--- enscript-1.6.4.orig/states/hl/Makefile.am 2003-03-05 09:26:33.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/Makefile.am 2006-01-09 22:06:23.000000000 +0200
6636N/A@@ -36,7 +36,8 @@
1379N/A matlab.st nroff.st objc.st outline.st pascal.st passthrough.st perl.st \
1379N/A postscript.st python.st pyrex.st rfc.st scheme.st sh.st skill.st \
1379N/A sql.st states.st synopsys.st tcl.st tcsh.st tex.st vba.st verilog.st \
1379N/A-vhdl.st vrml.st wmlscript.st zsh.st
1379N/A+vhdl.st vrml.st wmlscript.st zsh.st eiffel.st erlang.st dylan.st oz.st \
1379N/A+lua.st oberon2.st icon.st smalltalk.st forth.st sml.st php.st ruby.st
1379N/A
6636N/A hldir = $(pkgdatadir)/hl
6636N/A dist_hl_DATA = $(misc) $(styles) $(languages) $(highlightings)
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/Makefile.in enscript-1.6.4/states/hl/Makefile.in
1379N/A--- enscript-1.6.4.orig/states/hl/Makefile.in 2003-03-05 09:40:07.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/Makefile.in 2006-01-09 22:05:26.000000000 +0200
6636N/A@@ -303,7 +303,8 @@
1379N/A matlab.st nroff.st objc.st outline.st pascal.st passthrough.st perl.st \
1379N/A postscript.st python.st pyrex.st rfc.st scheme.st sh.st skill.st \
1379N/A sql.st states.st synopsys.st tcl.st tcsh.st tex.st vba.st verilog.st \
1379N/A-vhdl.st vrml.st wmlscript.st zsh.st
1379N/A+vhdl.st vrml.st wmlscript.st zsh.st eiffel.st erlang.st dylan.st oz.st \
1379N/A+lua.st oberon2.st icon.st smalltalk.st forth.st sml.st php.st ruby.st
1379N/A
6636N/A hldir = $(pkgdatadir)/hl
6636N/A dist_hl_DATA = $(misc) $(styles) $(languages) $(highlightings)
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/oberon2.st enscript-1.6.4/states/hl/oberon2.st
1379N/A--- enscript-1.6.4.orig/states/hl/oberon2.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/oberon2.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,111 @@
1379N/A+/**
1379N/A+ * Name: oberon2
1379N/A+ * Description: Oberon 2 Programming Language.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+oberon2_builtins =
1379N/A+/* Builtins */
1379N/A+ /\b(CONST|IMPORT)\b/;
1379N/A+
1379N/A+oberon2_types =
1379N/A+/* Types */
1379N/A+ /\b(ARRAY|B(OOLEAN|YTE)|CHAR|INTEGER|LONG(|INT|REAL)|MODULE|NIL\
1379N/A+|P(OINTER|ROCEDURE)|RE(AL|CORD)|SHORT(|INT))\b/;
1379N/A+
1379N/A+oberon2_keywords =
1379N/A+/* Keywords */
1379N/A+ /\b(A(BS|ND|SH)|BEGIN|C(A(P|SE)|HR)|D(O|EC|IV)\
1379N/A+|E(LS(E|IF)|N(D|TIER)|X(CL|IT))|F(ALSE|OR)|HALT|I(F|S|N(|C(|L)))\
1379N/A+|L(EN|OOP)|M(AX|IN|OD)|NEW|O(F|DD|R(|D))|S(ET|IZE)|T(HEN|O|RUE|YPE)\
1379N/A+|UNTIL|RE(PEAT|TURN)|VAR|W(HILE|ITH))\b/;
1379N/A+
1379N/A+state oberon2_comment extends Highlight
1379N/A+{
1379N/A+ /\*\)/ {
1379N/A+ language_print ($0);
1379N/A+ return;
1379N/A+ }
1379N/A+}
1379N/A+
1379N/A+state oberon2 extends HighlightEntry
1379N/A+{
1379N/A+ /* Comments. */
1379N/A+ /\(\*/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (oberon2_comment);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords. */
1379N/A+ oberon2_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types. */
1379N/A+ oberon2_types {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Structure support */
1379N/A+ oberon2_builtins {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Character constants. */
1379N/A+ /'.'|'\\\\.'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols, etc. */
1379N/A+ /\->|>|>=|:=|<=|#|=|!|::|\+|\-|\^|\/|\*|\|/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, with args
1379N/A+ * fct_name (args...) is
1379N/A+ */
1379N/A+ /([ \t]*PROCEDURE[ \t]+)(\w+)([ \t]*)/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($1);
1379N/A+ keyword_face (false);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+
1379N/A+ /([ \t]*END[ \t]+)(\w+)([ \t]*[;\.])/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($1);
1379N/A+ keyword_face (false);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+}
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/oz.st enscript-1.6.4/states/hl/oz.st
1379N/A--- enscript-1.6.4.orig/states/hl/oz.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/oz.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,89 @@
1379N/A+/**
1379N/A+ * Name: oz
1379N/A+ * Description: Mozart/Oz Programming Language.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+oz_builtins =
1379N/A+/* Builtins */
1379N/A+ /\b(export|import|local|require)\b/;
1379N/A+
1379N/A+oz_types =
1379N/A+/* Types */
1379N/A+ /\b(attr|c(lass|atch)|f(eat|unctor)|nil|prop|raise|try)\b/;
1379N/A+
1379N/A+oz_keywords =
1379N/A+/* Keywords */
1379N/A+ /\b(at|c(ase|hoice|ond)|d(e(clare|fine)|o|is)|e(lse(|case|if|of)|nd)\
1379N/A+|f(inally|or|rom|un)|i(f|n)|lock|meth|not|o(f|r)|p(repare|roc)|then\
1379N/A+|thread)\b/;
1379N/A+
1379N/A+state oz extends HighlightEntry
1379N/A+{
1379N/A+
1379N/A+ /* Comments. */
1379N/A+ /%/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (eat_one_line);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords. */
1379N/A+ oz_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types. */
1379N/A+ oz_types {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Structure support */
1379N/A+ oz_builtins {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Character constants. */
1379N/A+ /'.'|'\\\\.'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols, etc. */
1379N/A+ /\.\.|=[=]|<\-|\\=|\|/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, with args
1379N/A+ * fct_name (args...) is
1379N/A+ */
1379N/A+ /([ \t]*\{)(\w+)([\. \t]*)/ {
1379N/A+ language_print ($1);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+
1379N/A+}
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/perl.st enscript-1.6.4/states/hl/perl.st
1379N/A--- enscript-1.6.4.orig/states/hl/perl.st 2003-03-05 09:32:09.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/perl.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -60,6 +60,11 @@
1379N/A
1379N/A state perl extends HighlightEntry
1379N/A {
1379N/A+ /* stuff after $# is a variable, not a comment */
1379N/A+ /\$#\w+/ {
1379N/A+ language_print ($0);
1379N/A+ }
1379N/A+
1379N/A /* Comments. */
1379N/A /#.*$/ {
1379N/A comment_face (true);
1379N/A@@ -127,7 +132,6 @@
1379N/A
1379N/A /* Variables */
1379N/A /[$%@&]+\w+/ {
1379N/A- keyword_face (false);
1379N/A language_print ($0);
1379N/A }
1379N/A
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/smalltalk.st enscript-1.6.4/states/hl/smalltalk.st
1379N/A--- enscript-1.6.4.orig/states/hl/smalltalk.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/smalltalk.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,80 @@
1379N/A+/**
1379N/A+ * Name: Smalltalk
1379N/A+ * Description: Smalltalk Programming Language.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+smalltalk_keywords =
1379N/A+/* Keywords */
1379N/A+ /\b(class|false|inspect|isNil|new|nil|not(|Nil)|out|s(elf|uper)|true\
1379N/A+|do|whileTrue|whileFalse|ifTrue|ifFalse|put|to|at|add|new\
1379N/A+|for)\b/ ;
1379N/A+
1379N/A+state smalltalk_quot_string extends Highlight
1379N/A+{
1379N/A+ /\\\\./ {
1379N/A+ language_print ($0);
1379N/A+ }
1379N/A+ /[\']/ {
1379N/A+ language_print ($0);
1379N/A+ return;
1379N/A+ }
1379N/A+}
1379N/A+
1379N/A+state smalltalk extends HighlightEntry
1379N/A+{
1379N/A+
1379N/A+ /* Comments. */
1379N/A+ /\"/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords. */
1379N/A+ smalltalk_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Declarations */
1379N/A+ /[ \t]*\|.*\|/ {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /[\']/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (smalltalk_quot_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols, etc. */
1379N/A+ /:=|>|>=|==|<=|<>|=|!|::|@|\+|\-|\^|\/|\*|\||\[|\]/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, with args
1379N/A+ * fct_name (args...) is
1379N/A+ */
1379N/A+ /([ \t]*)(\w+)(:[ \t]*)/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($1);
1379N/A+ keyword_face (false);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+
1379N/A+}
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/sml.st enscript-1.6.4/states/hl/sml.st
1379N/A--- enscript-1.6.4.orig/states/hl/sml.st 1970-01-01 02:00:00.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/sml.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -0,0 +1,101 @@
1379N/A+/**
1379N/A+ * Name: sml
1379N/A+ * Description: Standard ML Programming Language.
1379N/A+ * Author: Brent Fulgham <bfulgham@debian.org>
1379N/A+ */
1379N/A+
1379N/A+sml_builtins =
1379N/A+/* Builtins */
1379N/A+ /\b(functor|lambda|s(ig(|nature)|truct(|ure))|NONE|SOME)\b/;
1379N/A+
1379N/A+sml_types =
1379N/A+/* Types */
1379N/A+ /\b(\'(a|b|c|d)|array|bool|char|int|list|real|string|unit|vector|word)\b/;
1379N/A+
1379N/A+sml_keywords =
1379N/A+/* Keywords */
1379N/A+ /\b(a(bs(traction|type)|nd(|also)|s|toi)|before|c(ase|oncat)|d(o|atatype)\
1379N/A+|e(lse|nd|qtype|xception)|f(n|un(|sig))|handle|i(f|n(|clude|fix|fixr))\
1379N/A+|l(et|ocal)|nonfix|o(|f|p(|en)|relse|verload)|print|r(aise|ec|ef)|sharing\
1379N/A+|t(hen|ype)|val|w(h(ere|ile)|ith(|type)))\b/ ;
1379N/A+
1379N/A+state sml_comment extends Highlight
1379N/A+{
1379N/A+ /\*\)/ {
1379N/A+ language_print ($0);
1379N/A+ return;
1379N/A+ }
1379N/A+}
1379N/A+
1379N/A+state sml extends HighlightEntry
1379N/A+{
1379N/A+
1379N/A+ /* Comments. */
1379N/A+ /\(\*/ {
1379N/A+ comment_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (sml_comment);
1379N/A+ comment_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Keywords. */
1379N/A+ sml_keywords {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($0);
1379N/A+ keyword_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Types. */
1379N/A+ sml_types {
1379N/A+ type_face (true);
1379N/A+ language_print ($0);
1379N/A+ type_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Structure support */
1379N/A+ sml_builtins {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* String constants. */
1379N/A+ /\"/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ call (c_string);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Character constants. */
1379N/A+ /'.'|'\\\\.'/ {
1379N/A+ string_face (true);
1379N/A+ language_print ($0);
1379N/A+ string_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /* Symbols, etc. */
1379N/A+ /:=|>|>=|==|<=|<>|=|!|::|@|\+|\-|\^|\/|\*|\||\b(quot|rem|div|mod\
1379N/A+|hd|tl)\b/ {
1379N/A+ reference_face (true);
1379N/A+ language_print ($0);
1379N/A+ reference_face (false);
1379N/A+ }
1379N/A+
1379N/A+ /*
1379N/A+ * Function definitions, with args
1379N/A+ * fct_name (args...) is
1379N/A+ */
1379N/A+ /([ \t]*f[u]n[ \t]+)(\w+)([ \t]*)/ {
1379N/A+ keyword_face (true);
1379N/A+ language_print ($1);
1379N/A+ keyword_face (false);
1379N/A+ function_name_face (true);
1379N/A+ face_on(face_bold_italic);
1379N/A+ language_print ($2);
1379N/A+ face_off(face_bold_italic);
1379N/A+ function_name_face (false);
1379N/A+ language_print ($3);
1379N/A+ }
1379N/A+
1379N/A+}
1379N/Adiff -Nru enscript-1.6.4.orig/states/hl/tcl.st enscript-1.6.4/states/hl/tcl.st
1379N/A--- enscript-1.6.4.orig/states/hl/tcl.st 2003-03-05 09:26:33.000000000 +0200
1379N/A+++ enscript-1.6.4/states/hl/tcl.st 2006-01-09 22:02:28.000000000 +0200
1379N/A@@ -128,7 +128,7 @@
1379N/A |e(ntry|of|rror|v(al|ent)|x(ec|it|pr))\
1379N/A |f(blocked|configure|ile(|event|name)|lush|o(cus|nt|r(|each|mat))|rame)\
1379N/A |g(ets|lob(|al)|r(ab|id))|history|i(f|mage|n(cr|fo|terp))|join\
1379N/A-|l(a(bel|ppend)|i(brary|n(dex|sert)|st(|box))|length|o(ad|se|wer)\
1379N/A+|l(a(bel|ppend|st)|i(brary|n(dex|sert)|st(|box))|length|o(ad|se|wer)\
1379N/A |r(ange|eplace)|s(earch|ort))\
1379N/A |me(nu(|button)|ssage)|op(en|tion(|s))\
1379N/A |p(ack(|age)|hoto|id|kg_mkIndex|lace|roc|uts|wd)\