diff options
author | Artur Kink <artur.kinK@gmail.com> | 2016-11-22 02:08:01 (GMT) |
---|---|---|
committer | Artur Kink <artur.kinK@gmail.com> | 2016-11-22 02:08:01 (GMT) |
commit | adf4a90340921cf7a120ae918af776355cf8ca0f (patch) | |
tree | 662a5833f4597e46050e98a0965cefe480d3488c /src/sqlscanner.h | |
parent | 71d7a9399db016cba83ccd63c6ba7e0fac1cd44d (diff) | |
download | Doxygen-adf4a90340921cf7a120ae918af776355cf8ca0f.zip Doxygen-adf4a90340921cf7a120ae918af776355cf8ca0f.tar.gz Doxygen-adf4a90340921cf7a120ae918af776355cf8ca0f.tar.bz2 |
Add sql syntax highlighting to code blocks
Diffstat (limited to 'src/sqlscanner.h')
-rw-r--r-- | src/sqlscanner.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/sqlscanner.h b/src/sqlscanner.h new file mode 100644 index 0000000..7afa869 --- /dev/null +++ b/src/sqlscanner.h @@ -0,0 +1,65 @@ +/****************************************************************************** + * + * Copyright (C) 1997-2015 by Dimitri van Heesch. + * + * Permission to use, copy, modify, and distribute this software and its + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software + * for any purpose. It is provided "as is" without express or implied warranty. + * See the GNU General Public License for more details. + * + * Documents produced by Doxygen are derivative works derived from the + * input used in their production; they are not affected by this license. + * + */ + +#ifndef SQLSCANNER_H +#define SQLSCANNER_H + +#include "parserintf.h" +#include "sqlcode.h" + +/** SQL scanner. Only support syntax highlighting of code at the moment. + */ +class SQLScanner : public ParserInterface +{ +public: + SQLScanner() {} + virtual ~SQLScanner() {} + void startTranslationUnit(const char *) {} + void finishTranslationUnit() {} + void parseInput(const char *, const char *, Entry *, bool , QStrList &) {} + bool needsPreprocessing(const QCString &) { return FALSE; } + + void parseCode(CodeOutputInterface &codeOutIntf, + const char *scopeName, + const QCString &input, + SrcLangExt, + bool isExampleBlock, + const char *exampleName=0, + FileDef *fileDef=0, + int startLine=-1, + int endLine=-1, + bool inlineFragment=FALSE, + MemberDef *memberDef=0, + bool showLineNumbers=TRUE, + Definition *searchCtx=0, + bool collectXRefs=TRUE + ) + { + parseSqlCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName, + fileDef,startLine,endLine,inlineFragment,memberDef, + showLineNumbers,searchCtx,collectXRefs); + } + + void resetCodeParserState() + { + resetSqlCodeParserState(); + } + + void parsePrototype(const char *) {} + +private: +}; + +#endif |