Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hykes/CodeGen
Browse files Browse the repository at this point in the history
  • Loading branch information
hykes committed Jul 31, 2018
2 parents 09b6775 + 0e0256d commit ebddb90
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.hykes.codegen.provider.filetype;

import com.github.hykes.codegen.provider.language.KotlinLanguage;
import com.intellij.icons.AllIcons;
import com.intellij.lang.java.JavaLanguage;
import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
Expand All @@ -17,13 +17,13 @@ public class KotlinFileType extends LanguageFileType {
public static final KotlinFileType INSTANCE = new KotlinFileType();

private KotlinFileType() {
super(JavaLanguage.INSTANCE);
super(KotlinLanguage.INSTANCE);
}

@Override
@NotNull
public String getName() {
return "KOTLIN";
return "Kotlin";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.hykes.codegen.provider.filetype;

import com.intellij.icons.AllIcons;
import com.intellij.lang.java.JavaLanguage;
import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.sql.psi.SqlLanguage;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

Expand All @@ -22,7 +22,7 @@ public class SqlFileType extends LanguageFileType {
public static final SqlFileType INSTANCE = new SqlFileType();

private SqlFileType() {
super(JavaLanguage.INSTANCE);
super(SqlLanguage.INSTANCE);
}

@Override
Expand Down
28 changes: 28 additions & 0 deletions src/com/github/hykes/codegen/provider/language/KotlinLanguage.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.github.hykes.codegen.provider.language;

import com.intellij.lang.Language;
import org.jetbrains.annotations.NotNull;

/**
* Mail: [email protected]
* Created by IceMimosa
* Date: 2018/5/26
*/
public class KotlinLanguage extends Language {
public static final KotlinLanguage INSTANCE = new KotlinLanguage();

private KotlinLanguage() {
super("Kotlin");
}

@NotNull
@Override
public String getDisplayName() {
return "Kotlin";
}

@Override
public boolean isCaseSensitive() {
return true;
}
}

0 comments on commit ebddb90

Please sign in to comment.