Commits

Thomas Aglassinger committed 7a1b09b

Cleaned up naming of Easytrieve (instead of EasyTrieve)

  • Participants
  • Parent commits 71c5c0e

Comments (0)

Files changed (3)

File pygments/lexers/_mapping.py

     'DylanLidLexer': ('pygments.lexers.compiled', 'DylanLID', ('dylan-lid', 'lid'), ('*.lid', '*.hdp'), ('text/x-dylan-lid',)),
     'ECLLexer': ('pygments.lexers.other', 'ECL', ('ecl',), ('*.ecl',), ('application/x-ecl',)),
     'ECLexer': ('pygments.lexers.compiled', 'eC', ('ec',), ('*.ec', '*.eh'), ('text/x-echdr', 'text/x-ecsrc')),
-    'EasyTrieveLexer': ('pygments.lexers.other', 'EasyTrieve', ('easytrieve',), ('*.ezt', '*.mac'), ('text/x-easytrieve',)),
+    'EasytrieveLexer': ('pygments.lexers.other', 'Easytrieve', ('easytrieve',), ('*.ezt', '*.mac'), ('text/x-easytrieve',)),
     'ElixirConsoleLexer': ('pygments.lexers.functional', 'Elixir iex session', ('iex',), (), ('text/x-elixir-shellsession',)),
     'ElixirLexer': ('pygments.lexers.functional', 'Elixir', ('elixir', 'ex', 'exs'), ('*.ex', '*.exs'), ('text/x-elixir',)),
     'ErbLexer': ('pygments.lexers.templates', 'ERB', ('erb',), (), ('application/x-ruby-templating',)),

File pygments/lexers/other.py

            'ECLLexer', 'UrbiscriptLexer', 'OpenEdgeLexer', 'BroLexer',
            'MscgenLexer', 'KconfigLexer', 'VGLLexer', 'SourcePawnLexer',
            'RobotFrameworkLexer', 'PuppetLexer', 'NSISLexer', 'RPMSpecLexer',
-           'CbmBasicV2Lexer', 'AutoItLexer', 'EasyTrieveLexer', 'JclLexer',
+           'CbmBasicV2Lexer', 'AutoItLexer', 'EasytrieveLexer', 'JclLexer',
            'WebFocusLexer']
 
 
     }
 
 
-class EasyTrieveLexer(RegexLexer):
+class EasytrieveLexer(RegexLexer):
     """
     Easytrieve Plus is a programming language for extracting, filtering and
     converting sequential data. Furthermore it can layout data for reports.
 
     *New in Pygments 1.x.*
     """
-    name = 'EasyTrieve'
+    name = 'Easytrieve'
     aliases = ['easytrieve']
     filenames = ['*.ezt', '*.mac']
     mimetypes = ['text/x-easytrieve']
     flags = 0
 
-    # TODO: Fix capitalization: Easytrieve instead of EasyTrieve.
-
     tokens = {
         # Note: We cannot use r'\b' at the start and end of keywords because
-        # EasyTrieve Plus delimiter characters are:
+        # Easytrieve Plus delimiter characters are:
         #
         #   * space ( )
         #   * apostrophe (')
 
     def analyse_text(text):
         """
-        Perform a structural analysis for basic EasyTrieve constructs.
+        Perform a structural analysis for basic Easytrieve constructs.
         """
         result = 0.0
         lines = text.split('\n')
                 if hasParm:
                     if hasProc:
                         # Found PARM, JOB and PROC/END-PROC:
-                        # pretty sure this is EasyTrieve.
+                        # pretty sure this is Easytrieve.
                         result = 0.8
                     else:
-                        # Found PARAM and  JOB: probably this is EasyTrieve
+                        # Found PARAM and  JOB: probably this is Easytrieve
                         result = 0.5
                 else:
-                    # Found JOB and possibly other keywords: might be EasyTrieve
+                    # Found JOB and possibly other keywords: might be Easytrieve
                     result = 0.11
                     if hasParm:
                         # Note: PARAM is not a proper English word, so this is
-                        # regarded a much better indicator for EasyTrieve than
+                        # regarded a much better indicator for Easytrieve than
                         # the other words.
                         result += 0.2
                     if hasFile:

File tests/test_lexers_other.py

 import unittest
 
 from pygments.lexers import guess_lexer
-from pygments.lexers.other import EasyTrieveLexer, JclLexer, WebFocusLexer
+from pygments.lexers.other import EasytrieveLexer, JclLexer, WebFocusLexer
 
 
 def _exampleFilePath(filename):
                     exampleFile.close()
 
 
-class EasyTrieveLexerTest(_AnalyseTextTest):
+class EasytrieveLexerTest(_AnalyseTextTest):
     def setUp(self):
-        self.lexer = EasyTrieveLexer()
+        self.lexer = EasytrieveLexer()
 
 
 class JclLexerTest(_AnalyseTextTest):