spellyparsercontext.h
来自「语法检查程序」· C头文件 代码 · 共 32 行
H
32 行
/***************************************************************************/
/* NOTE: */
/* This document is copyright (c) by Oz Solomon and Yonat Sharon, and is */
/* bound by the MIT open source license. */
/* See License.txt or visit www.opensource.org/licenses/mit-license.html */
/***************************************************************************/
#ifndef SPELLY_PARSER_CONTEXT_H
#define SPELLY_PARSER_CONTEXT_H
#include "CodeParser/CodeParser.h"
class SpellyParserContext : public CodeParser::Context
{
public:
bool itsInSpellZone;
virtual void BegString(CodeParser::Position pos) {BegSpellZone();}
virtual void EndString(CodeParser::Position pos) {EndSpellZone();}
virtual void BegChar(CodeParser::Position pos) {}
virtual void EndChar(CodeParser::Position pos) {}
virtual void BegLineComment(CodeParser::Position pos) {BegSpellZone();}
virtual void EndLineComment(CodeParser::Position pos) {EndSpellZone();}
virtual void BegBlockComment(CodeParser::Position pos) {BegSpellZone();}
virtual void EndBlockComment(CodeParser::Position pos) {EndSpellZone();}
private:
void BegSpellZone() {itsInSpellZone = true;}
void EndSpellZone() {itsInSpellZone = false;}
};
#endif // SPELLY_PARSER_CONTEXT_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?