#NEWLINE# def is_enabled_in_view( view ) : #NEWLINE# #INDENT# caret = view . sel ( ) [ 0 ] . a #NEWLINE# language = LANGUAGE_RE . search ( view . scope_name ( caret ) ) #NEWLINE# if ( language is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( language . group ( 0 ) . lower ( ) == 'scala' )