]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed for theorems whose statement are like
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 17 Mar 2004 13:39:23 +0000 (13:39 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 17 Mar 2004 13:39:23 +0000 (13:39 +0000)
((A -> B) -> C) -> D

helm/metadata/extractor/meta_lex.l
helm/metadata/extractor/meta_lex_ind.l

index a8621ea3848e46a90980bdefbfa5c0882c798d44..c4c23e847bbbf3def939bd99e522a15ed865a3c7 100644 (file)
@@ -115,7 +115,8 @@ value                   [^"]+
                        position = MAINHYP;
                     else if (position == MAINHYP)
                         { position = INHYP;
-                          no_open_source++;};
+                          no_open_source = 1;}
+                    else if (position == INHYP) no_open_source++;
                    }
 
 "</decl>"          |
index 3d3ad97ce1690bddbc6fa6dcded0c1c34777a7a9..9f474bf85c4a68fad7f21c881901a42b2ba17f9f 100644 (file)
@@ -156,7 +156,8 @@ id                      [a-zA-Z]([-_'a-zA-Z0-9])*
                        position = MAINHYP;
                     else if (position == MAINHYP)
                         { position = INHYP;
-                          no_open_source++;};
+                          no_open_source = 1;}
+                    else if (position == INHYP) no_open_source++;
                    }
 
 "</decl>"          |