From daf50d734ca8e82b092bb86281c34c3989f818e4 Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Fri, 22 Oct 2021 16:45:28 +0300 Subject: [PATCH] Add editorconfig to configure indentation Patch adds a commit 'Add editorconfig to configure indents' (886976aebf0a33523536e7a8772616f9d4be2deb) that was implemented and the reverted in scope of issue with discard v2. Follows up #90 Part of #134 --- .editorconfig | 23 +++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e0d2af0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +[CMakeLists.txt] +indent_style = space +indent_size = 4 + +[*.cmake] +indent_style = space +indent_size = 4 + +[*.lua] +indent_style = space +indent_size = 4 + +[*.{h,c,cc}] +indent_style = tab +tab_width = 8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 49eb4bf..43adb15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Replace Travis CI with Github Actions. - Add workflow that publish rockspec. +- Add editorconfig to configure indentation. ## [2.1.0] - 2020-01-30