TES Skyrim Papyrus Lexer

All questions regarding lexer highlighting schemes are discussed here...
Post Reply
Dobromysl
Posts: 2
Joined: 28.10.2020 00:13

TES Skyrim Papyrus Lexer

Post by Dobromysl »

Hi there! I just discovered such beautiful code editor as CudaText and kindly asking for making a lexer for Papyrus script language of "The Elder Scrolls: Skyrim" game. Modding community of this game is the most biggest in the world but thousands of modders have to use NotePad++ to edit Papyrus scripts, because only NotePad++ has a Papyrus highlighting scheme.

I am unable to create a Lexer for CudaText and and kindly asking for making one!

NotePad++ higlither plugin source code for the instance:
https://github.com/tschilkroete/PapyrusPlusPlus
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I have found repos for Sublime Text and VSCode syntaxes

https://github.com/Kapiainen/SublimePapyrus
https://github.com/joelday/papyrus-lang

not sure users will go to CudaText if they have these.
Dobromysl
Posts: 2
Joined: 28.10.2020 00:13

Post by Dobromysl »

Thanks for an answer and your time!
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Today I have time and syntax is not hard, only few blocks for code-tree (function, event) and few foldable blocks (if, while...). 3 comment types (line, range, and doc comments). I made the lexer.
It's in addons.
I looked at Sublime lexer so maybe I added all keywords.
I see in Sublime lexer that syntax may have blocks "property..endProperty" but I don't have example for it, so such block is not folded, not in code-tree. do you need it?
Pls report any issues.
Attachments
Screenshot from 2020-11-04 15-13-13.png
Screenshot from 2020-11-04 15-12-59.png
Post Reply