

def show_errors(self, view):
    ' Passes over the array of errors and adds outlines '
    errorRegions = []
    for error in self.errors:
        errorRegions.append(error.region)
    view.add_regions('glshadervalidate_errors', errorRegions, 'glshader_error', 'dot', sublime.DRAW_OUTLINED)

dataset/ETHPy150Open WebGLTools/GL-Shader-Validator/GLShaderValidator.py GLShaderValidatorCommand.show_errors/original