Hi, I'm korean. I'm very poor at english, but i have one question.
Why didn't parsed this ?
#ifdef if(condition) { #endif #ifdef } #endif
int test_func() //TextMate didn't parsed this function. { ... }
}
On 14 Nov 2011, at 08:51, baek jeongun wrote:
Why didn't parsed this ? […]
The grammar is made to parse blocks ({ … }) to track the context (namespace, function, member function, Objective-C interface/method, etc.) and it additionally parses if/end blocks to e.g. render “#if 0” blocks as disabled (or the “#else” branch of a “#if 01”).
Your code has an if/endif block overlap with a brace block, which is why the parser gets confused.