]> git.lyx.org Git - features.git/commit
Now Adv. F&R correctly interprets escape sequences within regexp insets, e.g., \...
authorTommaso Cucinotta <tommaso@lyx.org>
Sun, 19 Jun 2011 16:41:23 +0000 (16:41 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sun, 19 Jun 2011 16:41:23 +0000 (16:41 +0000)
commita48baee56f5ea65be44a873ec904840dfe434b00
tree20a9143d34973d24bdfa4951dd9932c44a7347e1
parent008815a9724744282d88f364e56ca31f42ceefb5
Now Adv. F&R correctly interprets escape sequences within regexp insets, e.g., \\ or \(, for finding characters with a special meaning in regular expression context (\^()[]).
Added corresponding regression tests findadv-re-01 and -02 for finding these special characters.
Unfortunately, braces {} are a little bit special and don't work yet. Added findadv-re-03 regression test to not forget about this case.
This goes along the line of fixing issues reported by Andrew Parsloe and summarised as #7638.
Last note: Still there will be cases when the Advanced F&R won't work, especially if the text to be found and/or the search pattern is preceded by backslashes or others.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39135 a592a061-630c-0410-9148-cb99ea01b6c8
development/autotests/findadv-re-01-in.txt [new file with mode: 0644]
development/autotests/findadv-re-02-in.txt [new file with mode: 0644]
development/autotests/findadv-re-03-in.txt [new file with mode: 0644]
src/lyxfind.cpp
src/mathed/InsetMathNest.cpp