helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
31.84k stars 2.35k forks source link

Add .http file syntax highlighting #10595

Open LucasWagler opened 3 months ago

LucasWagler commented 3 months ago

Add syntax highlighting for the .http file format used by tools like REST Client for VSCode, rest.nvim, httpYac, and PhpStorm.

queries + tree-sitter rest.nvim has highlight queries here (GPLv3 license). The developer of rest.nvim also maintains a tree-sitter parser for .http (MIT license).

Examples The clients seem to roughly follow IETF RFC 9110, which contains an example request here. httpYac provides some request examples here.

erasin commented 3 months ago

6450 The first commit has queries support http. If you want, make pr again.