ZIm/crates/languages/src
Peter Schilling 972886c29e
Automatically indent JSX (#18816)
indents jsx in a way that is [consistent with
html](https://github.com/zed-industries/zed/blob/main/extensions/html/languages/html/indents.scm)

before, no automatic indentation would apply and it would even dedent
you when you add a line above the cursor (shift-o in vim mode)


https://github.com/user-attachments/assets/470fbdb2-3e31-42c4-b535-bb26ae1706ab


after, it applies automatic indentation when you hit return


https://github.com/user-attachments/assets/e86c739d-370d-490d-8c6f-d0190e65f832



Closes #16127

Release Notes:

- Improved automatic indentation behavior in JSX
([#16127](https://github.com/zed-industries/zed/issues/16127))
2024-10-10 15:15:12 +03:00
..
bash Recognize PKGBUILD as bash script (#10946) 2024-04-25 09:44:52 -04:00
c c: Add runnable for main function (#18720) 2024-10-04 17:28:12 +02:00
cpp Improve C++ Tree-sitter queries (#18016) 2024-09-30 10:27:30 +02:00
css Improve CSS highlighting for property_name (#17324) 2024-09-17 11:53:52 -04:00
go Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
gomod File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
gowork File context for assistant panel (#9712) 2024-03-29 13:55:01 -07:00
javascript Automatically indent JSX (#18816) 2024-10-10 15:15:12 +03:00
jsdoc Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
json Add escape string highlights to JSON and JSONC files (#18138) 2024-09-20 12:20:14 -04:00
jsonc Add escape string highlights to JSON and JSONC files (#18138) 2024-09-20 12:20:14 -04:00
markdown Detect 'MD' extension as Markdown (#18135) 2024-09-20 09:23:11 -04:00
markdown-inline Hide Markdown-Inline language from users with a new 'hidden' flag on language configs (#17104) 2024-08-29 11:23:33 -07:00
python Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
regex Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
rust Improve syntax highlights (#18728) 2024-10-09 19:25:46 +02:00
tsx Automatically indent JSX (#18816) 2024-10-10 15:15:12 +03:00
typescript typescript: Highlight is predicate keyword & ... spread pattern (#17787) 2024-09-13 08:11:27 -04:00
yaml yaml: Add single quotes to list of brackets (#16859) 2024-08-26 18:02:40 +02:00
bash.rs tasks: Expose captured variables to ContextProvider (#12134) 2024-05-22 19:45:43 +02:00
c.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
css.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
go.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
json.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
lib.rs Extract Protocol Buffers support into an extension (#18704) 2024-10-03 13:37:43 -04:00
python.rs Make python run local worktree LSPs (#18353) 2024-09-25 12:45:41 -07:00
rust.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
tailwind.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
typescript.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
vtsls.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00
yaml.rs lsp: Remove reinstall, update config (#18318) 2024-09-25 10:45:56 -07:00