summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-10-17 08:29:48 +0200
committerGeorg Brandl <georg@python.org>2015-10-17 08:29:48 +0200
commit21248af58d8c5900fa74aad8a4b2ff15c8e51bb3 (patch)
treec91efb250a83d253e2924a72d94a3784ec1957d4
parent19e68575b070b842fdcc234213d6bef446c76149 (diff)
downloadpygments-21248af58d8c5900fa74aad8a4b2ff15c8e51bb3.tar.gz
Style fixes.
-rw-r--r--pygments/lexers/archetype.py10
-rw-r--r--pygments/lexers/fortran.py17
2 files changed, 15 insertions, 12 deletions
diff --git a/pygments/lexers/archetype.py b/pygments/lexers/archetype.py
index 4f1b2645..e596b7be 100644
--- a/pygments/lexers/archetype.py
+++ b/pygments/lexers/archetype.py
@@ -70,7 +70,8 @@ class AtomsLexer(RegexLexer):
(r'[a-z][a-z0-9+.-]*:', Literal, 'uri'),
# term code
(r'(\[)(\w[\w-]*(?:\([^)\n]+\))?)(::)(\w[\w-]*)(\])',
- bygroups(Punctuation, Name.Decorator, Punctuation, Name.Decorator, Punctuation)),
+ bygroups(Punctuation, Name.Decorator, Punctuation, Name.Decorator,
+ Punctuation)),
(r'\|', Punctuation, 'interval'),
# list continuation
(r'\.\.\.', Punctuation),
@@ -223,7 +224,8 @@ class CadlLexer(AtomsLexer):
bygroups(Punctuation, String.Regex, Punctuation)),
(r'/', Punctuation, 'path'),
# for cardinality etc
- (r'(\{)((?:\d+\.\.)?(?:\d+|\*))((?:\s*;\s*(?:ordered|unordered|unique)){,2})(\})',
+ (r'(\{)((?:\d+\.\.)?(?:\d+|\*))'
+ r'((?:\s*;\s*(?:ordered|unordered|unique)){,2})(\})',
bygroups(Punctuation, Number, Number, Punctuation)),
# [{ is start of a tuple value
(r'\[\{', Punctuation),
@@ -267,8 +269,8 @@ class AdlLexer(AtomsLexer):
(r'^[ \t]*--.*$', Comment),
],
'odin_section': [
- # repeating the following two rules from the root state enable multi-line strings
- # that start in the first column to be dealt with
+ # repeating the following two rules from the root state enable multi-line
+ # strings that start in the first column to be dealt with
(r'^(language|description|ontology|terminology|annotations|'
r'component_terminologies|revision_history)[ \t]*\n', Generic.Heading),
(r'^(definition)[ \t]*\n', Generic.Heading, 'cadl_section'),
diff --git a/pygments/lexers/fortran.py b/pygments/lexers/fortran.py
index d822160f..4c22139d 100644
--- a/pygments/lexers/fortran.py
+++ b/pygments/lexers/fortran.py
@@ -73,13 +73,14 @@ class FortranLexer(RegexLexer):
# Data Types
(words((
'CHARACTER', 'COMPLEX', 'DOUBLE PRECISION', 'DOUBLE COMPLEX', 'INTEGER',
- 'LOGICAL', 'REAL', 'C_INT', 'C_SHORT', 'C_LONG', 'C_LONG_LONG', 'C_SIGNED_CHAR',
- 'C_SIZE_T', 'C_INT8_T', 'C_INT16_T', 'C_INT32_T', 'C_INT64_T', 'C_INT_LEAST8_T',
- 'C_INT_LEAST16_T', 'C_INT_LEAST32_T', 'C_INT_LEAST64_T', 'C_INT_FAST8_T',
- 'C_INT_FAST16_T', 'C_INT_FAST32_T', 'C_INT_FAST64_T', 'C_INTMAX_T',
- 'C_INTPTR_T', 'C_FLOAT', 'C_DOUBLE', 'C_LONG_DOUBLE', 'C_FLOAT_COMPLEX',
- 'C_DOUBLE_COMPLEX', 'C_LONG_DOUBLE_COMPLEX', 'C_BOOL', 'C_CHAR', 'C_PTR',
- 'C_FUNPTR'), prefix=r'\b', suffix=r'\s*\b'),
+ 'LOGICAL', 'REAL', 'C_INT', 'C_SHORT', 'C_LONG', 'C_LONG_LONG',
+ 'C_SIGNED_CHAR', 'C_SIZE_T', 'C_INT8_T', 'C_INT16_T', 'C_INT32_T',
+ 'C_INT64_T', 'C_INT_LEAST8_T', 'C_INT_LEAST16_T', 'C_INT_LEAST32_T',
+ 'C_INT_LEAST64_T', 'C_INT_FAST8_T', 'C_INT_FAST16_T', 'C_INT_FAST32_T',
+ 'C_INT_FAST64_T', 'C_INTMAX_T', 'C_INTPTR_T', 'C_FLOAT', 'C_DOUBLE',
+ 'C_LONG_DOUBLE', 'C_FLOAT_COMPLEX', 'C_DOUBLE_COMPLEX',
+ 'C_LONG_DOUBLE_COMPLEX', 'C_BOOL', 'C_CHAR', 'C_PTR', 'C_FUNPTR'),
+ prefix=r'\b', suffix=r'\s*\b'),
Keyword.Type),
# Operators
@@ -171,7 +172,7 @@ class FortranFixedLexer(RegexLexer):
aliases = ['fortranfixed']
filenames = ['*.f', '*.F']
- flags = re.IGNORECASE
+ flags = re.IGNORECASE
def _lex_fortran(self, match, ctx=None):
"""Lex a line just as free form fortran without line break."""