/usr/share/highlight/langDefs/pyrex.lang is in highlight-common 3.18-3.
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 | -- Language definition generated by lang2to3
Description="Pyrex"
Keywords={
{ Id=1,
List={"global", "nextgroup", "pythonfunction", "skipwhite", "contained", "chr", "cmp", "coerce", "compile", "complex", "delattr", "dir", "divmod", "eval", "execfile", "filter", "getattr", "globals", "hasattr", "hash", "hex", "id", "input", "intern", "isinstance", "issubclass", "len", "list", "locals", "long", "map", "max", "min", "oct", "open", "ord", "pow", "range", "raw_input", "reduce", "reload", "repr", "round", "setattr", "slice", "str", "tuple", "type", "vars", "xrange", "apply", "sizeof", "abs", "callable", "exec"},
},
{ Id=2,
List={"import", "from", "self", "public", "extern", "struct", "as", "break", "continue", "del", "except", "finally", "pass", "print", "raise", "return", "lambda", "class", "try", "assert", "def", "for", "while", "if", "elif", "else", "and", "in", "is", "not", "or", "cdef", "ctypedef"},
},
{ Id=3,
List={"arithmeticerror", "assertionerror", "attributeerror", "eoferror", "exception", "floatingpointerror", "ioerror", "importerror", "indexerror", "keyerror", "keyboardinterrupt", "lookuperror", "memoryerror", "nameerror", "notimplementederror", "oserror", "overflowerror", "runtimeerror", "standarderror", "syntaxerror", "systemerror", "systemexit", "typeerror", "valueerror", "zerodivisionerror", "environmenterror", "void", "char", "int", "float", "object"},
},
}
Strings={
Delimiter=[["""|'''|"|']],
RawPrefix="r",
}
IgnoreCase=true
Comments={
{ Block=false,
Delimiter= { [[#]] },
},
}
Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-]]
--FIXME no default escchar param: regex(\\\d{3}|\\x[[:xdigit:]]{2}|\\[ntvbrfa\\\?'"])
|