Coder Social home page Coder Social logo

Comments (5)

blu3mania avatar blu3mania commented on June 15, 2024

I tried your examples and they worked fine for me. As I explained in https://github.com/blu3mania/npp-papyrus/blob/main/Installation.md, this functionList configuration was not created by me, but from CreationKit: https://www.creationkit.com/index.php?title=Notepad%2B%2B_Setup#Papyrus_Function_List_for_Notepad.2B.2B

Also, the regex used is:

^[\t ]*([\w\[\]]+[\t ]+)?(function|event)[\t ]+\w+[\t ]*\(.*?\)

And you can use https://regex101.com/ to test it (make sure you enable case insensitive flag)

from npp-papyrus.

dizietsma avatar dizietsma commented on June 15, 2024

That's fair enough regarding the regex, however I can't get it to match anything in https://regex101.com:)
I installed the function list by copying the 'overridemap.xm'l and the 'papyrus script.xml' files to my appdata\roaming\notepad++\functionlist folder, is that correct?
Just to show this is what I have:
https://i.imgur.com/NIQsPTO.png
this isn't a big problem and I get that you don't need to support someone else's regex!

diziet

from npp-papyrus.

blu3mania avatar blu3mania commented on June 15, 2024

No, it's not. You better use the menu to do it. Read the installation guide for more details. If you just overwrote Notepad++'s default overrideMap.xml, I am not sure if it had other language's config...

As for https://regex101.com/, you need to make sure you enable case insensitive flag as I mentioned. Otherwise you will need to convert your code to all lowercase.

from npp-papyrus.

dizietsma avatar dizietsma commented on June 15, 2024

That's odd, I used the menu from the papyrus plugin and it just seemed to copy over the Papyrus Script.xml file in appdata\roaming\notepad++\functionlist the modified date of overridemap.xml still says 14/11/2023:) and dosn't seem to have changed. I remember that earlier this month I had to edit the overridemap.xml with the langid of papyrus in my install and that edit is still there.
But now the array functions are showing so groovy!
As for regex101.com I didn't realise I had to write in the whole function declaration, I was just trying to match against the phrase 'Form Function' or 'Form[] Function' as opposed to 'Form Function somename()'

Thanks for your time anyway:)

diziet

from npp-papyrus.

blu3mania avatar blu3mania commented on June 15, 2024

You're welcome. As such, I am closing this issue.

from npp-papyrus.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.