From: Alexis Laferrière Date: Thu, 30 Jul 2015 13:54:11 +0000 (-0400) Subject: misc/vim: highlight the new Int literals X-Git-Tag: v0.7.7~1^2 X-Git-Url: http://nitlanguage.org misc/vim: highlight the new Int literals Signed-off-by: Alexis Laferrière --- 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*"