tconf.h: better grouping of python keywords - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit e6a3b18b888ad72913af4df2e3915b4359580453
(DIR) parent 7923431022957f9ab3ba620129d1da94612523cd
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
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(-)
---
(DIR) 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|finally|for|from|global)\\>"},
- {"py", {5}, "\\<(if|import|in|is|lambda|not|or|pass|print|raise|return|try|while)\\>"},
+ {"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}, "[\"']([^\"']|\\\\\")*[\"']"},