File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var state
4
4
, idx
5
5
6
6
var original_symbol = {
7
- nud : fail ( 'undefined' )
7
+ nud : function ( ) { return this . children && this . children . length ? this : fail ( 'unexpected' ) ( ) }
8
8
, led : fail ( 'missing operator' )
9
9
}
10
10
@@ -230,6 +230,7 @@ function advance(id) {
230
230
231
231
if ( type === 'ident' ) {
232
232
output = state . scope . find ( value ) || state . create_node ( )
233
+ type = output . type
233
234
} else if ( type === 'builtin' ) {
234
235
output = symbol_table [ '(builtin)' ]
235
236
} else if ( type === 'keyword' ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " glsl-parser" ,
3
- "version" : " 0.0.3 " ,
3
+ "version" : " 0.0.4 " ,
4
4
"description" : " transform streamed glsl tokens into an ast" ,
5
5
"main" : " index.js" ,
6
6
"dependencies" : {
You can’t perform that action at this time.
0 commit comments