[pacman-dev,2/2] editorconfig: set meson indentation style

Message ID 20200505044110.1188135-2-eschwartz@archlinux.org
State Accepted, archived
Headers show
Series [pacman-dev,1/2] meson: use better check for debug builds | expand

Commit Message

Eli Schwartz May 5, 2020, 4:41 a.m. UTC
meson.build gets two-space indents, but our global tabbed default was
overriding this.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
---
 .editorconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Allan McRae May 5, 2020, 6:22 a.m. UTC | #1
On 5/5/20 2:41 pm, Eli Schwartz wrote:
> meson.build gets two-space indents, but our global tabbed default was
> overriding this.
> 
> Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
> ---
>  .editorconfig | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/.editorconfig b/.editorconfig
> index efea87bf..220ffbc8 100644
> --- a/.editorconfig
> +++ b/.editorconfig
> @@ -16,5 +16,9 @@ indent_style = tab
>  [{NEWS,HACKING}]
>  indent_style = space
>  
> +[meson.build]
> +indent_style = space
> +indent_size = 2
> +
>  [*.py]
>  indent_style = space
> 

OK.

Patch

diff --git a/.editorconfig b/.editorconfig
index efea87bf..220ffbc8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -16,5 +16,9 @@  indent_style = tab
 [{NEWS,HACKING}]
 indent_style = space
 
+[meson.build]
+indent_style = space
+indent_size = 2
+
 [*.py]
 indent_style = space