diff options
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 1 | ||||
| -rw-r--r-- | queries/http/highlights.scm | 18 |
2 files changed, 3 insertions, 16 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 44ef78ed9..cb2399bca 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -767,6 +767,7 @@ list.http = { url = "https://github.com/NTBBloodbath/tree-sitter-http", branch = "main", files = { "src/parser.c" }, + generate_requires_npm = true, }, maintainers = { "@NTBBloodbath" }, } diff --git a/queries/http/highlights.scm b/queries/http/highlights.scm index 00be374cb..f5a08813b 100644 --- a/queries/http/highlights.scm +++ b/queries/http/highlights.scm @@ -1,3 +1,5 @@ +; inherits: json + ; Display errors (ERROR) @error @@ -12,22 +14,6 @@ name: (name) @constant value: (value)) -; JSON -(json_pair - key: (_) @keyword) - -(json_string) @string - -(json_number) @number - -(json_boolean) @boolean - -(json_null) @constant - -(json_escape_sequence) @string.escape - -(json_body) @keyword - ; rest.nvim Neovim plugin specific features (external_body json_file: (json_file) @text.uri) @keyword |
