patch [#33609] Syntax highlighting for OSL in Text Editor
authorCampbell Barton <ideasman42@gmail.com>
Sat, 29 Dec 2012 18:25:03 +0000 (18:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 29 Dec 2012 18:25:03 +0000 (18:25 +0000)
commite9c7aaaa3ccd83ee0bb6076f1f9fb2ac5653187f
tree974e3fd9e901997e46532fafaa1d255bbac6fdcf
parent14ea0845807dc98a9d4601fcb5d7b232262be5dd
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'.
13 files changed:
doc/python_api/sphinx_doc_gen.py
source/blender/blenkernel/BKE_blender.h
source/blender/editors/include/UI_resources.h
source/blender/editors/interface/resources.c
source/blender/editors/space_text/CMakeLists.txt
source/blender/editors/space_text/space_text.c
source/blender/editors/space_text/text_draw.c
source/blender/editors/space_text/text_format.c
source/blender/editors/space_text/text_format.h
source/blender/editors/space_text/text_format_osl.c [new file with mode: 0644]
source/blender/makesdna/DNA_text_types.h
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_userdef.c