parser.cxx

changeset 31
ad027ea58097
parent 28
fb46d3d40064
child 33
fd35f6cb5f28
equal deleted inserted replaced
30:6c4efed2dbdd 31:ad027ea58097
189 // onenter and mainloop go into buffers, and we want the closing 189 // onenter and mainloop go into buffers, and we want the closing
190 // data headers into said buffers too. 190 // data headers into said buffers too.
191 w->Write (dataheader); 191 w->Write (dataheader);
192 g_CurMode = MODE_TOPLEVEL; 192 g_CurMode = MODE_TOPLEVEL;
193 193
194 MustNext (";"); 194 if (!PeekNext().compare (";"))
195 MustNext (";");
195 continue; 196 continue;
196 } 197 }
197 // Check global variables 198 // Check global variables
198 ScriptVar* g = FindGlobalVariable (token); 199 ScriptVar* g = FindGlobalVariable (token);
199 if (g) { 200 if (g) {

mercurial