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

Wrong indentation of exported object field in type definition #234

Open
2 of 5 tasks
AmaiKinono opened this issue Jan 4, 2021 · 0 comments
Open
2 of 5 tasks

Wrong indentation of exported object field in type definition #234

AmaiKinono opened this issue Jan 4, 2021 · 0 comments

Comments

@AmaiKinono
Copy link

Conforming Bugs

Please tell us below:

  • basic information
    • OS name: GNU/Linux
    • Versions: Emacs 27.1, Nim compiler 1.4.2, and nimsuggest 1.4.2
  • Are you using latest version of nim-mode?
    Yes.
  • Are there message related to nim-mode in *Messages* buffer?
    No.
  • Did you read README.md?
    Yes.
  • Is your problem related to nimsuggest-mode? (company-mode, flycheck, or el-doc)
    No.

And describe your problem:

Enter this in nim-mode:

type
  NewType* = object
    field1*: string
    field2*: string

Mark them, call indent-region. Now it becomes:

type
  NewType* = object
    field1*: string
          field2*: string

I believe it's a problem related to the SMIE grammar, but I don't have enough knowledge on SMIE and parser/grammar things to fix this.

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