Syntax highlighting and language configuration for Openplanet-flavored AngelScript (.as). This extension is grammar-only and is intended to work alongside my language server (not released yet).
Features
Openplanet preprocessor directives and define validation
Setting and SettingsTab attributes
Callbacks, built-in namespaces, and dependency plugins (Controls, Camera, VehicleState, NadeoServices)
Icons:: helpers, enums, handles, and Openplanet types
Data-driven built-in namespace/type/function highlighting generated from your local Openplanet JSON metadata
Per-session automatic symbol refresh on VS Code startup, plus manual refresh command/button
Semantic Color Taxonomy v1 (Dark)
Dark-theme focused, concept-driven, opinionated, and accessibility-aware.
Variables use a light blue; constants use a slightly deeper blue and are bolded.
Openplanet built-in API functions use amber/gold (for example GetApp), distinct from regular function calls.
Namespaces stay green, with built-in namespaces bolded.
User-defined type names use violet; Openplanet/game-provided types use a bluer violet; primitive/container types use lavender.
Enum members use a teal-green accent (namespace-adjacent); constants stay bold blue.
Control keywords are keyword-blue (non-red, non-amber); operators/directives follow the same family; storage modifiers are warm yellow.
Red is reserved for incorrect/invalid code (for example invalid preprocessor statements).
Comments are muted italic gray; strings are warm brown; numbers are muted green.
Language ID
openplanet-angelscript
If .as files do not pick up the language automatically, add this to your VS Code settings.json: