Skip to content

Commit

Permalink
update attributes lexer rules per pygments reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
arezaii committed Mar 20, 2023
1 parent b471933 commit e31d17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxcontrib/chapeldomain/chapel.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ChapelLexer(RegexLexer):
(words(known_types, suffix=r'\b'), Keyword.Type),
(words((*type_modifiers, *other_keywords), suffix=r'\b'), Keyword),

(r'(@)', Keyword, 'attributename'),
(r'@', Keyword, 'attributename'),
(r'(iter)((?:\s)+)', bygroups(Keyword, Text), 'procname'),
(r'(proc)((?:\s)+)', bygroups(Keyword, Text), 'procname'),
(r'(operator)((?:\s)+)', bygroups(Keyword, Text), 'procname'),
Expand Down Expand Up @@ -136,6 +136,6 @@ class ChapelLexer(RegexLexer):
(r'[^()]*', Name.Other, '#pop'),
],
'attributename': [
(r'([a-zA-Z_][.\w$]*)', Name.Decorator, '#pop'),
(r'[a-zA-Z_][.\w$]*', Name.Decorator, '#pop'),
],
}

0 comments on commit e31d17d

Please sign in to comment.