Friday, January 1, 2010

Patterns, variables and strange behavior of some thing.

I have tried write highligting pattern, than search variables.
"\(\(int\|long\|short\|char\|void\|double\)[[:space:]]\+\)\@<=[^[:space:]^(^).]\+\([[:space:]]\)\@
="

Then the pattern, that search this variable in other places of the file.
"\(\(int\|long\|short\|char\|void\|double\)\([[:space:]]\+\)\([^[:space:]^(^).]\+\)[[:sp
ace:]].*\)\@<=\4"
But fail.

I see, that this thing have very strange behavior.
I have made little experiment/
I make this string:
oo ib b oooooooooo

And try serch in it, using this pattern:
'\(i\(.\)[[:space:]]*\)\@<=/2'
And now i have fail.
But if i cut '\@<=' - then all work normal.
But I need to use these things.

Why behavior of it is so strange? How to me complete my quest the most
adequate way?

P.S. it's my first post in English. :thinking:
Forums on my native language, where I can ask this question - about zero.


--
View this message in context: http://old.nabble.com/Patterns%2C-variables-and-strange-behavior-of-some-thing.-tp26986520p26986520.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: