I am attempting to define a parser in NPP's functionList.xml. My file is split up as such:
------------------
{{header}}
------------------ {
[subheader]
random text
}
And I'm pretending that the headers are classes and the subheaders are functions so that they will show up in a nice hierarchy in the function list, like so:
header 1
subheader 1
subheader 2
header 2
subheader 1
XML:
<classRange mainExpr="^\{\{([a-zA-Z]+\s?)+\}\}" displayMode="node">
<className>
<nameExpr expr="([a-zA-Z]+\s?)+"/>
</className>
<function
mainExpr="^\[([a-zA-Z0-9\\]+\s?){1, 4}\]"
displayMode="$functionName">
<functionName>
<nameExpr expr="([a-zA-Z0-9\\]+\s?){1, 4}"/>
</functionName>
</function>
</classRange>
What needs to be changed about the classRange mainExpr
(or wherever else the problem lies) in order for the headers to be properly searched for?