Hi All,
I am parsing a C file for LOC in a function using python. I am starting from first line of function definition and skipping all lines till i met first "{".
The issue is that "{" can also come as a part of comment. I just want to skip all "{" present inside comments.
e.g
100: int func(
102: int i, // some comment { ....
103: float f,
104: char c /* some comment here { ...
105: .... more comment */
106: )
107:{
Whats the best pythonic way to acheive this.