Fix for SF bug #1067402: Error in syntax highlighting with sub-pattern.
commitb14ef4d3ed774564cb7fbef38303d2b68eb5372c
authorEddy De Greef <edg@users.sourceforge.net>
Fri, 26 Nov 2004 18:25:51 +0000 (26 18:25 +0000)
committerEddy De Greef <edg@users.sourceforge.net>
Fri, 26 Nov 2004 18:25:51 +0000 (26 18:25 +0000)
tree68683191f38b3c37f2ed32c3bfdd4a3e60e73d2d
parent595f4f61b662e082bf1f28829181d05a554920b7
Fix for SF bug #1067402: Error in syntax highlighting with sub-pattern.
For this, the regular expression needed to be extended such that it allows
imposing a boundary on the matching (instead of letting matches extend till
the terminating \0). This also enabled me to lift a minor limitation of the
look-behind matching. Also fixed 5 probably very old bugs in the regex
engine that could easily result in crashes (try replacing \y+ with abc in an
empty document for an instant crash).
doc/help.etx
source/help_data.h
source/help_topic.h
source/highlight.c
source/preferences.c
source/regularExp.c
source/regularExp.h
source/search.c