diff options
author | David Walter Seikel | 2012-01-21 17:20:53 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-21 17:20:53 +1000 |
commit | d698c76df3ce02671e6ade7fae851a7a81e337f4 (patch) | |
tree | c0c1a8ebdb83aed9cfcfa7b977e56036f0aa9324 /LuaSL | |
parent | The default state is a different syntax from the other states. (diff) | |
download | SledjHamr-d698c76df3ce02671e6ade7fae851a7a81e337f4.zip SledjHamr-d698c76df3ce02671e6ade7fae851a7a81e337f4.tar.gz SledjHamr-d698c76df3ce02671e6ade7fae851a7a81e337f4.tar.bz2 SledjHamr-d698c76df3ce02671e6ade7fae851a7a81e337f4.tar.xz |
No longer zero pad line numbers.
Diffstat (limited to 'LuaSL')
-rw-r--r-- | LuaSL/src/LuaSL_lemon_yaccer.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_lemon_yaccer.y b/LuaSL/src/LuaSL_lemon_yaccer.y index 4c8cf75..2ec890e 100644 --- a/LuaSL/src/LuaSL_lemon_yaccer.y +++ b/LuaSL/src/LuaSL_lemon_yaccer.y | |||
@@ -223,14 +223,14 @@ expr ::= LSL_LESS_THAN expr LSL_COMMA expr LSL_COMMA expr LSL_GREATER_THAN. [L | |||
223 | { | 223 | { |
224 | gameGlobals *game = compiler->game; | 224 | gameGlobals *game = compiler->game; |
225 | 225 | ||
226 | PE("Giving up. Parser stack overflow @ line %04d column %04d.", yypMinor->yy0->line, yypMinor->yy0->column); // Gotta love consistancy, if it ever happens. | 226 | PE("Giving up. Parser stack overflow @ line %d column %d.", yypMinor->yy0->line, yypMinor->yy0->column); // Gotta love consistancy, if it ever happens. |
227 | } | 227 | } |
228 | 228 | ||
229 | %syntax_error | 229 | %syntax_error |
230 | { | 230 | { |
231 | gameGlobals *game = compiler->game; | 231 | gameGlobals *game = compiler->game; |
232 | 232 | ||
233 | PE("Syntax error @ line %04d column %04d.", yyminor.yy0->line, yyminor.yy0->column); | 233 | PE("Syntax error @ line %d column %d.", yyminor.yy0->line, yyminor.yy0->column); |
234 | } | 234 | } |
235 | 235 | ||
236 | 236 | ||