Hi
Binary numbers introduced in vim-7.4.1027 are not correctly
highlighted in vim script using the runtime/syntax/vim.vim
syntax file.
For example, I would expect 0b1001 to be highlighted as
vimNumber when typing:
let foo=0b1001
Attach patch fixes it.
Regards
Dominique
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index 4e9ce1b..c7909b6 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -163,7 +163,7 @@ endif
" =======
syn match vimNumber "\<\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand
syn match vimNumber "-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand
-syn match vimNumber "\<0[xX]\x\+"
+syn match vimNumber "\<0\%([xX]\x\+\|[bB][01]\+\)"
syn match vimNumber "\%(^\|[^a-zA-Z]\)\zs#\x\{6}"
" All vimCommands are contained by vimIsCommands. {{{2