aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo Zimmermann2018-07-24 10:03:47 +0200
committerThéo Zimmermann2018-07-24 10:03:47 +0200
commit580a026070ab74d05f38e1177632be83a8756566 (patch)
tree1457471c8024cbeb2e4a0fe9374056630b9ffeac
parent86632a406ba7d7e9edb6f35ce367585ddd723a2e (diff)
parentb4e88c15da749b3edbd56cb70bf280a8e7bbfc3c (diff)
Merge PR #8083: Add test for repeated section with same name
-rw-r--r--CHANGES1
-rw-r--r--doc/sphinx/language/gallina-extensions.rst3
-rw-r--r--test-suite/bugs/closed/8081.v4
3 files changed, 7 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index b3c412e921..d642e8bd0d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -78,6 +78,7 @@ Vernacular Commands
- The `Set SsrHave NoTCResolution` command no longer has special global
scope. If you want the previous behavior, use `Global Set SsrHave
NoTCResolution`.
+- Multiple sections with the same name are allowed.
Coq binaries and process model
diff --git a/doc/sphinx/language/gallina-extensions.rst b/doc/sphinx/language/gallina-extensions.rst
index d9b2490452..394b928ada 100644
--- a/doc/sphinx/language/gallina-extensions.rst
+++ b/doc/sphinx/language/gallina-extensions.rst
@@ -781,7 +781,8 @@ Section :ref:`gallina-definitions`).
.. cmd:: Section @ident
- This command is used to open a section named `ident`.
+ This command is used to open a section named :token:`ident`.
+ Section names do not need to be unique.
.. cmd:: End @ident
diff --git a/test-suite/bugs/closed/8081.v b/test-suite/bugs/closed/8081.v
new file mode 100644
index 0000000000..0f2501aaa8
--- /dev/null
+++ b/test-suite/bugs/closed/8081.v
@@ -0,0 +1,4 @@
+Section foo.
+End foo.
+Section foo.
+End foo.