Skip to content

Add support for the Papyrus scripting language#3008

Open
TranslationLookasideBuffer wants to merge 2 commits intopygments:masterfrom
TranslationLookasideBuffer:master
Open

Add support for the Papyrus scripting language#3008
TranslationLookasideBuffer wants to merge 2 commits intopygments:masterfrom
TranslationLookasideBuffer:master

Conversation

@TranslationLookasideBuffer
Copy link

@TranslationLookasideBuffer TranslationLookasideBuffer commented Jan 6, 2026

Papyrus is the scripting language built for the Creation Engine by Bethesda Softworks and is used in several of their games, notably The Elder Scrolls V: Skyrim, Fallout 4, and Starfield. Each game shipped with a different iteration of the language, so this change adds support for the first of those, Skyrim.

I agree to this code being released under the BSD 2-clause license.

…Skyrim version).

Papyrus is the scripting language built for the Creation Engine by Bethesda Softworks and is used in several of their games, notably The Elder Scrolls V: Skyrim, Fallout 4, and Starfield. Each game shipped with a different iteration of the language, so this change adds support for the first of those, Skyrim.
@Anteru
Copy link
Collaborator

Anteru commented Jan 14, 2026

Thanks for the contribution. This is missing an analyse_text function and as a result fails the CI checks. Would you mind adding that? It doesn't have to be super accurate.

This should capture most Skyrim Papyrus files and at least attempts to exclude versions that are incompatible with the Skyrim edition of Papyrus (Fallout 4 and Starfield).
@TranslationLookasideBuffer
Copy link
Author

Alright, should be good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants