"block.start.filepattern" and "block.end.filepattern" is limited to one character?

28 views
Skip to first unread message

Jingcheng Zhang

unread,
Nov 18, 2010, 10:15:01 PM11/18/10
to scite-i...@googlegroups.com
Hello every one,

For C-like languages, these two options are usually set to "{" and "}" on operator style, for example:

block.start.$(file.patterns.php)=127 {
block.end.$(file.patterns.php)=127 }

But it looks that these options can only be set to one character. The "(" and ")" characters in the following settings don't work:

block.start.$(file.patterns.php)=127 {(
block.end.$(file.patterns.php)=127 })

And the following settings don't work either:

block.start.$(file.patterns.php)=127 { (
block.end.$(file.patterns.php)=127 } )

SciTE documentation says: "Each of these settings starts with a style number and then a set of words or characters that define how to recognise that feature. If there is a second space in the setting then it is a set of words, otherwise a set of characters.", so, is this a bug?

Thanks,

--
Best regards,
Jingcheng Zhang
Beijing, P.R.China

Neil Hodgson

unread,
Nov 19, 2010, 5:29:10 PM11/19/10
to scite-i...@googlegroups.com
Jingcheng Zhang:

> But it looks that these options can only be set to one character. The "("
> and ")" characters in the following settings don't work:

Yes, these settings currently only look at the first character.
There's a comment n the code that you can find to work on this:
// Set of individual characters. Only one character allowed for now

Neil

Reply all
Reply to author
Forward
0 new messages