diff mbox series

[Ada] Minor change to comment in System.Regexp spec

Message ID 20200603100304.GA6479@adacore.com
State New
Headers show
Series [Ada] Minor change to comment in System.Regexp spec | expand

Commit Message

Pierre-Marie de Rodat June 3, 2020, 10:03 a.m. UTC
Fix the comment about the form of a 'term'. Allow a sequence of elmts,
in {...}, but not nested {...}.

Tested on x86_64-pc-linux-gnu, committed on trunk

2020-06-03  Bob Duff  <duff@adacore.com>

gcc/ada/

	* libgnat/s-regexp.ads: Fix comment
diff mbox series

Patch

--- gcc/ada/libgnat/s-regexp.ads
+++ gcc/ada/libgnat/s-regexp.ads
@@ -83,8 +83,10 @@  package System.Regexp is
    --     regexp ::= term
 
    --     term   ::= elmt
-   --     term   ::= elmt elmt ...     -- concatenation (elmt then elmt)
-   --     term   ::= {elmt, elmt, ...} -- alternation (matches any of elmt)
+   --     term   ::= seq
+   --     term   ::= {seq, seq, ...}   -- alternation (matches any of seq)
+
+   --     seq    ::= elmt elmt ...     -- concatenation (sequence of elmts)
 
    --     elmt   ::= *                 -- any string of 0 or more characters
    --     elmt   ::= ?                 -- matches any character