From 7826ca30c4db16f277a32565262fbbc61d093650 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 26 Jul 2018 14:18:21 -0700 Subject: [PATCH] Added hex literals. --- syntax/nomsu.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syntax/nomsu.vim b/syntax/nomsu.vim index 4bbc3a8..1734f58 100644 --- a/syntax/nomsu.vim +++ b/syntax/nomsu.vim @@ -71,8 +71,7 @@ syn match nomsuOpWord ;\v[`$~!@^&*_+=|<>?'/-]+; hi def link nomsuOpWord Function hi nomsuOpWord ctermfg=LightYellow -syn match nomsuNumber /-\?\d\+\(\.\(\d\+\)\?\)\?/ nextgroup=nomsuIndex -syn match nomsuNumber /-\?\.\d\+/ nextgroup=nomsuIndex +syn match nomsuNumber /-\?\(0x\x\+\|\d\+\(\.\(\d\+\)\?\)\?\|\.\d\+\)/ nextgroup=nomsuIndex hi def link nomsuNumber Number syn match nomsuDotDot /\.\./