<s> import os <EOL> def is_js_buffer ( view ) : <EOL> fName = view . file_name ( ) <EOL> vSettings = view . settings ( ) <EOL> syntaxPath = vSettings . get ( '<STR_LIT>' ) <EOL> syntax = "<STR_LIT>" <EOL> ext = "<STR_LIT>" <EOL> if ( fName != None ) : <EOL> ext = os . path . splitext ( fName ) [ <NUM_LIT:1> ] [ <NUM_LIT:1> : ] <EOL> if ( syntaxPath != None ) : <EOL> syntax = os . path . splitext ( syntaxPath ) [ <NUM_LIT:0> ] . split ( '<STR_LIT:/>' ) [ - <NUM_LIT:1> ] . lower ( ) <EOL> return ext in [ '<STR_LIT>' , '<STR_LIT>' ] or "<STR_LIT>" in syntax or "<STR_LIT>" in syntax </s>
