glsl/glcpp: Combine the two rules matching any character
authorCarl Worth <cworth@cworth.org>
Tue, 1 Jul 2014 22:02:14 +0000 (15:02 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 29 Jul 2014 22:11:51 +0000 (15:11 -0700)
commit4ebff9bca638d96b562640c093b2dcc5d02fb443
tree8b39ee34c4b20897f89b247e703a1ab5606eba8e
parent80e9301d9be3f1fd85803a1fe5d9c6ac899e4e19
glsl/glcpp: Combine the two rules matching any character

Using a single rule here means that we can use the <*> syntax to match
all start conditions. This makes the catch-all rule more robust against
the addition of future start conditions, (no need to maintain an ever-
growing list of start conditions for this rul).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/glcpp/glcpp-lex.l