Commit a8589ac0 authored by Nibaldo González's avatar Nibaldo González

Improve comments in some syntax definitions, Pt. 1

parent 8c155483
// this is a single-line comment
// NOTE ### FIXME TODO
/* this is a
<beginfold id='1'>/*</beginfold id='1'> this is a
multi-line comment
*/
<endfold id='1'>*/</endfold id='1'>
/* this is another
<beginfold id='1'>/*</beginfold id='1'> this is another
* multiline comment
* NOTE ### FIXME TODO
*/
<endfold id='1'>*/</endfold id='1'>
<beginfold id='3'>/** </beginfold id='3'>this is another
<beginfold id='4'>/** </beginfold id='4'>this is another
* multiline comment
* NOTE ### FIXME TODO
<endfold id='3'>*/</endfold id='3'>
<endfold id='4'>*/</endfold id='4'>
// simple assignment
var i = 5;
......@@ -25,7 +25,7 @@ var k // assignment missing, still should be nice highlighting
var s = "Hello World!";
// arr is an array
var arr = new[] <beginfold id='1'>{</beginfold id='1'> 0, 1, 2, 3, 4 <endfold id='1'>}</endfold id='1'>;
var arr = new[] <beginfold id='2'>{</beginfold id='2'> 0, 1, 2, 3, 4 <endfold id='2'>}</endfold id='2'>;
// expr is compiled as IEnumerable<Customer>
// or perhaps IQueryable<Customer>
......@@ -35,4 +35,4 @@ var expr =
select c;
// compiled anonymous type
var anon = new <beginfold id='1'>{</beginfold id='1'> Country = "Germany", Inhabitants = 80000000 <endfold id='1'>}</endfold id='1'>;
var anon = new <beginfold id='2'>{</beginfold id='2'> Country = "Germany", Inhabitants = 80000000 <endfold id='2'>}</endfold id='2'>;
<beginfold id='1'>---</beginfold id='1'>
title: <beginfold id='158'>"</beginfold id='158'>test<endfold id='158'>"</endfold id='158'>
author: <beginfold id='158'>"</beginfold id='158'>me<endfold id='158'>"</endfold id='158'>
date: <beginfold id='158'>"</beginfold id='158'>07.10.2014<endfold id='158'>"</endfold id='158'>
title: <beginfold id='159'>"</beginfold id='159'>test<endfold id='159'>"</endfold id='159'>
author: <beginfold id='159'>"</beginfold id='159'>me<endfold id='159'>"</endfold id='159'>
date: <beginfold id='159'>"</beginfold id='159'>07.10.2014<endfold id='159'>"</endfold id='159'>
output: html_document
<endfold id='1'>---</endfold id='1'>
This is a simple test document. It shows syntax highlighting switches between YAML (above), R blocks
<beginfold id='2'>```{r, echo=FALSE}</beginfold id='2'>
for (i in 1:10) <beginfold id='133'>{</beginfold id='133'>
for (i in 1:10) <beginfold id='134'>{</beginfold id='134'>
if(i>=10) print(i)
<endfold id='133'>}</endfold id='133'>
<endfold id='134'>}</endfold id='134'>
# two blank lines below
sessionInfo()
......
;; This test file tests kates common lisp highlighting
<beginfold id='1'>#|</beginfold id='1'>
<beginfold id='2'>#|</beginfold id='2'>
multilinecomment :)
<endfold id='1'>|#</endfold id='1'>
<endfold id='2'>|#</endfold id='2'>
<beginfold id='1'>;BEGIN region marker</beginfold id='1'>
......
This diff is collapsed.
......@@ -27,7 +27,7 @@
<span style="color:#ff0000;">(</span><span style="color:#644a9b;font-weight:bold;">defn</span><span style="color:#644a9b;"> bar </span><span style="color:#3333ff;">[</span>xs<span style="color:#3333ff;">]</span>
<span style="color:#ff8800;">(</span><span style="font-weight:bold;">as-&gt;</span> xs &lt;&gt;
<span style="color:#888800;">(</span><span style="font-weight:bold;">cons</span> <span style="color:#0057ae;">:a</span> &lt;&gt;<span style="color:#888800;">)</span>
<span style="color:#888800;">(</span><span style="font-weight:bold;">map</span> <span style="color:#008800;">#(</span><span style="color:#0057ae;">%1</span> <span style="color:#0057ae;">%2</span><span style="color:#008800;">)</span> &lt;&gt;<span style="color:#888800;">)</span> <span style="color:#898887;">; </span><span style="color:#bf0303;background-color:#f7e6e6;font-weight:bold;">TODO</span><span style="color:#898887;"> improve</span>
<span style="color:#888800;">(</span><span style="font-weight:bold;">map</span> <span style="color:#008800;">#(</span><span style="color:#0057ae;">%1</span> <span style="color:#0057ae;">%2</span><span style="color:#008800;">)</span> &lt;&gt;<span style="color:#888800;">)</span> <span style="color:#898887;">; </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span><span style="color:#898887;"> improve</span>
<span style="color:#888800;">(</span><span style="font-weight:bold;">into</span> &lt;&gt; <span style="color:#3333ff;">[</span><span style="color:#0057ae;">:konjure.logic.specs/numShips</span><span style="color:#3333ff;">]</span><span style="color:#888800;">)</span><span style="color:#ff8800;">)</span><span style="color:#ff0000;">)</span>
<span style="color:#ff0000;">(</span><span style="color:#644a9b;font-weight:bold;">def</span><span style="color:#644a9b;"> x-2-y</span>
......@@ -43,7 +43,7 @@
<span style="color:#888800;">(</span><span style="font-weight:bold;">=</span> -<span style="color:#b08000;">1/2</span> -0.<span style="color:#b08000;">5</span>M<span style="color:#888800;">)</span>
<span style="color:#888800;">(</span><span style="font-weight:bold;">=</span> -<span style="color:#b08000;">0x1Ab</span> -<span style="color:#b08000;">0X1ab</span><span style="color:#888800;">)</span>
<span style="color:#888800;">(</span><span style="font-weight:bold;">=</span> +<span style="color:#b08000;">2r101010</span> <span style="color:#b08000;">25R1h</span><span style="color:#888800;">)</span>
<span style="color:#888800;">(</span><span style="font-weight:bold;">=</span> <span style="color:#bf0303;text-decoration:underline;">39r13</span> <span style="color:#bf0303;text-decoration:underline;">42R10</span><span style="color:#888800;">)</span><span style="color:#ff8800;">)</span><span style="color:#ff0000;">)</span> <span style="color:#898887;">; </span><span style="color:#bf0303;background-color:#f7e6e6;font-weight:bold;">FIXME</span><span style="color:#898887;"> this one is not correct</span>
<span style="color:#888800;">(</span><span style="font-weight:bold;">=</span> <span style="color:#bf0303;text-decoration:underline;">39r13</span> <span style="color:#bf0303;text-decoration:underline;">42R10</span><span style="color:#888800;">)</span><span style="color:#ff8800;">)</span><span style="color:#ff0000;">)</span> <span style="color:#898887;">; </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">FIXME</span><span style="color:#898887;"> this one is not correct</span>
<span style="color:#ff0000;">(</span><span style="color:#644a9b;font-weight:bold;">def</span><span style="color:#644a9b;"> </span><span style="color:#0000ff;font-weight:bold;">^{</span><span style="color:#0057ae;">:private</span> <span style="color:#0057ae;">true</span><span style="color:#0000ff;font-weight:bold;">}</span>
<span style="color:#ff8800;">(</span><span style="font-weight:bold;">=</span> <span style="color:#888800;">(</span><span style="font-weight:bold;">last</span> <span style="color:#0000ff;">#{#{}}</span><span style="color:#888800;">)</span> <span style="color:#0000ff;">#{</span><span style="color:#206620;">{</span><span style="color:#0000ff;">#{}</span><span style="color:#206620;">}</span><span style="color:#0000ff;">}</span><span style="color:#ff8800;">)</span><span style="color:#ff0000;">)</span>
......
......@@ -5,7 +5,7 @@
<meta name="generator" content="KF5::SyntaxHighlighting (C#)"/>
</head><body style="color:#1f1c1b"><pre>
<span style="color:#898887;">// this is a single-line comment</span>
<span style="color:#898887;">// NOTE ### FIXME TODO</span>
<span style="color:#898887;">// </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">NOTE</span><span style="color:#898887;"> </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">###</span><span style="color:#898887;"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">FIXME</span><span style="color:#898887;"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span>
<span style="color:#898887;">/* this is a</span>
<span style="color:#898887;"> multi-line comment</span>
......@@ -13,7 +13,7 @@
<span style="color:#898887;">/* this is another</span>
<span style="color:#898887;"> * multiline comment</span>
<span style="color:#898887;"> * NOTE ### FIXME TODO</span>
<span style="color:#898887;"> * </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">NOTE</span><span style="color:#898887;"> </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">###</span><span style="color:#898887;"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">FIXME</span><span style="color:#898887;"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span>
<span style="color:#898887;"> */</span>
<span style="color:#898887;">/** this is another</span>
......
......@@ -7,11 +7,11 @@
<span style="color:#898887;">;********************************************************************</span>
<span style="color:#898887;">;* LED flasher: LED will flash with a X on/off ratio at PD6</span>
<span style="color:#898887;">;*</span>
<span style="color:#898887;">;* NOTE: delay depends in the value of X, 1 is fast, 255 is slow</span>
<span style="color:#898887;">;* </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">NOTE</span><span style="color:#898887;">: delay depends in the value of X, 1 is fast, 255 is slow</span>
<span style="color:#898887;">;*</span>
<span style="color:#898887;">;* No copyright ©1998 RES® * FREEWARE *</span>
<span style="color:#898887;">;*</span>
<span style="color:#898887;">;* NOTE: Connect a low current LED with a 1k resistor in serie from </span>
<span style="color:#898887;">;* </span><span style="color:#81ca2d;background-color:#f7e6e6;font-weight:bold;">NOTE</span><span style="color:#898887;">: Connect a low current LED with a 1k resistor in serie from </span>
<span style="color:#898887;">;* Vdd to pin 11 of the MCU. (Or a normal LED with a 330ohm)</span>
<span style="color:#898887;">;* </span>
<span style="color:#898887;">;* RES® can be reached by email: digitalaudio@mail.com </span>
......
......@@ -9,14 +9,14 @@ service <span style="color:#0057ae;">timestamps</span> debug datetime msec
service <span style="color:#0057ae;">timestamps</span> log datetime msec
no service <span style="color:#0057ae;">password</span>-encryption
! bla bla
<span style="color:#898887;">! bla bla</span>
hostname R-site2
logging queue-limit <span style="color:#b08000;">100</span>
no logging console
enable secret <span style="color:#b08000;">5</span> <span style="color:#0057ae;">$1$UzZM$BTdJlwFCg63tUdyLmq6cr0</span>
username admin <span style="color:#0057ae;">password</span> <span style="color:#b08000;">0</span> Yas!<span style="color:#b08000;">8</span>^VB5q<span style="color:#0057ae;">$yZ53C35</span><span style="color:#898887;">#nC</span>
username admin <span style="color:#0057ae;">password</span> <span style="color:#b08000;">0</span> Yas<span style="color:#898887;">!8^VB5q$yZ53C35#nC</span>
ip subnet-zero
no ip domain lookup
......
......@@ -5,7 +5,7 @@
<meta name="generator" content="KF5::SyntaxHighlighting (Clipper)"/>
</head><body style="color:#1f1c1b"><pre>
<span style="color:#898887;">// Test file to test kate's clipper highlighting</span>
<span style="color:#898887;">// kate: hl Clipper;</span>
<span style="color:#898887;">// </span><span style="color:#ca60ca;">kate:</span><span style="color:#898887;"> </span><span style="color:#0095ff;">hl</span><span style="color:#bf0303;"> Clipper</span><span style="color:#0095ff;">;</span>
<span style="color:#0057ae;background-color:#e0e9f8;">//BEGIN INCLUDES</span>
<span style="color:#006e28;">#include </span><span style="color:#ff5500;">&lt;clip-ui.ch&gt;</span>
......
......@@ -4,7 +4,7 @@
<title>highlight_cubescript.cfg</title>
<meta name="generator" content="KF5::SyntaxHighlighting (CubeScript)"/>
</head><body style="color:#1f1c1b"><pre>
<span style="color:#898887;">// kate: syntax CubeScript;</span>
<span style="color:#898887;">// </span><span style="color:#ca60ca;">kate:</span><span style="color:#898887;"> </span><span style="color:#0095ff;">syntax</span><span style="color:#bf0303;"> CubeScript</span><span style="color:#0095ff;">;</span>
<span style="color:#898887;">// CubeScript test</span>
i = <span style="color:#b08000;">0</span>
......
......@@ -4,7 +4,7 @@
<title>test.mss</title>
<meta name="generator" content="KF5::SyntaxHighlighting (CartoCSS)"/>
</head><body style="color:#1f1c1b"><pre>
<span style="color:#898887;">/* kate: hl CartoCSS</span>
<span style="color:#898887;">/* </span><span style="color:#ca60ca;">kate:</span><span style="color:#898887;"> </span><span style="color:#0095ff;">hl</span><span style="color:#bf0303;"> CartoCSS</span>
<span style="color:#898887;"> This file contains some content coming from</span>
<span style="color:#898887;"> https://github.com/gravitystorm/openstreetmap-carto</span>
<span style="color:#898887;"> with CC0 license. This file is just for testing</span>
......
......@@ -21,7 +21,7 @@
<Brackets1>(</Brackets1><Definition>defn</Definition><Function> bar </Function><BracketsSquare>[</BracketsSquare><Normal>xs</Normal><BracketsSquare>]</BracketsSquare><br/>
<Normal> </Normal><Brackets2>(</Brackets2><Keyword>as-></Keyword><Normal> xs <></Normal><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>cons</Keyword><Normal> </Normal><Modifier2>:a</Modifier2><Normal> <></Normal><Brackets3>)</Brackets3><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>map</Keyword><Normal> </Normal><Brackets4>#(</Brackets4><Variable>%1</Variable><Normal> </Normal><Variable>%2</Variable><Brackets4>)</Brackets4><Normal> <></Normal><Brackets3>)</Brackets3><Normal> </Normal><Comment>; </Comment><Alert>TODO</Alert><Comment> improve</Comment><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>map</Keyword><Normal> </Normal><Brackets4>#(</Brackets4><Variable>%1</Variable><Normal> </Normal><Variable>%2</Variable><Brackets4>)</Brackets4><Normal> <></Normal><Brackets3>)</Brackets3><Normal> </Normal><Comment>; </Comment><Alert Level 2>TODO</Alert Level 2><Comment> improve</Comment><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>into</Keyword><Normal> <> </Normal><BracketsSquare>[</BracketsSquare><Modifier2>:konjure.logic.specs/numShips</Modifier2><BracketsSquare>]</BracketsSquare><Brackets3>)</Brackets3><Brackets2>)</Brackets2><Brackets1>)</Brackets1><br/>
<Normal></Normal><br/>
<Brackets1>(</Brackets1><Definition>def</Definition><Function> x-2-y</Function><br/>
......@@ -37,7 +37,7 @@
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>=</Keyword><Normal> -</Normal><Float>1/2</Float><Normal> -0.</Normal><Decimal>5</Decimal><Normal>M</Normal><Brackets3>)</Brackets3><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>=</Keyword><Normal> -</Normal><BaseN>0x1Ab</BaseN><Normal> -</Normal><BaseN>0X1ab</BaseN><Brackets3>)</Brackets3><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>=</Keyword><Normal> +</Normal><BaseN>2r101010</BaseN><Normal> </Normal><BaseN>25R1h</BaseN><Brackets3>)</Brackets3><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>=</Keyword><Normal> </Normal><Error>39r13</Error><Normal> </Normal><Error>42R10</Error><Brackets3>)</Brackets3><Brackets2>)</Brackets2><Brackets1>)</Brackets1><Normal> </Normal><Comment>; </Comment><Alert>FIXME</Alert><Comment> this one is not correct</Comment><br/>
<Normal> </Normal><Brackets3>(</Brackets3><Keyword>=</Keyword><Normal> </Normal><Error>39r13</Error><Normal> </Normal><Error>42R10</Error><Brackets3>)</Brackets3><Brackets2>)</Brackets2><Brackets1>)</Brackets1><Normal> </Normal><Comment>; </Comment><Alert Level 2>FIXME</Alert Level 2><Comment> this one is not correct</Comment><br/>
<Normal></Normal><br/>
<Brackets1>(</Brackets1><Definition>def</Definition><Function> </Function><BracketsMeta>^{</BracketsMeta><Modifier2>:private</Modifier2><Normal> </Normal><Variable>true</Variable><BracketsMeta>}</BracketsMeta><br/>
<Normal> </Normal><Brackets2>(</Brackets2><Keyword>=</Keyword><Normal> </Normal><Brackets3>(</Brackets3><Keyword>last</Keyword><Normal> </Normal><BracketsSet>#{#{}}</BracketsSet><Brackets3>)</Brackets3><Normal> </Normal><BracketsSet>#{</BracketsSet><BracketsMap>{</BracketsMap><BracketsSet>#{}</BracketsSet><BracketsMap>}</BracketsMap><BracketsSet>}</BracketsSet><Brackets2>)</Brackets2><Brackets1>)</Brackets1><br/>
......
<Comment>// this is a single-line comment</Comment><br/>
<Comment>// NOTE ### FIXME TODO</Comment><br/>
<Comment>// </Comment><Alert Level 3>NOTE</Alert Level 3><Comment> </Comment><Alert Level 3>###</Alert Level 3><Comment> </Comment><Alert Level 2>FIXME</Alert Level 2><Comment> </Comment><Alert Level 2>TODO</Alert Level 2><br/>
<Normal Text></Normal Text><br/>
<Comment>/* this is a</Comment><br/>
<Comment> multi-line comment</Comment><br/>
......@@ -7,7 +7,7 @@
<Normal Text></Normal Text><br/>
<Comment>/* this is another</Comment><br/>
<Comment> * multiline comment</Comment><br/>
<Comment> * NOTE ### FIXME TODO</Comment><br/>
<Comment> * </Comment><Alert Level 3>NOTE</Alert Level 3><Comment> </Comment><Alert Level 3>###</Alert Level 3><Comment> </Comment><Alert Level 2>FIXME</Alert Level 2><Comment> </Comment><Alert Level 2>TODO</Alert Level 2><br/>
<Comment> */</Comment><br/>
<Normal Text></Normal Text><br/>
<Comment>/** this is another</Comment><br/>
......
<Comment>;********************************************************************</Comment><br/>
<Comment>;* LED flasher: LED will flash with a X on/off ratio at PD6</Comment><br/>
<Comment>;*</Comment><br/>
<Comment>;* NOTE: delay depends in the value of X, 1 is fast, 255 is slow</Comment><br/>
<Comment>;* </Comment><Alert Level 3>NOTE</Alert Level 3><Comment>: delay depends in the value of X, 1 is fast, 255 is slow</Comment><br/>
<Comment>;*</Comment><br/>
<Comment>;* No copyright ©1998 RES® * FREEWARE *</Comment><br/>
<Comment>;*</Comment><br/>
<Comment>;* NOTE: Connect a low current LED with a 1k resistor in serie from </Comment><br/>
<Comment>;* </Comment><Alert Level 3>NOTE</Alert Level 3><Comment>: Connect a low current LED with a 1k resistor in serie from </Comment><br/>
<Comment>;* Vdd to pin 11 of the MCU. (Or a normal LED with a 330ohm)</Comment><br/>
<Comment>;* </Comment><br/>
<Comment>;* RES® can be reached by email: digitalaudio@mail.com </Comment><br/>
......
......@@ -3,14 +3,14 @@
<Command>service</Command><Normal Text> </Normal Text><Parameter>timestamps</Parameter><Normal Text> log datetime msec</Normal Text><br/>
<Command>no</Command><Normal Text> </Normal Text><Command>service</Command><Normal Text> </Normal Text><Parameter>password</Parameter><Normal Text>-encryption</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Normal Text>! bla bla</Normal Text><br/>
<Comment>! bla bla</Comment><br/>
<Command>hostname</Command><Normal Text> R-site2</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Command>logging</Command><Normal Text> queue-limit </Normal Text><Decimal>100</Decimal><br/>
<Command>no</Command><Normal Text> </Normal Text><Command>logging</Command><Normal Text> console</Normal Text><br/>
<Command>enable</Command><Normal Text> secret </Normal Text><Decimal>5</Decimal><Normal Text> </Normal Text><Parameter>$1$UzZM$BTdJlwFCg63tUdyLmq6cr0</Parameter><br/>
<Normal Text></Normal Text><br/>
<Command>username</Command><Normal Text> admin </Normal Text><Parameter>password</Parameter><Normal Text> </Normal Text><Decimal>0</Decimal><Normal Text> Yas!</Normal Text><Decimal>8</Decimal><Normal Text>^VB5q</Normal Text><Parameter>$yZ53C35</Parameter><Comment>#nC</Comment><br/>
<Command>username</Command><Normal Text> admin </Normal Text><Parameter>password</Parameter><Normal Text> </Normal Text><Decimal>0</Decimal><Normal Text> Yas</Normal Text><Comment>!8^VB5q$yZ53C35#nC</Comment><br/>
<Command>ip</Command><Normal Text> subnet-zero</Normal Text><br/>
<Normal Text></Normal Text><br/>
<Command>no</Command><Normal Text> </Normal Text><Command>ip</Command><Normal Text> domain lookup</Normal Text><br/>
......
<Comment>// Test file to test kate's clipper highlighting</Comment><br/>
<Comment>// kate: hl Clipper;</Comment><br/>
<Comment>// </Comment><Keyword>kate:</Keyword><Comment> </Comment><Variable>hl</Variable><String> Clipper</String><Variable>;</Variable><br/>
<Normal Text></Normal Text><br/>
<Region Marker>//BEGIN INCLUDES</Region Marker><br/>
<Preprocessor>#include </Preprocessor><Prep. Lib><clip-ui.ch></Prep. Lib><br/>
......
<Comment>// kate: syntax CubeScript;</Comment><br/>
<Comment>// </Comment><Keyword>kate:</Keyword><Comment> </Comment><Variable>syntax</Variable><String> CubeScript</String><Variable>;</Variable><br/>
<Comment>// CubeScript test</Comment><br/>
<Normal></Normal><br/>
<Normal>i </Normal><Operator>=</Operator><Normal> </Normal><Int10>0</Int10><br/>
......
<Comment>/* kate: hl CartoCSS</Comment><br/>
<Comment>/* </Comment><Keyword>kate:</Keyword><Comment> </Comment><Variable>hl</Variable><String> CartoCSS</String><br/>
<Comment> This file contains some content coming from</Comment><br/>
<Comment> https://github.com/gravitystorm/openstreetmap-carto</Comment><br/>
<Comment> with CC0 license. This file is just for testing</Comment><br/>
......
......@@ -6,7 +6,7 @@
<!ENTITY pathpart "[^&#34;&#42;&#61;/:&lt;&gt;?\\[\]\|]"> <!-- valid character in a file name -->
<!ENTITY tasten "((Strg|Alt|Shift)-)?([a-z0-9]|F[1-9]|F1[0-2]|Esc|Bksp|Tab|Enter|Up|Down|Left|Right|PgUp|PgDn|Home|End|Ins|Del)">
]>
<language name="4DOS BatchToMemory" kateversion="5.0" version="5" section="Scripts" extensions="*.btm" casesensitive="0" indenter="cstyle" author="Stefan Huebner (st0ff@npl.de)" license="LGPL">
<language name="4DOS BatchToMemory" kateversion="5.0" version="6" section="Scripts" extensions="*.btm" casesensitive="0" indenter="cstyle" author="Stefan Huebner (st0ff@npl.de)" license="LGPL">
<!--DONE:
- comments are there
- substitutions are there
......@@ -536,6 +536,8 @@ Here we start with functional contexts. These actually do something more than j
<!-- stuff inside comments ... (a comment always runs until EOL) -->
<context name="foundComment" attribute="Comment" lineEndContext="#pop">
<IncludeRules context="##Alerts"/>
<IncludeRules context="##Modelines"/>
<keyword attribute="Alert" String="HighlightInsideComment"/>
</context>
......@@ -917,8 +919,8 @@ Here we start with functional contexts. These actually do something more than j
<general>
<comments>
<comment name="singleLine" start="rem "/>
<comment name="singleLine" start="::"/>
</comments>
<keywords casesensitive="0" additionalDeliminator="@"/>
</general>
</language>
<!-- kate: replace-tabs off; -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="ABAP" version="2" kateversion="2.3" section="Sources" extensions="*.abap;*.ABAP" mimetype="text/x-abap-src" priority="5" author="Marcos Antonio Alvarez Costales (busgosin@hotmail.com)" license="GPL">
<language name="ABAP" version="3" kateversion="2.3" section="Sources" extensions="*.abap;*.ABAP" mimetype="text/x-abap-src" priority="5" author="Marcos Antonio Alvarez Costales (busgosin@hotmail.com)" license="GPL">
<highlighting>
<list name="keywords">
......@@ -261,6 +261,7 @@
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<DetectChar attribute="Comment" context="#pop" char="&quot;"/>
<DetectChar attribute="Comment" context="#pop" char="*"/>
<IncludeRules context="##Alerts"/>
</context>
</contexts>
......@@ -275,9 +276,7 @@
<general>
<comments>
<comment name="singleLine" start="&quot;" />
<comment name="singleLine" start="*" />
<comment name="multiLine" start="*" />
</comments>
<keywords casesensitive="0" />
</general>
......
......@@ -2,7 +2,7 @@
<!DOCTYPE language SYSTEM "language.dtd">
<!-- Andrea Primiani - primiani at dag dot it
version1.10 - 12 december 2005 -->
<language name="ABC" version="5" kateversion="2.4" section="Other" extensions="*.abc;*.ABC" mimetype="text/vnd.abc" casesensitive="1" author="Andrea Primiani (primiani@dag.it)" license="LGPL">
<language name="ABC" version="6" kateversion="2.4" section="Other" extensions="*.abc;*.ABC" mimetype="text/vnd.abc" casesensitive="1" author="Andrea Primiani (primiani@dag.it)" license="LGPL">
<highlighting>
<contexts>
<context name="Normal" attribute="Normal Text" lineEndContext="#stay">
......@@ -38,7 +38,10 @@
<!-- returns to Normal context at the end of line -->
<context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop" />
<context name="Lyrics" attribute="Lyrics" lineEndContext="#pop" />
<context name="Comment" attribute="Comment" lineEndContext="#pop" />
<context name="Comment" attribute="Comment" lineEndContext="#pop">
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<!-- returns to Normal context after the end of bar symbols or at EOL -->
<context name="Bar" attribute="Bar" lineEndContext="#pop" >
<DetectChar attribute="Normal Text" context="#pop" char="&quot;" />
......@@ -79,8 +82,9 @@
</highlighting>
<general>
<comments>
<comment name="singleLine" start="%" />
<comment name="singleLine" start="%" position="afterwhitespace" />
</comments>
<keywords casesensitive="1" />
</general>
</language>
<!-- kate: replace-tabs off; -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="ActionScript 2.0" version="5" kateversion="5.0" section="Sources" extensions="*.as" mimetype="text/x-actionscript" license="LGPL" author="Aaron Miller (armantic101@gmail.com)">
<language name="ActionScript 2.0" version="6" kateversion="5.0" section="Sources" extensions="*.as" mimetype="text/x-actionscript" license="LGPL" author="Aaron Miller (armantic101@gmail.com)">
<highlighting>
<list name="properties">
......@@ -299,9 +299,14 @@
</context>
<context attribute="StaticImports" lineEndContext="#pop" name="StaticImports"/>
<context attribute="Imports" lineEndContext="#pop" name="Imports"/>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1"/>
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
<IncludeRules context="##Alerts"/>
<IncludeRules context="##Modelines"/>
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts"/>
<IncludeRules context="##Modelines"/>
</context>
</contexts>
<itemDatas>
......@@ -329,8 +334,9 @@
<general>
<comments>
<comment name="singleLine" start="//"/>
<comment name="multiLine" start="/*" end="*/"/>
<comment name="multiLine" start="/*" end="*/" region="Comment"/>
</comments>
<keywords casesensitive="1"/>
</general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Ada"
version="3"
version="4"
kateversion="5.0"
section="Sources"
extensions="*.adb;*.ads;*.ada;*.a"
......@@ -175,7 +175,10 @@
<context attribute="String" lineEndContext="#pop" name="String">
<DetectChar attribute="String" context="#pop" char="&quot;"/>
</context>
<context attribute="Comment" lineEndContext="#pop" name="Comment"/>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" />
......@@ -193,7 +196,7 @@
</highlighting>
<general>
<comments>
<comment name="singleLine" start="--" />
<comment name="singleLine" start="--" position="afterwhitespace" />
</comments>
<keywords casesensitive="0" />
</general>
......
......@@ -3,7 +3,7 @@
<!-- See https://adblockplus.org/en/filters -->
<language
name="Adblock Plus"
version="1"
version="2"
kateversion="5.0"
section="Configuration"
author="Volker Krause (vkrause@kde.org)"
......@@ -82,6 +82,10 @@
</highlighting>
<general>
<comments>
<comment name="singleLine" start="!"/>
</comments>
<keywords casesensitive="1" weakDeliminator="-" additionalDeliminator="$"/>
</general>
</language>
<!-- kate: replace-tabs on; tab-width 4; indent-width 4; -->
......@@ -3,7 +3,7 @@
<!ENTITY charsdelim "_;.&#34;(){}@">
<!ENTITY wordsep "(?=[&charsdelim;]|\s|$)">
]>
<language name="Agda" version="6" kateversion="5.0" section="Sources" extensions="*.agda" mimetype="text/x-agda" author="Matthias C. M. Troffaes" license="LGPL">
<language name="Agda" version="7" kateversion="5.0" section="Sources" extensions="*.agda" mimetype="text/x-agda" author="Matthias C. M. Troffaes" license="LGPL">
<highlighting>
<list name="reserved keywords">
<item>abstract</item>
......@@ -75,11 +75,13 @@
</context>
<context attribute="Comment" lineEndContext="#pop" name="comment">
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="comments" noIndentationBasedFolding="1">
<Detect2Chars attribute="Comment" context="comments" char="{" char1="-" beginRegion="CommentBlock" /> <!-- for nested comments -->
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="}" endRegion="CommentBlock" />
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context attribute="Hole" lineEndContext="#stay" name="hole">
<Detect2Chars attribute="Hole" context="#pop" char="!" char1="}" />
......@@ -110,7 +112,7 @@
<general>
<folding indentationsensitive="1"/>
<comments>
<comment name="singleLine" start="--" />
<comment name="singleLine" start="--" position="afterwhitespace" />
<comment name="multiLine" start="{-" end="-}" region="CommentBlock" />
</comments>
<keywords casesensitive="1"
......@@ -118,3 +120,4 @@
additionalDeliminator="&charsdelim;" />
</general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="AHDL" version="4" kateversion="5.0" section="Hardware" extensions="*.ahdl;*.tdf" mimetype="text/x-ahdl" author="Dominik Haumann (dhaumann@kde.org)" license="MIT">
<language name="AHDL" version="5" kateversion="5.0" section="Hardware" extensions="*.ahdl;*.tdf" mimetype="text/x-ahdl" author="Dominik Haumann (dhaumann@kde.org)" license="MIT">
<highlighting>
<list name="keywords">
<item>assert</item>
......@@ -117,8 +117,13 @@
</context>
<context name="comment" attribute="Comment" lineEndContext="#stay" >
<DetectChar attribute="Comment" context="#pop" char="%" />
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context name="LineComment" attribute="Comment" lineEndContext="#pop">
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context name="LineComment" attribute="Comment" lineEndContext="#pop"/>
</contexts>
<itemDatas>
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" />
......@@ -138,7 +143,7 @@
<general>
<comments>
<comment name="singleLine" start="--" />
<comment name="multiLine" start="%" end="%" />
<comment name="multiLine" start="%" end="%" region="Comment" />
</comments>
<keywords casesensitive="0" />
</general>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="AutoHotKey" section="Scripts"
version="5" kateversion="5.62"
version="6" kateversion="5.62"
indenter="cstyle"
extensions="*.ahk;*.iahk"
priority="9"
......@@ -1322,6 +1322,7 @@ fallthroughContext="#pop">
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
<DetectIdentifier />
</context>
......@@ -1329,6 +1330,7 @@ fallthroughContext="#pop">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
<DetectIdentifier />
</context>
......@@ -1360,3 +1362,4 @@ fallthroughContext="#pop">
<keywords casesensitive="0" weakDeliminator="#" />
</general>
</language>
<!-- kate: replace-tabs off; -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="AMPLE" version="7" kateversion="5.2" section="Scripts" extensions="*.ample;*.menu;*.startup" mimetype="text/x-amplesrc" priority="5" author="Christian Parg (cparg@gmx.de)" license="Apache &amp; LGPL" >
<language name="AMPLE" version="8" kateversion="5.2" section="Scripts" extensions="*.ample;*.menu;*.startup" mimetype="text/x-amplesrc" priority="5" author="Christian Parg (cparg@gmx.de)" license="Apache &amp; LGPL" >
<!--
#################################################################################################
## AMPLE Highlight file by Christian Parg (cparg_(at)_gmx_de)
......@@ -3154,11 +3154,13 @@ Note: I used this hack to extract the functions from the reference documentation
<context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
<LineContinue attribute="Comment" context="#stay"/>
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<!--
......@@ -3227,8 +3229,9 @@ Note: I used this hack to extract the functions from the reference documentation
<general>
<comments>
<comment name="singleLine" start="//" />
<comment name="multiLine" start="/*" end="*/" />
<comment name="multiLine" start="/*" end="*/" region="Comment" />
</comments>
<keywords casesensitive="1" />
</general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
......@@ -34,7 +34,7 @@
*************************************************************************
-->
<language name="ANS-Forth94" version="4" kateversion="5.0" section="Sources" extensions="*.4th;*.4TH;*.f;*.F;*.frt;*.FRT;*.fs;*.FS;*.fth;*.FTH;*.seq;*.SEQ" mimetype="" author="Mark Corbin (mark@dibsco.co.uk)" license="LGPLv2.1+" priority="5">
<language name="ANS-Forth94" version="5" kateversion="5.0" section="Sources" extensions="*.4th;*.4TH;*.f;*.F;*.frt;*.FRT;*.fs;*.FS;*.fth;*.FTH;*.seq;*.SEQ" mimetype="" author="Mark Corbin (mark@dibsco.co.uk)" license="LGPLv2.1+" priority="5">
<highlighting>
<list name="core-keywords">
<item>!</item>
......@@ -519,9 +519,11 @@
<context attribute="Comment" lineEndContext="#stay" name="Comment">
<DetectChar attribute="Core Keyword" context="#pop" char=")" endRegion="comment"/>
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context attribute="Comment" lineEndContext="#pop" name="Single Comment">
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context attribute="String" lineEndContext="#stay" name="Display String">
<DetectChar attribute="Core Keyword" context="#pop" char=")"/>
......@@ -590,6 +592,8 @@
<keywords casesensitive="0" weakDeliminator="!£$%^&amp;#&apos;~|\(){}*+,-./=@:;&lt;&gt;&quot;?[]"/>
<comments>
<comment name="multiLine" start="( " end=")" region="comment"/>
<comment name="singleLine" start="\ "/>
</comments>
</general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="ANSI C89" section="Sources"
version="5" kateversion="5.0"
version="6" kateversion="5.0"
indenter="cstyle"
extensions="*.c;*.C;*.h"
mimetype="text/x-csrc;text/x-c++src;text/x-chdr"
......@@ -84,6 +84,7 @@
<context attribute="Comment" lineEndContext="#stay" name="comment">
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="blockcomment"/>
<IncludeRules context="##Alerts" />
<IncludeRules context="##Modelines" />
</context>
<context attribute="Preprocessor" lineEndContext="#pop" name="Preprocessor">
<LineContinue attribute="Preprocessor" context="#stay"/>
......@@ -127,8 +128,9 @@
</highlighting>
<general>
<comments>
<comment name="multiLine" start="/*" end="*/" />
<comment name="multiLine" start="/*" end="*/" region="blockcomment" />
</comments>
<keywords casesensitive="1" />
</general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->