style(bindings): fix indent & line endings

- Use 2 spaces for parser.c
- Don't force LF line endings
This commit is contained in:
ObserverOfTime 2024-04-12 18:45:27 +03:00 committed by Amaan Qureshi
parent fd0e1c7b5b
commit d77279d2e3
3 changed files with 7 additions and 7 deletions

View file

@ -2,9 +2,6 @@ root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{json,toml,yml,gyp}]
indent_style = space
@ -14,11 +11,11 @@ indent_size = 2
indent_style = space
indent_size = 2
[*.rs]
[*.{c,cc,h}]
indent_style = space
indent_size = 4
[*.{c,cc,h}]
[*.rs]
indent_style = space
indent_size = 4
@ -37,3 +34,6 @@ indent_size = 8
[Makefile]
indent_style = tab
indent_size = 8
[parser.c]
indent_size = 2

View file

@ -1,4 +1,4 @@
* text eol=lf
* text=auto eol=lf
src/*.json linguist-generated
src/parser.c linguist-generated

View file

@ -6,7 +6,7 @@ extern "C" TSLanguage *tree_sitter_PARSER_NAME();
// "tree-sitter", "language" hashed with BLAKE2
const napi_type_tag LANGUAGE_TYPE_TAG = {
0x8AF2E5212AD58ABF, 0xD5006CAD83ABBA16
0x8AF2E5212AD58ABF, 0xD5006CAD83ABBA16
};
Napi::Object Init(Napi::Env env, Napi::Object exports) {