Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #46 #47

Closed
wants to merge 1 commit into from
Closed

fix #46 #47

wants to merge 1 commit into from

Conversation

h-east
Copy link
Member

@h-east h-east commented May 10, 2017

How about this?

@mattn
Copy link
Member

mattn commented May 11, 2017

How about just add contains like below?

diff --git a/syntax/cpp.vim b/syntax/cpp.vim
index 5a478fb..495a335 100644
--- a/syntax/cpp.vim
+++ b/syntax/cpp.vim
@@ -48,7 +48,7 @@ endif
 if !exists("cpp_no_cpp14")
   syn case ignore
   syn match cppNumber		display "\<0b[01]\('\=[01]\+\)*\(u\=l\{0,2}\|ll\=u\)\>"
-  syn match cppNumber		display "\<[1-9]\('\=\d\+\)*\(u\=l\{0,2}\|ll\=u\)\>"
+  syn match cppNumber		display "\<[1-9]\('\=\d\+\)*\(u\=l\{0,2}\|ll\=u\)\>" contains=cFloat
   syn match cppNumber		display "\<0x\x\('\=\x\+\)*\(u\=l\{0,2}\|ll\=u\)\>"
   syn case match
 endif

@h-east
Copy link
Member Author

h-east commented May 11, 2017

@mattn Your solution is best for me:+1:

@originalsouth
Copy link

This solution works for me 👍

mattn added a commit that referenced this pull request May 11, 2017
@mattn
Copy link
Member

mattn commented Jun 13, 2017

closed by #48

@mattn mattn closed this Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants