Skip to content

Commit

Permalink
Update Changjie keywords to October 2024.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Nov 15, 2024
1 parent 56ede7f commit b5e879c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* Objective-C/C++, [Screenshots](https://github.com/zufuliu/notepad4/wiki/Screenshots#objective-cc)
* [C Standard Library](tools/lang/C.c), up to C2x.
* [C++ STL](tools/lang/CPP.cpp), up to C++20.
* [Cangjie (仓颉)](tools/lang/Cangjie.cj), up to June 2024.
* [Cangjie (仓颉)](tools/lang/Cangjie.cj), up to October 2024.
* [CSS Style Sheet](tools/lang/CSS.css), up to September 2024.
* [SCSS Style Sheet](tools/lang/SCSS.scss), up to Dart Sass 1.50.
* [Less Style Sheet](tools/lang/Less.less), up to Less 4.1.
Expand Down
7 changes: 4 additions & 3 deletions src/EditLexers/stlCangjie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

static KEYWORDLIST Keywords_Cangjie = {{
//++Autogenerated -- start of section automatically generated
"abstract as break case catch class const continue do else enum extend false finally for foreign func "
"if import in init interface is let macro main match mut open operator override package private prop protected public "
"quote redef return spawn static struct super synchronized this throw true try type unsafe var where while "
"abstract as break case catch class const continue do else enum extend false finally for foreign from func get "
"if import in init inout interface is let macro main match mut open operator override "
"package private prop protected public quote redef return sealed set spawn static struct super synchronized "
"this throw true try type unsafe var where while "

, // 1 types
"Bool Byte CPointer CString Float16 Float32 Float64 Int Int16 Int32 Int64 Int8 IntNative Nothing Rune This "
Expand Down
11 changes: 7 additions & 4 deletions tools/lang/Cangjie.cj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// 2024-06-21 https://developer.huawei.com/consumer/cn/cangjie
// 2024-10-24 0.53.13 https://cangjie-lang.cn/
// 2024-10-26 0.22.17 https://developer.huawei.com/consumer/cn/cangjie

//! keywords ===========================================================
// https://developer.huawei.com/consumer/cn/doc/openharmony-cangjie/keyword
abstract as
break
case catch class const continue
do
else enum extend
false finally for foreign func
if import in init interface is
false finally for from foreign func
if import in init inout interface is
let
macro main match mut
open operator override
Expand All @@ -21,6 +21,9 @@ unsafe
var
where while

// Contextual Keyword
get sealed set

//! types ===========================================================
Nothing This VArray
// std.core types
Expand Down

0 comments on commit b5e879c

Please sign in to comment.