summaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py3/pygments/lexers/ecl.py
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/python/Pygments/py3/pygments/lexers/ecl.py
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/ecl.py')
-rw-r--r--contrib/python/Pygments/py3/pygments/lexers/ecl.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/ecl.py b/contrib/python/Pygments/py3/pygments/lexers/ecl.py
index 47cad2220c2..4a500e1e516 100644
--- a/contrib/python/Pygments/py3/pygments/lexers/ecl.py
+++ b/contrib/python/Pygments/py3/pygments/lexers/ecl.py
@@ -4,7 +4,7 @@
Lexers for the ECL language.
- :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -20,7 +20,7 @@ __all__ = ['ECLLexer']
class ECLLexer(RegexLexer):
"""
Lexer for the declarative big-data `ECL
- <https://hpccsystems.com/training/documentation/ecl-language-reference/html>`_
+ <https://hpccsystems.com/training/documentation/ecl-language-reference/html>`_
language.
.. versionadded:: 1.5
@@ -121,17 +121,17 @@ class ECLLexer(RegexLexer):
(r'[^"\']+', String),
],
}
-
- def analyse_text(text):
- """This is very difficult to guess relative to other business languages.
- -> in conjuction with BEGIN/END seems relatively rare though."""
- result = 0
-
- if '->' in text:
- result += 0.01
- if 'BEGIN' in text:
- result += 0.01
- if 'END' in text:
- result += 0.01
-
- return result
+
+ def analyse_text(text):
+ """This is very difficult to guess relative to other business languages.
+ -> in conjuction with BEGIN/END seems relatively rare though."""
+ result = 0
+
+ if '->' in text:
+ result += 0.01
+ if 'BEGIN' in text:
+ result += 0.01
+ if 'END' in text:
+ result += 0.01
+
+ return result