Compare commits
2 commits
c7a439c896
...
c90d9d8212
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | c90d9d8212 | ||
Bruno BELANYI | 96edb1d0f7 |
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "tree-sitter-tiger"
|
||||
description = "Tiger grammar for the tree-sitter parsing library"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
keywords = ["incremental", "parsing", "tiger"]
|
||||
categories = ["parsing", "text-editors"]
|
||||
repository = "https://gitea.belanyi.fr/ambroisie/tree-sitter-tiger"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tree-sitter-tiger",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "tiger grammar for tree-sitter",
|
||||
"main": "bindings/node",
|
||||
"keywords": [
|
||||
|
|
|
@ -12,20 +12,26 @@
|
|||
|
||||
; Class {{{
|
||||
(class_declaration) @indent
|
||||
(class_declaration "}" @indent_end)
|
||||
|
||||
(class_type) @indent
|
||||
(class_type "}" @indent_end)
|
||||
; }}}
|
||||
|
||||
; Groups {{{
|
||||
(let_expression) @indent
|
||||
"in" @branch
|
||||
"end" @branch
|
||||
(let_expression "end" @indent_end)
|
||||
|
||||
(sequence_expression) @indent
|
||||
")" @branch
|
||||
(sequence_expression ")" @indent_end)
|
||||
; }}}
|
||||
|
||||
; Functions and methods {{{
|
||||
(parameters) @indent
|
||||
(parameters ")" @indent_end)
|
||||
|
||||
(function_call) @indent
|
||||
(method_call) @indent
|
||||
|
@ -39,12 +45,14 @@
|
|||
; Values and expressions {{{
|
||||
(array_value) @indent
|
||||
"]" @branch
|
||||
(array_value "]" @indent_end)
|
||||
|
||||
(array_expression) @indent
|
||||
"of" @branch
|
||||
|
||||
(record_expression) @indent
|
||||
"}" @branch
|
||||
(record_expression "}" @indent_end)
|
||||
|
||||
(variable_declaration) @indent
|
||||
; }}}
|
||||
|
|
Loading…
Reference in a new issue