sdl2-compat: Add .editorconfig

From 5d8f318014ac402e87a36d9c0851a48102bb4539 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 27 Nov 2022 03:12:17 +0100
Subject: [PATCH] Add .editorconfig

---
 .editorconfig | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 .editorconfig

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..c2066d5
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,13 @@
+# For format see editorconfig.org
+# Copyright 2022 Collabora Ltd.
+# SPDX-License-Identifier: Zlib
+
+root = true
+
+[*.{c,cg,cpp,gradle,h,java,m,metal,pl,py,S,sh,txt}]
+indent_size = 4
+indent_style = space
+
+[{CMakeLists.txt,*.cmake.in,*.cmake}]
+indent_size = 2
+indent_style = space