[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#147116: marked as done (enscript: Ruby enscript syntax highlighting)



Your message dated Sat, 07 Oct 2006 15:47:18 -0700
with message-id <E1GWKww-0006Pf-GK@spohr.debian.org>
and subject line Bug#147116: fixed in enscript 1.6.4-10
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: enscript
Version: 1.6.3-1.1
Severity: wishlist
Tags: upstream

I'd like to have Ruby Syntax Highlighting with enscript.
Here's a script i got off some mailing list.
Author is reported to be unreacheable, original homepage does no longer
exist. :-( I guess the file is based upon an existing enscript file, and
thus probably automagically GPLed ;)
Please forward this upstream and/or include it in the debian/package.

-----
/**
 * Name: ruby
 * Description: Ruby programming language.
 * Author: Mike Wilson <wmwilson01@hotmail.com>
 */

state ruby_comment
{
  /\*\\\// {
    language_print ($0);
    return;
  }
  LANGUAGE_SPECIALS {
   language_print ($0);
  }
}

state ruby_dquot_string
{
  /\\\\./ {
    language_print ($0);
  }
  /\"/ {
    language_print ($0);
    return;
  }
  LANGUAGE_SPECIALS {
    language_print ($0);
  }
}

state ruby_quot_string
{
  /\\\\./ {
    language_print ($0);
  }
  /[\']/ {
    language_print ($0);
    return;
  }
  LANGUAGE_SPECIALS {
    language_print ($0);
  }
}

state ruby_bquot_string
{
  /\\\\./ {
    language_print ($0);
  }
  /`/ {
    language_print ($0);
    return;
  }
  LANGUAGE_SPECIALS {
    language_print ($0);
  }
}

state ruby
{
  BEGIN {
    header ();
  }
  END {
    trailer ();
  }

  /* Comments. */
  /#[^{].*$/ {
    comment_face (true);
    language_print ($0);
    comment_face (false);
  }

  /* Ignore escaped quote marks */
  /\\\"/ {
    language_print ($0);
  }
  /\\\'/ {
    language_print ($0);
  }
  /\\\`/ {
    language_print ($0);
  }

  /* In cgi files, JavaScript might be imbedded, so we need to look out
   * for the JavaScript comments, because they might contain something
   * we don't like, like a contraction (don't, won't, etc.)
   * We won't put them in comment face, because they are not ruby
   * comments.
   */
  /\/\// {
    language_print ($0);
    call (eat_one_line);
  }

  /* String constants. */
  /\"/ {
    string_face (true);
    language_print ($0);
    call (ruby_dquot_string);
    string_face (false);
  }
  /[\']/ {
    string_face (true);
    language_print ($0);
    call (ruby_quot_string);
    string_face (false);
  }

  /* Backquoted command string */
  /`/ {
    string_face (true);
    language_print ($0);
    call (ruby_bquot_string);
    string_face (false);
  }

  /* Variables globals and instance */
  /[$@]\w+/ {
    variable_name_face (true);
    language_print ($0);
    variable_name_face (false);
  }

  /* Variables class variable */
  /@@\w+/ {
    variable_name_face (true);
    language_print ($0);
    variable_name_face (false);
  }

   /([ \t]*)(def)([ \t]+)([^(]*)/ {
    /* indentation */
    language_print ($1);

    /* def */
    keyword_face (true);
    language_print ($2);
    keyword_face (false);

    /* middle */
    language_print ($3);

    /* Function name. */
    function_name_face (true);
    language_print ($4);
    function_name_face (false);
  }

  /* Highlighting
	--Type face
 	private protected public

	--Builtin face (I consider these to be somewhat special)
	alias alias_method attr attr_accessor attr_reader attr_writer
	module_alias module_function self super

	--Reference face
	require include

	--Keyword face
	and begin break case class def defined? do else elsif end
	ensure eval extend false for if in method module next nil not
	or redo rescue retry return then true undef unless until when
	while yield
   */
/\\b(private|protected|public)\\b/ {
    type_face (true);
    language_print ($0);
    type_face (false);
  }

/\\b(alias|alias_method|attr|attr_(accessor|reader|writer)\\
|module_(alias|function)|self|super)\\b/ {
    builtin_face (true);
    language_print ($0);
    builtin_face (false);
  }

/\\b(include|require)\\b/ {
    reference_face (true);
    language_print ($0);
    reference_face (false);
  }

/\\b(and|begin|break|case|class|def|defined?|do|else|elsif|end|ensure|eval\\
|extend|false|for|if|in|method|module|next|nil|not|or|raise|redo|rescue|retry\\
|return|then|true|undef|unless|until|when|while|yield)\\b/ {
    keyword_face (true);
    language_print ($0);
    keyword_face (false);
  }

  LANGUAGE_SPECIALS {
    language_print ($0);
  }

  /\$[!@&`'+~=\/\\,;.<>_*$?:"]/ {
    variable_name_face (true);
    language_print ($0);
    variable_name_face (false);
  }
}


-----

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux marvin.xmldesign.de 2.4.19-pre6acpi0404 #1 Mon Apr 8 00:26:54 CEST 2002 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (ignored: LC_ALL set)

Versions of packages enscript depends on:
ii  libc6                         2.2.5-6    GNU C Library: Shared libraries an
ii  libpaperg                     1.1.8      Library for handling paper charact



--- End Message ---
--- Begin Message ---
Source: enscript
Source-Version: 1.6.4-10

We believe that the bug you reported is fixed in the latest version of
enscript, which is due to be installed in the Debian FTP archive:

enscript_1.6.4-10.diff.gz
  to pool/main/e/enscript/enscript_1.6.4-10.diff.gz
enscript_1.6.4-10.dsc
  to pool/main/e/enscript/enscript_1.6.4-10.dsc
enscript_1.6.4-10_amd64.deb
  to pool/main/e/enscript/enscript_1.6.4-10_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 147116@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christoph Berg <myon@debian.org> (supplier of updated enscript package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun,  8 Oct 2006 00:14:56 +0200
Source: enscript
Binary: enscript
Architecture: source amd64
Version: 1.6.4-10
Distribution: unstable
Urgency: low
Maintainer: Christoph Berg <myon@debian.org>
Changed-By: Christoph Berg <myon@debian.org>
Description: 
 enscript   - Converts ASCII text to Postscript, HTML, RTF or Pretty-Print
Closes: 147116 276219 339938 344750 349321
Changes: 
 enscript (1.6.4-10) unstable; urgency=low
 .
   * New maintainer (Closes: #349321).
   * Add debtags to debian/control.
   * Use quilt for patches.
   * Use make distclean, maintainer-clean-am wiped out too much.
   * Hilight wrapped function lists in changelog mode correctly (thanks to
     Daniel Leidert for the patch, Closes: #339938).
   * Include ruby hilighting (Closes: #147116).
   * Never include gecos in ps output (Closes: #344750).
   * Fix some grammar (Closes: #276219).
   * Translate fuzzy strings in de.po.
Files: 
 ec864ede22ae2dc77224516a3be75757 619 text optional enscript_1.6.4-10.dsc
 bba8b401e66aa7669773c92a11b019b6 89555 text optional enscript_1.6.4-10.diff.gz
 9caa79d182598b017c92028e34d72b78 498806 text optional enscript_1.6.4-10_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFKC2Cxa93SlhRC1oRApuMAJ9SETLnOZQHm764dXhCnnX1k5jwfQCdFvRB
zNfCNRdvfMrthj6yhMouEl4=
=tGgW
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: