jflex-de / idea-jflex

A plugin for IntelliJ IDEA to enable JFlex support
Apache License 2.0
19 stars 9 forks source link

Unable to expand or type TokenTypes with "Embedded Java code support" turned on. #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Use a wrong package name in the flex file.
2. Turn on the "Embedded Java code support"
3. Open the flex file. Note, that I forgot to change the package name. I 
haven't changed it from the properties package to my one. This seems to confuse 
the expansion mechanism.
4a. When I try to *type*

<YYINITIAL> {WhiteSpace} {return MathematicaTokenTypes.MMA_WHITE_SPACE;

after I type the semicolon everything right to the "." disappears so I have 
only 

<YYINITIAL> {WhiteSpace} {return MathematicaTokenTypes;

4b. When I try to hit tab to get the expansion the same happens.

What is the expected output? What do you see instead?

1. I would expect that the wrong package name is highlighted as error (and not 
the return; between %eof{}).

2. Maybe that when the package name is wrong the expansion doesn't work after 
all. Not good is that when I type something manually, the plugin deletes my 
code.

What version of the product are you using? On what operating system?

Ubuntu 12.04
IDEA 12 Ultimate (IU 123.94)

Please provide any additional information below.

Original issue reported on code.google.com by haliru...@googlemail.com on 3 Jan 2013 at 2:41

Attachments: