@@ -823,19 +823,19 @@ def easy_matcher_wide(start, stop):
823823 startl = ""
824824 startc = ""
825825 if start ['line' ] > 0 :
826- startl = "\%{0}l" .format (start ['line' ])
826+ startl = "\\ %{0}l" .format (start ['line' ])
827827 if start ['col' ] > 0 :
828- startc = "\%{0}c" .format (start ['col' ] + 1 )
829- return '{0}{1}.*\%{2}l\%{3}c' .format (startl , startc , stop ['line' ], stop ['col' ] + 1 )
828+ startc = "\\ %{0}c" .format (start ['col' ] + 1 )
829+ return '{0}{1}.*\\ %{2}l\ \ %{3}c' .format (startl , startc , stop ['line' ], stop ['col' ] + 1 )
830830
831831def easy_matcher (start , stop ):
832832 startl = ""
833833 startc = ""
834834 if start ['line' ] > 0 :
835- startl = "\%>{0}l" .format (start ['line' ] - 1 )
835+ startl = "\\ %>{0}l" .format (start ['line' ] - 1 )
836836 if start ['col' ] > 0 :
837- startc = "\%>{0}c" .format (start ['col' ])
838- return '{0}{1}\%<{2}l\%<{3}c' .format (startl , startc , stop ['line' ] + 1 , stop ['col' ] + 1 )
837+ startc = "\\ %>{0}c" .format (start ['col' ])
838+ return '{0}{1}\\ %<{2}l\ \ %<{3}c' .format (startl , startc , stop ['line' ] + 1 , stop ['col' ] + 1 )
839839
840840def hard_matcher (start , stop ):
841841 first_start = {'line' : start ['line' ], 'col' : start ['col' ]}
@@ -847,7 +847,7 @@ def hard_matcher(start, stop):
847847 last_start = {'line' : stop ['line' ], 'col' : 0 }
848848 last_stop = {'line' : stop ['line' ], 'col' : stop ['col' ]}
849849 last_line = easy_matcher (last_start , last_stop )
850- return "{0}\|{1}\|{2}" .format (first_line , middle , last_line )
850+ return "{0}\\ |{1}\ \ |{2}" .format (first_line , middle , last_line )
851851
852852def make_matcher (start , stop ):
853853 if start ['line' ] == stop ['line' ]:
0 commit comments