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

Add .http file syntax highlighting #10595

Open
LucasWagler opened this issue Apr 25, 2024 · 1 comment
Open

Add .http file syntax highlighting #10595

LucasWagler opened this issue Apr 25, 2024 · 1 comment

Comments

@LucasWagler
Copy link
Contributor

LucasWagler commented Apr 25, 2024

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
Copy link
Contributor

erasin commented Apr 26, 2024

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

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

2 participants