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.
    • Christian WistbergC
      Christian Wistberg
      last edited by

      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
      • dailD
        dail
        last edited by

        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
        • Christian WistbergC
          Christian Wistberg
          last edited by

          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors