Page 1 of 1

TES Skyrim Papyrus Lexer

Posted: 28.10.2020 00:28
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

Posted: 28.10.2020 19:46
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.

Posted: 28.10.2020 21:03
by Dobromysl
Thanks for an answer and your time!

Posted: 04.11.2020 12:26
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.