mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
refactor: inherit json
This commit is contained in:
parent
599bdaf2f0
commit
bb0ef18488
2 changed files with 3 additions and 16 deletions
|
|
@ -767,6 +767,7 @@ list.http = {
|
||||||
url = "https://github.com/NTBBloodbath/tree-sitter-http",
|
url = "https://github.com/NTBBloodbath/tree-sitter-http",
|
||||||
branch = "main",
|
branch = "main",
|
||||||
files = { "src/parser.c" },
|
files = { "src/parser.c" },
|
||||||
|
generate_requires_npm = true,
|
||||||
},
|
},
|
||||||
maintainers = { "@NTBBloodbath" },
|
maintainers = { "@NTBBloodbath" },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
; inherits: json
|
||||||
|
|
||||||
; Display errors
|
; Display errors
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
||||||
|
|
@ -12,22 +14,6 @@
|
||||||
name: (name) @constant
|
name: (name) @constant
|
||||||
value: (value))
|
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
|
; rest.nvim Neovim plugin specific features
|
||||||
(external_body
|
(external_body
|
||||||
json_file: (json_file) @text.uri) @keyword
|
json_file: (json_file) @text.uri) @keyword
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue