plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


fa26fde — Peter John 2026-10-26T18:47:39+05:30
fix(editors): highlight value/extern in VS Code; complete value in LSP
plum-lsp/src/completion.rs CHANGED
@@ -25,7 +25,7 @@ use plum_core::ast;
25
25
  use tower_lsp::lsp_types::*;
26
26
 
27
27
  const KEYWORDS: &[&str] = &[
28
- "fun", "fun*", "yield", "crash", "??", "enum", "import", "module", "extern", "if", "else", "while", "for", "match",
28
+ "fun", "fun*", "yield", "crash", "??", "value", "enum", "import", "module", "extern", "if", "else", "while", "for", "match",
29
29
  "case", "when", "break", "continue", "return", "todo", "assert", "test", "self", "True",
30
30
  "False",
31
31
  ];
plum-tooling/vscode-plum/syntaxes/plum.tmLanguage.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "keywords": {
40
40
  "patterns": [
41
41
  {
42
- "match": "\\b(module|enum|fun\\*?|self|test)(?![A-Za-z0-9_])",
42
+ "match": "\\b(module|value|enum|fun\\*?|extern|self|test)(?![A-Za-z0-9_])",
43
43
  "name": "keyword.const.plum"
44
44
  },
45
45
  {