-re2c: error: line 8, column 1: Setup for non existing rule 'c' found
+re2c: error: line 6, column 1: Setup for non existing rule 'c' found
-re2c: error: line 9, column 1: Setup for all rules with '*' not possible when all rules are setup explicitly
+re2c: error: line 7, column 1: Setup for all rules with '*' not possible when all rules are setup explicitly
#line 1 "error13.1.re"
#define YYMAXFILL 1
-re2c: error: line 0, column 1: found scanner block after YYMAXFILL declaration
+re2c: error: line 3, column 1: found scanner block after YYMAXFILL declaration
#define YYMAXFILL 3
-re2c: error: line 5, column 1: cannot generate YYMAXFILL twice
+re2c: error: line 9, column 1: cannot generate YYMAXFILL twice
-re2c: error: line 5, column 1: cannot generate YYMAXFILL twice
+re2c: error: line 9, column 1: cannot generate YYMAXFILL twice
-re2c: error: line 17, column 1: Cannot reuse scanner definition without -r flag
+re2c: error: line 22, column 1: Cannot reuse scanner definition without -r flag
--- /dev/null
+re2c: error: line 21, column 10: Rules not allowed in 'repeat:re2c' block
--- /dev/null
+// multiple scanners, error
+
+/*!types:re2c */
+
+void scan(unsigned char* in)
+{
+/*!re2c
+
+<*> "1" { return "1"; }
+<*> "2" { return "2"; }
+<r1> "a" { return "a"; }
+<r1,r2> "b" { return "b"; }
+
+*/
+}
+
+void scan(unsigned short* in)
+{
+/*!repeat:re2c
+
+<r1> "c" { return "c"; }
+
+*/
+}
--- /dev/null
+re2c: error: line 20, column 1: Cannot have another 're2c' block after a block containing rules
--- /dev/null
+// multiple scanners, error
+
+/*!types:re2c */
+
+void scan(unsigned char* in)
+{
+/*!re2c
+re2c:define:YYCTYPE = 'unsigned char';
+*/
+
+/*!re2c
+
+<*> "1" { return "1"; }
+<*> "2" { return "2"; }
+<r1> "a" { return "a"; }
+<r1,r2> "b" { return "b"; }
+
+*/
+/* Next block is not possible */
+/*!re2c
+*/
+}
+
\ No newline at end of file