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/makesdna/DNA_text_types.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/makesdna/DNA_text_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_text_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_text_types.h b/source/blender/makesdna/DNA_text_types.h index fc2a28ea320..bec4e0062f9 100644 --- a/source/blender/makesdna/DNA_text_types.h +++ b/source/blender/makesdna/DNA_text_types.h @@ -76,4 +76,12 @@ typedef struct Text { #define TXT_READONLY 0x0100 #define TXT_FOLLOW 0x0200 /* always follow cursor (console) */ +/* format continuation flags */ +#define TXT_NOCONT 0x00 /* no continuation */ +#define TXT_SNGQUOTSTR 0x01 /* single quotes */ +#define TXT_DBLQUOTSTR 0x02 /* double quotes */ +#define TXT_TRISTR 0x04 /* triplets of quotes: """ or ''' */ +#define TXT_SNGTRISTR 0x05 /*(TXT_TRISTR | TXT_SNGQUOTSTR)*/ +#define TXT_DBLTRISTR 0x06 /*(TXT_TRISTR | TXT_DBLQUOTSTR)*/ + #endif |