summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorŠarūnas Navickas <zaibacu@gmail.com>2020-09-08 22:15:06 +0300
committerŠarūnas Navickas <zaibacu@gmail.com>2020-09-08 22:15:06 +0300
commit9eb07fa9b99a2ee30de4c78cb54322839c109909 (patch)
tree55d533f1ab2881df028613f1b8404339478bd40b /pygments
parent94ace127707fce82f55122467c6ff1687690db0d (diff)
downloadpygments-git-9eb07fa9b99a2ee30de4c78cb54322839c109909.tar.gz
Some comments
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/rita.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pygments/lexers/rita.py b/pygments/lexers/rita.py
index faf5cbf3..c939a6b7 100644
--- a/pygments/lexers/rita.py
+++ b/pygments/lexers/rita.py
@@ -19,6 +19,10 @@ __all__ = ['RitaLexer']
class RitaLexer(RegexLexer):
+ """
+ Lexer for `RITA <https://github.com/zaibacu/rita-dsl>`_
+ .. versionadded:: 2.7
+ """
name = 'Rita'
filenames = ['*.rita']
aliases = ['rita']
@@ -31,7 +35,7 @@ class RitaLexer(RegexLexer):
(r'\n', Text),
(r'\s+', Text),
(r'#(.*?)\n', Comment.Single),
- (r'@(.*?)\n', Comment.Single),
+ (r'@(.*?)\n', Operator), # Yes, whole line as an operator
(r'(\"|\')(\w|\d|[^\"\']|(\\\")|(\\\'))+?(\"|\')', Literal),
(r'([A-Z_]+)', Keyword),
(r'([a-z_]+)', Name),