Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDMM misses relative type definitions if a space is used #351

Open
Zandario opened this issue Mar 10, 2023 · 0 comments
Open

SDMM misses relative type definitions if a space is used #351

Zandario opened this issue Mar 10, 2023 · 0 comments

Comments

@Zandario
Copy link

Zandario commented Mar 10, 2023

Details

First noticed this while making our codebase compatible with OpenDream.
https://github.com/Citadel-Station-13/Citadel-Station-13-RP/blob/6085261718f4e0c5cdc33fa93d641ed080484d09/code/game/objects/items/stacks/sandbag.dm#L52

From what I've tested, this only happens to types, procs will error for other reasons to prevent this.

Reproduction

image

Copyable Reproduction

test.dm

/atom
	foo
		name = "Test"

/atom
	bar name = "Test"

SpacemanDMM.toml

[langserver]
dreamchecker = true

[code_standards]
disallow_relative_type_definitions = true
@Zandario Zandario changed the title SDMM can miss relative type definitions if a space is used SDMM misses relative type definitions if a space is used May 22, 2023
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

No branches or pull requests

1 participant