summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2021-02-14 14:42:49 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2021-02-14 14:42:49 +0100
commit5f3db3a36610366e12ba14cd688d3d259917f33c (patch)
tree0f7321d8a492429df8a05581d3b00fbe8d7bba96 /pygments/lexers
parent41f25b1e6aa8d17794b0156fe133733d4a515ff8 (diff)
downloadpygments-git-5f3db3a36610366e12ba14cd688d3d259917f33c.tar.gz
Fix various issues found by make check.
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/amdgpu.py12
-rw-r--r--pygments/lexers/cddl.py1
-rw-r--r--pygments/lexers/futhark.py2
-rw-r--r--pygments/lexers/graphviz.py5
-rw-r--r--pygments/lexers/javascript.py6
5 files changed, 16 insertions, 10 deletions
diff --git a/pygments/lexers/amdgpu.py b/pygments/lexers/amdgpu.py
index 8fd5c921..529a687b 100644
--- a/pygments/lexers/amdgpu.py
+++ b/pygments/lexers/amdgpu.py
@@ -1,7 +1,6 @@
-# -*- coding: utf-8 -*-
"""
- pygments.lexers.AMDGPULexer
- ~~~~~~~~~~~~~~~~~~~~~~~~
+ pygments.lexers.amdgpu
+ ~~~~~~~~~~~~~~~~~~~~~~
Lexers for the AMDGPU ISA assembly.
@@ -10,13 +9,18 @@
"""
from pygments.lexer import RegexLexer
-from pygments.token import *
+from pygments.token import Name, Text, Keyword, Whitespace, Number, Comment
import re
__all__ = ['AMDGPULexer']
class AMDGPULexer(RegexLexer):
+ """
+ For AMD GPU assembly.
+
+ .. versionadded:: 2.8
+ """
name = 'AMDGPU'
aliases = ['amdgpu']
filenames = ['*.isa']
diff --git a/pygments/lexers/cddl.py b/pygments/lexers/cddl.py
index 6b6b8085..09bb5839 100644
--- a/pygments/lexers/cddl.py
+++ b/pygments/lexers/cddl.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
pygments.lexers.cddl
~~~~~~~~~~~~~~~~~~~~
diff --git a/pygments/lexers/futhark.py b/pygments/lexers/futhark.py
index f19d1d78..8892bb79 100644
--- a/pygments/lexers/futhark.py
+++ b/pygments/lexers/futhark.py
@@ -4,7 +4,7 @@
Lexer for the Futhark language
- :copyright: Copyright 2021 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
diff --git a/pygments/lexers/graphviz.py b/pygments/lexers/graphviz.py
index 15ff9424..55cf2e4c 100644
--- a/pygments/lexers/graphviz.py
+++ b/pygments/lexers/graphviz.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
pygments.lexers.graphviz
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -34,7 +33,9 @@ class GraphvizLexer(RegexLexer):
(r'(?i)(node|edge|graph|digraph|subgraph|strict)\b', Keyword),
(r'--|->', Operator),
(r'[{}[\]:;,]', Punctuation),
- (r'(\b\D\w*)(\s*)(=)(\s*)', bygroups(Name.Attribute, Whitespace, Punctuation, Whitespace), 'attr_id'),
+ (r'(\b\D\w*)(\s*)(=)(\s*)',
+ bygroups(Name.Attribute, Whitespace, Punctuation, Whitespace),
+ 'attr_id'),
(r'\b(n|ne|e|se|s|sw|w|nw|c|_)\b', Name.Builtin),
(r'\b\D\w*', Name.Tag), # node
(r'[-]?((\.[0-9]+)|([0-9]+(\.[0-9]*)?))', Number),
diff --git a/pygments/lexers/javascript.py b/pygments/lexers/javascript.py
index 2f9b9b1c..a06272b4 100644
--- a/pygments/lexers/javascript.py
+++ b/pygments/lexers/javascript.py
@@ -486,8 +486,10 @@ class TypeScriptLexer(RegexLexer):
(r'(for|in|while|do|break|return|continue|switch|case|default|if|else|'
r'throw|try|catch|finally|new|delete|typeof|instanceof|void|of|'
r'this|async|await|debugger|yield|abstract|static|import|export|'
- r'implements|super|extends|private|protected|public|readonly)\b', Keyword, 'slashstartsregex'),
- (r'(var|let|const|with|function|class|type|enum|interface)\b', Keyword.Declaration, 'slashstartsregex'),
+ r'implements|super|extends|private|protected|public|readonly)\b',
+ Keyword, 'slashstartsregex'),
+ (r'(var|let|const|with|function|class|type|enum|interface)\b',
+ Keyword.Declaration, 'slashstartsregex'),
(r'(boolean|byte|char|double|final|float|goto|int|long|native|'
r'package|short|synchronized|throws|transient|volatile)\b', Keyword.Reserved),
(r'(true|false|null|NaN|Infinity|undefined)\b', Keyword.Constant),