|
@@ -1281,6 +1281,19 @@ def AddDiagnosticSyntaxMatch_WarningAtEndOfLine_test():
|
|
|
)
|
|
|
|
|
|
|
|
|
+def AddDiagnosticSyntaxMatch_UnicodeAtEndOfLine_test():
|
|
|
+ current_buffer = VimBuffer(
|
|
|
+ 'some_file',
|
|
|
+ contents = [ 'Highlight unicøde' ]
|
|
|
+ )
|
|
|
+
|
|
|
+ with patch( 'vim.current.buffer', current_buffer ):
|
|
|
+ assert_that(
|
|
|
+ vimsupport.GetDiagnosticMatchPattern( 1, 16, 1, 19 ),
|
|
|
+ equal_to( '\%1l\%16c\_.\{-}\%1l\%19c' )
|
|
|
+ )
|
|
|
+
|
|
|
+
|
|
|
@patch( 'vim.command', new_callable=ExtendedMock )
|
|
|
@patch( 'vim.current', new_callable=ExtendedMock)
|
|
|
def WriteToPreviewWindow_test( vim_current, vim_command ):
|