mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
Fix parsing decimals
A number literal is a float if it contains ".", not if it is divisible by 1. For example, 1.0 should be considered a float literal.
This commit is contained in:
parent
c69a12096c
commit
883a136103
8 changed files with 24 additions and 6 deletions
5
tests/samples/issue_119.blp
Normal file
5
tests/samples/issue_119.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Adjustment {
|
||||
value: bind 1.0 as <double>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue