Is it possible to search for a phrase in opengrok containing curly braces?

I tried using something like "struct a {" and "struct a {" to search for the declaration of "a". But opengrok seems to just ignore curly braces. Is there a way to search for the phrase "struct a {"?

+3
source share
2 answers

Grok supports escaping special characters that are part of the query syntax. Current list of special characters

+ - && || ! ( ) { } [ ] ^ " ~ * ? : \

To escape these character use the \ before the character. 
For example to search for (1+1):2 use the query: \(1\+1\)\:2
+3
source

You should be able to search with "struct a {" (with quotes)

+1
source

All Articles