VSCode syntax highlighting for REDmod'.script' files.
Hastily cobbled together from scratch; partially with ❤️.
Makes browsing CDPR's source scripts subjectively more pleasant. Beyond that, use redscript.
⚠️ This project is solely intended to be used with the related *.script files from CDPR's REDmod modding tool! For syntax highlighting pertaining to the community-created redscript scripting language (*.reds files), please refer to Redscript Syntax Highlighting on the Marketplace.
Notable Coverage
Support for:
attributes for class/struct members
runtime defaults for class/struct members
type-cast overloads
operatoroverloads
NULL-type; m_* member variable and known-enum member distinctions
distinction between CName, TweakDBID, ResRef literals and generic String-literals
(CName literal is single-quoted):
Installation
Install directly from VSCode's Extension Manager or via the Marketplace page.
Limitations
There is currently no highlighting for comments.
Known Issues
None. However, it should be noted that this extension was only tested against VSCode's Dark+ (default theme).