From 0279180308c568f674d08cf47bae2b51f54e9761 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sun, 22 Oct 2023 06:32:57 +0200 Subject: [PATCH] Fix indent setting in `.editorconfig` for `*.v` files (#183) * Fix indent setting in `.editorconfig` for `*.v` files * Update related * Fix formatting --- .editorconfig | 11 +++-------- 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, 38 insertions(+), 43 deletions(-) diff --git a/.editorconfig b/.editorconfig index f5dc02acb..f1811d27c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,16 +1,11 @@ -# 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 -# Matches multiple files with brace expansion notation -[*.v] -indent_style = space -indent_size = 8 +[*.{v,vsh,mod}] +indent_style = tab [*.rst] indent_style = space 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: [] }