Use C++ highlighting for C headers
parent
9825a62907
commit
4d2bae8c72
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<language id="c" _name="C" version="2.0" _section="Sources"
|
||||
mimetypes="text/x-c;text/x-chdr;text/x-csrc">
|
||||
mimetypes="text/x-c;text/x-csrc">
|
||||
<styles>
|
||||
<style id="comment" _name="Comment" map-to="def:comment"/>
|
||||
<style id="error" _name="Error" map-to="def:error"/>
|
||||
|
@ -98,7 +98,7 @@
|
|||
<context id="preprocessor" style-ref="preprocessor" end-at-line-end="true">
|
||||
<start extended="true">
|
||||
\%{preproc-start}
|
||||
(define|undef|error|pragma|if(n?def)?|else|elif|endif|line)
|
||||
(define|undef|error|pragma|if(n?def)?|else|elif|endif|line|warning)
|
||||
\b
|
||||
</start>
|
||||
<include>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<language id="cpp" _name="C++" version="2.0" _section="Sources"
|
||||
mimetypes="text/x-c++;text/x-cpp;text/x-c-header;text/x-c++src;text/x-c++hdr">
|
||||
mimetypes="text/x-c++;text/x-cpp;text/x-chdr;text/x-c++src;text/x-c++hdr">
|
||||
<styles>
|
||||
<style id="common-defines" _name="Common defines" map-to="c:common-defines"/>
|
||||
</styles>
|
||||
|
|
Loading…
Reference in New Issue