147 ParserError ("unexpected `}`"); |
147 ParserError ("unexpected `}`"); |
148 |
148 |
149 // Closing brace.. |
149 // Closing brace.. |
150 w->Write (dataheader); |
150 w->Write (dataheader); |
151 g_CurMode = MODE_TOPLEVEL; |
151 g_CurMode = MODE_TOPLEVEL; |
|
152 |
|
153 MustNext (";"); |
152 } else { |
154 } else { |
153 // Check if it's a command. |
155 // Check if it's a command. |
154 CommandDef* comm = GetCommandByName (token); |
156 CommandDef* comm = GetCommandByName (token); |
155 if (comm) |
157 if (comm) |
156 ParseCommand (comm, w); |
158 ParseCommand (comm, w); |