match: reformat `syntaxes` dictionary for better maintainability
authorBoris Feld <boris.feld@octobus.net>
Mon, 19 Nov 2018 17:19:54 +0000
changeset 40685 e41f6c2e69c4
parent 40684 e6c9ef5e11a0
child 40686 9b8d1ad851f8
match: reformat `syntaxes` dictionary for better maintainability
mercurial/match.py
--- 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 = []