

def is_glsl_or_essl(self, view):
    ' Checks that the file is GLSL or ESSL '
    syntax = isShader.settings().get('syntax')
    isShader = False
    if (syntax is not None):
        isShader = (re.search('GLSL|ESSL', syntax, flags=re.IGNORECASE) is not None)
    return isShader

dataset/ETHPy150Open WebGLTools/GL-Shader-Validator/GLShaderValidator.py GLShaderValidatorCommand.is_glsl_or_essl/VarMisuse@16/42 `view`->`isShader`