diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-07-28 15:05:35 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-07-28 15:05:35 +0400 |
commit | f45aca0447e09c5c36bba31f5de48d6554cdc4f9 (patch) | |
tree | 0721548ea673a2d8e900f22027f7872abfbca11b /source/blender/include/BIF_drawtext.h | |
parent | 01a6d44b07efb349397fef4a4cfb4ee19bc6751d (diff) |
Complete rewrite of syntax highlighting and formatting. Some improvements:
- Takes less than half the time to format a full document
- Where possible only the required lines are re-parsed when text is changed (was the whole file, for every key press!)
- Memory is allocated in one place only (there were all sorts of problems here)
- Should be easily extensible for other scripting languages
- Lots of comments to make it very easy to follow / change
- def and class are now properly coloured. They had a theme colour but the checks didn't work.
Diffstat (limited to 'source/blender/include/BIF_drawtext.h')
-rw-r--r-- | source/blender/include/BIF_drawtext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/include/BIF_drawtext.h b/source/blender/include/BIF_drawtext.h index 19f9d50e774..9f0b98435c5 100644 --- a/source/blender/include/BIF_drawtext.h +++ b/source/blender/include/BIF_drawtext.h @@ -45,7 +45,8 @@ void add_text_fs(char *file); void free_txt_data(void); void pop_space_text(struct SpaceText *st); -void get_format_string(struct SpaceText *st); +void txt_format_text(struct SpaceText *st); +void txt_format_line(struct SpaceText *st, struct TextLine *line, int do_next); void do_brackets(void); #endif |