Community
    • Login

    Function list

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 3.9k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors