In notepad++, there is a lot of helpful syntax highlighting for various programming languages, and I was wondering how it does some of it. I want to know how it can tell the different scopes of functions.
For example, how would it differentiate between the inside and the outside function?:
function myFunction(arguments){
function functionInsideMyFunction(arguments){
return 0;
}
}
I'm sure it's very simple, but I'm new to regex and still have a bit of trouble understanding it.
Say, for example, I wanted a regex to only match functions that aren't in other functions. I would want to get myFunction, but not functionInsideMyFunction.