SQL query formatter breaks on '--' comment

Description

Example:
SELECT – comment

  • FROM DUAL;

is invalidly formatted as:
SELECT
– comment *
FROM
DUAL;

I've submitted a pull request (#359) with a fix:
https://github.com/hibernate/hibernate-orm/pull/359

Environment

4.1.4

Assignee

Unassigned

Reporter

Barak Shilo

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure