[phpMyAdmin Git] [phpmyadmin/sql-parser] 3fb0cf: Fixed handling newlines in inline coments

Michal Čihař michal at cihar.com
Thu Apr 6 16:54:10 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/phpmyadmin/sql-parser
  Commit: 3fb0cf70e6817649cf50d5f40ec5ebc73e100b13
      https://github.com/phpmyadmin/sql-parser/commit/3fb0cf70e6817649cf50d5f40ec5ebc73e100b13
  Author: Michal Čihař <michal at cihar.com>
  Date:   2017-04-04 (Tue, 04 Apr 2017)

  Changed paths:
    M src/Lexer.php
    M tests/data/lexer/lexComment.out
    M tests/data/lexer/lexNumber.out

  Log Message:
  -----------
  Fixed handling newlines in inline coments

The newline is now included as separate token, previously it was
silently discarded, so it was not present in output.

See https://github.com/phpmyadmin/phpmyadmin/issues/13139

Signed-off-by: Michal Čihař <michal at cihar.com>


  Commit: 7973054aaf9baf8834515cdd0ea0522b10fe7193
      https://github.com/phpmyadmin/sql-parser/commit/7973054aaf9baf8834515cdd0ea0522b10fe7193
  Author: Michal Čihař <michal at cihar.com>
  Date:   2017-04-04 (Tue, 04 Apr 2017)

  Changed paths:
    M src/Utils/Formatter.php

  Log Message:
  -----------
  Keep linebreaks after comments

Concatenating line terminated comments will change the query.

Signed-off-by: Michal Čihař <michal at cihar.com>


  Commit: 518eb1b71d94ec3b135b90d1b2026d05063efb6d
      https://github.com/phpmyadmin/sql-parser/commit/518eb1b71d94ec3b135b90d1b2026d05063efb6d
  Author: Michal Čihař <michal at cihar.com>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/Lexer.php
    M src/Utils/Formatter.php
    M tests/data/lexer/lexComment.out
    M tests/data/lexer/lexNumber.out

  Log Message:
  -----------
  Merge pull request #148 from nijel/inline-comment-newline

Fixed inline comments parsing


Compare: https://github.com/phpmyadmin/sql-parser/compare/71792f4dc4ae...518eb1b71d94


More information about the Git mailing list