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