summaryrefslogtreecommitdiff
path: root/pygments/lexers/clean.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2021-06-20 12:03:24 +0200
committerMatthäus G. Chajdas <dev@anteru.net>2021-06-20 12:03:24 +0200
commit59481baacc98118243b0d3dd8c89f4d68a7215cd (patch)
tree094edc97e49c719989bf8ca80d3e3c222a2f45af /pygments/lexers/clean.py
parent6163b9ed81504b90c0d283c5a0a4cfadc82fcbae (diff)
downloadpygments-git-59481baacc98118243b0d3dd8c89f4d68a7215cd.tar.gz
Remove unicorn token types (fixes #1816.)
The PR #1819 provides a tool to identify unique token types. This PR aims to remove the most obvious cases of unicorn styles which are used in a single lexer only.
Diffstat (limited to 'pygments/lexers/clean.py')
-rw-r--r--pygments/lexers/clean.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pygments/lexers/clean.py b/pygments/lexers/clean.py
index bf1d4099..579cf7c3 100644
--- a/pygments/lexers/clean.py
+++ b/pygments/lexers/clean.py
@@ -59,15 +59,15 @@ class CleanLexer(ExtendedRegexLexer):
],
'comments': [
(r'//.*\n', Comment.Single),
- (r'/\*', Comment.Multi, 'comments.in'),
+ (r'/\*', Comment.Multiline, 'comments.in'),
(r'/\*\*', Comment.Special, 'comments.in'),
],
'comments.in': [
- (r'\*\/', Comment.Multi, '#pop'),
- (r'/\*', Comment.Multi, '#push'),
- (r'[^*/]+', Comment.Multi),
- (r'\*(?!/)', Comment.Multi),
- (r'/', Comment.Multi),
+ (r'\*\/', Comment.Multiline, '#pop'),
+ (r'/\*', Comment.Multiline, '#push'),
+ (r'[^*/]+', Comment.Multiline),
+ (r'\*(?!/)', Comment.Multiline),
+ (r'/', Comment.Multiline),
],
'keywords': [
(words(keywords, prefix=r'\b', suffix=r'\b'), Keyword),