Comments (5)
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.
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.
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.
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.
You're welcome. As such, I am closing this issue.
from npp-papyrus.
Related Issues (13)
- Anonymization doesn't work when using MO2 HOT 3
- Compiler failing due to spaces in the path (it seems) HOT 3
- NP++ crashing on versions after 8.2.1 HOT 4
- Request fro more keyword categories HOT 3
- Can't properly set up the output directory
- Latest version of Notepad++ incompatible HOT 4
- Dark mode support HOT 4
- Thick composition underline in the Keyword Matcher has a duller tone than selected HOT 3
- SkyrimSE scripts compiling outside game directory HOT 2
- NameSpace HOT 1
- FO4 namespaces HOT 2
- Papyrus plugin settings didn't save HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npp-papyrus.