tconf.h: better grouping of python keywords - neatvi - [fork] simple vi-type ed… | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit e6a3b18b888ad72913af4df2e3915b4359580453 | |
parent 7923431022957f9ab3ba620129d1da94612523cd | |
Author: Ali Gholami Rudi <[email protected]> | |
Date: Thu, 11 Nov 2021 18:24:23 +0330 | |
conf.h: better grouping of python keywords | |
Diffstat: | |
M conf.h | 7 +++++-- | |
1 file changed, 5 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/conf.h b/conf.h | |
t@@ -86,8 +86,11 @@ static struct highlight { | |
/* python */ | |
{"py", {2}, "^#.*$"}, | |
- {"py", {5}, "\\<(and|break|class|continue|def|del|elif|else|except|fin… | |
- {"py", {5}, "\\<(if|import|in|is|lambda|not|or|pass|print|raise|return… | |
+ {"py", {5}, "\\<(class|def)\\>"}, | |
+ {"py", {5}, "\\<(and|or|not|is|in)\\>"}, | |
+ {"py", {5}, "\\<(import|from|global|lambda|del)\\>"}, | |
+ {"py", {5}, "\\<(for|while|if|elif|else|pass|return|break|continue)\\>… | |
+ {"py", {5}, "\\<(try|except|as|raise|finally|with)\\>"}, | |
{"py", {0, 0 | SYN_BD}, "([a-zA-Z][a-zA-Z0-9_]+)\\(", 1}, | |
{"py", {4}, "[\"']([^\"']|\\\\\")*[\"']"}, | |