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

Class Index

kdevelop'HlLatexChar (./kdevelop/kdevelop/kwrite/highlight.h:278)

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


kdevelop'HlLatexChar::HlLatexChar() (./kdevelop/kdevelop/kwrite/highlight.cpp:831)

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


kdevelop'HlLatexChar::checkHgl() (./kdevelop/kdevelop/kwrite/highlight.cpp:835)

const QChar *HlLatexChar::checkHgl(const QChar *s) {
  if (*s == '\\') {
    s++;
    if (*s && strchr("{}$&#_%", *s)) return s +1;
  }/* else if (*s == '"') {
    s++;
    if (*s && (*s < '0' || *s > '9')) return s +1;
  } */
  return 0L;
}