These patches changes the ast_node location holding by adding tokens end position and assignment of it along with previously tracked start position. Bison rules was updated to set appropriate tokens locations instead of yylloc.
Sir Anthony (4): glsl: Update lexers in glsl and glcpp to hande end position of token. glsl: Extend ast location structure to hande end token position. glsl: Add ast_node method to set location range. glsl: Change locations from yylloc to appropriate tokens positions. src/glsl/ast.h | 36 +++++-- src/glsl/glcpp/glcpp-lex.l | 3 +- src/glsl/glsl_lexer.ll | 3 +- src/glsl/glsl_parser.yy | 215 +++++++++++++++++++++------------------- src/glsl/glsl_parser_extras.cpp | 6 +- 5 files changed, 149 insertions(+), 114 deletions(-) -- 1.8.3.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev