| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- |
| 4 |
|
| 5 |
GNU M4 syntax highlightning. |
| 6 |
Corresponds to GNU M4 version 1.4.16. |
| 7 |
|
| 8 |
For KatePart (Kate, KWrite etc) copy this file to |
| 9 |
~/.kde/share/apps/katepart/syntax/ |
| 10 |
|
| 11 |
For Qt Creator copy this file to |
| 12 |
~/.config/Nokia/qtcreator/generic-highlighter/ |
| 13 |
|
| 14 |
|
| 15 |
Copyright (c) 2011, Cybernetica AS ( http://www.cyber.ee/ ) |
| 16 |
All rights reserved. |
| 17 |
|
| 18 |
Redistribution and use in source and binary forms, with or without |
| 19 |
modification, are permitted provided that the following conditions are met: |
| 20 |
* Redistributions of source code must retain the above copyright |
| 21 |
notice, this list of conditions and the following disclaimer. |
| 22 |
* Redistributions in binary form must reproduce the above copyright |
| 23 |
notice, this list of conditions and the following disclaimer in the |
| 24 |
documentation and/or other materials provided with the distribution. |
| 25 |
* Neither the name of Cybernetica AS nor the names of its contributors |
| 26 |
may be used to endorse or promote products derived from this software |
| 27 |
without specific prior written permission. |
| 28 |
|
| 29 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 30 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 31 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 32 |
DISCLAIMED. IN NO EVENT SHALL Cybernetica AS BE LIABLE FOR ANY |
| 33 |
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 34 |
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 35 |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 36 |
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 37 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 38 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 39 |
|
| 40 |
--> |
| 41 |
<language name="GNU M4" version="5" section="Sources" kateversion="5.0" extensions="*.m4;" author="Jaak Ristioja" license="New BSD License"> |
| 42 |
<highlighting> |
| 43 |
<list name="optbuiltins"> |
| 44 |
<item>__gnu__</item> |
| 45 |
<item>__os2__</item> |
| 46 |
<item>os2</item> |
| 47 |
<item>__unix__</item> |
| 48 |
<item>unix</item> |
| 49 |
<item>__windows__</item> |
| 50 |
<item>windows</item> |
| 51 |
</list> |
| 52 |
<list name="m4_optbuiltins"> |
| 53 |
<item>m4___gnu__</item> |
| 54 |
<item>m4___os2__</item> |
| 55 |
<item>m4_os2</item> |
| 56 |
<item>m4___unix__</item> |
| 57 |
<item>m4_unix</item> |
| 58 |
<item>m4___windows__</item> |
| 59 |
<item>m4_windows</item> |
| 60 |
</list> |
| 61 |
<list name="builtins"> |
| 62 |
<item>__file__</item> |
| 63 |
<item>__line__</item> |
| 64 |
<item>__program__</item> |
| 65 |
<item>builtin</item> |
| 66 |
<item>changecom</item> |
| 67 |
<item>changequote</item> |
| 68 |
<item>changeword</item> |
| 69 |
<item>debugfile</item> |
| 70 |
<item>debugmode</item> |
| 71 |
<item>decr</item> |
| 72 |
<item>define</item> |
| 73 |
<item>defn</item> |
| 74 |
<item>divert</item> |
| 75 |
<item>divnum</item> |
| 76 |
<item>dnl</item> |
| 77 |
<item>dumpdef</item> |
| 78 |
<item>errprint</item> |
| 79 |
<item>esyscmd</item> |
| 80 |
<item>eval</item> |
| 81 |
<item>format</item> |
| 82 |
<item>ifdef</item> |
| 83 |
<item>ifelse</item> |
| 84 |
<item>include</item> |
| 85 |
<item>incr</item> |
| 86 |
<item>index</item> |
| 87 |
<item>indir</item> |
| 88 |
<item>len</item> |
| 89 |
<item>m4exit</item> |
| 90 |
<item>m4wrap</item> |
| 91 |
<item>maketemp</item> |
| 92 |
<item>mkstemp</item> |
| 93 |
<item>patsubst</item> |
| 94 |
<item>popdef</item> |
| 95 |
<item>pushdef</item> |
| 96 |
<item>regexp</item> |
| 97 |
<item>shift</item> |
| 98 |
<item>sinclude</item> |
| 99 |
<item>substr</item> |
| 100 |
<item>syscmd</item> |
| 101 |
<item>sysval</item> |
| 102 |
<item>traceon</item> |
| 103 |
<item>traceoff</item> |
| 104 |
<item>translit</item> |
| 105 |
<item>undefine</item> |
| 106 |
<item>undivert</item> |
| 107 |
</list> |
| 108 |
<list name="m4_builtins"> |
| 109 |
<item>m4___file__</item> |
| 110 |
<item>m4___line__</item> |
| 111 |
<item>m4___program__</item> |
| 112 |
<item>m4_builtin</item> |
| 113 |
<item>m4_changecom</item> |
| 114 |
<item>m4_changequote</item> |
| 115 |
<item>m4_changeword</item> |
| 116 |
<item>m4_debugfile</item> |
| 117 |
<item>m4_debugmode</item> |
| 118 |
<item>m4_decr</item> |
| 119 |
<item>m4_define</item> |
| 120 |
<item>m4_defn</item> |
| 121 |
<item>m4_divert</item> |
| 122 |
<item>m4_divnum</item> |
| 123 |
<item>m4_dnl</item> |
| 124 |
<item>m4_dumpdef</item> |
| 125 |
<item>m4_errprint</item> |
| 126 |
<item>m4_esyscmd</item> |
| 127 |
<item>m4_eval</item> |
| 128 |
<item>m4_format</item> |
| 129 |
<item>m4_ifdef</item> |
| 130 |
<item>m4_ifelse</item> |
| 131 |
<item>m4_include</item> |
| 132 |
<item>m4_incr</item> |
| 133 |
<item>m4_index</item> |
| 134 |
<item>m4_indir</item> |
| 135 |
<item>m4_len</item> |
| 136 |
<item>m4_m4exit</item> |
| 137 |
<item>m4_m4wrap</item> |
| 138 |
<item>m4_maketemp</item> |
| 139 |
<item>m4_mkstemp</item> |
| 140 |
<item>m4_patsubst</item> |
| 141 |
<item>m4_popdef</item> |
| 142 |
<item>m4_pushdef</item> |
| 143 |
<item>m4_regexp</item> |
| 144 |
<item>m4_shift</item> |
| 145 |
<item>m4_sinclude</item> |
| 146 |
<item>m4_substr</item> |
| 147 |
<item>m4_syscmd</item> |
| 148 |
<item>m4_sysval</item> |
| 149 |
<item>m4_traceon</item> |
| 150 |
<item>m4_traceoff</item> |
| 151 |
<item>m4_translit</item> |
| 152 |
<item>m4_undefine</item> |
| 153 |
<item>m4_undivert</item> |
| 154 |
</list> |
| 155 |
<contexts> |
| 156 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> |
| 157 |
<keyword attribute="Builtins" String="builtins" context="#stay"/> |
| 158 |
<keyword attribute="Builtins (prefixed with m4_)" String="m4_builtins" context="#stay"/> |
| 159 |
<keyword attribute="Optional builtins" String="optbuiltins" context="#stay"/> |
| 160 |
<keyword attribute="Optional builtins (prefixed with m4_)" String="m4_optbuiltins" context="#stay"/> |
| 161 |
<RegExpr attribute="Normal Text" String="[a-zA-Z_]\w+" context="#stay"/> |
| 162 |
<RegExpr attribute="Special arguments to macros" String="\$([1-9]\d*|0|\#|\*|\@|\{([1-9]\d*|0)\})" context="#stay"/> |
| 163 |
<RegExpr attribute="Int" String="([1-9]\d*|0|0x[0-9abcdefABCDEF]+)" context="#stay"/> |
| 164 |
<DetectChar attribute="Comment" char="#" context="Comment"/> |
| 165 |
<DetectChar attribute="Commas" char="," context="#stay"/> |
| 166 |
<DetectChar attribute="Operators" char="(" context="inparenthesis" beginRegion="parenthesis"/> |
| 167 |
<DetectChar attribute="Operators" char=")" context="#pop" endRegion="parenthesis"/> |
| 168 |
<AnyChar attribute="Operators" String="+*/%|=!<>^&~-" context="#stay"/> |
| 169 |
</context> |
| 170 |
<context name="inparenthesis" attribute="Normal Text" lineEndContext="#stay" noIndentationBasedFolding="true"> |
| 171 |
<IncludeRules context="Normal Text" /> |
| 172 |
</context> |
| 173 |
<context name="Comment" attribute="Comment" lineEndContext="#pop"> |
| 174 |
<DetectSpaces /> |
| 175 |
<IncludeRules context="##Comments" /> |
| 176 |
</context> |
| 177 |
</contexts> |
| 178 |
<itemDatas> |
| 179 |
<itemData name="Builtins" defStyleNum="dsKeyword"/> |
| 180 |
<itemData name="Builtins (prefixed with m4_)" defStyleNum="dsKeyword"/> |
| 181 |
<itemData name="Optional builtins" defStyleNum="dsKeyword"/> |
| 182 |
<itemData name="Optional builtins (prefixed with m4_)" defStyleNum="dsKeyword"/> |
| 183 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 184 |
<itemData name="Special arguments to macros" defStyleNum="dsChar"/> |
| 185 |
<itemData name="Int" defStyleNum="dsDecVal"/> |
| 186 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 187 |
<itemData name="Commas" defStyleNum="dsChar"/> |
| 188 |
<itemData name="Operators" defStyleNum="dsChar"/> |
| 189 |
</itemDatas> |
| 190 |
</highlighting> |
| 191 |
<general> |
| 192 |
<folding indentationsensitive="1" /> |
| 193 |
<comments> |
| 194 |
<comment name="singleLine" start="#" position="afterwhitespace"/> |
| 195 |
</comments> |
| 196 |
</general> |
| 197 |
</language> |
| 198 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |