1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00
guile/module/system
Ludovic Courtès 8e6c15a6f0 Add warnings for obvious syntax errors in format strings.
* module/language/tree-il/analyze.scm (&syntax-error): New variable.
  (format-string-argument-count): Throw to &SYNTAX-ERROR when a syntax
  error in a format string is encountered.
  (format-analysis): Catch &SYNTAX-ERROR and convert as a warning of the
  appropriate type.

* module/system/base/message.scm (%warning-types)[format]: Handle
  `syntax-error' warnings.

* test-suite/tests/tree-il.test
  ("warnings")["conditionals"]("unterminated", "unexpected ~;",
  "unexpected ~]"): New tests.
  ["unterminated ~{...~}"]: New test.
2010-10-10 19:10:11 +02:00
..
base Add warnings for obvious syntax errors in format strings. 2010-10-10 19:10:11 +02:00
repl add (system repl server) 2010-10-10 12:15:34 +02:00
vm stepping traps use frame-next-source, not frame-source 2010-10-08 12:31:56 +02:00
foreign.scm Rename make-foreign-function' to pointer->procedure'. 2010-09-06 22:24:44 +02:00
xref.scm system xref maintains source mapping for nested procedures too 2010-09-24 13:24:48 +02:00