diff options
| 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 |
| commit | 9eb07fa9b99a2ee30de4c78cb54322839c109909 (patch) | |
| tree | 55d533f1ab2881df028613f1b8404339478bd40b /pygments | |
| parent | 94ace127707fce82f55122467c6ff1687690db0d (diff) | |
| download | pygments-git-9eb07fa9b99a2ee30de4c78cb54322839c109909.tar.gz | |
Some comments
Diffstat (limited to 'pygments')
| -rw-r--r-- | pygments/lexers/rita.py | 6 |
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), |
