bug-enscript
[Top][All Lists]
Advanced

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

[bug-enscript] [bug #31844] line numbers are colored when previous line


From: dave kerns
Subject: [bug-enscript] [bug #31844] line numbers are colored when previous line has a comment
Date: Mon, 25 Nov 2013 17:39:17 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131023 Firefox/17.0

Follow-up Comment #2, bug #31844 (project enscript):

I concur that the issue is with eat_one_line ...
this change to c.st fixes the // comment


--- /usr/share/enscript/hl/c.st 2010-02-09 08:05:55.000000000 -0700
+++ .enscript/hl/c.st   2013-11-25 10:36:15.405568808 -0700
@@ -86,11 +86,11 @@
     call (c_comment);
     comment_face (false);
   }
-  //// {
+  /(//.*)(n)/ {
     comment_face (true);
-    language_print ($0);
-    call (eat_one_line);
+    language_print ($1);
     comment_face (false);
+    language_print ($2);
   }


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31844>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]