/usr/share/gtksourceview-2.0/language-specs/language.dtd is in libgtksourceview2.0-common 2.10.5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | <!--
Copyright (C) 2006 Paolo Maggi <paolo@gnome.org>
Copyright (C) 2006 Leonardo Ferreira Fontenelle <leo.fontenelle@gmail.com>
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.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
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.
-->
<!-- FIXME: the "name" attribute can be "_name" to be marked for translation -->
<!ENTITY % itemattrs
"name CDATA #REQUIRED
style CDATA #REQUIRED">
<!ELEMENT language (escape-char?,(line-comment|block-comment|string|syntax-item|pattern-item|keyword-list)+)>
<!-- FIXME: the "name" and "section" attributes can be prefixed with
"_" to be marked for translation -->
<!ATTLIST language
name CDATA #REQUIRED
version CDATA #REQUIRED
section CDATA #REQUIRED
translation-domain CDATA #IMPLIED
mimetypes CDATA #REQUIRED>
<!ELEMENT escape-char (#PCDATA)>
<!ELEMENT line-comment (start-regex)>
<!ATTLIST line-comment
%itemattrs;>
<!ELEMENT block-comment (start-regex,end-regex)>
<!ATTLIST block-comment
%itemattrs;>
<!ELEMENT string (start-regex,end-regex)>
<!ATTLIST string
%itemattrs;
end-at-line-end (true|false) "true">
<!ELEMENT syntax-item (start-regex,end-regex)>
<!ATTLIST syntax-item
%itemattrs;>
<!ELEMENT pattern-item (regex)>
<!ATTLIST pattern-item
%itemattrs;>
<!ELEMENT keyword-list (keyword+)>
<!ATTLIST keyword-list
%itemattrs;
case-sensitive (true|false) "true"
match-empty-string-at-beginning (true|false) "false"
match-empty-string-at-end (true|false) "false"
beginning-regex CDATA #IMPLIED
end-regex CDATA #IMPLIED>
<!ELEMENT start-regex (#PCDATA)>
<!ELEMENT end-regex (#PCDATA)>
<!ELEMENT regex (#PCDATA)>
<!ELEMENT keyword (#PCDATA)>
|