Skip to content

Add glua support - #1143

Open
Be1zebub wants to merge 2 commits into
JohnnyMorganz:mainfrom
Be1zebub:main
Open

Add glua support#1143
Be1zebub wants to merge 2 commits into
JohnnyMorganz:mainfrom
Be1zebub:main

Conversation

@Be1zebub

@Be1zebub Be1zebub commented Aug 10, 2026

Copy link
Copy Markdown

Adds gmod dialect support to improve compatibility with Garry's Mod extensions and setups.

Most Garry's Mod VS Code extensions requires associate .lua files with the glua language mode. Because of this, StyLua doesn't format these files out of the box unless you manually override the file association back to lua. Adding gmod as a recognized dialect fixes this workflow friction completely.

Note on syntax: This patch only adds compatibility for the standard Lua syntax used in GMod. Non-standard C-style operators (//, &&, ||, !) are intentionally excluded, as standard syntax is the widely accepted best practice in the GLua community anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant