I am trying to set up a Function List for a new language in Notepad++. To do so, it requires me to add a parser in functionlist.xml. I added the parser, and it works, but it also adds the actual word function in the function list. How can I remove word function from it? I have looked into the Regular Expression's lookbehind feature. But I could not make it work.
Here is the parser.
<parser displayName="mylang" id="mylang_syntax">
<function mainExpr="^\s*(function|Function|FUNCTION)[\t ]+[\w]+">
<functionName>
<NameExpr expr="/(?<=^function /)[\w]+" />
<NameExpr expr="/(?<=^Function /)[\w]+" />
<nameexpr expr="/(?<=^FUNCTION /)[\w]+" />
</functionName>
</function>
</parser>
Here is an example text to try on.
FUNCTION uniqn, input_array
IF(!DEBUG) THEN PRINT, 'uniqn_no_sort'
counter = 0L
length = n_elements(input_array(*, 0))
duplicate_array = STRARR(length)
END
function get_algorithm_type, type
IF(!DEBUG) THEN PRINT, 'get_algorithm_type'
print, type
END
This is how it looks in the functionlist sidebar. I would like to remove the word 'function'. Please note that it needs to work in Notepad++. (I cannot use any other Text editors). Thank you in advance for your help.
Here are additional help.


