Function list

  • Sorry if this has been asked before but I need help with getting function list working for LUA.

    I got hold of a function parser for LUA and added it to functionList.xml in %appdata%\Roaming\Notepad++\

    But however I do, I don’t get any functions to get recognized. Please help!

    I have this bit at the top:
    <association langid=“23” id=“lua_function”/>

    and further down under parsers section:

    <parser id="lua_function" displayName="Lua" commentExpr="--[^\n]*">
                    mainExpr="(function[ \t]+[\w\:\.]+[ \t]*\(|[\w\:\.]+[ \t]*=[ \t]*function)"
                        <nameExpr expr="(function[ \t]+\K[\w\:\.]+|[\w\:\.]+)"/>

  • I beleive it has to do with this line:

    <association langid=“23” id=“lua_function”/>

    Two things, first the quotations are not regular " characters. This may have just been due to the fact it was copy/pasted on the forum. But the main reason is you need langID instead of langid.

  • Oh my god thank you so much! I tore my hair for a couple of hours!

    I’m bald now but at least I have a working function list in Lua :)

    Thanks again!

Log in to reply