summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_lexer.ll
diff options
context:
space:
mode:
authorSir Anthony <anthony@adsorbtion.org>2014-02-05 21:18:08 +0600
committerKenneth Graunke <kenneth@whitecape.org>2014-03-08 01:29:00 -0800
commit6984aa43504bd9b68692872cd711af3931607576 (patch)
tree0d0ff056019093f199a2284cdd3dc638184a74a0 /src/glsl/glsl_lexer.ll
parent98fb8c95c0bf73597c7a97be5b992fa96b945c1c (diff)
downloadexternal_mesa3d-6984aa43504bd9b68692872cd711af3931607576.zip
external_mesa3d-6984aa43504bd9b68692872cd711af3931607576.tar.gz
external_mesa3d-6984aa43504bd9b68692872cd711af3931607576.tar.bz2
glsl: Update lexers in glsl and glcpp to hande end position of token.
Reviewed-by: Carl Worth <cworth@cworth.org>
Diffstat (limited to 'src/glsl/glsl_lexer.ll')
-rw-r--r--src/glsl/glsl_lexer.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll
index 9fd9b80..7602351 100644
--- a/src/glsl/glsl_lexer.ll
+++ b/src/glsl/glsl_lexer.ll
@@ -38,8 +38,9 @@ static int classify_identifier(struct _mesa_glsl_parse_state *, const char *);
do { \
yylloc->source = 0; \
yylloc->first_column = yycolumn + 1; \
- yylloc->first_line = yylineno + 1; \
+ yylloc->first_line = yylloc->last_line = yylineno + 1; \
yycolumn += yyleng; \
+ yylloc->last_column = yycolumn + 1; \
} while(0);
#define YY_USER_INIT yylineno = 0; yycolumn = 0;