Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected ProtoFileType() {
@NotNull
@Override
public String getName() {
return "Protobuf";
return "PROTO";
}

@NotNull
Expand Down
15 changes: 14 additions & 1 deletion src/main/java/io/protostuff/jetbrains/plugin/ProtoLanguage.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
package io.protostuff.jetbrains.plugin;

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

public class ProtoLanguage extends Language {
public static final ProtoLanguage INSTANCE = new ProtoLanguage();

private ProtoLanguage() {
super("Protobuf");
super("PROTO");
}

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

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

}
6 changes: 3 additions & 3 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@

<extensions defaultExtensionNs="com.intellij">
<fileTypeFactory implementation="io.protostuff.jetbrains.plugin.ProtoFileTypeFactory"/>
<lang.parserDefinition language="Protobuf"
<lang.parserDefinition language="PROTO"
implementationClass="io.protostuff.jetbrains.plugin.ProtoParserDefinition"/>
<lang.syntaxHighlighterFactory language="Protobuf"
<lang.syntaxHighlighterFactory language="PROTO"
implementationClass="io.protostuff.jetbrains.plugin.ProtoSyntaxHighlighterFactory"/>
<annotator language="Protobuf"
<annotator language="PROTO"
implementationClass="io.protostuff.jetbrains.plugin.ProtoSyntaxKeywordsAnnotator"/>

<colorSettingsPage implementation="io.protostuff.jetbrains.plugin.ProtoColorSettingsPage"/>
Expand Down