1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-06 15:40:29 +02:00
guile/module/system/base
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
..
compile.scm Check for go/scm mtime ordering rather than equality. 2010-07-26 19:38:52 +02:00
lalr.scm Add Boucher's lalr-scm' as the (system base lalr)' module. 2010-03-31 00:41:59 +02:00
lalr.upstream.scm Add Boucher's lalr-scm' as the (system base lalr)' module. 2010-03-31 00:41:59 +02:00
language.scm current-language fluid refactoring 2010-06-02 22:19:40 +02:00
message.scm Add warnings for obvious syntax errors in format strings. 2010-10-10 19:10:11 +02:00
pmatch.scm pmatch license clarification clarifications 2010-03-14 17:48:49 +01:00
syntax.scm let-values in terms of syntax-case, add make-tree-il-folder 2009-08-05 21:35:30 +02:00