Die4Ever / unrealscript-injector

UnrealScript Injector, used by Deus Ex Randomizer
https://discord.gg/daQVyAp2ds
GNU Affero General Public License v3.0
2 stars 1 forks source link

Proper code parsing for compiler instead of regex #8

Open Die4Ever opened 3 years ago

Die4Ever commented 3 years ago

maybe this can help https://web.archive.org/web/20181105142753/http://unrealtexture.com/Unreal/Downloads/3DEditing/UnrealEd/Tutorials/unrealwiki-offline/unrealscript-grammar.html

https://web.archive.org/web/20051025132508/http://mimesis.csc.ncsu.edu/Unreal/Syntax.htm

Die4Ever commented 2 years ago

Visual Studio Code and other editors use TextMate format for syntax highlighting, I can't find a python module that does this but it might not be too hard to write our own?

https://marketplace.visualstudio.com/items?itemName=EricBlade.vscode-unrealscript

https://github.com/ericblade/vscode-unrealscript/blob/master/unrealscript.tmLanguage.json

https://github.com/microsoft/vscode-textmate

https://pypi.org/project/onigurumacffi/

https://github.com/microsoft/vscode-textmate/blob/main/src/grammar.ts#L447