diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-09-19 14:44:45 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-23 02:22:47 +0100 |
commit | a1d50519d7049fc24ca1e376b3de0ae9a2ec50e0 (patch) | |
tree | 98a11cb074091f50db1b0b1544719f1bd347c937 /kate/data/nagios.xml | |
parent | 432eec4ef21b0dde249d6363b347d9eab0700599 (diff) | |
download | tdelibs-a1d50519d7049fc24ca1e376b3de0ae9a2ec50e0.tar.gz tdelibs-a1d50519d7049fc24ca1e376b3de0ae9a2ec50e0.zip |
Kate syntax highlighting files update - Sep 2014
(cherry picked from commit 87fd132d0145d36d9eae9cdf521935202db228f7)
Diffstat (limited to 'kate/data/nagios.xml')
-rw-r--r-- | kate/data/nagios.xml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/kate/data/nagios.xml b/kate/data/nagios.xml new file mode 100644 index 000000000..d4f3634a8 --- /dev/null +++ b/kate/data/nagios.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE language SYSTEM "language.dtd"> +<language name="Nagios" section="Configuration" extensions="*.cfg" version="1.0" kateversion="2.4" author="Gastón Martini" license="GPL" casesensitive="true"> + <highlighting> + <list name="Objects"> + <item>host</item> + <item>hostgroup</item> + <item>service</item> + <item>servicegroup</item> + <item>contact</item> + <item>contactgroup</item> + <item>timeperiod</item> + <item>command</item> + <item>servicedependency</item> + <item>serviceescalation</item> + <item>hostdependency</item> + <item>hostescalation</item> + <item>hostextinfo</item> + <item>serviceextinfo</item> + </list> + <contexts> + <context name="Nagios" attribute="Normal Text" lineEndContext="#stay"> + <DetectSpaces/> + <DetectChar char="#" attribute="Comment" context="Comment" firstNonSpace="true"/> <!-- or column="0"? --> + <DetectChar char="$" context="Macro Definition" firstNonSpace="true" lookAhead="true"/> + <keyword String="Keywords" attribute="Definition" context="Definition" firstNonSpace="true"/> + <StringDetect String="define" attribute="Definition" context="Definition" firstNonSpace="true"/> + <IncludeRules context="Variable" includeAttrib="true"/> + </context> + <context name="Comment" attribute="Comment" lineEndContext="#pop"> + <IncludeRules context="##Alerts" /> + </context> + <context name="Macro Definition" attribute="Macro Definition" lineEndContext="#pop"> + <RangeDetect char="$" char1="$" firstNonSpace="true" context="#stay"/> + <DetectChar char="=" attribute="Symbol" context="Value"/> + </context> + <context name="Variable" attribute="Variable" lineEndContext="#pop"> + <RegExpr String="[A-Za-z0-9_]+\s*" firstNonSpace="true" context="#stay"/> + <DetectChar char="=" attribute="Symbol" context="Value"/> + </context> + <context name="Definition" attribute="Definition" lineEndContext="#stay"> + <DetectSpaces/> + <keyword String="Objects" attribute="Object" context="#stay"/> + <DetectChar char="{" attribute="Definition Block" context="Object Directives" beginRegion="Object Definition"/> + <RegExpr String="[^{]+" attribute="Invalid Text" context="#stay"/> + </context> + <context name="Object Directives" attribute="Object Directive" lineEndContext="#stay"> + <DetectSpaces/> + <DetectChar char=";" attribute="Comment" context="Comment" firstNonSpace="true"/> + <RegExpr String="[A-Za-z0-9_]+\s*" firstNonSpace="true" attribute="Object Directive" context="Value"/> + <DetectChar char="}" attribute="Definition Block" context="Nagios" endRegion="Object Definition"/> + </context> + <context name="Value" attribute="Value" lineEndContext="#pop"> + <RangeDetect char="$" char1="$" attribute="Macro" context="#stay"/> + <Float attribute="Float" /> + <Int attribute="Int" /> + <DetectChar char=";" attribute="Comment" context="Comment" /> + </context> + </contexts> + <itemDatas> + <itemData name="Comment" defStyleNum="dsComment"/> + <itemData name="Normal Text" defStyleNum="dsNormal"/> + <itemData name="Variable" defStyleNum="dsNormal"/> + <itemData name="Object" defStyleNum="dsDataType"/> + <itemData name="Object Directive" defStyleNum="dsNormal"/> + <itemData name="Macro" defStyleNum="dsFunction"/> + <itemData name="Macro Definition" defStyleNum="dsFunction"/> + <itemData name="Value" defStyleNum="dsString"/> + <itemData name="Int" defStyleNum="dsDecVal"/> + <itemData name="Float" defStyleNum="dsFloat"/> + <itemData name="Symbol" defStyleNum="dsOthers"/> + <itemData name="Definition" defStyleNum="dsKeyword"/> + <itemData name="Definition Block" defStyleNum="dsRegionMarker"/> + <itemData name="Invalid Text" defStyleNum="dsError"/> + </itemDatas> + </highlighting> + <general> + <folding indentationsensitive="false"/> + <comments> + <comment name="singleLine" start="#"/> + </comments> + <keywords casesensitive="true"/> + </general> +</language> |