Improve parser/formatter coverage, add comment preservation and formatter tests #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improve parser/formatter coverage, add comment preservation and formatter tests
概要:
パーサ/lexer の拡張(Unicode識別子、コメント保持、TableHints、ASOF MATCH_CONDITION など)
formatter(index.html と sql-formatter.js)の整形改善とコピーUI追加
テスト拡充(パーサ/フォーマッタ)
変更点:
Parser/Lexer:
Unicode識別子・Unicodeエスケープの実解釈と妥当性検証
-- コメントの保持(先頭/SELECT行)
TableHints (/*+ ... */) をトークン化して保持
TableRef 修飾子反映、ASOF JOIN の MATCH_CONDITION 対応
BRACKET/BigQuery/プレフィックス文字列など識別子/文字列拡張
数値リテラルの種別判定強化
Formatter (index.html):
FROM/ORDER BY 改行・インデント改善
サブクエリの描画修正
SELECT コメント保持
出力コピー用アイコンボタン追加