From 2a5a46f3279f0d3bab9c60963d7ac9e873da6432 Mon Sep 17 00:00:00 2001 From: zufuliu Date: Thu, 3 Aug 2023 18:39:58 +0800 Subject: [PATCH] Update TypeScript keyword to TypeScript 5.2. --- readme.md | 6 +++--- src/EditLexers/stlTypeScript.c | 2 +- tools/lang/Nim.nim | 2 +- tools/lang/TypeScript.ts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index ded9a6312a..63699c4639 100644 --- a/readme.md +++ b/readme.md @@ -101,12 +101,12 @@ Latest development builds (artifacts in Release configuration for each compiler * [GitHub Flavored Markdown](https://github.github.com/gfm/) * [GitLab Flavored Markdown](https://docs.gitlab.com/ee/user/markdown.html) * [Pandoc’s Markdown](https://pandoc.org/MANUAL.html#pandocs-markdown) - * [Mathematica](tools/lang/Mathematica.nb) + * [Mathematica](tools/lang/Mathematica.nb) and [WolframScript](https://www.wolfram.com/wolframscript/) * MATLAB, [Screenshots](https://github.com/zufuliu/notepad2/wiki/Screenshots#matlab-octave) * Octave * Scilab * Gnuplot - * [Nim Script](tools/lang/Nim.nim), up to Nim 1.6. + * [Nim Script](tools/lang/Nim.nim), up to Nim 2.0. * [Nullsoft Scriptable Install System](tools/lang/NSIS.nsi), up to NSIS 3.09. * [OCaml](tools/lang/OCaml.ml), up to OCaml 5.0. * Pascal, Delphi @@ -135,7 +135,7 @@ Latest development builds (artifacts in Release configuration for each compiler * TCL, [Screenshots](https://github.com/zufuliu/notepad2/wiki/Screenshots#tcl) * [Texinfo](tools/lang/Texinfo.texi), up to Texinfo 7.0. * [TOML File](https://toml.io/) - * [TypeScript](tools/lang/TypeScript.ts), TypeScript 5.0. + * [TypeScript](tools/lang/TypeScript.ts), TypeScript 5.2. * Visual Basic, VB6, VB.NET * VBScript * [VHDL](tools/lang/VHDL.vhdl), up to VHDL 2019. diff --git a/src/EditLexers/stlTypeScript.c b/src/EditLexers/stlTypeScript.c index e65c312c54..a86579c215 100644 --- a/src/EditLexers/stlTypeScript.c +++ b/src/EditLexers/stlTypeScript.c @@ -7,7 +7,7 @@ static KEYWORDLIST Keywords_TS = {{ "debugger declare default delete do else enum extends false finally for function get global " "if implements in infer instanceof interface intrinsic is keyof let new null of out override " "package private protected public readonly return satisfies set static super switch this throw true try type typeof " -"undefined unique var while with yield " +"undefined unique using var while with yield " , // 1 types "any bigint boolean never number object string symbol unknown void " diff --git a/tools/lang/Nim.nim b/tools/lang/Nim.nim index 7e4eb67be2..7bd71ef85e 100644 --- a/tools/lang/Nim.nim +++ b/tools/lang/Nim.nim @@ -1,4 +1,4 @@ -# 1.6.12 https://nim-lang.org/ +# 2.0 https://nim-lang.org/ # https://github.com/nim-lang/Nim # https://nim-lang.org/docs/manual.html diff --git a/tools/lang/TypeScript.ts b/tools/lang/TypeScript.ts index bb31bfffb5..77b34f005b 100644 --- a/tools/lang/TypeScript.ts +++ b/tools/lang/TypeScript.ts @@ -1,4 +1,4 @@ -// 5.0 https://www.typescriptlang.org/docs/ +// 5.2 https://www.typescriptlang.org/docs/ // 1.8 https://github.com/microsoft/TypeScript/blob/main/doc/ //! keywords =========================================================== @@ -19,7 +19,7 @@ package private protected public readonly return satisfies set static super switch this throw true try type typeof -undefined unique +undefined unique using var while with yield