[gnome-builder] Update Rust defaults, and fix style of C snippet
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Update Rust defaults, and fix style of C snippet
- Date: Tue, 31 Jul 2018 01:01:06 +0000 (UTC)
commit eab0dd3458db1996a97f461d7e0e19c0e49755ab
Author: Ricardo Silva Veloso <ricvelozo gmail com>
Date: Mon Jul 30 20:19:43 2018 -0300
Update Rust defaults, and fix style of C snippet
data/snippets/c.snippets | 5 ++---
src/libide/files/defaults.ini | 3 ++-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/snippets/c.snippets b/data/snippets/c.snippets
index 849293312..b9d1e9f47 100644
--- a/data/snippets/c.snippets
+++ b/data/snippets/c.snippets
@@ -26,7 +26,7 @@ snippet enum
snippet fn
- scope c, chdr
- desc Create function
- ${1:void}
+ ${1:static void}
${2:function_name} (${3:void})
{
$0
@@ -34,8 +34,7 @@ snippet fn
snippet fns
- scope c, chdr
- desc Create function signature
- ${1:void}
- ${2:function_name} (${3:void});$0
+ ${1:void} ${2:function_name} (${3:void});$0
snippet if
- scope c, chdr
if (${1:condition})
diff --git a/src/libide/files/defaults.ini b/src/libide/files/defaults.ini
index 06f0d2bf9..bdb5b4660 100644
--- a/src/libide/files/defaults.ini
+++ b/src/libide/files/defaults.ini
@@ -7,7 +7,7 @@
# "all languages" default value will get that setting overridden. A potential
# alternative is to layer backends, which is out of scope at the moment.
[global]
-version = 8
+version = 9
[automake]
insert-spaces-instead-of-tabs = false
@@ -107,6 +107,7 @@ overwrite-braces = true
insert-spaces-instead-of-tabs = true
tab-width = 4
insert-matching-brace = true
+insert-trailing-newline = true
overwrite-braces = true
[vala]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]