Skip to content

Commit 9ec899c

Browse files
authored
Merge pull request #191 from DTStack/next_merge_main
Next merge main
2 parents 6d0d6c2 + 991bd2d commit 9ec899c

File tree

11 files changed

+83
-44
lines changed

11 files changed

+83
-44
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [0.15.1](https://github.com/DTStack/monaco-sql-languages/compare/v0.15.0...v0.15.1) (2025-06-06)
6+
7+
8+
### Bug Fixes
9+
10+
* [#166](https://github.com/DTStack/monaco-sql-languages/issues/166) upgrade dt-sql-parser version ([#183](https://github.com/DTStack/monaco-sql-languages/issues/183)) ([fea3c3c](https://github.com/DTStack/monaco-sql-languages/commit/fea3c3c79682eed760dd7c00a4a5b830a60d9565))
11+
12+
## [0.15.0](https://github.com/DTStack/monaco-sql-languages/compare/v0.14.0...v0.15.0) (2025-05-16)
13+
14+
15+
### Features
16+
17+
* **sqlParser:** upgrade dt-sql-parser@4.3.0 ([58a4304](https://github.com/DTStack/monaco-sql-languages/commit/58a430403d2f3a97e91c500e14d9fd3f4be7427c))
18+
19+
## [0.14.0](https://github.com/DTStack/monaco-sql-languages/compare/v0.13.1...v0.14.0) (2025-05-09)
20+
21+
22+
### Features
23+
24+
* **dependency:** upgrade dt-sql-parser@4.2.0 ([6d0d6c2](https://github.com/DTStack/monaco-sql-languages/commit/6d0d6c26c80a31325dd8c400b43ab331dab9ac95))
25+
* support built-in sql snippets ([#154](https://github.com/DTStack/monaco-sql-languages/issues/154)) ([a5d68bb](https://github.com/DTStack/monaco-sql-languages/commit/a5d68bbb32d219715d4caf6abcb9b98cc754b861))
26+
27+
28+
### Bug Fixes
29+
30+
* **scripts:** resolve configuration conflicts ([76d728c](https://github.com/DTStack/monaco-sql-languages/commit/76d728ce75c75dea0e0eaf69b2b9bba44c644952))
31+
32+
### [0.13.1](https://github.com/DTStack/monaco-sql-languages/compare/v0.13.0...v0.13.1) (2025-02-17)
33+
34+
35+
### Features
36+
37+
* [#167](https://github.com/DTStack/monaco-sql-languages/issues/167) support dt highlight style ([#168](https://github.com/DTStack/monaco-sql-languages/issues/168)) ([7beb537](https://github.com/DTStack/monaco-sql-languages/commit/7beb5373a40317a7ecd18a9cc66f5f133e27345b))
38+
* update dt-sql-parser's version ([#174](https://github.com/DTStack/monaco-sql-languages/issues/174)) ([159df20](https://github.com/DTStack/monaco-sql-languages/commit/159df20946198d549705afb61cbbdc7ef72e7d88))
39+
540
## [0.13.0](https://github.com/DTStack/monaco-sql-languages/compare/v0.12.1...v0.13.0) (2025-02-13)
641

742

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monaco-sql-languages",
3-
"version": "0.13.0",
3+
"version": "0.15.1",
44
"description": "SQL languages for the Monaco Editor, based on monaco-languages.",
55
"scripts": {
66
"prepublishOnly": "npm run build",
@@ -66,9 +66,6 @@
6666
"simple-git-hooks": {
6767
"pre-commit": "npx pretty-quick --staged"
6868
},
69-
"dependencies": {
70-
"dt-sql-parser": "4.2.0"
71-
},
7269
"peerDependencies": {
7370
"monaco-editor": ">=0.31.0"
7471
},
@@ -85,5 +82,8 @@
8582
"*": [
8683
"prettier --write --ignore-unknown"
8784
]
85+
},
86+
"dependencies": {
87+
"dt-sql-parser": "4.3.1"
8888
}
8989
}

pnpm-lock.yaml

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/languages/flink/flink.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,14 @@ export const language = <languages.IMonarchLanguage>{
489489
{ include: '@comments' },
490490
{ include: '@whitespace' },
491491
{ include: '@pseudoColumns' },
492+
{ include: '@customParams' },
492493
{ include: '@numbers' },
493494
{ include: '@strings' },
494495
{ include: '@complexIdentifiers' },
495496
{ include: '@scopes' },
496497
{ include: '@complexDataTypes' },
497498
{ include: '@complexFunctions' },
498-
[/[;,.]/, TokenClassConsts.DELIMITER],
499+
[/[:;,.]/, TokenClassConsts.DELIMITER],
499500
[/[\(\)\[\]\{\}]/, '@brackets'],
500501
[
501502
/[\w@#$]+/,
@@ -535,6 +536,10 @@ export const language = <languages.IMonarchLanguage>{
535536
}
536537
]
537538
],
539+
customParams: [
540+
[/\${[A-Za-z0-9._-]*}/, TokenClassConsts.VARIABLE],
541+
[/\@\@{[A-Za-z0-9._-]*}/, TokenClassConsts.VARIABLE]
542+
],
538543
numbers: [
539544
[/0[xX][0-9a-fA-F]*/, TokenClassConsts.NUMBER_HEX],
540545
[/[$][+-]*\d*(\.\d*)?/, TokenClassConsts.NUMBER],

src/languages/hive/hive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ export const language = <languages.IMonarchLanguage>{
515515
{ include: '@complexIdentifiers' },
516516
{ include: '@scopes' },
517517
{ include: '@complexDataTypes' },
518-
[/[;,.]/, TokenClassConsts.DELIMITER],
518+
[/[:;,.]/, TokenClassConsts.DELIMITER],
519519
[/[\(\)\[\]\{\}]/, '@brackets'],
520520
[
521521
/[\w@#$]+/,

src/languages/impala/impala.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export const language = <languages.IMonarchLanguage>{
474474
{ include: '@scopes' },
475475
{ include: '@complexDataTypes' },
476476
{ include: '@complexOperators' },
477-
[/[;,.]/, TokenClassConsts.DELIMITER],
477+
[/[:;,.]/, TokenClassConsts.DELIMITER],
478478
[/[\(\)\[\]\{\}]/, '@brackets'],
479479
[
480480
/[\w@#$]+/,

src/languages/mysql/mysql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ export const language = <languages.IMonarchLanguage>{
911911
{ include: '@complexIdentifiers' },
912912
{ include: '@scopes' },
913913
{ include: '@complexOperators' },
914-
[/[;,.]/, TokenClassConsts.DELIMITER],
914+
[/[:;,.]/, TokenClassConsts.DELIMITER],
915915
[/[\(\)\[\]\{\}]/, '@brackets'],
916916
[
917917
/[\w@]+/,

src/languages/pgsql/pgsql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ export const language = <languages.IMonarchLanguage>{
980980
{ include: '@complexIdentifiers' },
981981
{ include: '@scopes' },
982982
{ include: '@complexDataTypes' },
983-
[/[;,.]/, TokenClassConsts.DELIMITER],
983+
[/[:;,.]/, TokenClassConsts.DELIMITER],
984984
[/[\(\)\[\]\{\}]/, '@brackets'],
985985
[
986986
/[\w@#$]+/,

src/languages/spark/spark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export const language = <languages.IMonarchLanguage>{
699699
{ include: '@complexIdentifiers' },
700700
{ include: '@scopes' },
701701
{ include: '@complexDataTypes' },
702-
[/[;,.]/, TokenClassConsts.DELIMITER],
702+
[/[:;,.]/, TokenClassConsts.DELIMITER],
703703
[/[\(\)\[\]\{\}]/, '@brackets'],
704704
[
705705
/[\w@#$]+/,

src/languages/trino/trino.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ export const language = <languages.IMonarchLanguage>{
636636
{ include: '@complexIdentifiers' },
637637
{ include: '@scopes' },
638638
{ include: '@complexDataTypes' },
639-
[/[;,.]/, TokenClassConsts.DELIMITER],
639+
[/[:;,.]/, TokenClassConsts.DELIMITER],
640640
[/[\(\)\[\]\{\}]/, '@brackets'],
641641
[
642642
/[\w@$-]+/, // https://trino.io/docs/current/language/reserved.html#language-identifiers

0 commit comments

Comments
 (0)