From 802f478a1c682f6dcd3b5ad112a42bc3e3393db2 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 23 Sep 2020 15:55:20 -0700 Subject: [PATCH] Add binary literals. --- Python/Python.tmLanguage | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Python/Python.tmLanguage b/Python/Python.tmLanguage index 7509883..98f0087 100644 --- a/Python/Python.tmLanguage +++ b/Python/Python.tmLanguage @@ -49,6 +49,13 @@ comment.line.number-sign.python + + match + \b(0[Bb][01]+) + name + constant.numeric.integer.binary.python + + match \b(0[Xx]\h*)