Skip to content

alternaut/redmodscript-lang

Repository files navigation

REDmodScript icon

REDmodScript

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

    attributes preview

  • runtime defaults for class/struct members

    runtime-defaults preview

  • type-cast overloads

    type-cast-overloads preview

  • operator overloads

    operator-overload preview

  • NULL-type; m_* member variable and known-enum member distinctions

    various coverage preview

  • distinction between CName, TweakDBID, ResRef literals and generic String-literals

    literals preview

    (CName literal is single-quoted):

    cname event preview

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).

About

VSCode syntax highlighting for REDmod '.script' files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published