Commits

Anonymous committed 5b682b8

[svn] Fix in the MiniD lexer too.

Comments (0)

Files changed (2)

 Pygments changelog
 ==================
 
+Version 0.X
+-----------
+
+- Fixed a bug in the D and MiniD lexers.
+
+
 Version 0.8
 -----------
 (codename Maikäfer, released May 30, 2007)

pygments/lexers/agile.py

             (r'(as|break|case|class|catch|continue|coroutine|default'
              r'|do|else|finally|for|foreach|function|global'
              r'|if|import|in|is|local|module|return|super|switch'
-             r'|this|throw|try|vararg|while|with|yield)', Keyword
-            ),
-            (r'(false|true|null)', Keyword.Constant),
+             r'|this|throw|try|vararg|while|with|yield)\b', Keyword),
+            (r'(false|true|null)\b', Keyword.Constant),
             # FloatLiteral
             (r'([0-9][0-9_]*)?\.[0-9_]+([eE][+\-]?[0-9_]+)?', Number.Float),
             # IntegerLiteral