Files
zed/extensions
Vitaly Slobodin 08123a270a ruby: Add proper indentation for singleton methods (#12535)
Hi. Currently, Zed uses incorrect indentation for singleton methods:

```ruby
def self.build
| # <= cursor position after hitting Enter
end
```

Handling the `singleton_method` token indentation
changes this behavior to the following:

```ruby
def self.build
  | # <= cursor position after hitting Enter
end
```

## Before


https://github.com/zed-industries/zed/assets/1894248/40fc2b37-692f-469f-9cbe-05cbb1ab4c3c

## After



https://github.com/zed-industries/zed/assets/1894248/d9ba8d27-fd17-4c74-b22c-a4de124739a3



Release Notes:

- N/A
2024-05-31 11:36:42 -04:00
..
2024-05-14 19:12:43 -04:00
2024-04-23 13:31:21 -04:00
2024-04-16 15:49:16 -04:00
2024-04-24 13:03:56 -04:00
2024-04-23 20:44:11 -04:00
2024-05-15 21:27:37 +02:00
2024-04-18 11:57:21 -04:00
2024-04-10 15:42:46 -04:00
2024-05-21 18:36:47 +02:00
2024-04-23 13:31:21 -04:00
2024-04-17 12:40:01 -04:00
2024-04-23 13:31:21 -04:00
2024-04-23 13:31:21 -04:00
2024-05-03 11:29:53 -04:00
2024-05-13 08:49:40 -04:00
2024-05-22 20:47:49 -04:00