commit | 8f7c7c6bf76a7e42dc4f7b700fdfb01cb40485f2 | [log] [tgz] |
---|---|---|
author | Xikui Wang <xkkwww@gmail.com> | Wed Jul 20 21:37:43 2016 -0700 |
committer | Till Westmann <tillw@apache.org> | Wed Jul 20 23:20:22 2016 -0700 |
tree | bdbd201d3a67557924b42966a8957394d99e87e0 | |
parent | 74fec83d91bd658b9f474ab65ea8febb3efb8d78 [diff] |
Fix for ASTERIXDB-1471 The line number is increased twice in setBuffer and updateLineColumn which causes the line number is 2x larger. Change-Id: Ibd91bc13c3adbbbe1dbfa0dccbdf6b378b280eae Reviewed-on: https://asterix-gerrit.ics.uci.edu/1012 Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Michael Blow <michael.blow@couchbase.com>
diff --git a/asterixdb/asterix-maven-plugins/lexer-generator-maven-plugin/src/main/resources/Lexer.java b/asterixdb/asterix-maven-plugins/lexer-generator-maven-plugin/src/main/resources/Lexer.java index 60e6e89..495a95e 100644 --- a/asterixdb/asterix-maven-plugins/lexer-generator-maven-plugin/src/main/resources/Lexer.java +++ b/asterixdb/asterix-maven-plugins/lexer-generator-maven-plugin/src/main/resources/Lexer.java
@@ -85,7 +85,6 @@ this.buffer = buffer; tokenBegin = bufpos = 0; containsEscapes = false; - line++; tokenBegin = -1; }