Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
任务概述
完善 Mogan 中的 SQL 语言语法高亮特性,扩展关键字、窗口函数、JSON操作符与转义特性,并补充纯逻辑单元测试、集成测试及涵盖各类 SQL 语句的测试文档。
主要变动
(extra_chars "_"),支持如CURRENT_TIMESTAMP、AUTO_INCREMENT等带下划线关键字的高亮识别;::(类型转换)、->与->>(JSON 解析操作符);(double_escape "'"),支持标准 SQL 单引号转义;--与#(MySQL 单行注释风格)。TeXmacs/progs/prog/tests/sql-lang-test.scm(覆盖关键字、操作符、字面量与缩进辅助函数);TeXmacs/tests/6104.scm;TeXmacs/tests/tmu/6104.tmu(涵盖 DDL、DML、DQL、TCL、DCL、窗口函数、CTE递归、JSON、注释等)。