tree-sitter-tiger/test/highlight/keywords.tig
Bruno BELANYI b22ca8cd67 More specific function keyword high-lighting
I learnt about this group by reading the nvim-treesitter source [1].

[1]: see 'lua/nvim-treesitter/highlight.lua'
2022-06-03 20:15:09 +02:00

42 lines
666 B
Plaintext

let
/* <- keyword */
var a := 12
/* <- keyword */
function f() : int = a
/* <- keyword.function */
primitive g()
/* <- keyword.function */
import "lib.tih"
/* <- keyword */
type array_of_int = array of int
/* <- keyword */
/* ^ keyword */
/* ^ keyword */
in
/* <- keyword */
12;
if 12 then 27 else 42;
/* <- keyword */
/* ^ keyword */
/* ^ keyword */
for i := 12 to 27 do 42;
/* <- keyword */
/* ^ keyword */
/* ^ keyword */
while 12 do break
/* <- keyword */
/* ^ keyword */
/* ^ keyword */
end
/* <- keyword */