Community
    • Login

    FunctionList omits the first Letter of the functionname sometimes

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 218 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.
    • Ivan LippensI
      Ivan Lippens
      last edited by

      The FunctionList is a great help, thanks, but it seems there is a little bug in it:
      A function named ‘Formula’ becames ‘ormula’ in the FunctionList, iFoto becames Foto, etc.
      In fact, every functionname starting with ‘if’, ‘for’ or ‘where’, loses its first letter in the FunctionList.

      PeterJonesP Michael VincentM 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Ivan Lippens
        last edited by

        @Ivan-Lippens

        it seems there is a little bug in it:
        A function named ‘Formula’ becames ‘ormula’ in the FunctionList, iFoto becames Foto, etc.
        In fact, every functionname starting with ‘if’, ‘for’ or ‘where’, loses its first letter in the FunctionList.

        I disagree:
        ee3ee65c-0696-4e9a-9c3a-8235a7b8ba80-image.png

        The function list processing is different for every language. So maybe you have incorrectly defined the function list regular expression for your language if you are the one who defined it, or maybe the particular language that you are using has its default regular expression with a bug under certain circumstances – but it is not a bug in the overall FunctionList feature, as can be seen by my Perl example above.

        Unfortunately, you have not given us enough information with which we can reproduce your problem, or help you with it. Please answer the following if you would like help:

        1. Share your ?-menu’s Debug Info
        2. What Language-menu’s entry is selected for your file
        3. Share a screenshot similar to mine that shows the example code, the example FunctionList rendering, and shows the full status bar along the bottom (including the segment on the left that lists the file type there, like “Perl source file” in my example)
        4. Share a snippet of your code: after you paste your code, select it, then use the </> button in the forum-post toolbar to mark it
          For example, my Perl example from my screenshot is:
        sub Formula {}
        sub iFoto {
        }
        sub ifSomething {}
        sub forSomething {}
        sub whereforeartthou {}
        
        1 Reply Last reply Reply Quote 2
        • Michael VincentM
          Michael Vincent @Ivan Lippens
          last edited by

          @Ivan-Lippens said in FunctionList omits the first Letter of the functionname sometimes:

          A function named ‘Formula’ becames ‘ormula’ in the FunctionList, iFoto becames Foto, etc.
          In fact, every functionname starting with ‘if’, ‘for’ or ‘where’, loses its first letter in the FunctionList.

          It’s most likely the function definition of the language you’re using - the file in Notepad++/functionList/ .

          What language are you using? Is it a custom-defined function list XML file?

          Cheers.

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