Skip to content

[Bug]: De-indentation happens too quickly #60

@steinhh

Description

@steinhh

Current Behavior

If format-on-type is on, lines get de-indented immediately after typing the letters "end", which messes up indentation when writing routine names that start with "end". I.e., with format-on-type turned on, typing this:

IF a eq 5 THEN BEGIN
  endeavour_routine

will immediately de-indent the 2nd line to align with the IF line.

Expected Behavior

De-indentation should not be triggered until an end-of-word input has been received, e.g., space or enter.

GitHub Repo

No response

Steps to Reproduce

See "current behaviour"

Failure Logs

No response

Operating System

  • macOS (Intel x86_64)
  • macOS (ARM64)
  • Linux
  • Windows

IDL Version

N/A

Additional Information

Plugin version 4.7.1, @martinwiesmann

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions