📄 spellyparsercontext.h
字号:
/***************************************************************************/
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -