Skip to content

Commit

Permalink
1.3 - Changed package name to group
Browse files Browse the repository at this point in the history
  • Loading branch information
JonahPlusPlus committed Aug 22, 2020
1 parent 0642f15 commit 05332f6
Show file tree
Hide file tree
Showing 26 changed files with 44 additions and 54 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'org.jetbrains.intellij' version '0.4.21'
}

group 'org.jonahhenriksson'
group 'org.ron-rs'
version '1.3'

sourceSets.main.java.srcDirs 'src/main/gen'
Expand Down
2 changes: 0 additions & 2 deletions src/main/gen/org/jonahhenriksson/ron/language/__RONLexer.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
parserClass = "org.jonahhenriksson.ron.language.parser._RONParser"
parserUtilClass = "org.jonahhenriksson.ron.language.psi.RONParserUtil"
parserClass = "org.ron_rs.intellij_ron.language.parser._RONParser"
parserUtilClass = "org.ron_rs.intellij_ron.language.psi.RONParserUtil"

extends = "com.intellij.extapi.psi.ASTWrapperPsiElement"

Expand All @@ -9,9 +9,9 @@
psiPackage = "org.jonahhenriksson.ron.language.psi"
psiImplPackage = "org.jonahhenriksson.ron.language.psi.impl"

elementTypeHolderClass = "org.jonahhenriksson.ron.language.psi.RONTypes"
elementTypeClass = "org.jonahhenriksson.ron.language.psi.RONElementType"
tokenTypeClass = "org.jonahhenriksson.ron.language.psi.RONTokenType"
elementTypeHolderClass = "org.ron_rs.intellij_ron.language.psi.RONTypes"
elementTypeClass = "org.ron_rs.intellij_ron.language.psi.RONElementType"
tokenTypeClass = "org.ron_rs.intellij_ron.language.psi.RONTokenType"

psiImplUtilClass = "org.jonahhenriksson.ron.language.psi.impl.RONPsiImplUtil"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package org.jonahhenriksson.ron.language;
package org.ron_rs.intellij_ron.language;

import com.intellij.ide.actions.CreateFileFromTemplateAction;
import com.intellij.ide.actions.CreateFileFromTemplateDialog;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.NlsActions;
import com.intellij.openapi.util.NlsContexts;
import com.intellij.psi.PsiDirectory;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class RONCreateFile extends CreateFileFromTemplateAction {

private static final String NAME = "RON File";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jonahhenriksson.ron.language;
package org.ron_rs.intellij_ron.language;

import com.intellij.openapi.fileTypes.LanguageFileType;
import com.intellij.openapi.util.NlsContexts;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jonahhenriksson.ron.language;
package org.ron_rs.intellij_ron.language;

import com.intellij.openapi.util.IconLoader;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jonahhenriksson.ron.language;
package org.ron_rs.intellij_ron.language;

import com.intellij.lang.Language;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jonahhenriksson.ron.language;
package org.ron_rs.intellij_ron.language;

import com.intellij.lexer.FlexAdapter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jonahhenriksson.ron.language;
package org.ron_rs.intellij_ron.language;

import com.intellij.lang.ASTNode;
import com.intellij.lang.ParserDefinition;
Expand All @@ -8,14 +8,12 @@
import com.intellij.psi.FileViewProvider;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.TokenType;
import com.intellij.psi.tree.IFileElementType;
import com.intellij.psi.tree.TokenSet;
import org.jetbrains.annotations.NotNull;
import org.jonahhenriksson.ron.language.parser._RONParser;
import org.jonahhenriksson.ron.language.psi.RONElementType;
import org.jonahhenriksson.ron.language.psi.RONFile;
import org.jonahhenriksson.ron.language.psi.RONTypes;
import org.ron_rs.intellij_ron.language.parser._RONParser;
import org.ron_rs.intellij_ron.language.psi.RONTypes;
import org.ron_rs.intellij_ron.language.psi.RONFile;

public class RONParserDefinition implements ParserDefinition {
public static final TokenSet COMMENTS = TokenSet.create(RONTypes.COMMENT, RONTypes.BLOCK_COMMENT);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jonahhenriksson.ron.language;
package org.ron_rs.intellij_ron.language;

import com.intellij.lexer.Lexer;
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors;
Expand All @@ -8,7 +8,7 @@
import com.intellij.psi.TokenType;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;
import org.jonahhenriksson.ron.language.psi.RONTypes;
import org.ron_rs.intellij_ron.language.psi.RONTypes;

public class RONSyntaxHighlighter extends SyntaxHighlighterBase {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package org.jonahhenriksson.ron.language;

import com.intellij.lexer.FlexLexer;
import com.intellij.psi.tree.IElementType;

import static com.intellij.psi.TokenType.BAD_CHARACTER;
import static com.intellij.psi.TokenType.WHITE_SPACE;
import static org.jonahhenriksson.ron.language.psi.RONTypes.*;

%%

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.jonahhenriksson.ron.language.psi;
package org.ron_rs.intellij_ron.language.psi;

import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jonahhenriksson.ron.language.RONLanguage;
import org.ron_rs.intellij_ron.language.RONLanguage;

public class RONElementType extends IElementType {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package org.jonahhenriksson.ron.language.psi;
package org.ron_rs.intellij_ron.language.psi;

import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.lang.Language;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.FileViewProvider;
import org.jetbrains.annotations.NotNull;
import org.jonahhenriksson.ron.language.RONFileType;
import org.jonahhenriksson.ron.language.RONLanguage;
import org.ron_rs.intellij_ron.language.RONFileType;
import org.ron_rs.intellij_ron.language.RONLanguage;

public class RONFile extends PsiFileBase {
public RONFile(@NotNull FileViewProvider viewProvider) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jonahhenriksson.ron.language.psi;
package org.ron_rs.intellij_ron.language.psi;

import com.intellij.lang.parser.GeneratedParserUtilBase;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.jonahhenriksson.ron.language.psi;
package org.ron_rs.intellij_ron.language.psi;

import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jonahhenriksson.ron.language.RONLanguage;
import org.ron_rs.intellij_ron.language.RONLanguage;

public class RONTokenType extends IElementType {

Expand Down
14 changes: 7 additions & 7 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin>
<id>org.jonahhenriksson.ron</id>
<id>org.ron_rs.intellij_ron</id>
<name>RON</name>
<vendor>Jonah Henriksson</vendor>
<vendor>ron_rs</vendor>

<description><![CDATA[
Currently adds highlighting support for the RON (Rust Object Notation) data format.
Expand All @@ -10,13 +10,13 @@
<depends>com.intellij.modules.platform</depends>

<extensions defaultExtensionNs="com.intellij">
<fileType name="RON file" implementationClass="org.jonahhenriksson.ron.language.RONFileType" fieldName="INSTANCE" language="RON" extensions="ron" />
<lang.parserDefinition language="RON" implementationClass="org.jonahhenriksson.ron.language.RONParserDefinition"/>
<lang.syntaxHighlighter language="RON" implementationClass="org.jonahhenriksson.ron.language.RONSyntaxHighlighter"/>
<fileType name="RON file" implementationClass="org.ron_rs.intellij_ron.language.RONFileType" fieldName="INSTANCE" language="RON" extensions="ron" />
<lang.parserDefinition language="RON" implementationClass="org.ron_rs.intellij_ron.language.RONParserDefinition"/>
<lang.syntaxHighlighter language="RON" implementationClass="org.ron_rs.intellij_ron.language.RONSyntaxHighlighter"/>
</extensions>
<actions>
<action id="org.jonahhenriksson.ron.language.RONCreateFile"
class="org.jonahhenriksson.ron.language.RONCreateFile" text="RON File"
<action id="org.ron_rs.intellij_ron.language.RONCreateFile"
class="org.ron_rs.intellij_ron.language.RONCreateFile" text="RON File"
description="Create new RON file">
<add-to-group group-id="NewGroup" anchor="after" relative-to-action="NewFile"/>
</action>
Expand Down

0 comments on commit 05332f6

Please sign in to comment.