From 622b870519d3b367a52302f527d7ff3581692530 Mon Sep 17 00:00:00 2001 From: Jernej Virag Date: Mon, 2 Jan 2017 16:39:36 +0100 Subject: [PATCH] Allow setting of ident style to all Java classes --- src/source/Main.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/source/Main.scala b/src/source/Main.scala index 790988def..e87924c52 100644 --- a/src/source/Main.scala +++ b/src/source/Main.scala @@ -198,6 +198,7 @@ object Main { note("\nIdentifier styles (ex: \"FooBar\", \"fooBar\", \"foo_bar\", \"FOO_BAR\", \"m_fooBar\")\n") identStyle("ident-java-enum", c => { javaIdentStyle = javaIdentStyle.copy(enum = c) }) identStyle("ident-java-field", c => { javaIdentStyle = javaIdentStyle.copy(field = c) }) + identStyle("ident-java-type", c => { javaIdentStyle = javaIdentStyle.copy(ty = c) }) identStyle("ident-cpp-enum", c => { cppIdentStyle = cppIdentStyle.copy(enum = c) }) identStyle("ident-cpp-field", c => { cppIdentStyle = cppIdentStyle.copy(field = c) }) identStyle("ident-cpp-method", c => { cppIdentStyle = cppIdentStyle.copy(method = c) }) @@ -206,8 +207,8 @@ object Main { identStyle("ident-cpp-type-param", c => { cppIdentStyle = cppIdentStyle.copy(typeParam = c) }) identStyle("ident-cpp-local", c => { cppIdentStyle = cppIdentStyle.copy(local = c) }) identStyle("ident-cpp-file", c => { cppFileIdentStyle = c }) - identStyle("ident-jni-class", c => {jniClassIdentStyleOptional = Some(c)}) - identStyle("ident-jni-file", c => {jniFileIdentStyleOptional = Some(c)}) + identStyle("ident-jni-class", c => { jniClassIdentStyleOptional = Some(c)}) + identStyle("ident-jni-file", c => { jniFileIdentStyleOptional = Some(c)}) identStyle("ident-objc-enum", c => { objcIdentStyle = objcIdentStyle.copy(enum = c) }) identStyle("ident-objc-field", c => { objcIdentStyle = objcIdentStyle.copy(field = c) }) identStyle("ident-objc-method", c => { objcIdentStyle = objcIdentStyle.copy(method = c) })