Skip to content

Bobbin Godot Addon v0.3.0

Choose a tag to compare

@github-actions github-actions released this 26 Jan 22:17
· 7 commits to main since this release
Immutable release. Only release title and notes can be modified.

Full Changelog: godot-addon-v0.2.0...godot-addon-v0.3.0

New Features

Conditional Syntax Support

Full syntax highlighting and language server support for if/elseif/else blocks:

if gold >= 100
    You can afford the premium item!
elseif gold >= 50
    You can afford the standard item.
else
    You need more gold.

Expression Support Everywhere

  • Arithmetic operators: +, -, *, /, %
  • Comparison operators: ==, !=, <, <=, >, >=
  • Logical operators: and, or, not
  • Parentheses for grouping: (a + b) * c

Use expressions in variable assignments:

set total = price * quantity
temp discount = base_price - (base_price * 0.1)

And in string interpolations:

You have {gold} gold. That item costs {price * quantity} gold.
Your balance after purchase: {gold - price}

Enhanced Syntax Highlighting

  • Conditional keywords (if, elseif, else)
  • Logical operators (and, or, not)
  • Comparison and arithmetic operators
  • Improved expression highlighting inside {...} interpolations

Improved Diagnostics

The language server now provides better error messages for:

  • Invalid expressions
  • Type mismatches in conditions
  • Malformed conditional blocks

Bug Fixes

  • Fixed scanner issue with choices inside if blocks that have else clauses