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

No Auto Indentation for Mercury(-Web) #327

Merged
merged 4 commits into from
Jan 10, 2025
Merged

Conversation

tmhglnd
Copy link
Contributor

@tmhglnd tmhglnd commented Jan 9, 2025

Since there is no grammar/language in codemirror for Mercury I've been using Javascript as default. The highlighting works quite well, but it gets confused with the auto-indentations, sometimes leading to a lot of tabs when you enter. This PR removes the auto-indentation feature when mercury or mercury-web is selected as target.

At first I added this feature to the settings. But I think it makes more sense to have this setting dynamically change if the target is selected to be Mercury. Because otherwise the auto-indentation doesn't work when having multiple panes like Hydra and Mercury next to eachother.

@munshkr munshkr merged commit ec652e6 into munshkr:main Jan 10, 2025
2 checks passed
@tmhglnd tmhglnd deleted the indent-setting branch January 10, 2025 11:35
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.

2 participants