HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: //usr/share/enscript/hl/mail.st
/**
 * Name: mail
 * Description: Mail and news articles.
 * Author: Originally by Markku Rossi <[email protected]>, heavily modified
 * by Matthew Weigel <[email protected]>
 */

state mail_body extends Highlight
{
  BEGIN {
    reference_face (false);
  }
  /^[ \t]*>/ {
    comment_face (true);
    language_print ($0);
    call (eat_one_line);
    comment_face (false);
  }
}

state mail_header extends Highlight
{
  BEGIN {
    reference_face (true);
  }

  END {
    comment_face (true);
  }
  /[ \t:]/ {
    language_print ($0);
    return;
  }
}

state mail extends HighlightEntry
{
  /^[ \t]*$/ {
    /* Move to the mail body. */
    call (mail_body);
  }

  /^/ {
    reference_face (true);
    language_print ($0);
    call (mail_header);
    comment_face (true);
  }
}


/*
Local variables:
mode: c
End:
*/