(self)
SendCode.settings.Settings(view).syntax()
SendCode.settings.Settings(view).syntax()
SendCode . settings . Settings ( view ) . syntax ()
def syntax(self):
        """
        SendCode.settings.Settings(view).syntax()
        """
        pt = self.view.sel()[0].begin() if len(self.view.sel()) > 0 else 0
        # to go beginning of the line
        pt = self.view.line(pt).begin()
        scores = [self.view.score_selector(pt, s) for s, lang in self.scope_mapping.items()]
        max_score = max(scores)
        if max_score > 0:
            return list(self.scope_mapping.values())[scores.index(max_score)]
        else:
            return None
def syntax ( self ) : pt = self . view . sel ( ) [ 0 ] . begin ( ) if len ( self . view . sel ( ) ) > 0 else 0 # to go beginning of the line pt = self . view . line ( pt ) . begin ( ) scores = [ self . view . score_selector ( pt , s ) for s , lang in self . scope_mapping . items ( ) ] max_score = max ( scores ) if max_score > 0 : return list ( self . scope_mapping . values ( ) ) [ scores . index ( max_score ) ] else : return None