plum

#treesitter#compiler#wasm

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

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


a65c75bPeter John 2026-07-20T11:25:34+05:30
fix(tree-sitter-plum): document fn_argument_list/class_argument_list conflict rationale
tooling/tree-sitter-plum/grammar.js CHANGED
@@ -52,6 +52,9 @@ module.exports = grammar({
52
52
  ')',
53
53
  '}',
54
54
  ],
55
+ // Conflict arises at the empty-argument-list state (e.g. `Foo()`): the parser cannot
56
+ // distinguish fn_argument_list from class_argument_list until it sees content or ')'.
57
+ // Declaring the conflict at the argument-list level (not the call level) resolves this.
55
58
  conflicts: ($) => [[$.fn_argument_list, $.class_argument_list]],
56
59
  inline: ($) => [$.generic_type, $.generic],
57
60
  rules: {