def is_glsl_or_essl(self, view):
        syntax = view.settings().get('syntax')
        isShader = False
        if syntax is not None:
            isShader = re.search('GLSL|ESSL', syntax, flags=re.IGNORECASE) is not None
        return isShader
Checks that the file is GLSL or ESSL
dataset/ETHPy150Open WebGLTools/GL-Shader-Validator/GLShaderValidator.py/GLShaderValidatorCommand.is_glsl_or_essl