Commits

Georg Brandl committed 617b53b

Add Gosu changelog entry and versionadded notices.

  • Participants
  • Parent commits aa3a6b7

Comments (0)

Files changed (3)

   * Groovy (#501)
   * PostgreSQL (#660)
   * DTD
+  * Gosu
 
 - In the LaTeX formatter, escape special &, < and > chars (#648).
 

File pygments/lexers/_mapping.py

     'GnuplotLexer': ('pygments.lexers.other', 'Gnuplot', ('gnuplot',), ('*.plot', '*.plt'), ('text/x-gnuplot',)),
     'GoLexer': ('pygments.lexers.compiled', 'Go', ('go',), ('*.go',), ('text/x-gosrc',)),
     'GoodDataCLLexer': ('pygments.lexers.other', 'GoodData-CL', ('gooddata-cl',), ('*.gdc',), ('text/x-gooddata-cl',)),
-    'GosuLexer': ('pygments.lexers.compiled', 'Gosu', ('gosu',), ('*.gs', '*.gsx', '*.gsp'), ('text/x-gosu',)),
+    'GosuLexer': ('pygments.lexers.compiled', 'Gosu', ('gosu',), ('*.gs', '*.gsx', '*.gsp', '*.vark'), ('text/x-gosu',)),
     'GosuTemplateLexer': ('pygments.lexers.compiled', 'Gosu Template', ('gst',), ('*.gst',), ('text/x-gosu-template',)),
     'GroffLexer': ('pygments.lexers.text', 'Groff', ('groff', 'nroff', 'man'), ('*.[1234567]', '*.man'), ('application/x-troff', 'text/troff')),
     'GroovyLexer': ('pygments.lexers.agile', 'Groovy', ('groovy',), ('*.groovy',), ('text/x-groovy',)),

File pygments/lexers/compiled.py

         ],
     }
 
+
 class NimrodLexer(RegexLexer):
     """
     For `Nimrod <http://nimrod-code.org/>`_ source code.
           (r'', Text, '#pop')
         ],
     }
-    
+
+
 class GosuLexer(RegexLexer):
     """
-    For `Gosu `_ source code.
+    For Gosu source code.
+
+    *New in Pygments 1.5.*
     """
 
     name = 'Gosu'
         'stringTemplate': [
           (r'"', String, 'string'),
           (r'%>', Operator, '#pop'),
-          include('root')          
+          include('root')
         ],
         'stringTemplateShorthand': [
           (r'"', String, 'string'),
         ],
     }
 
+
 class GosuTemplateLexer(Lexer):
     """
-    For `Gosu `_ templates.
+    For Gosu templates.
+
+    *New in Pygments 1.5.*
     """
 
     name = 'Gosu Template'
     def get_tokens_unprocessed(self, text):
         stack = ['templateText']
         for item in self.lexer.get_tokens_unprocessed(text, stack):
-            yield item
+            yield item
+