add missing flex files to ant build.xml

This commit is contained in:
Gregory.Shrago
2016-05-12 00:27:05 +03:00
parent dae11a47b0
commit 5e0f06d0ad
6 changed files with 7 additions and 12 deletions
@@ -419,7 +419,7 @@ public class FileTemplateConfigurable implements Configurable, Configurable.NoSc
private final Lexer myLexer;
public TemplateHighlighter() {
myLexer = new MergingLexerAdapter(new FlexAdapter(new FileTemplateTextLexer()), TokenSet.create(FileTemplateTokenType.TEXT));
myLexer = new MergingLexerAdapter(new FlexAdapter(new _FileTemplateTextLexer()), TokenSet.create(FileTemplateTokenType.TEXT));
}
@NotNull
@@ -7,13 +7,13 @@ import com.intellij.psi.tree.IElementType;
%%
%{
public FileTemplateTextLexer() {
public _FileTemplateTextLexer() {
this((java.io.Reader)null);
}
%}
%unicode
%class FileTemplateTextLexer
%class _FileTemplateTextLexer
%implements FlexLexer
%function advance
%type IElementType
@@ -13,8 +13,6 @@ import com.intellij.psi.tree.IElementType;
%unicode
%function advance
%type IElementType
%eof{ return;
%eof}
%{
private boolean allowXPath2Syntax = false;
+2 -2
View File
@@ -6,6 +6,7 @@
<sourceFolder url="file://$MODULE_DIR$/xpath-lang/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/xpath-lang/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/xpath-view/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/xpath-lang/gen" isTestSource="false" generated="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
@@ -24,5 +25,4 @@
<orderEntry type="module" module-name="dom-impl" scope="RUNTIME" />
<orderEntry type="library" scope="TEST" name="Groovy" level="project" />
</component>
</module>
</module>
@@ -8,7 +8,7 @@ import static com.jetbrains.python.psi.types.PyTypeTokenTypes.*;
%%
%class PyTypeLexer
%class _PyTypeLexer
%implements FlexLexer
%unicode
%public
@@ -16,9 +16,6 @@ import static com.jetbrains.python.psi.types.PyTypeTokenTypes.*;
%function advance
%type PyElementType
%eof{ return;
%eof}
%%
@@ -713,7 +713,7 @@ public class PyTypeParser {
private static List<Token<PyElementType>> tokenize(@NotNull String s) {
final List<Token<PyElementType>> tokens = new ArrayList<Token<PyElementType>>();
final PyTypeLexer lexer = new PyTypeLexer(new StringReader(s));
final _PyTypeLexer lexer = new _PyTypeLexer(new StringReader(s));
lexer.reset(s, 0, s.length(), lexer.yystate());
try {
PyElementType type;