/usr/share/source-highlight/python.lang is in libsource-highlight-common 3.1.7-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 | preproc = "import|from"
include "script_comment.lang"
include "number.lang"
keyword = "and|assert|break|class|continue|def|del|elif|else|except|exec",
"finally|for|global|if|in|is|lambda|not|or|pass",
"print|raise|return|try|while"
comment delim '^([[:space:]]*\'{3})' '(\'{3})' multiline
comment delim '^([[:space:]]*\"{3})' '(\"{3})' multiline
comment = '^([[:space:]]*\'(?:[^\\\']|\\.)*\'[[:space:]]*|[[:space:]]*\"(?:[^\\\"]|\\.)*\"[[:space:]]*)$'
string delim '([[:space:]]*\'{3})' '(\'{3})' multiline
string delim '([[:space:]]*\"{3})' '(\"{3})' multiline
string delim "\"" "\"" escape "\\"
string delim "'" "'" escape "\\"
include "symbols.lang"
symbol = "{|}"
include "function.lang"
|