flex source code of lexers is now available as part of CE source
[fedora-idea.git] / platform / lang-impl / src / com / intellij / codeInsight / template / impl / TemplateTextLexer.flex
blobcbcb3b50b218ed4f2c02b9617fc2f1d751c2ad08
1 /* It's an automatically generated code. Do not modify it. */
2 package com.intellij.codeInsight.template.impl;
4 import com.intellij.lexer.FlexLexer;
5 import com.intellij.psi.tree.IElementType;
7 %%
9 %{
10    public _TemplateTextLexer() {
11      this((java.io.Reader)null);
12    }
15 %unicode
16 %class _TemplateTextLexer
17 %implements FlexLexer
18 %function advance
19 %type IElementType
20 %eof{  return;
21 %eof}
23 ALPHA=[A-Za-z_]
24 DIGIT=[0-9]
25 VARIABLE="$"({ALPHA}|{DIGIT})+"$"
29 <YYINITIAL> "$""$" { return TemplateTokenType.ESCAPE_DOLLAR; }
30 <YYINITIAL> {VARIABLE} { return TemplateTokenType.VARIABLE; }
31 <YYINITIAL> [^] { return TemplateTokenType.TEXT; }