Throw exceptions (not errors) from lexer
+ Add more data to the exception message
This commit is contained in:
@@ -36,6 +36,12 @@
|
||||
<target name="lexer">
|
||||
<flex flexfile="${home}/src/org/jetbrains/jet/lexer/Jet.flex"
|
||||
destdir="${home}/src/org/jetbrains/jet/lexer/"/>
|
||||
|
||||
<!-- This is a hack, but we don't want to alter the skeleton we are using now, because being in sync with IDEA is more important-->
|
||||
<replaceregexp file="${home}/src/org/jetbrains/jet/lexer/_JetLexer.java"
|
||||
match="throw new KotlinLexerException\(message\);"
|
||||
replace="throw new KotlinLexerException(message + "\\\\n at '" + yytext() + "'\\\\n" + zzBuffer);"/>
|
||||
|
||||
<flex flexfile="${home}/src/org/jetbrains/jet/kdoc/lexer/KDoc.flex"
|
||||
destdir="${home}/src/org/jetbrains/jet/kdoc/lexer/"/>
|
||||
</target>
|
||||
|
||||
Reference in New Issue
Block a user