Skip to content

Commit

Permalink
[docs] fixes for @@comments and friends to not mention TatSu versions
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Jan 5, 2025
1 parent 9e6380e commit bc30552
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/directives.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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) <https://docs.python.org/3/library/re.html#re.MULTILINE>`_ option defined. This is no longer the case.
In previous versions of |TatSu|, the `re.MULTILINE <https://docs.python .org/3/library/re.html#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 :: <regexp>``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -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) <https://docs.python.org/3/library/re.html#re.MULTILINE>`_ option defined. This is no longer the case.
In previous versions of |TatSu|, the `re.MULTILINE <https://docs.python .org/3/library/re.html#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 :: <bool>``
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit bc30552

Please sign in to comment.