From bc305522c7053543f1c0d834be8cf578af19b7d1 Mon Sep 17 00:00:00 2001 From: apalala Date: Sun, 5 Jan 2025 19:02:08 -0400 Subject: [PATCH] [docs] fixes for @@comments and friends to not mention TatSu versions --- docs/directives.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/directives.rst b/docs/directives.rst index 4a765dfe..6a1d5649 100644 --- a/docs/directives.rst +++ b/docs/directives.rst @@ -30,7 +30,9 @@ Specifies a regular expression to identify and exclude inline (bracketed) commen @@comments :: /\(\*((?:.|\n)*?)\*\)/ .. note:: - Prior to 5.12.1, comments implicitly had the `(?m) `_ option defined. This is no longer the case. + In previous versions of |TatSu|, the `re.MULTILINE `_ + option was enabled by default. This is no longer the case. Use ``(?m)`` at the start of your + regular expressions to make them multi-line. ``@@eol_comments :: `` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -42,7 +44,10 @@ Specifies a regular expression to identify and exclude end-of-line comments befo @@eol_comments :: /#([^\n]*?)$/ .. note:: - Prior to 5.12.1, eol_comments implicitly had the `(?m) `_ option defined. This is no longer the case. + In previous versions of |TatSu|, the `re.MULTILINE `_ + option was enabled by default. This is no longer the case. Use ``(?m)`` at the start of your + regular expressions to make them multi-line. + ``@@ignorecase :: `` ~~~~~~~~~~~~~~~~~~~~~~~~~~