Commits

Georg Brandl  committed 1caa56e

Haml/Sass lexers: add "new in", changelog and authors entry.

  • Participants
  • Parent commits 2114284
  • Branches trunk

Comments (0)

Files changed (3)

 * Jeremy Thurgood -- Erlang, Squid config lexers
 * Erick Tryzelaar -- Felix lexer
 * Whitney Young -- ObjectiveC lexer
+* Nathan Weizenbaum -- Haml and Sass lexers
 * Dietmar Winkler -- Modelica lexer
 * Nils Winter -- Smalltalk lexer
 * Davy Wybiral -- Clojure lexer
   * haXe
   * R console
   * Objective-J
+  * Haml and Sass
 
 
 Version 1.2.2

File pygments/lexers/web.py

 class HamlLexer(ExtendedRegexLexer):
     """
     For Haml markup.
+
+    *New in Pygments 1.3.*
     """
 
     name = 'Haml'
             (r'(/)(\[' + _dot + '*?\])(' + _dot + '*\n)',
              bygroups(Comment, Comment.Special, Comment),
              '#pop'),
-            (r'/' + _dot + '*\n', _starts_block(Comment, 'html-comment-block'), '#pop'),
-            (r'-#' + _dot + '*\n', _starts_block(Comment.Preproc, 'haml-comment-block'), '#pop'),
+            (r'/' + _dot + '*\n', _starts_block(Comment, 'html-comment-block'),
+             '#pop'),
+            (r'-#' + _dot + '*\n', _starts_block(Comment.Preproc,
+                                                 'haml-comment-block'), '#pop'),
             (r'(-)(' + _dot + '*\n)',
              bygroups(Punctuation, using(RubyLexer)),
              '#pop'),
-            (r':' + _dot + '*\n', _starts_block(Name.Decorator, 'filter-block'), '#pop'),
+            (r':' + _dot + '*\n', _starts_block(Name.Decorator, 'filter-block'),
+             '#pop'),
             include('eval-or-plain'),
         ],
 
 class SassLexer(ExtendedRegexLexer):
     """
     For Sass stylesheets.
+
+    *New in Pygments 1.3.*
     """
 
     name = 'Sass'
         ],
 
         'content': [
-            (r'//[^\n]*', _starts_block(Comment.Single, 'single-comment'), 'root'),
-            (r'/\*[^\n]*', _starts_block(Comment.Multiline, 'multi-comment'), 'root'),
+            (r'//[^\n]*', _starts_block(Comment.Single, 'single-comment'),
+             'root'),
+            (r'/\*[^\n]*', _starts_block(Comment.Multiline, 'multi-comment'),
+             'root'),
             (r'@import', Keyword, 'import'),
             (r'@for', Keyword, 'for'),
             (r'@(debug|if|while)', Keyword, 'script'),