Recognize .exp (Expect) files as Tcl
[geany-mirror.git] / scintilla / lexlib / Accessor.h
blob00b2a54dae0370dc6c82ec3b6188baca0e999494
1 // Scintilla source code edit control
2 /** @file Accessor.h
3 ** Interfaces between Scintilla and lexers.
4 **/
5 // Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
8 #ifndef ACCESSOR_H
9 #define ACCESSOR_H
11 #ifdef SCI_NAMESPACE
12 namespace Scintilla {
13 #endif
15 enum { wsSpace=1, wsTab=2, wsSpaceTab=4, wsInconsistent=8 };
17 class Accessor;
18 class WordList;
19 class PropSetSimple;
21 typedef bool (*PFNIsCommentLeader)(Accessor &styler, Sci_Position pos, Sci_Position len);
23 class Accessor : public LexAccessor {
24 public:
25 PropSetSimple *pprops;
26 Accessor(IDocument *pAccess_, PropSetSimple *pprops_);
27 int GetPropertyInt(const char *, int defaultValue=0) const;
28 int IndentAmount(Sci_Position line, int *flags, PFNIsCommentLeader pfnIsCommentLeader = 0);
31 #ifdef SCI_NAMESPACE
33 #endif
35 #endif