File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ prefix('(', function() {
85
85
this . type = 'group'
86
86
this . children = [ expression ( 0 ) ]
87
87
advance ( ')' )
88
- return this
88
+ return this
89
89
} )
90
90
prefix ( '++' )
91
91
prefix ( '--' )
@@ -142,7 +142,7 @@ function symbol(id, binding_power) {
142
142
}
143
143
} else {
144
144
sym = Object . create ( original_symbol )
145
- sym . id = id
145
+ sym . id = id
146
146
sym . lbp = binding_power
147
147
symbol_table [ id ] = sym
148
148
}
Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ function parser() {
504
504
function parse_decllist ( ) {
505
505
// grab ident
506
506
507
- if ( token . type === 'ident' ) {
507
+ if ( token . type === 'ident' || token . type === 'builtin' ) {
508
508
var name = token . data
509
509
state . unshift ( ident ( ) )
510
510
state . scope . define ( name )
@@ -560,7 +560,7 @@ function parser() {
560
560
}
561
561
562
562
function parse_ident ( ) {
563
- if ( token . type !== 'ident' ) {
563
+ if ( token . type !== 'ident' && token . type !== 'builtin' ) {
564
564
return unexpected ( 'expected user-defined name, got ' + token . data )
565
565
}
566
566
You can’t perform that action at this time.
0 commit comments