From 18ee3f611d5230289f3f51d36646c9b579eec5f6 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sun, 22 Oct 2023 02:11:57 +0200 Subject: [PATCH 1/3] Fix indent setting in `.editorconfig` for `*.v` files --- .editorconfig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index f5dc02acb..ecdb17ccf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,10 +7,8 @@ charset = utf-8 end_of_line = lf insert_final_newline = true -# Matches multiple files with brace expansion notation -[*.v] -indent_style = space -indent_size = 8 +[*.{v,vsh}] +indent_style = tab [*.rst] indent_style = space From 445070cefbff71f3b07df5d2fb5b04f046b3c8fe Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sun, 22 Oct 2023 02:22:54 +0200 Subject: [PATCH 2/3] Update related --- .editorconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index ecdb17ccf..f671cc960 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,11 +1,8 @@ -# top-most EditorConfig file -root = true - -# Unix-style newlines with a newline ending every file [*] charset = utf-8 end_of_line = lf insert_final_newline = true +trim_trailing_whitespace = true [*.{v,vsh}] indent_style = tab From ea4b8779454c90c7a43d056f57bf79dfa56514f2 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sun, 22 Oct 2023 03:07:44 +0200 Subject: [PATCH 3/3] Fix formatting --- .editorconfig | 2 +- fft/v.mod | 12 ++++++------ inout/h5/v.mod | 10 +++++----- mpi/v.mod | 12 ++++++------ plot/v.mod | 12 ++++++------ v.mod | 12 ++++++------ vcl/v.mod | 12 ++++++------ 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.editorconfig b/.editorconfig index f671cc960..f1811d27c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,7 +4,7 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -[*.{v,vsh}] +[*.{v,vsh,mod}] indent_style = tab [*.rst] diff --git a/fft/v.mod b/fft/v.mod index 8a3301425..6df46db1e 100644 --- a/fft/v.mod +++ b/fft/v.mod @@ -1,8 +1,8 @@ Module { - name: 'fft' - description: 'PocketFFT-based Fast Fourier Transform' - version: '0.1.0' - license: 'MIT' - repo_url: 'https://github.com/vlang/vsl' - dependencies: [] + name: 'fft' + description: 'PocketFFT-based Fast Fourier Transform' + version: '0.1.0' + license: 'MIT' + repo_url: 'https://github.com/vlang/vsl' + dependencies: [] } diff --git a/inout/h5/v.mod b/inout/h5/v.mod index 275f4620c..3e2462d6a 100644 --- a/inout/h5/v.mod +++ b/inout/h5/v.mod @@ -1,7 +1,7 @@ Module { - name: 'h5' - description: 'Hierarchical data storage in a file' - version: '0.1.0' - license: 'MIT' - dependencies: [] + name: 'h5' + description: 'Hierarchical data storage in a file' + version: '0.1.0' + license: 'MIT' + dependencies: [] } diff --git a/mpi/v.mod b/mpi/v.mod index 104fac39c..5b0fc9b82 100644 --- a/mpi/v.mod +++ b/mpi/v.mod @@ -1,8 +1,8 @@ Module { - name: 'mpi' - description: 'Message Passing Interface for parallel computing' - version: '0.1.0' - license: 'MIT' - repo_url: 'https://github.com/vlang/vsl' - dependencies: [] + name: 'mpi' + description: 'Message Passing Interface for parallel computing' + version: '0.1.0' + license: 'MIT' + repo_url: 'https://github.com/vlang/vsl' + dependencies: [] } diff --git a/plot/v.mod b/plot/v.mod index a6e07e5a1..7f1cc90b5 100644 --- a/plot/v.mod +++ b/plot/v.mod @@ -1,8 +1,8 @@ Module { - name: 'plot' - description: 'The VSL Plot lib' - version: '0.1.0' - license: 'MIT' - repo_url: 'https://github.com/vlang/vsl' - dependencies: [] + name: 'plot' + description: 'The VSL Plot lib' + version: '0.1.0' + license: 'MIT' + repo_url: 'https://github.com/vlang/vsl' + dependencies: [] } diff --git a/v.mod b/v.mod index 1566c619d..681a589d9 100644 --- a/v.mod +++ b/v.mod @@ -1,8 +1,8 @@ Module { - name: 'vsl' - description: 'The V Scientific Library' - version: '0.1.50' - license: 'MIT' - repo_url: 'https://github.com/vlang/vsl' - dependencies: [] + name: 'vsl' + description: 'The V Scientific Library' + version: '0.1.50' + license: 'MIT' + repo_url: 'https://github.com/vlang/vsl' + dependencies: [] } diff --git a/vcl/v.mod b/vcl/v.mod index 4dcd772d2..4e6293a15 100644 --- a/vcl/v.mod +++ b/vcl/v.mod @@ -1,8 +1,8 @@ Module { - name: 'vcl' - description: 'V Computing Language' - version: '0.1.0' - license: 'MIT' - repo_url: 'https://github.com/vlang/vsl' - dependencies: [] + name: 'vcl' + description: 'V Computing Language' + version: '0.1.0' + license: 'MIT' + repo_url: 'https://github.com/vlang/vsl' + dependencies: [] }