Skip to content

Commit

Permalink
feat(notepadplusplus,vscode): add enum support, update npp
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed May 27, 2024
1 parent 0d8d0cd commit bdec6f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions editor/notepadplusplus/yaksha.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">while def import continue break if elif else class struct return ccode pass defer del as for in macros</Keywords>
<Keywords name="Keywords1">while def import continue break if elif else class struct enum return ccode pass defer del as for in macros</Keywords>
<Keywords name="Keywords2">@nativedefine @varargs @onstack @nativemacro @native</Keywords>
<Keywords name="Keywords3">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</Keywords>
<Keywords name="Keywords4">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</Keywords>
<Keywords name="Keywords3">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</Keywords>
<Keywords name="Keywords4">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</Keywords>
<Keywords name="Keywords5">True False None</Keywords>
<Keywords name="Keywords6">main</Keywords>
<Keywords name="Keywords7">runtimefeature</Keywords>
<Keywords name="Keywords7">runtimefeature directive</Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00&quot;&quot;&quot; 01\ 02&quot;&quot;&quot; 03 04 05 06&quot; 07\ 08&quot; 09 10 11 12# 13 14((EOL)) 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
Expand Down
4 changes: 2 additions & 2 deletions editor/vscode/syntaxes/yaksha.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit bdec6f7

Please sign in to comment.