Philippe Lhoste | 3 Jun 10:45 2002
Picon
Picon

Multiline strings in C and Lua

I have found the multiline string handling for Lua to be incorrect, so I
changed it. See attached LexLua.cxx.

I have also made a similar change in LexCPP.cxx to handle better the Mac
EOLs (\r):

		// Handle line continuation generically.
		if (sc.ch == '\\') {
			if (sc.chNext == '\n' || sc.chNext == '\r') {
				sc.Forward();
				if (sc.ch == '\r' && sc.chNext == '\n') {
					sc.Forward();
				}
				continue;
			}
		}

Note that I believe that Lua doesn't supports generical line continuation,
ie. it works only on non-literal strings.

Regards.

--

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--

GMX - Die Kommunikationsplattform im Internet.
(Continue reading)

Neil Hodgson | 8 Jun 09:47 2002
Picon

New test downloads

   There are new downloads of Scintilla and SciTE containing all the changes
mentioned in todays mails available from
http://www.scintilla.org/scite.zip - source
http://www.scintilla.org/wscite.zip - Windows executable

   Neil

Philippe Lhoste | 25 Jun 10:19 2002
Picon
Picon

Re: FER: browse on find in files dialog

> I would like to suggest that the "find in files" directory edit control
have
> a [...] browse button by it so that one can visually navigate to a desired
> directory to do one's searches in.
> 
> I'm also unclear as to whether or not this search includes
sub-directories?
> 
> David LeBlanc

David, you posted this message to scintilla-interest, but it is more
relevant to scite-interest, since this feature is SciTE specific. So I post my
answer to both lists, even if probably most readers are subscribed to both.

Currently, "Find in Files" starts to search in the directory where the
*current* file is located. Such a button can be useful but is probably too system
depend. Actually, its existence rely only on the good will of contributors...
Note that most of the time, we want to search in neighbour files. Otherwise,
most of the time, I use a third party search tool, like Agent Ransack
<http://www.agentransack.com/> for Windows.

Whether or not this search includes sub-directories is currently dependent
of the tool you use for such search. Actually, this dialog just call an
external program (grep, findstr, etc.) and capture its output.
I have recently given the address of a grep implementation for Windows able
to perform recursive search. <http://www.interlog.com/~tcharron/grep.html>

I have started to code a library able to search multiple strings using
Boyer-Moore-Horspool-Sunday's Quick Search in a buffer, and adding a fast file
reading to feed it. The bad side is that it will not support (in a first step)
(Continue reading)

Neil Hodgson | 25 Jun 11:53 2002
Picon

Re: FER: browse on find in files dialog

Philippe:

> David, you posted this message to scintilla-interest, but it is more
> relevant to scite-interest, since this feature is SciTE specific. So I
post my
> answer to both lists, even if probably most readers are subscribed to
both.

   David is only on scintilla-interest AFAICT. The lists have diverged quite
a bit in membership since the split. There are now 175 addresses on
scintilla-interest and 100 on scite-interest.

> Actually, its existence rely only on the good will of contributors...

   I'll accept a well-written patch that implements a directory browser on
either platform. IIRC, GTK+ doesn't have a directory browser.

> I have started to code a library able to search multiple strings using
> Boyer-Moore-Horspool-Sunday's Quick Search in a buffer, and adding
> a fast file
> reading to feed it. The bad side is that it will not support (in a first
step)
> regular expressions, but I rarely use them for seaching.
> I plan to integrate this to SciTE, but don't hold your breath, I still
have
> to finish my caret policy work before...

   I think building this feature into SciTE is better than using an external
grep as it is one thing less to configure and then we can depend on features
like recursive search.
(Continue reading)

David LeBlanc | 25 Jun 12:44 2002
Picon

RE: FER: browse on find in files dialog

Not being on Scite Interest is now rectified.

More below...

> -----Original Message-----
> From: scintilla-interest-admin <at> lyra.org
> [mailto:scintilla-interest-admin <at> lyra.org]On Behalf Of Neil Hodgson
> Sent: Tuesday, June 25, 2002 2:54
> To: scintilla-interest <at> lyra.org; scite-interest <at> lyra.org
> Subject: Re: [scintilla] FER: browse on find in files dialog
>
>
> Philippe:
>
><snip>
> > I have started to code a library able to search multiple strings using
> > Boyer-Moore-Horspool-Sunday's Quick Search in a buffer, and adding
> > a fast file
> > reading to feed it. The bad side is that it will not support (in a first
> step)
> > regular expressions, but I rarely use them for seaching.
> > I plan to integrate this to SciTE, but don't hold your breath, I still
> have
> > to finish my caret policy work before...
>
>    I think building this feature into SciTE is better than using
> an external
> grep as it is one thing less to configure and then we can depend
> on features
> like recursive search.
(Continue reading)


Gmane