Package com.intellij.lexer

Examples of com.intellij.lexer.StringLiteralLexer


public class OgnlHighlightingLexer extends LayeredLexer {

  public OgnlHighlightingLexer() {
    super(new OgnlLexer());

    final StringLiteralLexer stringLiteralLexer = new StringLiteralLexer('\"', OgnlTypes.STRING_LITERAL);
    registerSelfStoppingLayer(stringLiteralLexer,
                              new IElementType[]{OgnlTypes.STRING_LITERAL},
                              IElementType.EMPTY_ARRAY);

    final StringLiteralLexer characterLiteralLexer = new StringLiteralLexer('\'', OgnlTypes.CHARACTER_LITERAL);
    registerSelfStoppingLayer(characterLiteralLexer,
                              new IElementType[]{OgnlTypes.CHARACTER_LITERAL},
                              IElementType.EMPTY_ARRAY);
  }
View Full Code Here

TOP

Related Classes of com.intellij.lexer.StringLiteralLexer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.