Commits

Georg Brandl  committed 771557a

Add attribution and changelog for new Dylan lexer; minor style fixes.

  • Participants
  • Parent commits 5da2eb4

Comments (0)

Files changed (3)

 * Paul Miller -- LiveScript lexer
 * Hong Minhee -- HTTP lexer
 * Michael Mior -- Awk lexer
+* Bruce Mitchener -- Dylan lexer rewrite
 * Reuben Morais -- SourcePawn lexer
 * Jon Morton -- Rust lexer
 * Paulo Moura -- Logtalk lexer
 
 - Fix a bug in the Prolog lexer with names that start with 'is' (#810)
 
+- Rewrite Dylan lexer, add Dylan LID lexer (PR#147)
+
 
 Version 1.5
 -----------

File pygments/lexers/compiled.py

     valid_name = '\\\\?[a-zA-Z0-9' + re.escape('!&*<>|^$%@_-+~?/=') + ']+'
 
     def get_tokens_unprocessed(self, text):
-        stack = ['root']
-        for index, token, value in RegexLexer.get_tokens_unprocessed(self, text, stack):
+        for index, token, value in RegexLexer.get_tokens_unprocessed(self, text):
             if token is Name:
                 if value in self.builtins:
                     yield index, Name.Builtin, value
 class DylanLidLexer(RegexLexer):
     """
     For Dylan LID (Library Interchange Definition) files.
+
+    *New in Pygments 1.6.*
     """
 
     name = 'DylanLID'
 
             # lid header
             (r'(.*?)(:)([ \t]*)(.*(?:\n[ \t].+)*)',
-                bygroups(Name.Attribute, Operator, Text, String)),
+             bygroups(Name.Attribute, Operator, Text, String)),
         ]
     }