"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/rnc.lang" (12 May 2020, 1504 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 -- Language definition generated by lang2to3, added to by rsperberg
    2 
    3 Description="Relax NG"
    4 
    5 Categories = {"markup"}
    6 
    7 Keywords={
    8   { Id=1,
    9     List={"datatypes", "div", "element", "empty", "external", "grammar", "include",
   10           "inherit", "list", "mixed", "namespace", "notAllowed"},
   11   },
   12   -- allows certain keywords to be used as element/attribute names
   13   { Id=1,
   14     Regex=[[(?<!element )(default|attribute)\\s]]
   15   },
   16   { Id=1,
   17     Regex=[[(?<!attribute )start\\s]]
   18   },
   19   -- includes xsd datatypes
   20   { Id=2,
   21     list={"empty", "string", "text", "token", "xsd", "rng", "anyuri",
   22         "base64binary", "boolean", "byte", "date", "datetime", "decimal", "double",
   23         "duration", "entities", "entity", "float", "gday", "gmonth", "gmonthday",
   24         "gyear", "gyearmonth", "hexbinary", "id", "idref", "idrefs", "int", "integer",
   25         "language", "long", "name", "ncname", "negativeinteger", "nmtoken", "nmtokens",
   26         "nonnegativeinteger", "nonpositiveinteger", "normalizedstring", "notation",
   27         "positiveinteger", "qname", "short", "string", "token", "unsignedbyte",
   28         "unsignedint", "unsignedlong", "unsignedshort"},
   29   },
   30   -- allows "time" to be used as element/attribute name
   31   { Id=2,
   32     Regex=[[time(?!-)]]
   33   },
   34   { Id=2,
   35     List={"defaultValue"},
   36   },
   37   { Id=2,
   38     Regex=[[a(?=:)]]
   39   }
   40 }
   41 
   42 Strings={
   43   Delimiter=[["|\']],
   44 }
   45 
   46 IgnoreCase=false
   47 
   48 Comments={
   49   { Block=false,
   50     Delimiter= { [[#]] },
   51   },
   52 }
   53 
   54 Operators=[[\[|\]|\{|\}|\;|\.|<|>|\!|\=|\/|\%|\+|\~|\&|\=]]