From 5898983fc1c012b4ee3dd0edf0abd69e531831d4 Mon Sep 17 00:00:00 2001 From: Sam Mercer Date: Fri, 17 May 2024 17:00:53 +0100 Subject: [PATCH] Highlight numbers with uppercase base prefixes --- syntaxes/gleam.tmLanguage.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syntaxes/gleam.tmLanguage.json b/syntaxes/gleam.tmLanguage.json index 6080161..c5ab375 100644 --- a/syntaxes/gleam.tmLanguage.json +++ b/syntaxes/gleam.tmLanguage.json @@ -118,12 +118,12 @@ }, "binary_number": { "name": "constant.numeric.binary.gleam", - "match": "\\b0b(_?[01])+\\b", + "match": "\\b0[bB](_?[01])+\\b", "patterns": [] }, "octal_number": { "name": "constant.numeric.octal.gleam", - "match": "\\b0o(_?[0-7])+\\b", + "match": "\\b0[oO](_?[0-7])+\\b", "patterns": [] }, "decimal_number": { @@ -133,7 +133,7 @@ }, "hexadecimal_number": { "name": "constant.numeric.hexadecimal.gleam", - "match": "\\b0x(_?[[:xdigit:]])+\\b", + "match": "\\b0[xX](_?[[:xdigit:]])+\\b", "patterns": [] }, "boolean": {