summaryrefslogtreecommitdiffstats
path: root/src/sqlcode.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-03 19:54:36 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-03 19:54:36 (GMT)
commit3bda58a7b7b4f9094c2fcb2bad71c7174367605e (patch)
tree6b71e41e85f4dfd8822e2734c73bf7ff64b1fe35 /src/sqlcode.h
parent9b14bf58c30a02ef19abebec280568532dc58ed4 (diff)
downloadDoxygen-3bda58a7b7b4f9094c2fcb2bad71c7174367605e.zip
Doxygen-3bda58a7b7b4f9094c2fcb2bad71c7174367605e.tar.gz
Doxygen-3bda58a7b7b4f9094c2fcb2bad71c7174367605e.tar.bz2
Split language parser into "outline parser" and "code parser"
Diffstat (limited to 'src/sqlcode.h')
-rw-r--r--src/sqlcode.h31
1 files changed, 24 insertions, 7 deletions
diff --git a/src/sqlcode.h b/src/sqlcode.h
index d8a09b7..20e20f7 100644
--- a/src/sqlcode.h
+++ b/src/sqlcode.h
@@ -19,7 +19,7 @@
#ifndef SQLCODE_H
#define SQLCODE_H
-#include "types.h"
+#include "parserintf.h"
class CodeOutputInterface;
class FileDef;
@@ -27,11 +27,28 @@ class MemberDef;
class QCString;
class Definition;
-extern void parseSqlCode(CodeOutputInterface &,const char *,const QCString &,
- bool ,const char *,FileDef *fd,
- int startLine,int endLine,bool inlineFragment,
- const MemberDef *memberDef,bool showLineNumbers,const Definition *searchCtx,
- bool collectXRefs);
-extern void resetSqlCodeParserState();
+/** SQL scanner. Only support syntax highlighting of code at the moment.
+ */
+class SQLCodeParser : public CodeParserInterface
+{
+ public:
+ 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,
+ const MemberDef *memberDef=0,
+ bool showLineNumbers=TRUE,
+ const Definition *searchCtx=0,
+ bool collectXRefs=TRUE
+ );
+ void resetCodeParserState();
+};
+
#endif