Skip to content

Commit d77279d

Browse files
ObserverOfTimeamaanq
authored andcommitted
style(bindings): fix indent & line endings
- Use 2 spaces for parser.c - Don't force LF line endings
1 parent fd0e1c7 commit d77279d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cli/src/generate/templates/.editorconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ root = true
22

33
[*]
44
charset = utf-8
5-
end_of_line = lf
6-
insert_final_newline = true
7-
trim_trailing_whitespace = true
85

96
[*.{json,toml,yml,gyp}]
107
indent_style = space
@@ -14,11 +11,11 @@ indent_size = 2
1411
indent_style = space
1512
indent_size = 2
1613

17-
[*.rs]
14+
[*.{c,cc,h}]
1815
indent_style = space
1916
indent_size = 4
2017

21-
[*.{c,cc,h}]
18+
[*.rs]
2219
indent_style = space
2320
indent_size = 4
2421

@@ -37,3 +34,6 @@ indent_size = 8
3734
[Makefile]
3835
indent_style = tab
3936
indent_size = 8
37+
38+
[parser.c]
39+
indent_size = 2

cli/src/generate/templates/gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* text eol=lf
1+
* text=auto eol=lf
22

33
src/*.json linguist-generated
44
src/parser.c linguist-generated

cli/src/generate/templates/js-binding.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ extern "C" TSLanguage *tree_sitter_PARSER_NAME();
66

77
// "tree-sitter", "language" hashed with BLAKE2
88
const napi_type_tag LANGUAGE_TYPE_TAG = {
9-
0x8AF2E5212AD58ABF, 0xD5006CAD83ABBA16
9+
0x8AF2E5212AD58ABF, 0xD5006CAD83ABBA16
1010
};
1111

1212
Napi::Object Init(Napi::Env env, Napi::Object exports) {

0 commit comments

Comments
 (0)