mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
fixed parsing errors when certain options are used in glslangValidator (#4540)
* fixed parsing errors when certain options are used in glslang * Update glslang.vim set column number to 0 like it is always set by glslangValidator * Added a test for the handler of glslangValidator
This commit is contained in:
@@ -22,3 +22,27 @@ Execute(The glsl glslang handler should parse lines correctly):
|
||||
\ 'WARNING: 0:121: ''switch'' : last case/default label not followed by statements',
|
||||
\ 'ERROR: 2 compilation errors. No code generated.',
|
||||
\ ])
|
||||
|
||||
Execute(The glsl glslang handler should parse lines with options -V or -G correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 7,
|
||||
\ 'col': 0,
|
||||
\ 'type': 'E',
|
||||
\ 'text': '''non-opaque uniforms outside a block'' : not allowed when using GLSL for Vulkan',
|
||||
\ },
|
||||
\ {
|
||||
\ 'lnum': 14,
|
||||
\ 'col': 0,
|
||||
\ 'type': 'W',
|
||||
\ 'text': '''__shininess'' : identifiers containing consecutive underscores ("__") are reserved',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#glsl#glslang#Handle(bufnr(''), [
|
||||
\ 'shader.vert',
|
||||
\ 'ERROR: shader.vert:7: ''non-opaque uniforms outside a block'' : not allowed when using GLSL for Vulkan',
|
||||
\ 'WARNING: shader.vert:14: ''__shininess'' : identifiers containing consecutive underscores ("__") are reserved',
|
||||
\ 'ERROR: 1 compilation errors. No code generated.',
|
||||
\ 'SPIR-V is not generated for failed compile or link',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user