Hello,
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
>
> So, it matches a part-word. Try adding an end-of-word pattern atom \>
> before the ending slash (but after the ending bracket) on each line. You
> wouldn't want "session.cookie_nomatch" to be matched as far as
> "session.cookie_" woul
Peter Hodge wrote:
Hello everyone,
Thank you for your help ...
syn keyword Error inte[ger] inte[rval]
Unfortunately I need to use matches because the 'words' contain the '.'
character, and I also need to be able to use a look-behind assertion. The
thing is, I wanted to be able to write ea
Hello everyone,
Thank you for your help ...
>
> syn keyword Error inte[ger] inte[rval]
>
Unfortunately I need to use matches because the 'words' contain the '.'
character, and I also need to be able to use a look-behind assertion. The
thing is, I wanted to be able to write each match so that
Tim Chase wrote:
> >> If this is not the case, the help for \%[] may likely intend to
> >> refer to "ordinary atoms" rather than "atoms".
> >>
> >> *However*, the above search/match expression returns an "E369:
> >> invalid item in \%[]" error.
> >>
> >> I get this both in vim6.3 and vim7.
> >
>
If this is not the case, the help for \%[] may likely intend to
refer to "ordinary atoms" rather than "atoms".
*However*, the above search/match expression returns an "E369:
invalid item in \%[]" error.
I get this both in vim6.3 and vim7.
The documentation omits to mention that \(\) things are
Tim Chase wrote:
> I suspect, in testing ideas on this, I may have turned up a bug
> in either the implementation of \%[] or its documentation needs a
> remedy.
>
> In theory, the following should work:
>
> :match Error /int\%[\(eger\|erval\)]/
>
> I base that assumption on a combination
inte
integ
intege
integer
inter
interv
interva
interval
is there any easy way to make these two commands work?
syntax match Error /int\%[eger]/
syntax match Error /int\%[erval]/
The second match begins taking priority as soon as the word is 'inte', and
prevents 'integer' fro
Yakov Lerner wrote:
>
> Even better would be use syn keyword:
>
>syn keyword Error int inte integ intege integer inter interv
> interva interval
>
> On the other hand, both of your 'syn match'es use same group, so
> why 2nd match taking over would be a problem anyway ?
Probably
syn keyword
Peter Hodge wrote:
Hello all,
Given the following text:
inte
integ
intege
integer
inter
interv
interva
interval
is there any easy way to make these two commands work?
syntax match Error /int\%[eger]/
syntax match Error /int\%[erval]/
The second match begins taking priorit
On Tue, Sep 05, 2006 at 06:51:57PM +1000, Peter Hodge wrote:
> Hello all,
>
> Given the following text:
>
> inte
> integ
> intege
> integer
> inter
> interv
> interva
> interval
>
> is there any easy way to make these two commands work?
>
> syntax match Error /int\%[eger]/
>
On 9/5/06, Peter Hodge <[EMAIL PROTECTED]> wrote:
Hello all,
Given the following text:
inte
integ
intege
integer
inter
interv
interva
interval
is there any easy way to make these two commands work?
syntax match Error /int\%[eger]/
syntax match Error /int\%[erval]/
The sec
Hello all,
Given the following text:
inte
integ
intege
integer
inter
interv
interva
interval
is there any easy way to make these two commands work?
syntax match Error /int\%[eger]/
syntax match Error /int\%[erval]/
The second match begins taking priority as soon as the word
12 matches
Mail list logo