• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • syntax
katehighlighthelpers.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001,2002 Joseph Wenninger <jowenn@kde.org>
3  Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
4  Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __KATE_HIGHLIGHTHELPERS_H__
22 #define __KATE_HIGHLIGHTHELPERS_H__
23 
24 #include "katehighlight.h"
25 
26 #include <QRegExp>
27 
28 class KateHlItem
29 {
30  public:
31  KateHlItem(int attribute, KateHlContextModification context,signed char regionId, signed char regionId2);
32  virtual ~KateHlItem();
33 
34  public:
35  // caller must keep in mind: LEN > 0 is a must !!!!!!!!!!!!!!!!!!!!!1
36  // Now, the function returns the offset detected, or 0 if no match is found.
37  // bool linestart isn't needed, this is equivalent to offset == 0.
38  virtual int checkHgl(const QString& text, int offset, int len) = 0;
39 
40  virtual bool lineContinue(){return false;}
41 
42  virtual void capturedTexts (QStringList &) { }
43  virtual KateHlItem *clone(const QStringList *) {return this;}
44 
45  static void dynamicSubstitute(QString& str, const QStringList *args);
46 
47  QVector<KateHlItem*> subItems;
48  int attr;
49  KateHlContextModification ctx;
50  signed char region;
51  signed char region2;
52 
53  bool lookAhead;
54 
55  bool dynamic;
56  bool dynamicChild;
57  bool firstNonSpace;
58  bool onlyConsume;
59  int column;
60 
61  // start enable flags, nicer than the virtual methodes
62  // saves function calls
63  bool alwaysStartEnable;
64  bool customStartEnable;
65 
66  // set to true when you cached something
67  bool haveCache;
68  // internal for doHighlight, don't set it in the items
69  bool cachingHandled;
70 };
71 
72 class KateHlContext
73 {
74  public:
75  KateHlContext(const QString &_hlId, int attribute, KateHlContextModification _lineEndContext,
76  bool _fallthrough, KateHlContextModification _fallthroughContext, bool _dynamic,bool _noIndentationBasedFolding,
77  bool _emptyLineContex, KateHlContextModification _emptyLineContextModification
78  );
79  virtual ~KateHlContext();
80  KateHlContext *clone(const QStringList *args);
81 
82  QVector<KateHlItem*> items;
83  QString hlId;
84  int attr;
85  KateHlContextModification lineEndContext;
91  bool fallthrough;
92  KateHlContextModification ftctx; // where to go after no rules matched
93 
94  bool dynamic;
95  bool dynamicChild;
96  bool noIndentationBasedFolding;
97 
98  bool emptyLineContext;
99  KateHlContextModification emptyLineContextModification;
100 };
101 
102 class KateHlIncludeRule
103 {
104  public:
105  explicit KateHlIncludeRule(int ctx_=0, uint pos_=0, const QString &incCtxN_="", bool incAttrib=false)
106  : ctx(ctx_)
107  , pos( pos_)
108  , incCtxN( incCtxN_ )
109  , includeAttrib( incAttrib )
110  {
111  incCtx=-1;
112  }
113  //KateHlIncludeRule(int ctx_, uint pos_, bool incAttrib) {ctx=ctx_;pos=pos_;incCtx=-1;incCtxN="";includeAttrib=incAttrib}
114 
115  public:
116  int ctx;
117  uint pos;
118  KateHlContextModification incCtx;
119  QString incCtxN;
120  bool includeAttrib;
121 };
122 
123 class KateHlCharDetect : public KateHlItem
124 {
125  public:
126  KateHlCharDetect(int attribute, KateHlContextModification context,signed char regionId,signed char regionId2, QChar);
127 
128  virtual int checkHgl(const QString& text, int offset, int len);
129  virtual KateHlItem *clone(const QStringList *args);
130 
131  private:
132  QChar sChar;
133 };
134 
135 class KateHl2CharDetect : public KateHlItem
136 {
137  public:
138  KateHl2CharDetect(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2, QChar ch1, QChar ch2);
139  KateHl2CharDetect(int attribute, KateHlContextModification context,signed char regionId,signed char regionId2, const QChar *ch);
140 
141  virtual int checkHgl(const QString& text, int offset, int len);
142  virtual KateHlItem *clone(const QStringList *args);
143 
144  private:
145  QChar sChar1;
146  QChar sChar2;
147 };
148 
149 class KateHlStringDetect : public KateHlItem
150 {
151  public:
152  KateHlStringDetect(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2, const QString &, bool inSensitive=false);
153 
154  virtual int checkHgl(const QString& text, int offset, int len);
155  virtual KateHlItem *clone(const QStringList *args);
156 
157  protected:
158  const QString str;
159  const int strLen;
160  const bool _inSensitive;
161 };
162 
163 class KateHlWordDetect : public KateHlStringDetect
164 {
165  public:
166  KateHlWordDetect(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, const QString &, bool inSensitive = false);
167 
168  virtual int checkHgl(const QString& text, int offset, int len);
169  virtual KateHlItem *clone(const QStringList *args);
170 };
171 
172 class KateHlRangeDetect : public KateHlItem
173 {
174  public:
175  KateHlRangeDetect(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2, QChar ch1, QChar ch2);
176 
177  virtual int checkHgl(const QString& text, int offset, int len);
178 
179  private:
180  QChar sChar1;
181  QChar sChar2;
182 };
183 
184 class KateHlKeyword : public KateHlItem
185 {
186  public:
187  KateHlKeyword(int attribute, KateHlContextModification context,signed char regionId,signed char regionId2, bool insensitive, const QString& delims);
188  virtual ~KateHlKeyword ();
189 
190  void addList(const QStringList &);
191  virtual int checkHgl(const QString& text, int offset, int len);
192  QSet<QString> allKeywords() const;
193 
194  private:
195  QVector< QSet<QString>* > dict;
196  bool _insensitive;
197  QSet<QChar> deliminators;
198  int minLen;
199  int maxLen;
200 };
201 
202 class KateHlInt : public KateHlItem
203 {
204  public:
205  KateHlInt(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2);
206 
207  virtual int checkHgl(const QString& text, int offset, int len);
208 };
209 
210 class KateHlFloat : public KateHlItem
211 {
212  public:
213  KateHlFloat(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2);
214  virtual ~KateHlFloat () {}
215 
216  virtual int checkHgl(const QString& text, int offset, int len);
217 };
218 
219 class KateHlCFloat : public KateHlFloat
220 {
221  public:
222  KateHlCFloat(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2);
223 
224  virtual int checkHgl(const QString& text, int offset, int len);
225  int checkIntHgl(const QString& text, int offset, int len);
226 };
227 
228 class KateHlCOct : public KateHlItem
229 {
230  public:
231  KateHlCOct(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2);
232 
233  virtual int checkHgl(const QString& text, int offset, int len);
234 };
235 
236 class KateHlCHex : public KateHlItem
237 {
238  public:
239  KateHlCHex(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2);
240 
241  virtual int checkHgl(const QString& text, int offset, int len);
242 };
243 
244 class KateHlLineContinue : public KateHlItem
245 {
246  public:
247  KateHlLineContinue(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2, QChar);
248 
249  virtual bool endEnable(QChar c) {return c == '\0';}
250  virtual int checkHgl(const QString& text, int offset, int len);
251  virtual bool lineContinue(){return true;}
252 
253  private:
254  QChar m_trailer;
255 };
256 
257 class KateHlCStringChar : public KateHlItem
258 {
259  public:
260  KateHlCStringChar(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2);
261 
262  virtual int checkHgl(const QString& text, int offset, int len);
263 };
264 
265 class KateHlCChar : public KateHlItem
266 {
267  public:
268  KateHlCChar(int attribute, KateHlContextModification context,signed char regionId,signed char regionId2);
269 
270  virtual int checkHgl(const QString& text, int offset, int len);
271 };
272 
273 class KateHlAnyChar : public KateHlItem
274 {
275  public:
276  KateHlAnyChar(int attribute, KateHlContextModification context, signed char regionId,signed char regionId2, const QString& charList);
277 
278  virtual int checkHgl(const QString& text, int offset, int len);
279 
280  private:
281  const QString _charList;
282 };
283 
284 class KateHlRegExpr : public KateHlItem
285 {
286  public:
287  KateHlRegExpr(int attribute, KateHlContextModification context,signed char regionId,signed char regionId2 ,const QString &expr, bool insensitive, bool minimal);
288 
289  virtual int checkHgl(const QString& text, int offset, int len);
290 
291  virtual void capturedTexts (QStringList &);
292 
293  virtual KateHlItem *clone(const QStringList *args);
294 
295  private:
296  bool handlesLinestart;
297  QString _regexp;
298  bool _insensitive;
299  bool _minimal;
300 
301  // optimization stuff below
303  int _lastOffset;
305  int _lastOffsetLength;
306 
307  QRegExp Expr;
308 };
309 
310 class KateHlDetectSpaces : public KateHlItem
311 {
312  public:
313  KateHlDetectSpaces (int attribute, KateHlContextModification context,signed char regionId,signed char regionId2)
314  : KateHlItem(attribute,context,regionId,regionId2) {}
315 
316  virtual int checkHgl(const QString& text, int offset, int len)
317  {
318  int len2 = offset + len;
319  while ((offset < len2) && text[offset].isSpace()) offset++;
320  return offset;
321  }
322 };
323 
324 class KateHlDetectIdentifier : public KateHlItem
325 {
326  public:
327  KateHlDetectIdentifier (int attribute, KateHlContextModification context,signed char regionId,signed char regionId2)
328  : KateHlItem(attribute,context,regionId,regionId2) { alwaysStartEnable = false; }
329 
330  virtual int checkHgl(const QString& text, int offset, int len)
331  {
332  // first char should be a letter or underscore
333  if ( text[offset].isLetter() || text[offset] == QChar ('_') )
334  {
335  // memorize length
336  int len2 = offset+len;
337 
338  // one char seen
339  offset++;
340 
341  // now loop for all other thingies
342  while (
343  (offset < len2)
344  && (text[offset].isLetterOrNumber() || (text[offset] == QChar ('_')))
345  )
346  offset++;
347 
348  return offset;
349  }
350 
351  return 0;
352  }
353 };
354 
355 //END
356 
357 #endif
358 
359 // kate: space-indent on; indent-width 2; replace-tabs on;
KateHlItem::lineContinue
virtual bool lineContinue()
Definition: katehighlighthelpers.h:40
KateHlIncludeRule::includeAttrib
bool includeAttrib
Definition: katehighlighthelpers.h:120
katehighlight.h
KateHlStringDetect::str
const QString str
Definition: katehighlighthelpers.h:158
KateHlCChar::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:800
KateHlStringDetect::_inSensitive
const bool _inSensitive
Definition: katehighlighthelpers.h:160
KateHlCharDetect::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:95
KateHlInt::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:370
KateHl2CharDetect::clone
virtual KateHlItem * clone(const QStringList *args)
Definition: katehighlighthelpers.cpp:132
KateHlItem::KateHlItem
KateHlItem(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:39
KateHlDetectIdentifier::KateHlDetectIdentifier
KateHlDetectIdentifier(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.h:327
KateHlContext::fallthrough
bool fallthrough
Definition: katehighlighthelpers.h:91
QChar
KateHlItem
Definition: katehighlighthelpers.h:28
KateHlWordDetect
Definition: katehighlighthelpers.h:163
KateHlWordDetect::KateHlWordDetect
KateHlWordDetect(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, const QString &, bool inSensitive=false)
Definition: katehighlighthelpers.cpp:200
KateHlContext::dynamic
bool dynamic
Definition: katehighlighthelpers.h:94
KateHlLineContinue
Definition: katehighlighthelpers.h:244
KateHlItem::onlyConsume
bool onlyConsume
Definition: katehighlighthelpers.h:58
KateHlItem::subItems
QVector< KateHlItem * > subItems
Definition: katehighlighthelpers.h:47
KateHlItem::ctx
KateHlContextModification ctx
Definition: katehighlighthelpers.h:49
KateHlIncludeRule::ctx
int ctx
Definition: katehighlighthelpers.h:116
KateHlItem::haveCache
bool haveCache
Definition: katehighlighthelpers.h:67
KateHlContext::KateHlContext
KateHlContext(const QString &_hlId, int attribute, KateHlContextModification _lineEndContext, bool _fallthrough, KateHlContextModification _fallthroughContext, bool _dynamic, bool _noIndentationBasedFolding, bool _emptyLineContex, KateHlContextModification _emptyLineContextModification)
Definition: katehighlighthelpers.cpp:841
KateHlInt::KateHlInt
KateHlInt(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:364
KateHlItem::region
signed char region
Definition: katehighlighthelpers.h:50
KateHlLineContinue::endEnable
virtual bool endEnable(QChar c)
Definition: katehighlighthelpers.h:249
KateHlRegExpr::capturedTexts
virtual void capturedTexts(QStringList &)
Definition: katehighlighthelpers.cpp:670
KateHlContext::items
QVector< KateHlItem * > items
Definition: katehighlighthelpers.h:82
KateHlItem::capturedTexts
virtual void capturedTexts(QStringList &)
Definition: katehighlighthelpers.h:42
KateHlCOct
Definition: katehighlighthelpers.h:228
KateHlContextModification
describe a modification of the context stack
Definition: katehighlight.h:61
KateHlContext
Definition: katehighlighthelpers.h:72
QRegExp
KateHlFloat::KateHlFloat
KateHlFloat(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:399
KateHlCOct::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:501
KateHlContext::lineEndContext
KateHlContextModification lineEndContext
Definition: katehighlighthelpers.h:85
KateHlRangeDetect
Definition: katehighlighthelpers.h:172
KateHlCFloat::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:585
KateHlItem::clone
virtual KateHlItem * clone(const QStringList *)
Definition: katehighlighthelpers.h:43
KateHlIncludeRule::incCtxN
QString incCtxN
Definition: katehighlighthelpers.h:119
KateHl2CharDetect::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:124
KateHlContext::emptyLineContextModification
KateHlContextModification emptyLineContextModification
Definition: katehighlighthelpers.h:99
KateHlCFloat::checkIntHgl
int checkIntHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:570
KateHlContext::noIndentationBasedFolding
bool noIndentationBasedFolding
Definition: katehighlighthelpers.h:96
KateHlRegExpr
Definition: katehighlighthelpers.h:284
KateHlContext::clone
KateHlContext * clone(const QStringList *args)
Definition: katehighlighthelpers.cpp:859
KateHlKeyword::KateHlKeyword
KateHlKeyword(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, bool insensitive, const QString &delims)
Definition: katehighlighthelpers.cpp:273
KateHlKeyword::addList
void addList(const QStringList &)
Definition: katehighlighthelpers.cpp:302
KateHlDetectIdentifier
Definition: katehighlighthelpers.h:324
KateHlCFloat
Definition: katehighlighthelpers.h:219
KateHlStringDetect::strLen
const int strLen
Definition: katehighlighthelpers.h:159
KateHlCStringChar
Definition: katehighlighthelpers.h:257
KateHlRegExpr::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:638
KateHlRangeDetect::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:254
QSet< QString >
KateHlItem::customStartEnable
bool customStartEnable
Definition: katehighlighthelpers.h:64
KateHlStringDetect::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:158
KateHlStringDetect::clone
virtual KateHlItem * clone(const QStringList *args)
Definition: katehighlighthelpers.cpp:183
KateHlContext::~KateHlContext
virtual ~KateHlContext()
Definition: katehighlighthelpers.cpp:877
KateHlLineContinue::KateHlLineContinue
KateHlLineContinue(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, QChar)
Definition: katehighlighthelpers.cpp:699
KateHlContext::dynamicChild
bool dynamicChild
Definition: katehighlighthelpers.h:95
QString
KateHlItem::firstNonSpace
bool firstNonSpace
Definition: katehighlighthelpers.h:57
KateHlIncludeRule::KateHlIncludeRule
KateHlIncludeRule(int ctx_=0, uint pos_=0, const QString &incCtxN_="", bool incAttrib=false)
Definition: katehighlighthelpers.h:105
KateHlItem::cachingHandled
bool cachingHandled
Definition: katehighlighthelpers.h:69
KateHlCHex
Definition: katehighlighthelpers.h:236
KateHlKeyword::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:333
KateHlCharDetect::KateHlCharDetect
KateHlCharDetect(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, QChar)
Definition: katehighlighthelpers.cpp:89
QStringList
KateHlItem::region2
signed char region2
Definition: katehighlighthelpers.h:51
KateHl2CharDetect
Definition: katehighlighthelpers.h:135
KateHlCStringChar::KateHlCStringChar
KateHlCStringChar(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:715
KateHlLineContinue::lineContinue
virtual bool lineContinue()
Definition: katehighlighthelpers.h:251
KateHlDetectSpaces::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.h:316
KateHlStringDetect::KateHlStringDetect
KateHlStringDetect(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, const QString &, bool inSensitive=false)
Definition: katehighlighthelpers.cpp:150
KateHlCChar
Definition: katehighlighthelpers.h:265
KateHlRegExpr::clone
virtual KateHlItem * clone(const QStringList *args)
Definition: katehighlighthelpers.cpp:675
KateHlItem::dynamicSubstitute
static void dynamicSubstitute(QString &str, const QStringList *args)
Definition: katehighlighthelpers.cpp:61
KateHlKeyword::~KateHlKeyword
virtual ~KateHlKeyword()
Definition: katehighlighthelpers.cpp:285
KateHlCharDetect
Definition: katehighlighthelpers.h:123
KateHlItem::dynamicChild
bool dynamicChild
Definition: katehighlighthelpers.h:56
KateHlKeyword::allKeywords
QSet< QString > allKeywords() const
Definition: katehighlighthelpers.cpp:290
KateHlKeyword
Definition: katehighlighthelpers.h:184
KateHlFloat::~KateHlFloat
virtual ~KateHlFloat()
Definition: katehighlighthelpers.h:214
KateHlStringDetect
Definition: katehighlighthelpers.h:149
KateHl2CharDetect::KateHl2CharDetect
KateHl2CharDetect(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, QChar ch1, QChar ch2)
Definition: katehighlighthelpers.cpp:117
KateHlCHex::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:536
KateHlAnyChar::KateHlAnyChar
KateHlAnyChar(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, const QString &charList)
Definition: katehighlighthelpers.cpp:609
QVector< KateHlItem * >
KateHlRangeDetect::KateHlRangeDetect
KateHlRangeDetect(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, QChar ch1, QChar ch2)
Definition: katehighlighthelpers.cpp:247
KateHlCHex::KateHlCHex
KateHlCHex(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:530
KateHlCStringChar::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:789
KateHlCFloat::KateHlCFloat
KateHlCFloat(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:564
KateHlIncludeRule::pos
uint pos
Definition: katehighlighthelpers.h:117
KateHlContext::emptyLineContext
bool emptyLineContext
Definition: katehighlighthelpers.h:98
KateHlCharDetect::clone
virtual KateHlItem * clone(const QStringList *args)
Definition: katehighlighthelpers.cpp:103
KateHlContext::hlId
QString hlId
A unique highlight identifier. Used to look up correct properties.
Definition: katehighlighthelpers.h:83
KateHlAnyChar
Definition: katehighlighthelpers.h:273
KateHlInt
Definition: katehighlighthelpers.h:202
KateHlCChar::KateHlCChar
KateHlCChar(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:796
KateHlItem::alwaysStartEnable
bool alwaysStartEnable
Definition: katehighlighthelpers.h:63
KateHlCOct::KateHlCOct
KateHlCOct(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.cpp:495
KateHlFloat
Definition: katehighlighthelpers.h:210
KateHlItem::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)=0
KateHlIncludeRule
Definition: katehighlighthelpers.h:102
KateHlWordDetect::clone
virtual KateHlItem * clone(const QStringList *args)
Definition: katehighlighthelpers.cpp:229
KateHlItem::lookAhead
bool lookAhead
Definition: katehighlighthelpers.h:53
KateHlDetectSpaces
Definition: katehighlighthelpers.h:310
KateHlLineContinue::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:705
KateHlWordDetect::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:213
KateHlItem::column
int column
Definition: katehighlighthelpers.h:59
KateHlIncludeRule::incCtx
KateHlContextModification incCtx
Definition: katehighlighthelpers.h:118
KateHlDetectIdentifier::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.h:330
KateHlAnyChar::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:615
KateHlItem::attr
int attr
Definition: katehighlighthelpers.h:48
KateHlRegExpr::KateHlRegExpr
KateHlRegExpr(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2, const QString &expr, bool insensitive, bool minimal)
Definition: katehighlighthelpers.cpp:625
KateHlContext::attr
int attr
Definition: katehighlighthelpers.h:84
KateHlDetectSpaces::KateHlDetectSpaces
KateHlDetectSpaces(int attribute, KateHlContextModification context, signed char regionId, signed char regionId2)
Definition: katehighlighthelpers.h:313
KateHlFloat::checkHgl
virtual int checkHgl(const QString &text, int offset, int len)
Definition: katehighlighthelpers.cpp:405
KateHlContext::ftctx
KateHlContextModification ftctx
Definition: katehighlighthelpers.h:92
KateHlItem::dynamic
bool dynamic
Definition: katehighlighthelpers.h:55
KateHlItem::~KateHlItem
virtual ~KateHlItem()
Definition: katehighlighthelpers.cpp:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal