Commit Graph

53 Commits

Author SHA1 Message Date
Carlo Marcelo Arenas Belón
0d087cce82 pcre2grep: add $& as an alias for $0 (#519)
Perl does not use $0 anymore to refer to the text of the matched subject
and `pcre2_substitute()` was recently updated to also provide that value
using the variable Perl prefers: `$&`.

In a similar context, either as part of the formatted output from a match
or during the processing of a callback, teach pcre2grep to also populate
$&.

While at it, update the ChangeLog with recent changes.
2024-10-09 09:08:27 +01:00
Philip Hazel
60fd745ebc Minor documentation updates 2024-10-04 17:21:33 +01:00
Nicholas Wilson
32f03ad588 Add option to disable callouts (#499)
* Add option to disable callouts

* Fix pcre2grep issue, and docs

* Add pcre2test docs
2024-10-02 12:00:02 +01:00
Philip Hazel
012ab39bd8 Correct substitution documentation 2024-09-24 09:23:40 +01:00
Philip Hazel
f964982eec Add documentation for PCRE2_EXTRA_BS0 and PCRE2_EXTRA_PYTHON_OCTAL 2024-09-21 10:17:10 +01:00
Philip Hazel
b463821c45 Documentation for added interpretation in replacement strings (PR #483) 2024-09-20 15:00:29 +01:00
Philip Hazel
d8b7f31671 Documentation for substitions processing changes 2024-09-17 16:55:08 +01:00
Philip Hazel
b6d05541ae Document substitute title-casing feature 2024-09-16 17:56:54 +01:00
Philip Hazel
6412606942 Update documentation for scan substring patterns - now supports a list of groups 2024-09-04 12:35:14 +01:00
Philip Hazel
3808655ed4 Documentation update re (*THEN) 2024-09-01 17:01:38 +01:00
Philip Hazel
7a0eda1f66 Update documentation for scan_substring; also some code trailing space tidies 2024-08-30 17:31:55 +01:00
Philip Hazel
cedb1fb546 Update documentation of \Q...\E 2024-08-12 17:48:59 +01:00
Philip Hazel
e4ccef3034 Document no support for Unicode special casing rules 2024-08-04 17:32:46 +01:00
Philip Hazel
75b1025ae4 Tidy up Unicode class description parsing for \p and \P, including one bug fix. 2024-07-29 16:53:57 +01:00
Philip Hazel
4249b67c7f Document JIT allocation test feature and add to pcre2test 2024-07-24 14:53:21 +01:00
Philip Hazel
6d82f0cd3d Alter case-independent matching of \p{Lu} etc. to match Perl 2024-07-23 15:54:29 +01:00
Philip Hazel
6ae58beca0 Final file tidies for 10.44 2024-06-07 15:09:00 +01:00
Philip Hazel
067c2f1f58 Fix bug in \X matching too many characters. Fixes issue #410. 2024-06-04 17:14:47 +01:00
Philip Hazel
05aafb2e30 Implement pcre2_set_max_pattern_compiled_length() and set this limit in the fuzzer 2024-04-24 09:32:25 +01:00
Philip Hazel
cbff6bbb1b Install OpenVMS support files 2024-04-16 12:11:06 +01:00
Philip Hazel
ced3b0f06f Increase name length to 128 2024-03-11 15:50:52 +00:00
Philip Hazel
04ca5be6c1 Remove ARM v5 from supported architecture list in pcre2jit documentation 2024-02-21 16:23:28 +00:00
Philip Hazel
3864abdb71 File tidies for 10.43 2024-02-16 17:12:25 +00:00
Philip Hazel
7d59ddebb1 Implement PCRE2_DISABLE_RECURSELOOP_CHECK 2024-01-27 15:54:07 +00:00
Philip Hazel
d71e89b6ea Check documentation for double-word typos 2024-01-19 16:48:53 +00:00
Philip Hazel
7b649dce27 For the pcre2demo man page, put the source code in its own section rather than everything under NAME 2024-01-06 14:44:11 +00:00
Philip Hazel
aadef0c3b4 File tidies for 10.43-RC1 release 2023-12-28 16:34:04 +00:00
Philip Hazel
c9e03ce866 Minor doc update 2023-12-08 09:34:43 +00:00
Philip Hazel
014c82d7bc Fix data type anomaly in pcre2_substring_list_free()prototype 2023-12-02 17:09:31 +00:00
Philip Hazel
8e83acc599 Upgrade interpreter to match JIT in handling of nested pattern recursions 2023-11-30 16:05:33 +00:00
Philip Hazel
630b1cd68f Update docs to point out LDFLAGS=--static for making fully statically linked binaries 2023-11-24 14:11:55 +00:00
Philip Hazel
a0c539392d Doc update; add tests for recent patch; remove unnecessary line in pcre2grep (found by coverity) 2023-11-21 16:43:18 +00:00
Philip Hazel
eca3f2b981 Document that the POSIX API is not thread-safe. 2023-11-14 17:30:04 +00:00
Philip Hazel
52041d82e9 Fix misbehaviour of pcre2_match() and pcre2_dfa_match() when PCRE2_FIRSTLINE was set for an anchored pattern. 2023-11-11 15:59:51 +00:00
Philip Hazel
1e146e7343 Doc update: clarify ASCII options and update ChangeLog and HTML 2023-10-12 17:49:52 +01:00
Philip Hazel
a0b4ee097b Update HTML docs and ChangeLog for recent patches 2023-10-09 16:55:17 +01:00
Philip Hazel
1b26eae109 Add properties Mn and Pc to the meaning of \w and its synonyms in UCP mode 2023-10-04 15:42:12 +01:00
Philip Hazel
90991cf4db Documentation update following PR297 2023-09-30 11:10:40 +01:00
Philip Hazel
79832a7930 Allow spaces and tabs within {...} constructs to match Perl usage. 2023-09-25 17:23:35 +01:00
Philip Hazel
80053ba153 Documentation and tests update 2023-09-20 13:26:10 +01:00
Philip Hazel
0fa5367fa7 Update meaning of {,5} etc to match update in Perl 5.34.0; refactor quantifier parsing 2023-09-13 17:43:43 +01:00
Philip Hazel
09c41a1960 Restore no indent in pcre2demo.3 man page 2023-08-30 16:39:50 +01:00
MatthewVernon
1b6bd784f1 Add a TH (title) macro to pcre2demo.3 (#292)
per groff_man(7):

> A man page should contain exactly one .TH call at or near the
> beginning of the file, prior to any other macro calls.

This manual page didn't (and as a result `man --warnings` emits a
warning about the first `.SH` macro).

Make PrepareRelease add such a header to pcre2demo.3 along with a
comment noting that pcre2demo.3 is automatically generated (to avoid
any further confusion on that front).

This necessitates teaching 132html to know about that warning (which
we don't want to have appearing in the HTML output).

Also, update the EX and EE macros to reflect the current content of
`/usr/share/groff/1.22.4/tmac/an-ext.tmac`

Signed-off-by: Matthew Vernon <matthew@debian.org>
Co-authored-by: Matthew Vernon <matthew@debian.org>
2023-08-30 12:47:37 +01:00
Philip Hazel
f1e48ebb3f Make the pcre2demo man page more standard 2022-11-23 16:48:16 +00:00
Philip Hazel
8f3e11a355 Doc file tidies for 10.38-RC1 2021-08-31 17:14:42 +01:00
Philip Hazel
c232286c6b Update HTML docs. 2021-08-30 16:59:34 +01:00
Philip.Hazel
d70da76dfb Fix some documentation typos. 2021-06-14 10:53:18 +00:00
Philip.Hazel
344056baf8 Update pcre2demo with match_data block size information. 2019-07-19 15:31:54 +00:00
Philip.Hazel
07de1b1a9f Documentation update. 2017-12-24 10:27:13 +00:00
Philip.Hazel
4e67c0c9e9 Tidy pcre2demo.c 2016-02-02 16:25:47 +00:00