#NEWLINE# def check_syntax( self , view ) : #NEWLINE# #INDENT# "\n        Check and return if view's syntax has changed.\n\n        If the syntax has changed, a new linter is assigned.\n\n        " #NEWLINE# vid = view . id ( ) #NEWLINE# syntax = persist . get_syntax ( view ) #NEWLINE# if ( ( vid not in self . view_syntax ) or ( self . view_syntax [ vid ] != syntax ) ) : #NEWLINE# #INDENT# self . view_syntax [ vid ] = syntax #NEWLINE# Linter . assign ( view , reset = True ) #NEWLINE# self . clear ( view ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False