Skip to content

Commit

Permalink
Support for syntax highlighting of bitvector constants in vim.
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsu authored and delcypher committed Feb 7, 2017
1 parent ecd4351 commit a6d2f95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Util/vim/syntax/boogie.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
" Last Change: Fri Mar 14 13:47:43 WEST 2008
" Filenames: *.bpl

" Comments:
" Make sure to create a file name .vim/ftdetect/bpl.vim containing this line:
" au BufRead,BufNewFile *.bpl set filetype=boogie

if exists("b:current_syntax")
finish
endif
Expand Down Expand Up @@ -61,6 +65,7 @@ syn match bplNumber "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>"
syn match bplNumber "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
syn match bplNumber "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>"
syn match bplNumber "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>"
syn match bplNumber "\<\d\+bv\d\+\>"

" The default highlighting.
hi def link bplType Type
Expand Down

0 comments on commit a6d2f95

Please sign in to comment.