• Login
Community
  • Login

Function list

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 3.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Christian Wistberg
    last edited by Feb 23, 2016, 3:06 PM

    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]*">
                <function
                    mainExpr="(function[ \t]+[\w\:\.]+[ \t]*\(|[\w\:\.]+[ \t]*=[ \t]*function)"
                    displayMode="$functionName">
                    <functionName>
                        <nameExpr expr="(function[ \t]+\K[\w\:\.]+|[\w\:\.]+)"/>
                    </functionName>
                </function>
            </parser>
    
    1 Reply Last reply Reply Quote 0
    • D
      dail
      last edited by Feb 23, 2016, 4:42 PM

      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.

      1 Reply Last reply Reply Quote 0
      • C
        Christian Wistberg
        last edited by Feb 23, 2016, 6:17 PM

        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!

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors