Skip to content

Commit f331b0b

Browse files
Merge pull request #3 from protostuff/support-markdown-editor
Rename language id
2 parents 19ebde4 + a8bd045 commit f331b0b

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

src/main/java/io/protostuff/jetbrains/plugin/ProtoFileType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected ProtoFileType() {
1919
@NotNull
2020
@Override
2121
public String getName() {
22-
return "Protobuf";
22+
return "PROTO";
2323
}
2424

2525
@NotNull
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
package io.protostuff.jetbrains.plugin;
22

33
import com.intellij.lang.Language;
4+
import org.jetbrains.annotations.NotNull;
45

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

89
private ProtoLanguage() {
9-
super("Protobuf");
10+
super("PROTO");
1011
}
12+
13+
@NotNull
14+
@Override
15+
public String getDisplayName() {
16+
return "Protobuf";
17+
}
18+
19+
@Override
20+
public boolean isCaseSensitive() {
21+
return true;
22+
}
23+
1124
}

src/main/resources/META-INF/plugin.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040

4141
<extensions defaultExtensionNs="com.intellij">
4242
<fileTypeFactory implementation="io.protostuff.jetbrains.plugin.ProtoFileTypeFactory"/>
43-
<lang.parserDefinition language="Protobuf"
43+
<lang.parserDefinition language="PROTO"
4444
implementationClass="io.protostuff.jetbrains.plugin.ProtoParserDefinition"/>
45-
<lang.syntaxHighlighterFactory language="Protobuf"
45+
<lang.syntaxHighlighterFactory language="PROTO"
4646
implementationClass="io.protostuff.jetbrains.plugin.ProtoSyntaxHighlighterFactory"/>
47-
<annotator language="Protobuf"
47+
<annotator language="PROTO"
4848
implementationClass="io.protostuff.jetbrains.plugin.ProtoSyntaxKeywordsAnnotator"/>
4949

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

0 commit comments

Comments
 (0)