From d3d4814812ef4ad6392992ec9eafe2088d7c25b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 30 Jul 2015 09:54:11 -0400 Subject: [PATCH] misc/vim: highlight the new Int literals MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- misc/vim/syntax/nit.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/vim/syntax/nit.vim b/misc/vim/syntax/nit.vim index 9c3ede7..2930d81 100644 --- a/misc/vim/syntax/nit.vim +++ b/misc/vim/syntax/nit.vim @@ -36,8 +36,9 @@ syn match NITExprSubst "{\([^}]\|\n\)*}" contained syn match NITExprSubstLong "\\." contained syn match NITExprSubstLong "{*\zs{{{\([^}]\|\n\)*}}}\ze}*" contained -" Numbers and ASCII Codes -syn match NITNumber "\<\(\d\+\.\d\+\|\d\+\)\>" +" Numbers +syn match NITNumber "\<\([0-9_]\+\|0[bB][01_]\+\|0[oO][0-7_]\+\|0[xX][0-9a-fA-F_]\+\)\([iu]\(8\|16\|32\)\)\?\>" +syn match NITNumber "\<[0-9_]\+\.[0-9_]\+\>" " Identifiers syn match NITClass "\<\u\w*" -- 1.7.9.5