parameters: (fname, line)
return_statement: return 0
docstring: Check length & existence of leading comment for "ls" builtin command.
docstring_summary: Check length & existence of leading comment for "ls" builtin command.
docstring_tokens: Check length & existence of leading comment for ls builtin command .
function: def check_ls(fname, line):
      """Check length & existence of leading comment for "ls" builtin command."""
      line = line.strip()
      comment = '--' if fname.endswith('.lua') else '#'
      if '[====[' in line or not line.startswith(comment):
          print_error('missing leading comment (requred for `ls`)', fname)
          return 1
      return 0
function_tokens: def check_ls ( fname , line ) : line = line . strip ( ) comment = '--' if fname . endswith ( '.lua' ) else '#' if '[====[' in line or not line . startswith ( comment ) : print_error ( 'missing leading comment (requred for `ls`)' , fname ) return 1 return 0