From d61dbba1509840333a93dcd6f86047602d963f61 Mon Sep 17 00:00:00 2001 From: Andy Frank Date: Fri, 3 Jul 2020 09:44:21 -0400 Subject: [PATCH] Add syntax support for binary literals using `0b1011` syntax Just lump this into the `hex` scope to simplify sytnax highlighting --- Fantom.sublime-syntax | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Fantom.sublime-syntax b/Fantom.sublime-syntax index 567bfa4..574c6e4 100644 --- a/Fantom.sublime-syntax +++ b/Fantom.sublime-syntax @@ -145,6 +145,11 @@ contexts: - scope: invalid.illegal.hex.fan match: 0x + - scope: constant.numeric.hex.fan + match: '\b0b[0-9A-Fa-f][_0-9A-Fa-f]*' + - scope: invalid.illegal.hex.fan + match: 0b + - scope: constant.numeric.escape.unicode.fan match: '\\u[0-9A-Fa-f]{4}' - scope: invalid.illegal.escape.unicode.fan