• Login
Community
  • Login

FunctionList omits the first Letter of the functionname sometimes

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 223 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.
  • I
    Ivan Lippens
    last edited by Sep 14, 2021, 6:19 PM

    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.

    P M 2 Replies Last reply Sep 14, 2021, 6:30 PM Reply Quote 0
    • P
      PeterJones @Ivan Lippens
      last edited by Sep 14, 2021, 6:30 PM

      @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
      • M
        Michael Vincent @Ivan Lippens
        last edited by Sep 14, 2021, 6:34 PM

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