Source Code (Use browser search to find items of interest.)

Class Index

kdevelop'HlLatexTag (./kdevelop/kdevelop/kwrite/highlight.h:272)

class HlLatexTag : public HlItem {
  public:
    HlLatexTag(int attribute, int context);
    virtual const QChar *checkHgl(const QChar *);
};


kdevelop'HlLatexTag::HlLatexTag() (./kdevelop/kdevelop/kwrite/highlight.cpp:811)

HlLatexTag::HlLatexTag(int attribute, int context)
  : HlItem(attribute, context) {
}


kdevelop'HlLatexTag::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:815)

const QChar *HlLatexTag::checkHgl(const QChar *s) {
  const QChar *str;

  if (*s == '\\') {
    s++;
    if (*s == ' ' || *s == '/' || *s == '\\') return s +1;
    str = s;
    while ((*s >= 'a' && *s <= 'z') || (*s >= 'A' && *s <= 'Z')
      || (*s >= '0' && *s <= '9') || *s == '@') {
      s++;
    }
    if (s != str) return s;
  } else if (*s == '$') return s +1;
  return 0L;
}