mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
Updated to the new Grammar-Kit Plugin
This commit is contained in:
parent
82b6a16012
commit
033d4a0245
@ -1,6 +0,0 @@
|
||||
package com.simpleplugin.parser;
|
||||
|
||||
import com.intellij.lang.parser.GeneratedParserUtilBase;
|
||||
|
||||
public class SimpleParserUtil extends GeneratedParserUtilBase {
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
parserClass="com.simpleplugin.parser.SimpleParser"
|
||||
parserUtilClass="com.simpleplugin.parser.SimpleParserUtil"
|
||||
|
||||
extends="com.intellij.extapi.psi.ASTWrapperPsiElement"
|
||||
|
||||
|
@ -4,7 +4,6 @@ import com.intellij.lang.ASTNode;
|
||||
import com.intellij.lang.Language;
|
||||
import com.intellij.lang.ParserDefinition;
|
||||
import com.intellij.lang.PsiParser;
|
||||
import com.intellij.lexer.FlexAdapter;
|
||||
import com.intellij.lexer.Lexer;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.FileViewProvider;
|
||||
@ -18,8 +17,6 @@ import com.simpleplugin.psi.SimpleFile;
|
||||
import com.simpleplugin.psi.SimpleTypes;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.Reader;
|
||||
|
||||
public class SimpleParserDefinition implements ParserDefinition{
|
||||
public static final TokenSet WHITE_SPACES = TokenSet.create(TokenType.WHITE_SPACE);
|
||||
public static final TokenSet COMMENTS = TokenSet.create(SimpleTypes.COMMENT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user