~ubuntu-branches/ubuntu/natty/geany/natty

« back to all changes in this revision

Viewing changes to scintilla/include/KeyWords.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-08-07 03:23:12 UTC
  • mfrom: (1.4.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20100807032312-ot70ac9d50cn79we
Tags: upstream-0.19
ImportĀ upstreamĀ versionĀ 0.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
namespace Scintilla {
10
10
#endif
11
11
 
 
12
/**
 
13
 */
 
14
class WordList {
 
15
public:
 
16
        // Each word contains at least one character - a empty word acts as sentinel at the end.
 
17
        char **words;
 
18
        char *list;
 
19
        int len;
 
20
        bool onlyLineEnds;      ///< Delimited by any white space or only line ends
 
21
        bool sorted;
 
22
        int starts[256];
 
23
        WordList(bool onlyLineEnds_ = false) :
 
24
                words(0), list(0), len(0), onlyLineEnds(onlyLineEnds_),
 
25
                sorted(false)
 
26
                {}
 
27
        ~WordList() { Clear(); }
 
28
        operator bool() { return len ? true : false; }
 
29
        void Clear();
 
30
        void Set(const char *s);
 
31
        bool InList(const char *s);
 
32
        bool InListAbbreviated(const char *s, const char marker);
 
33
};
 
34
 
12
35
typedef void (*LexerFunction)(unsigned int startPos, int lengthDoc, int initStyle,
13
36
                  WordList *keywordlists[], Accessor &styler);
14
37