changeset 40685:e41f6c2e69c4

match: reformat `syntaxes` dictionary for better maintainability
author Boris Feld <boris.feld@octobus.net>
date Mon, 19 Nov 2018 17:19:54 +0000
parents e6c9ef5e11a0
children 9b8d1ad851f8
files mercurial/match.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/match.py	Mon Nov 19 18:54:44 2018 +0000
+++ b/mercurial/match.py	Mon Nov 19 17:19:54 2018 +0000
@@ -1331,8 +1331,13 @@
     (pattern, lineno, originalline). This is useful to debug ignore patterns.
     '''
 
-    syntaxes = {'re': 'relre:', 'regexp': 'relre:', 'glob': 'relglob:',
-                'include': 'include', 'subinclude': 'subinclude'}
+    syntaxes = {
+        're': 'relre:',
+        'regexp': 'relre:',
+        'glob': 'relglob:',
+        'include': 'include',
+        'subinclude': 'subinclude',
+    }
     syntax = 'relre:'
     patterns = []