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