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

Objective-C++ headers are not recognized as such #44

Closed
GoogleCodeExporter opened this issue Aug 18, 2015 · 1 comment
Closed

Objective-C++ headers are not recognized as such #44

GoogleCodeExporter opened this issue Aug 18, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Edit a .h file that is for Objective-C++ (that is, it has C++ classes and 
Obj-C classes both).

What is the expected output? What do you see instead?
":set ft?" should show "objcpp", but instead shows "objc".

What version of the product are you using? On what operating system?
Vim 7.3 (MacVim) on Mac OS X 10.7, but this is true on all systems because of 
runtime/filetype.vim.

Please provide any additional information below.

A patch to fix this by reusing g:c_syntax_for_h is attached.

Original issue reported on code.google.com by halosta...@gmail.com on 30 Dec 2011 at 2:49

Attachments:

@GoogleCodeExporter
Copy link
Author

Patch is included.

Original comment by brammool...@gmail.com on 28 Mar 2012 at 3:55

  • Changed state: Fixed

2072 added a commit to 2072/vim that referenced this issue Mar 27, 2017
- Multi-line indenting could get wrong whenever started on a commented line. (issue vim#44)
- Prevent multi-line strings declaration from breaking indentation. (issue 2072/PHP-Indenting-for-VIm#47)
- Fix some multi-line block declaration interferences (issue 2072/PHP-Indenting-for-VIm#49)
- Fix Grouped 'use' declaration (issue 2072/PHP-Indenting-for-VIm#48)
- Fix array index issue with function call (issue 2072/PHP-Indenting-for-VIm#54)
- Add anonymous class declaration support (issue 2072/PHP-Indenting-for-VIm#55)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant