
Actually, this isn't really about snippets per se, but I'm not sure what to title it.
I have a list of type level snippets, and a list of member level snippets. The member list is under the type list directory. When outside a type, I want the types listed and the member folder visible, that's easy enough. But when inside a type, I only want the member list visible. My question is this... What is the best way to go about determining if the carot is inside a type? My grammar is similar to C# in that members are enclosed within braces {}. Is this something that a SemanticParser can handle? KeyPressTriggers are not smart enough since typing isn't the only way to move the carot, but I'm not sure where to look for a solution.
I have a list of type level snippets, and a list of member level snippets. The member list is under the type list directory. When outside a type, I want the types listed and the member folder visible, that's easy enough. But when inside a type, I only want the member list visible. My question is this... What is the best way to go about determining if the carot is inside a type? My grammar is similar to C# in that members are enclosed within braces {}. Is this something that a SemanticParser can handle? KeyPressTriggers are not smart enough since typing isn't the only way to move the carot, but I'm not sure where to look for a solution.