diff --git a/editor/notepadplusplus/yaksha.xml b/editor/notepadplusplus/yaksha.xml
index c5e6eb88..7cdd62e1 100644
--- a/editor/notepadplusplus/yaksha.xml
+++ b/editor/notepadplusplus/yaksha.xml
@@ -24,13 +24,13 @@
- while def import continue break if elif else class struct return ccode pass defer del as for in macros
+ while def import continue break if elif else class struct enum return ccode pass defer del as for in macros
@nativedefine @varargs @onstack @nativemacro @native
- int float i8 i16 i32 i64 u8 u16 u32 u64 float f32 f64 Array Function In Const AnyPtr Out SMEntry MEntry str bool Ptr Tuple AnyPtrToConst
- print println len arrput arrpop arrnew array getref unref charat shnew shput shget shgeti hmnew hmput hmget hmgeti cast qsort iif foreach countif filter map binarydata arrsetlen arrsetcap
+ int float i8 i16 i32 i64 u8 u16 u32 u64 float f32 f64 Array Function In Const AnyPtr Out SMEntry MEntry str bool Ptr Tuple AnyPtrToConst FixedArr
+ print println len arrput arrpop arrnew array getref unref charat shnew shput shget shgeti hmnew hmput hmget hmgeti cast qsort iif foreach countif filter map binarydata arrsetlen arrsetcap fixedarr
True False None
main
- runtimefeature
+ runtimefeature directive
00""" 01\ 02""" 03 04 05 06" 07\ 08" 09 10 11 12# 13 14((EOL)) 15 16 17 18 19 20 21 22 23
diff --git a/editor/vscode/syntaxes/yaksha.json b/editor/vscode/syntaxes/yaksha.json
index f2018736..d20e6749 100644
--- a/editor/vscode/syntaxes/yaksha.json
+++ b/editor/vscode/syntaxes/yaksha.json
@@ -49,7 +49,7 @@
},
{
"name": "keyword.language.yaksha",
- "match": "\\b(while|def|import|continue|break|if|elif|else|class|struct|return|pass|as|for|in|macros)\\b"
+ "match": "\\b(while|def|import|continue|break|if|elif|else|class|struct|enum|return|pass|as|for|in|macros)\\b"
},
{
"name": "invalid.spaces.yaksha",
@@ -80,7 +80,7 @@
"match": "\\.|\\+|\\-|\\*|\\\/|\\:|\\[|\\]|\\(|\\)|,|>|<|<\\=|>\\=|\\=\\=|\\=|\\bnot\\b|\\bor\\b|\\band\\b|!\\=|\\->|\\{|\\}|!"
},
{
- "match": "^(class|struct)\\s+([a-zA-Z_][a-zA-Z0-9_]+)\\s*",
+ "match": "^(class|struct|enum)\\s+([a-zA-Z_][a-zA-Z0-9_]+)\\s*",
"captures": {
"1": {
"name": "keyword.language.yaksha"