-- Sorry for cross posting, put I first posted this in the JetBrains Forum –
I like to model XPath path expressions. A path expression has the following BNF:
PathExpr ::= Step ('/' Step)*
I use a CellModel_RefNodeList in the editor for PathExpr which looks like this:
I added the char '/' to the separator property of the CellModel_RefNodeList.
The resulting XPath expressions look like this in the editor:
The space after the '/' is what I like to avoid.
The code of the project where I have the XPath expressions in available at GitHub:https://github.com/alexanderkiel/RestApiTest