Skip to content

Commit

Permalink
Add __END_LINE__ to Crystal syntax highlighting (#1670)
Browse files Browse the repository at this point in the history
I found `__END_LINE__` magic constant is missing in syntax highlighting for Crystal language.
  • Loading branch information
rhysd committed Jan 9, 2021
1 parent 9e9b0ef commit 894a5bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pygments/lexers/crystal.py
Expand Up @@ -171,6 +171,7 @@ def gen_crystalstrings_rules():
'''.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),
Expand Down

0 comments on commit 894a5bc

Please sign in to comment.