changeset 4387:539ce55c4731

parser/highlight.py: include css classes for diff
author Radomir Dopieralski <moindev@sheep.art.pl>
date Sun, 12 Oct 2008 11:56:16 +0200
parents fad86749fe04
children 5a43d52e2110
files MoinMoin/parser/highlight.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/highlight.py	Sun Oct 12 11:48:39 2008 +0200
+++ b/MoinMoin/parser/highlight.py	Sun Oct 12 11:56:16 2008 +0200
@@ -41,6 +41,12 @@
         if ttype in Token.Text:
             return None
         # Reuse existing MoinMoin css class names
+        elif ttype in Token.Generic.Deleted:
+            return 'DiffRemoved'
+        elif ttype in Token.Generic.Inserted:
+            return 'DiffAdded'
+        elif ttype in Token.Generic.Subheading:
+            return 'DiffSeparator'
         elif ttype in Token.Operator.Word:
             return 'ResWord'
         elif ttype in Token.Comment.Preproc: