diff --git a/autotests/folding/Jamroot.fold b/autotests/folding/Jamroot.fold
--- a/autotests/folding/Jamroot.fold
+++ b/autotests/folding/Jamroot.fold
@@ -233,3 +233,10 @@
}
greet ; # error
}
+
+# test crazy (and valid) name
+a a [ a a a] ] ;
+rule a() () { }
+actions a { }
+local a ;
+local a = a ;
diff --git a/autotests/html/Jamroot.html b/autotests/html/Jamroot.html
--- a/autotests/html/Jamroot.html
+++ b/autotests/html/Jamroot.html
@@ -239,4 +239,11 @@
}
greet ; # error
}
+
+# test crazy (and valid) name
+a<b> a<b> [ a<b> a<b> a] ] ;
+rule a<b>() () { }
+actions a<b> { }
+local a<x> ;
+local a<x> = a<b> ;