"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/cobol.lang" (12 May 2020, 4964 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 
    2 Description="COBOL"
    3 
    4 Categories = {"source"}
    5 
    6 Identifiers=[[ [a-zA-Z_][\w\-]* ]]
    7 
    8 Keywords={
    9   { Id=1,
   10     List={"accept", "access",  "add", "advancing", "after", "all", "alphabet",
   11         "alphabetic", "alphabetic-lower", "alphabetic-upper", "alphanumeric",
   12         "alphanumeric-edited", "also", "alter", "alternate", "and", "any", "are",
   13         "area", "areas", "ascending", "assign", "at", "author", "before",  "binary",
   14         "blank", "block", "bottom", "by", "call", "cancel",    "cd", "cf", "ch",
   15         "character", "characters", "class", "clock-units", "close", "cobol", "code",
   16         "code-set", "collating", "column",    "comma",  "common", "communication",
   17         "comp", "comp-0", "comp-1", "comp-2", "comp-3", "comp-4", "comp-5", "comp-6",
   18         "comp-x", "computational", "computational-0", "computational-1",
   19         "computational-2", "computational-3", "computational-4", "computational-5",
   20         "computational-6", "computational-x", "compute", "configuration", "contains",
   21         "content", "continue", "control", "control-area", "controls", "converting",
   22         "copy",    "corr", "corresponding", "count",     "currency", "data", "date",
   23         "date-compiled", "date-written", "day", "day-of-week", "de", "debug-contents",
   24         "debug-item", "debug-line", "debug-name", "debug-sub-1", "debug-sub-2",
   25         "debug-sub-3", "debugging", "decimal-point", "declaratives", "delete",
   26         "delimited", "delimiter", "depending", "descending", "destination", "detail",
   27         "disable", "display",  "divide", "division", "down", "duplicates", "dynamic",
   28         "egi", "else", "emi", "enable", "end",    "end-add", "end-call", "end-compute",
   29         "end-delete", "end-divide", "end-evaluate", "end-if", "end-multiply",
   30         "end-of-page", "end-perform", "end-read", "end-receive", "end-return",
   31         "end-rewrite", "end-search", "end-start", "end-string", "end-subtract",
   32         "end-unstring", "end-write", "enter",    "environment",    "eop",    "equal",
   33         "error", "esi", "evaluate", "every",  "exception", "exit", "extend",
   34         "external", "false", "fd",  "file", "file-control",     "filler", "final",
   35         "first", "footing", "for", "from", "function", "generate", "giving", "global",
   36         "go", "greater", "group", "heading",    "high-value", "high-values", "i-o",
   37         "i-o-control", "identification", "if", "in", "index", "indexed", "indicate",
   38         "initial", "initialize", "initiate", "input", "input-output",    "inspect",
   39         "installation", "into", "invalid", "just", "justified", "key", "label", "last",
   40         "leading",    "left",  "length",    "less", "limit", "limits", "linage",
   41         "linage-counter", "line", "line-counter", "lines", "linkage",    "lock",
   42         "low-value", "low-values", "memory", "merge", "message",    "mode",
   43         "modules", "more-labels", "move", "multiple", "multiply", "native",
   44         "negative", "next", "no",  "not",   "number", "numeric", "numeric-edited",
   45         "object-computer",    "occurs", "of", "off", "omitted", "on",    "open",
   46         "optional", "or", "order", "organization", "other",    "output", "overflow",
   47         "packed-decimal", "padding", "page", "page-counter",  "perform", "pf", "ph",
   48         "pic", "picture", "plus", "pointer",    "position",    "positive",
   49         "printing",  "procedure",    "procedures", "proceed",  "program", "program-id",
   50         "purge", "queue", "quote", "quotes", "random",    "rd", "read",    "receive",
   51         "record",  "records", "redefines", "reel", "reference", "references",
   52         "relative", "release",    "remainder",    "removal", "renames",  "replace",
   53         "replacing", "report", "reporting", "reports",  "rerun", "reserve",    "return",
   54         "reversed", "rewind", "rewrite", "rf", "rh", "right", "rounded", "run",
   55         "same",    "sd", "search", "section",    "security",    "segment",
   56         "segment-limit", "select",     "send", "sentence", "separate", "sequence",
   57         "sequential",    "set",  "sign", "size", "sort",     "sort-merge",   "source",
   58         "source-computer", "space",    "spaces", "special-names", "standard",
   59         "standard-1", "standard-2", "start",    "status", "stop",    "string",
   60         "sub-queue-1", "sub-queue-2", "sub-queue-3",    "subtract", "sum", "super",
   61         "suppress", "symbolic", "sync", "synchronized", "tallying", "tape", "terminal",
   62         "terminate", "test", "text", "than", "then", "through", "thru", "time",
   63         "times",    "to", "top",    "trailing",     "true", "type", "unit",
   64         "unstring", "until", "up",    "upon",        "usage", "use",      "using",
   65         "value", "values",      "varying", "when",      "with", "words",
   66         "working-storage", "write", "zero",      "zeroes", "zeros"},
   67   },
   68 }
   69 
   70 Strings={
   71   Delimiter=[["|']],
   72 }
   73 
   74 IgnoreCase=true
   75 
   76 Comments={
   77   { Block=false,
   78     Delimiter= { [[\*|\/]] },
   79   },
   80 }
   81 
   82 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\%|\+|\-]]
   83