From 5572bbc6cc4b28839cc2171e55ecd5b1f97cda13 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Wed, 25 Apr 2018 23:24:36 -0700 Subject: Document octal and binary integer literals in syntax. Also add a release notes snippet for it. --- docs/markdown/Syntax.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/markdown/Syntax.md') diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index 42002f4ee..5a6734ddf 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -64,6 +64,13 @@ Hexadecimal literals are supported since version 0.45.0: int_255 = 0xFF ``` +Octal and binary literals are supported since version 0.47.0: + +```meson +int_493 = 0o755 +int_1365 = 0b10101010101 +``` + Strings can be converted to a number like this: ```meson -- cgit v1.2.3