ziglang / sublime-zig-language

Zig language support for Sublime Text
MIT License
85 stars 25 forks source link

Bracket in comment increases indent level #72

Open MatthiasPortzel opened 3 months ago

MatthiasPortzel commented 3 months ago

Press Enter at the end of the line below.

// hello {

The indent level increases when it should not. Other sublime syntaxes do not have this behavior.

aidenfoxivey commented 1 month ago

Press Enter at the end of the line below.

// hello {

The indent level increases when it should not. Other sublime syntaxes do not have this behavior.

Is this still the case? I installed the latest version and didn't see it - but maybe there's something else going on here.

sigod commented 1 month ago

Yes, this happens on my side. But it also happens with Bash, D, JSON, Lua, R, Ruby, and Rust, but not with C, C#, C++, Java, JavaScript, TypeScript...

aidenfoxivey commented 1 month ago

CleanShot 2024-08-10 at 18 04 43 Is this the same or different behaviour as you're having?

sigod commented 1 month ago

No. Here's a gif of what I see: zig-indent-level-72

aidenfoxivey commented 1 month ago

Very strange, hmm. I'll look into it.

aidenfoxivey commented 1 month ago

No. Here's a gif of what I see: zig-indent-level-72 zig-indent-level-72

https://github.com/tvi/Sublime-ARM-Assembly/blob/master/Syntaxes/ARMComment.tmPreferences

Maybe it's this TM_COMMENT_DISABLE_INDENT you need?

aidenfoxivey commented 1 month ago

Wait no, doesn't seem to be it. my bad