Skip to content

Commit 20fe73c

Browse files
authored
Merge pull request vim-jp#48 from vim-jp/fix-float
contain cFloat into cppNumber
2 parents d3d3800 + 6621962 commit 20fe73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/cpp.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ endif
4848
if !exists("cpp_no_cpp14")
4949
syn case ignore
5050
syn match cppNumber display "\<0b[01]\('\=[01]\+\)*\(u\=l\{0,2}\|ll\=u\)\>"
51-
syn match cppNumber display "\<[1-9]\('\=\d\+\)*\(u\=l\{0,2}\|ll\=u\)\>"
51+
syn match cppNumber display "\<[1-9]\('\=\d\+\)*\(u\=l\{0,2}\|ll\=u\)\>" contains=cFloat
5252
syn match cppNumber display "\<0x\x\('\=\x\+\)*\(u\=l\{0,2}\|ll\=u\)\>"
5353
syn case match
5454
endif

0 commit comments

Comments
 (0)