2010-08-21 23:59:56 +00:00
|
|
|
// Scintilla source code edit control
|
|
|
|
/** @file Accessor.h
|
|
|
|
** Interfaces between Scintilla and lexers.
|
|
|
|
**/
|
|
|
|
// Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
|
|
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
|
|
|
|
#ifndef ACCESSOR_H
|
|
|
|
#define ACCESSOR_H
|
|
|
|
|
|
|
|
namespace Scintilla {
|
|
|
|
|
2015-06-07 21:19:26 +00:00
|
|
|
enum { wsSpace=1, wsTab=2, wsSpaceTab=4, wsInconsistent=8 };
|
2010-08-21 23:59:56 +00:00
|
|
|
|
|
|
|
class Accessor;
|
|
|
|
class WordList;
|
|
|
|
class PropSetSimple;
|
|
|
|
|
2019-05-04 18:14:48 +00:00
|
|
|
typedef bool (*PFNIsCommentLeader)(Accessor &styler, Sci_Position pos, Sci_Position len);
|
2010-08-21 23:59:56 +00:00
|
|
|
|
|
|
|
class Accessor : public LexAccessor {
|
|
|
|
public:
|
|
|
|
PropSetSimple *pprops;
|
|
|
|
Accessor(IDocument *pAccess_, PropSetSimple *pprops_);
|
2013-08-28 00:44:27 +00:00
|
|
|
int GetPropertyInt(const char *, int defaultValue=0) const;
|
2019-05-04 18:14:48 +00:00
|
|
|
int IndentAmount(Sci_Position line, int *flags, PFNIsCommentLeader pfnIsCommentLeader = 0);
|
2010-08-21 23:59:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|