Skip to main content
This annotation is intended for complex cases and is primarily designed to be used by the built-in annotations.

Overview

GLuaLS handles some Lua built-ins, such as pairs, specially. For example, it follows the keys a pairs loop visits. Annotation files redeclare those built-ins to add Garry’s Mod details. builtin_alias names the built-in a declaration stands for, so the special handling carries over.

Syntax

Put it after the @return line.

Example

If your own code declares a global pairs, that declaration wins and the special handling stops.