14 Commits

Author SHA1 Message Date
Nick Treleaven
ef3d5b8417 Use 'comment' named style for D nested comments
This also fixes a wrong style key name for filetypes.d.
(Nested comments aren't necessarily doc-comments).
2011-12-16 21:02:39 +00:00
Colomban Wendling
77a484e990 Don't leave some fields initialization to implicit initialization
Although this doesn't change anything in practice, it started to be a
nightmare trying to deal with compilers warnings about "missing"
initializers, which are generally good but not in that file.
2011-11-23 02:22:07 +01:00
Colomban Wendling
102ce1d205 Prevent GCC to warn about missing initializers in highlightingmappings.h
Use a GCC pragma to disable -Wmissing-field-initializers in this file.
This works with both GCC and CLang, and should be harmless on other
compilers since unknown pragmas are supposed to be ignored.
2011-11-21 16:12:22 +01:00
Colomban Wendling
2e56a84b2a Fix highlightingmappings documentation not to reference a removed macro 2011-11-14 19:54:28 +01:00
Nick Treleaven
cca258ddb7 Workaround gcc function address comparison warning
E.g.
highlighting.c:950:3: error: the address of
'highlighting_styles_ADA' will always evaluate as 'true'

Note: This commit also contains some trailing whitespace removal.
2011-11-14 18:40:20 +00:00
Colomban Wendling
1436bd6ee2 Quote C89 draft rather than C99 one 2011-11-14 17:09:38 +01:00
Colomban Wendling
8942bc810b Add Objective-C support
Based on a patch from Elias Pschernig, thanks.
Parser was taken from upstream CTags.

Closes patch#3325139.
2011-11-13 01:05:24 +01:00
Colomban Wendling
d8d6f2908e Remove an unnecessary macro indirection 2011-11-11 20:02:59 +01:00
Colomban Wendling
ad1bc032ab Port XML, HTML and PHP filetypes to new automated setup
This changes these three filetypes to "normal" ones rather than HTML
and PHP being hard-coded together with XML.  Now the definitions
simply references each other and the filetypes.* files simply inherits
styling and keywords from the appropriate filetype.

This also makes these filetypes have their own Python styles like they
had their own JavaScript ones, rather than trickily reference the
Python ones.
2011-11-09 22:50:26 +01:00
Colomban Wendling
55edeb876d Fix a DocBook style mapping 2011-11-09 17:32:21 +01:00
Colomban Wendling
21e0c037da Port DocBook filetype to new automated setup 2011-11-09 17:14:48 +01:00
Colomban Wendling
69769e0edc Add support for EOLFILLED style flag 2011-11-09 17:14:05 +01:00
Colomban Wendling
493b5284f7 Remove some unnecessary initializers
Leave some initialization to the implicit C initialization rules to
have less unnecessary items in initializer lists
2011-11-09 16:58:45 +01:00
Colomban Wendling
ab2663e9ae Refactor highlighting setup 2011-11-08 22:50:53 +01:00