mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
Updated TLA+ version, queries, maintainers (#2442)
This commit is contained in:
parent
50cf31065c
commit
b12c10778c
3 changed files with 13 additions and 11 deletions
|
|
@ -258,7 +258,7 @@
|
||||||
"revision": "fcc5f6f4d194dede4e676834ff28a506e39e17b4"
|
"revision": "fcc5f6f4d194dede4e676834ff28a506e39e17b4"
|
||||||
},
|
},
|
||||||
"tlaplus": {
|
"tlaplus": {
|
||||||
"revision": "6cd9e3e24d02d4311cc0bc79da9b415712648a34"
|
"revision": "dde405e5128c3c47ab8aa014d21b6e5296ca450f"
|
||||||
},
|
},
|
||||||
"toml": {
|
"toml": {
|
||||||
"revision": "8bd2056818b21860e3d756b5a58c4f6e05fb744e"
|
"revision": "8bd2056818b21860e3d756b5a58c4f6e05fb744e"
|
||||||
|
|
|
||||||
|
|
@ -469,7 +469,7 @@ list.tlaplus = {
|
||||||
url = "https://github.com/tlaplus-community/tree-sitter-tlaplus",
|
url = "https://github.com/tlaplus-community/tree-sitter-tlaplus",
|
||||||
files = { "src/parser.c", "src/scanner.cc" },
|
files = { "src/parser.c", "src/scanner.cc" },
|
||||||
},
|
},
|
||||||
maintainers = { "@ahelwer" },
|
maintainers = { "@ahelwer", "@susliko" },
|
||||||
filetype = "tla",
|
filetype = "tla",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
; ; highlights.scm
|
; ; Intended for consumption by nvim-treesitter
|
||||||
; ; Default capture names for tree-sitter highlight found here:
|
; ; Default capture names for nvim-treesitter found here:
|
||||||
; ; https://github.com/nvim-treesitter/nvim-treesitter/blob/e473630fe0872cb0ed97cd7085e724aa58bc1c84/lua/nvim-treesitter/highlight.lua#L14-L104
|
; ; https://github.com/nvim-treesitter/nvim-treesitter/blob/e473630fe0872cb0ed97cd7085e724aa58bc1c84/lua/nvim-treesitter/highlight.lua#L14-L104
|
||||||
|
|
||||||
|
|
||||||
; Keywords
|
; Keywords
|
||||||
[
|
[
|
||||||
"ACTION"
|
"ACTION"
|
||||||
|
|
@ -78,6 +77,7 @@
|
||||||
; Pluscal keywords
|
; Pluscal keywords
|
||||||
[
|
[
|
||||||
(pcal_algorithm_start)
|
(pcal_algorithm_start)
|
||||||
|
"algorithm"
|
||||||
"assert"
|
"assert"
|
||||||
"await"
|
"await"
|
||||||
"begin"
|
"begin"
|
||||||
|
|
@ -133,6 +133,7 @@
|
||||||
(real_number) @number
|
(real_number) @number
|
||||||
(real_number_set) @type
|
(real_number_set) @type
|
||||||
(string) @string
|
(string) @string
|
||||||
|
(escape_char) @string.escape
|
||||||
(string_set) @type
|
(string_set) @type
|
||||||
|
|
||||||
; Namespaces and includes
|
; Namespaces and includes
|
||||||
|
|
@ -205,12 +206,12 @@
|
||||||
|
|
||||||
; Proofs
|
; Proofs
|
||||||
(proof_step_id "<" @punctuation.bracket)
|
(proof_step_id "<" @punctuation.bracket)
|
||||||
(proof_step_id (level) @number)
|
(proof_step_id (level) @label)
|
||||||
(proof_step_id (name) @constant)
|
(proof_step_id (name) @label)
|
||||||
(proof_step_id ">" @punctuation.bracket)
|
(proof_step_id ">" @punctuation.bracket)
|
||||||
(proof_step_ref "<" @punctuation.bracket)
|
(proof_step_ref "<" @punctuation.bracket)
|
||||||
(proof_step_ref (level) @number)
|
(proof_step_ref (level) @label)
|
||||||
(proof_step_ref (name) @constant)
|
(proof_step_ref (name) @label)
|
||||||
(proof_step_ref ">" @punctuation.bracket)
|
(proof_step_ref ">" @punctuation.bracket)
|
||||||
|
|
||||||
; Comments and tags
|
; Comments and tags
|
||||||
|
|
@ -219,8 +220,9 @@
|
||||||
(block_comment_text) @comment
|
(block_comment_text) @comment
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
(single_line) @comment
|
(single_line) @comment
|
||||||
(_ label: (identifier) @tag)
|
(_ label: (identifier) @label)
|
||||||
(pcal_goto statement: (identifier) @tag)
|
(label name: (_) @label)
|
||||||
|
(pcal_goto statement: (identifier) @label)
|
||||||
|
|
||||||
; Reference highlighting with the same color as declarations.
|
; Reference highlighting with the same color as declarations.
|
||||||
; `constant`, `operator`, and others are custom captures defined in locals.scm
|
; `constant`, `operator`, and others are custom captures defined in locals.scm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue