"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/yang.lang" (12 May 2020, 1812 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. See also the last Fossies "Diffs" side-by-side code changes report for "yang.lang": 3.53_vs_3.54.

    1 Description="Yang"
    2 
    3 -- Syntax file created by A. Aniruddha
    4 
    5 Categories = {"protocol"}
    6 
    7 Identifiers=[[ [a-zA-Z_][\w\-]* ]]
    8 
    9 Keywords={
   10   { Id=1,
   11     List={
   12       "anyxml", "argument", "augment", "base", "belongs-to", "bit",
   13       "case", "choice", "config", "contact", "container", "default",
   14       "description", "enum", "error-app-tag", "error-message", "extension",
   15       "deviation", "deviate", "feature", "fraction-digits", "grouping",
   16       "identity", "if-feature", "import", "include", "input", "key", "leaf",
   17       "leaf-list", "length", "list", "mandatory", "max-elements", "min-elements",
   18       "module", "must", "namespace", "notification", "ordered-by", "organization",
   19       "output", "path", "pattern", "position", "prefix", "presence", "range",
   20       "reference", "refine", "require-instance", "revision", "revision-date",
   21       "rpc", "status", "submodule", "type", "typedef", "unique", "units", "uses",
   22       "value", "when", "yang-version", "yin-element", "add", "current", "delete",
   23       "deprecated", "false", "max", "min", "not-supported", "obsolete", "replace",
   24       "system", "true", "unbounded", "user" }, },
   25   { Id=2,
   26     List={
   27       "binary", "bits", "boolean", "decimal64", "empty", "enumeration",
   28       "identityref", "instance-identifier", "int8", "int16", "int32",
   29       "int64", "leafref", "string", "uint8", "uint16", "uint32", "uint64", "union" },
   30   },
   31   { Id=3,
   32     Regex=[[@\w+]],
   33   },
   34   { Id=4,
   35     Regex=[[(\w+)\s*\(]],
   36   },
   37 }
   38 
   39 Strings={
   40   Delimiter=[["|']],
   41   Escape = [[ \\u\d{4}|\\x?\d{3}|\\\w|\\[\'\\\"] ]]
   42 }
   43 
   44 IgnoreCase=false
   45 
   46 Comments={
   47   { Block=false,
   48     Delimiter= { [[\/\/]] },
   49   },
   50   { Block=true,
   51     Nested=false,
   52     Delimiter= { [[\/\*]],[[\*\/]],}
   53   }
   54 }
   55 
   56 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\|]]
   57 
   58 EnableIndentation=true
   59