ifdef.vim : #ifdef highlighting in c/c++
script karma |
Rating 19/10,
Downloaded by 542 |
created by |
Michael Geddes |
|
script type |
syntax |
|
description |
Provides highlighting for #ifdef / #ifndef #else #endif blocks, with the ability to mark a symbol as defined or undefined.
Handles nesting of ifdefs as well, but does not handle #if defined().
call Undefine('\k\+') will mark all symbols as undefined
call Define('__WIN32__') will mark __WIN32__ as defined
|
|
install details |
Source the file after cpp.vim or c.vim.
Then source your file with your defines or 'undefines' in it. |
|
script versions (upload new version)
Click on the package to download.
ifdef.vim |
1.3 |
18-Dec-2002 |
6.0 |
Michael Geddes |
Fix up some group names so colours get picked up. |
ifdef.vim |
1.2 |
17-Dec-2002 |
6.0 |
Michael Geddes |
- Fix some errors in the tidy-up with group names
- Make it a propper syntax file - to be added onto c.vim / cpp.vim
- Use standard highlight groups - PreProc, Comment and Debug
- Use 'default' highlight syntax.
<br></td>
</tr>
<tr>
<td class="rowodd" valign="top" nowrap><a href="script_download.php?src_id=1558">ifdef.vim</a></td>
<td class="rowodd" valign="top" nowrap><b>1.1</b></td>
<td class="rowodd" valign="top" nowrap><i>17-Dec-2002</i></td>
<td class="rowodd" valign="top" nowrap>6.0</td>
<td class="rowodd" valign="top"><i><a href="/profile.php?user_id=14">Michael Geddes</a></i></td>
<td class="rowodd" valign="top" width="2000">Tidy-up
<br>Make sure CIfDef gets called.
<br>*Turns of #if 0 propperly - this script handles it!
<br>prefix 'ifdef' to all groups
<br>Use some c 'clusters' to get rid of some inhouse code
<br>
<br></td>
</tr>
<tr>
<td class="roweven" valign="top" nowrap><a href="script_download.php?src_id=8">ifdef.vim</a></td>
<td class="roweven" valign="top" nowrap><b>1.0</b></td>
<td class="roweven" valign="top" nowrap><i>29-May-2001</i></td>
<td class="roweven" valign="top" nowrap>6.0</td>
<td class="roweven" valign="top"><i><a href="/profile.php?user_id=14">Michael Geddes</a></i></td>
<td class="roweven" valign="top" width="2000">Initial upload</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END OF THE PAGE BODY: BETWEEN HEADER AND FOOTER -->
<!-- INCLUDE THE PAGE FOOTER -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
<tr><td colspan="4" bgcolor="#000000"><img src="/images/spacer.gif" height="2" width="1" alt=""></td></tr>
<tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
<tr>
<td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
<td align="left" valign="top"><small>
If you have questions or remarks about this site, visit the
<a href="http://vimonline.sf.net">vimonline development</a> pages.
Please use this site responsibly.
<br>
Questions about <a href="https://www.vim8.org/about.php">Vim</a> should go
to [email protected] after searching
<a href="http://groups.yahoo.com/group/vim">the archive</a>.
Help Bram <a href="http://iccf-holland.org/">help Uganda</a>.
</small>
</td>
<td align="right" valign="top">
<a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=8&type=1" width="88" height="31" border="0" alt="SourceForge Logo"></a>
</td>
<td><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
</tr>
<tr><td colspan="4"><img src="/images/spacer.gif" width="1" height="5" alt=""></td></tr>
</table>
</body>
</html> | |