Fix strscans Docs (#11408) [ci skip]

Amend two typos in the documentation of strscans library:

- `a ^* b` instead of `a ^+ b`.
- Remove hyphen from `$w` ASCII identifier `[A-Z-a-z_][A-Za-z_0-9]*`
  (matching `IdentStartChars` definition in parseutils).
This commit is contained in:
Tristano Ajmone
2019-06-05 16:20:13 +02:00
committed by Miran
parent c16a753822
commit 6ebbff0a11

View File

@@ -36,7 +36,7 @@ substrings starting with ``$``. These constructions are available:
``$i`` Matches a decimal integer. This uses ``parseutils.parseInt``.
``$h`` Matches a hex integer. This uses ``parseutils.parseHex``.
``$f`` Matches a floating pointer number. Uses ``parseFloat``.
``$w`` Matches an ASCII identifier: ``[A-Z-a-z_][A-Za-z_0-9]*``.
``$w`` Matches an ASCII identifier: ``[A-Za-z_][A-Za-z_0-9]*``.
``$s`` Skips optional whitespace.
``$$`` Matches a single dollar sign.
``$.`` Matches if the end of the input string has been reached.
@@ -131,7 +131,7 @@ to use prefix instead of postfix operators.
``E{n,m}`` From ``n`` up to ``m`` times ``E``
``~E`` Not predicate
``a ^* b`` Shortcut for ``?(a *(b a))``. Usually used for separators.
``a ^* b`` Shortcut for ``?(a +(b a))``. Usually used for separators.
``a ^+ b`` Shortcut for ``?(a +(b a))``. Usually used for separators.
``'a'`` Matches a single character
``{'a'..'b'}`` Matches a character set
``"s"`` Matches a string