summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-08-03 08:39:07 +0200
committerGeorg Brandl <georg@python.org>2011-08-03 08:39:07 +0200
commit722c950fe9e80843bb273ac047fa3525097d16c6 (patch)
treeca4b752aba1e8770a20f80fef5809550347df5cd
parentd8bcf116893c375e30717c7e0d971d994c79fcce (diff)
downloadpygments-722c950fe9e80843bb273ac047fa3525097d16c6.tar.gz
Add Gosu changelog entry and versionadded notices.
-rw-r--r--CHANGES1
-rw-r--r--pygments/lexers/_mapping.py2
-rw-r--r--pygments/lexers/compiled.py18
3 files changed, 15 insertions, 6 deletions
diff --git a/CHANGES b/CHANGES
index 6c257a9c..1a46c7ec 100644
--- a/CHANGES
+++ b/CHANGES
@@ -20,6 +20,7 @@ Version 1.5
* Groovy (#501)
* PostgreSQL (#660)
* DTD
+ * Gosu
- In the LaTeX formatter, escape special &, < and > chars (#648).
diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py
index 770406ca..933404d7 100644
--- a/pygments/lexers/_mapping.py
+++ b/pygments/lexers/_mapping.py
@@ -95,7 +95,7 @@ LEXERS = {
'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',)),
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 541d5d3b..5da2b875 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -2648,6 +2648,7 @@ class BlitzMaxLexer(RegexLexer):
],
}
+
class NimrodLexer(RegexLexer):
"""
For `Nimrod <http://nimrod-code.org/>`_ source code.
@@ -2787,10 +2788,13 @@ class NimrodLexer(RegexLexer):
(r'', Text, '#pop')
],
}
-
+
+
class GosuLexer(RegexLexer):
"""
- For `Gosu `_ source code.
+ For Gosu source code.
+
+ *New in Pygments 1.5.*
"""
name = 'Gosu'
@@ -2852,7 +2856,7 @@ class GosuLexer(RegexLexer):
'stringTemplate': [
(r'"', String, 'string'),
(r'%>', Operator, '#pop'),
- include('root')
+ include('root')
],
'stringTemplateShorthand': [
(r'"', String, 'string'),
@@ -2862,9 +2866,12 @@ class GosuLexer(RegexLexer):
],
}
+
class GosuTemplateLexer(Lexer):
"""
- For `Gosu `_ templates.
+ For Gosu templates.
+
+ *New in Pygments 1.5.*
"""
name = 'Gosu Template'
@@ -2876,4 +2883,5 @@ class GosuTemplateLexer(Lexer):
def get_tokens_unprocessed(self, text):
stack = ['templateText']
for item in self.lexer.get_tokens_unprocessed(text, stack):
- yield item \ No newline at end of file
+ yield item
+