summaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py2/pygments/lexers/nimrod.py
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/python/Pygments/py2/pygments/lexers/nimrod.py
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Pygments/py2/pygments/lexers/nimrod.py')
-rw-r--r--contrib/python/Pygments/py2/pygments/lexers/nimrod.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/python/Pygments/py2/pygments/lexers/nimrod.py b/contrib/python/Pygments/py2/pygments/lexers/nimrod.py
index 0db9d53cb98..4c1bccf079c 100644
--- a/contrib/python/Pygments/py2/pygments/lexers/nimrod.py
+++ b/contrib/python/Pygments/py2/pygments/lexers/nimrod.py
@@ -3,9 +3,9 @@
pygments.lexers.nimrod
~~~~~~~~~~~~~~~~~~~~~~
- Lexer for the Nim language (formerly known as Nimrod).
+ Lexer for the Nim language (formerly known as Nimrod).
- :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -20,15 +20,15 @@ __all__ = ['NimrodLexer']
class NimrodLexer(RegexLexer):
"""
- For `Nim <http://nim-lang.org/>`_ source code.
+ For `Nim <http://nim-lang.org/>`_ source code.
.. versionadded:: 1.5
"""
name = 'Nimrod'
- aliases = ['nim', 'nimrod']
+ aliases = ['nim', 'nimrod']
filenames = ['*.nim', '*.nimrod']
- mimetypes = ['text/x-nim']
+ mimetypes = ['text/x-nim']
flags = re.MULTILINE | re.IGNORECASE | re.UNICODE
@@ -43,13 +43,13 @@ class NimrodLexer(RegexLexer):
return "|".join(newWords)
keywords = [
- 'addr', 'and', 'as', 'asm', 'atomic', 'bind', 'block', 'break', 'case',
- 'cast', 'concept', 'const', 'continue', 'converter', 'defer', 'discard',
- 'distinct', 'div', 'do', 'elif', 'else', 'end', 'enum', 'except',
- 'export', 'finally', 'for', 'func', 'if', 'in', 'yield', 'interface',
- 'is', 'isnot', 'iterator', 'let', 'macro', 'method', 'mixin', 'mod',
- 'not', 'notin', 'object', 'of', 'or', 'out', 'proc', 'ptr', 'raise',
- 'ref', 'return', 'shared', 'shl', 'shr', 'static', 'template', 'try',
+ 'addr', 'and', 'as', 'asm', 'atomic', 'bind', 'block', 'break', 'case',
+ 'cast', 'concept', 'const', 'continue', 'converter', 'defer', 'discard',
+ 'distinct', 'div', 'do', 'elif', 'else', 'end', 'enum', 'except',
+ 'export', 'finally', 'for', 'func', 'if', 'in', 'yield', 'interface',
+ 'is', 'isnot', 'iterator', 'let', 'macro', 'method', 'mixin', 'mod',
+ 'not', 'notin', 'object', 'of', 'or', 'out', 'proc', 'ptr', 'raise',
+ 'ref', 'return', 'shared', 'shl', 'shr', 'static', 'template', 'try',
'tuple', 'type', 'when', 'while', 'with', 'without', 'xor'
]