diff options
author | Linda_pp <rhysd@users.noreply.github.com> | 2021-01-09 15:56:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-09 07:56:48 +0100 |
commit | 894a5bc501bd1fbc842899332441cae29e18fe8f (patch) | |
tree | 02a4c1f94944ebfccfa440f7535d5454644a2336 | |
parent | 9e9b0ef49c0e0c84b18708862847e38066929a3e (diff) | |
download | pygments-git-894a5bc501bd1fbc842899332441cae29e18fe8f.tar.gz |
Add __END_LINE__ to Crystal syntax highlighting (#1670)
I found `__END_LINE__` magic constant is missing in syntax highlighting for Crystal language.
-rw-r--r-- | pygments/lexers/crystal.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/crystal.py b/pygments/lexers/crystal.py index e16a01f7..4151108d 100644 --- a/pygments/lexers/crystal.py +++ b/pygments/lexers/crystal.py @@ -171,6 +171,7 @@ class CrystalLexer(ExtendedRegexLexer): '''.split(), suffix=r'\b'), Keyword), (words(''' previous_def forall out uninitialized __DIR__ __FILE__ __LINE__ + __END_LINE__ '''.split(), prefix=r'(?<!\.)', suffix=r'\b'), Keyword.Pseudo), # https://crystal-lang.org/docs/syntax_and_semantics/is_a.html (r'\.(is_a\?|nil\?|responds_to\?|as\?|as\b)', Keyword.Pseudo), |