Skip to content

Not respecting the line limit in niche circumstance #1104

@Amero-EOF

Description

@Amero-EOF

Not quite sure what's causing this but I'm sure it's repeatable.

VS code extension version: 1.7.1
Stylua version: 2.4.1

stylua.toml

syntax = "Luau"
column_width = 100

This statement goes past the 100 character column limit (I've given false data for the metatable):

type MonsterMembers = { string }
type MonsterClass = { string }
export type MonsterObject = typeof(setmetatable({} :: MonsterMembers, {} :: MonsterClass)) & HeroObject

-- [EDIT] this one goes 2 characters past the limit:
export type CameraState = "Basic" | "OctulusBeam" | "OctulusFlight" | "LockCFrame" | "Aim" | "Default"
Image

This will happen even with running:

stylua --syntax luau --glob '**/*.luau' -- src

Sorry don't have much time to repro and figure out what's actually happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions