summaryrefslogtreecommitdiff
path: root/src/mesa/shader/grammar/grammar.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-08 13:32:20 +0200
committerMichal Krol <michal@vmware.com>2009-09-08 13:32:20 +0200
commitfab99092a0879531442d1dd20f971ae7eda824eb (patch)
tree712e9b51f3413a706341362bc79c1a45b2065cdd /src/mesa/shader/grammar/grammar.c
parent2ec2936454a4a69b5b3b438ab66f00a5b7d2a5e5 (diff)
slang: Correctly handle end of tokens marker.
Diffstat (limited to 'src/mesa/shader/grammar/grammar.c')
-rw-r--r--src/mesa/shader/grammar/grammar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c
index 36ed9d5603..54e94bbf6a 100644
--- a/src/mesa/shader/grammar/grammar.c
+++ b/src/mesa/shader/grammar/grammar.c
@@ -2069,6 +2069,8 @@ static int get_spec (const byte **text, spec **sp, map_str *maps, map_byte *mapb
s->m_token = SL_PP_IDENTIFIER;
} else if (!strcmp(s->m_string, "@NUM")) {
s->m_token = SL_PP_NUMBER;
+ } else if (!strcmp(s->m_string, "@EOF")) {
+ s->m_token = SL_PP_EOF;
} else {
spec_destroy(&s);
return 1;