Added missing keywords: as, with, False, None and True.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1354 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2007-03-01 22:16:58 +00:00
parent 926437688f
commit 66b75da8a2
3 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@
* src/build.c, src/tools.c, src/utils.c, src/utils.h:
Set IO channels for custom commands to blocking mode
(thanks to Jeff Pohlmeyer).
* data/filetypes.python:
Added missing keywords: as, with, False, None and True.
2007-02-28 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -18,7 +18,7 @@ stringeol=0x000000;0xe0c0e0;false;false
[keywords]
# all items must be in one line
primary=and assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while yield
primary=and as assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while with yield False None True
[settings]

View File

@ -1584,7 +1584,7 @@ static void styleset_python_init(void)
get_keyfile_hex(config, config_home, "styling", "stringeol", "0x000000", "0xe0c0e0", "false", &style_sets[GEANY_FILETYPES_PYTHON].styling[13]);
style_sets[GEANY_FILETYPES_PYTHON].keywords = g_new(gchar*, 2);
get_keyfile_keywords(config, config_home, "keywords", "primary", GEANY_FILETYPES_PYTHON, 0, "and assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while yield");
get_keyfile_keywords(config, config_home, "keywords", "primary", GEANY_FILETYPES_PYTHON, 0, "and as assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while with yield False None True");
style_sets[GEANY_FILETYPES_PYTHON].keywords[1] = NULL;
get_keyfile_wordchars(config, config_home,