"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/chpl.lang" (12 May 2020, 1558 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 "chpl.lang": 3.53_vs_3.54.

    1 -- Chapel language definition file for highlight http://www.andre-simon.de/
    2 -- This file is written in Lua
    3 --
    4 -- Author: Lydia Duncan
    5 -- Date  : April 28, 2016
    6 --
    7 -- The file is used to describe keywords and special symbols of programming languages.
    8 -- See README in the highlight directory for details.
    9 
   10 Description="Chapel"
   11 
   12 Categories = {"source"}
   13 
   14 Keywords={
   15   { Id=1,
   16     List={
   17       "as", "align", "atomic", "begin", "break", "by", "class", "cobegin",
   18       "coforall", "config", "const", "continue", "proc", "iter", "delete",
   19       "dmapped", "do", "domain", "else", "enum", "except", "export",
   20       "extern", "false", "for", "forall", "if", "in", "index", "inline",
   21       "inout", "label", "lambda", "let", "local", "module", "new", "nil",
   22       "noinit", "on", "only", "otherwise", "out", "param", "private",
   23       "public", "record", "reduce", "ref", "require", "return", "scan",
   24       "select", "serial", "single", "sparse", "subdomain", "sync", "then",
   25       "true", "type", "union", "use", "var", "when", "where", "while",
   26       "with", "yield", "zip"
   27     }
   28   },
   29   { Id=2,
   30     List= { "bool", "complex", "imag", "int", "opaque", "range", "real",
   31             "string", "uint"
   32           }
   33   },
   34   { Id=3,
   35     Regex=[[(\w+)\s*\(]]
   36   }
   37 }
   38 
   39 Strings = {
   40   Delimiter=[["|']]
   41 }
   42 
   43 Comments = {
   44   { Block=true,
   45     Nested=true,
   46     Delimiter = { [[\/\*]], [[\*\/]] }
   47   },
   48   {
   49     Block=false,
   50     Delimiter = { [[//]] }
   51   }
   52 }
   53 
   54 IgnoreCase=false
   55 
   56 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\/|\*|\%|\+|\-|=|\&|\?|<|>|\!|\~|\||\^|!|#]]
   57 
   58 EnableIndentation=true