diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-29 22:25:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-29 22:25:03 +0400 |
commit | e9c7aaaa3ccd83ee0bb6076f1f9fb2ac5653187f (patch) | |
tree | 974e3fd9e901997e46532fafaa1d255bbac6fdcf /doc | |
parent | 14ea0845807dc98a9d4601fcb5d7b232262be5dd (diff) |
patch [#33609] Syntax highlighting for OSL in Text Editor
from Patrick Boelens (senshi). with modifications to split it into its own function.
also added C style multi-line comment support /* ... */
I've left out the part of this patch that sets the language in the space, since I think this might be better stored in the text block.
For now it simply uses OSL syntax highlighting when the extension is '.osl'.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 441a6c04efe..af6ddac937e 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -612,6 +612,10 @@ def pyfunc2sphinx(ident, fw, identifier, py_func, is_class=True): ''' function or class method to sphinx ''' + + if type(py_func) == type(bpy.types.Space.draw_handler_add): + return + arg_str = inspect.formatargspec(*inspect.getargspec(py_func)) if not is_class: |