152 lines
5.2 KiB
Plaintext
Raw Normal View History

2006-08-26 04:46:29 -05:00
<?xml version="1.0" encoding="UTF-8"?>
2007-06-18 00:03:03 -05:00
<!--
Author: Paolo Maggi <paolo.maggi@polito.it>
Copyright (C) 2003 Paolo Maggi <paolo.maggi@polito.it>
2007-06-20 13:46:04 -05:00
Copyright (C) 2006 Luca Cavalli <lcavalli@cvs.gnome.org>
2007-06-18 00:03:03 -05:00
2007-06-20 13:46:04 -05:00
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
2007-06-18 00:03:03 -05:00
2007-06-20 13:46:04 -05:00
This library is distributed in the hope that it will be useful,
2007-06-18 00:03:03 -05:00
but WITHOUT ANY WARRANTY; without even the implied warranty of
2007-06-20 13:46:04 -05:00
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
2007-06-18 00:03:03 -05:00
2007-06-20 13:46:04 -05:00
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
2007-06-18 00:03:03 -05:00
-->
<language id="desktop" _name=".desktop" version="2.0" _section="Others">
<metadata>
<property name="mimetypes">application/x-gnome-app-info;application/x-desktop</property>
<property name="globs">*.desktop;*.kdelnk</property>
2007-05-06 07:51:26 -05:00
<property name="line-comment-start">#</property>
</metadata>
2006-08-26 04:46:29 -05:00
<styles>
<style id="group" _name="Group" map-to="def:keyword"/>
<style id="key" _name="Key" map-to="def:data-type"/>
<style id="language" _name="Translation" map-to="def:decimal"/>
<style id="number" _name="Number" map-to="def:floating-point"/>
<style id="boolean" _name="Boolean" map-to="def:floating-point"/>
<style id="exec-parameter" _name="Exec parameter" map-to="def:floating-point"/>
<style id="encoding" _name="Encoding" map-to="def:floating-point"/>
<style id="category" _name="Category" map-to="def:floating-point"/>
</styles>
2006-08-26 04:46:29 -05:00
<definitions>
2006-12-21 23:48:19 -06:00
<define-regex id="key-suffix">(?=(\[[a-zA-Z_]+\])?\s*=\s*)</define-regex>
<context id="group" style-ref="group">
<start>^\[</start>
<end>\]$</end>
</context>
2006-12-21 23:48:19 -06:00
<context id="language" style-ref="language">
<match>\[[a-zA-Z_]+\]</match>
</context>
<context id="boolean" style-ref="boolean">
<keyword>true</keyword>
<keyword>false</keyword>
</context>
<context id="exec-parameter" style-ref="exec-parameter">
<match>%[fFuUdDnNimckv%]</match>
</context>
<context id="encoding" style-ref="encoding">
<keyword>UTF\-8</keyword>
<keyword>Legacy\-Mixed</keyword>
</context>
<context id="number" style-ref="number">
<match>(.\b[0-9]+([Ll]?|[Ff]?)\b)|(b[0-9]*\.\W)</match>
</context>
<context id="standard-key" style-ref="key">
<prefix>^_?</prefix>
2006-12-21 23:48:19 -06:00
<suffix>\%{key-suffix}</suffix>
<keyword>Actions</keyword>
<keyword>BinaryPattern</keyword>
<keyword>Categories</keyword>
<keyword>Comment</keyword>
<keyword>DefaultApp</keyword>
<keyword>Dev</keyword>
<keyword>Encoding</keyword>
<keyword>Exec</keyword>
<keyword>Extensions</keyword>
<keyword>FilePattern</keyword>
<keyword>FSType</keyword>
<keyword>GenericName</keyword>
<keyword>Hidden</keyword>
<keyword>Icon</keyword>
<keyword>MapNotify</keyword>
<keyword>MimeType</keyword>
<keyword>MiniIcon</keyword>
<keyword>MountPoint</keyword>
<keyword>Name</keyword>
<keyword>NoDisplay</keyword>
<keyword>NotShowIn</keyword>
<keyword>OnlyShowIn</keyword>
<keyword>Path</keyword>
<keyword>Patterns</keyword>
<keyword>Protocols</keyword>
<keyword>ReadOnly</keyword>
<keyword>SortOrder</keyword>
<keyword>StartupNotify</keyword>
<keyword>StartupWMClass</keyword>
<keyword>SwallowExec</keyword>
<keyword>SwallowTitle</keyword>
<keyword>Terminal</keyword>
<keyword>TerminalOptions</keyword>
<keyword>TryExec</keyword>
<keyword>Type</keyword>
<keyword>UnmountIcon</keyword>
<keyword>URL</keyword>
<keyword>Version</keyword>
</context>
<context id="non-standard-key" style-ref="key">
2006-12-21 23:48:19 -06:00
<match>^_?X\-[a-zA-Z\-]+\%{key-suffix}</match>
</context>
<context id="key-categories" end-at-line-end="true">
2006-12-21 23:48:19 -06:00
<start>^(_?Categories)\%{key-suffix}</start>
<include>
<context sub-pattern="1" where="start" style-ref="key"/>
<context style-ref="category">
<keyword>Application</keyword>
<keyword>Utility</keyword>
<keyword>TextEditor</keyword>
</context>
</include>
</context>
<context id="key">
<include>
<context ref="key-categories"/>
<context ref="standard-key"/>
<context ref="non-standard-key"/>
</include>
</context>
<context id="desktop">
<include>
2007-05-06 07:51:26 -05:00
<context ref="def:shell-like-comment"/>
<context ref="group"/>
2006-12-31 04:54:51 -06:00
<context ref="key"/>
<context id="lang-and-value" end-at-line-end="true">
<start>(\[[a-zA-Z_]+\])?\s*=\s*</start>
<include>
<context sub-pattern="1" where="start" style-ref="language"/>
<context ref="boolean"/>
<context ref="exec-parameter"/>
<context ref="encoding"/>
<context ref="number"/>
</include>
</context>
</include>
</context>
</definitions>
2006-08-26 04:46:29 -05:00
</language>