-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Syntax highlighting file for the KDE Kate Editor
Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE language SYSTEM "language.dtd"> | ||
<!-- Dockerfile syntaxfile v1.0 by James Turnbull <james@lovedthanlost.net> --> | ||
<language name="Dockerfile" section="Other" | ||
version="1.0" kateversion="2.4" | ||
extensions="Dockerfile" | ||
mimetype="text/plain" | ||
author="James Turnbull (james@lovedthanlost.net)" | ||
license="GPL"> | ||
<highlighting> | ||
<list name="keywords"> | ||
<item> FROM </item> | ||
<item> MAINTAINER </item> | ||
<item> ENV </item> | ||
<item> RUN </item> | ||
<item> ONBUILD </item> | ||
<item> COPY </item> | ||
<item> ADD </item> | ||
<item> VOLUME </item> | ||
<item> EXPOSE </item> | ||
<item> ENTRYPOINT </item> | ||
<item> CMD </item> | ||
<item> WORKDIR </item> | ||
<item> USER </item> | ||
</list> | ||
|
||
<contexts> | ||
<context name="normal" attribute="Normal" lineEndContext="#stay"> | ||
<DetectSpaces/> | ||
<DetectChar attribute="Comment" context="Comment" char="#"/> | ||
<keyword attribute="Keyword" context="#stay" String="keywords"/> | ||
<DetectIdentifier/> | ||
<DetectChar attribute="String" context="string"" char="""/> | ||
<DetectChar attribute="String" context="string'" char="'"/> | ||
</context> | ||
|
||
<context attribute="Comment" lineEndContext="#pop" name="Comment"> | ||
<LineContinue attribute="Comment" context="#stay" /> | ||
</context> | ||
|
||
<context name="string"" attribute="String" lineEndContext="#pop"> | ||
<LineContinue attribute="Operator" context="#stay"/> | ||
<DetectChar attribute="String" context="#pop" char="""/> | ||
<DetectChar attribute="Operator" context="dollar" char="$"/> | ||
</context> | ||
|
||
<context name="string'" attribute="String" lineEndContext="#pop"> | ||
<LineContinue attribute="String" context="#stay"/> | ||
<DetectChar attribute="String" context="#pop" char="'"/> | ||
<DetectChar attribute="Operator" context="dollar" char="$"/> | ||
</context> | ||
|
||
</contexts> | ||
<itemDatas> | ||
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="0"/> | ||
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/> | ||
<itemData name="Comment" defStyleNum="dsComment"/> | ||
<itemData name="String" defStyleNum="dsString" spellChecking="0"/> | ||
</itemDatas> | ||
</highlighting> | ||
<general> | ||
<comments> | ||
<comment name = "singleLine" start = "#"/> | ||
</comments> | ||
</general> | ||
</language> | ||
<!-- kate: space-indent on; indent-width 2; replace-tabs on; --> | ||
|