Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-22 01:16:37 +0300
committerCampbell Barton <campbell@blender.org>2022-04-22 03:11:48 +0300
commit2547c3c70ceef763ae9698b8dc76c12168a605d4 (patch)
treeeccc4cff0d39cb866a66ca0d432bdc2a3ec71a45 /source/blender/editors/space_text
parent179100c021269c278396c9a8039a0b75703c5f3a (diff)
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r--source/blender/editors/space_text/text_format_py.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/text_format_py.c b/source/blender/editors/space_text/text_format_py.c
index 6658ac5a83c..47d0168195b 100644
--- a/source/blender/editors/space_text/text_format_py.c
+++ b/source/blender/editors/space_text/text_format_py.c
@@ -31,12 +31,16 @@
static int txtfmt_py_find_builtinfunc(const char *string)
{
int i, len;
- /* list is from...
+ /**
+ * The following items are derived from this list:
+ * \code{.py}
* ", ".join(['"%s"' % kw
* for kw in sorted(__import__("keyword").kwlist + __import__("keyword").softkwlist)
* if kw not in {"False", "None", "True", "def", "class", "_"}])
+ * \endcode
*
- * ... and for this code:
+ * The code below can be re-generated using:
+ * \code{.py}
* import keyword
* ignore = {"False", "None", "True", "def", "class", "_"}
* keywords = sorted(set(keyword.kwlist + keyword.softkwlist) - ignore)
@@ -48,6 +52,7 @@ static int txtfmt_py_find_builtinfunc(const char *string)
* for (i, kw) in enumerate(keywords)]) + "\n" +
* last % (' '*(longest-2)) + "\n" +
* "}")
+ * \endcode
*/
/* Keep aligned args for readability. */