3 * Description: Python programming language.
4 * Author: Andy Eskilsson <Andy.Eskilsson@telelogic.se>
7 state python_string extends Highlight
18 state python extends HighlightEntry
28 /(\"\"\"|[\'][\'][\'])/ {
29 python_string_end = regexp($0);
37 python_string_end = regexp( $0 );
45 /([ \t]*)(def)([ \t]+)([^(]*)/ {
58 function_name_face (true);
60 function_name_face (false);
64 (build-re '(and assert break class continue def del elif else
65 else: except except: exec finally for from global if import in
66 is lambda not or pass print raise return try try: while
68 /\b(a(nd|ssert)|break|c(lass|ontinue)|de(f|l)\
69 |e(l(if|se(|:))|x(cept(|:)|ec))|f(inally|or|rom)|global|i(f|mport|n|s)\
70 |lambda|not|or|p(ass|rint)|r(aise|eturn)|try(|:)|while|yield)\b/ {