#NEWLINE# def is_with_syntax( view = None , syntax = None ) : #NEWLINE# #INDENT# if ( syntax is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# ( window , view , file_shown_in_view ) = get_haskell_command_window_view_file_project ( view ) #NEWLINE# if ( ( not window ) or ( not view ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# syntax_file_for_view = view . settings ( ) . get ( 'syntax' ) #NEWLINE# if ( ( not syntax_file_for_view ) or ( not syntax_file_for_view . lower ( ) . endswith ( syntax . lower ( ) ) ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True