-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlanguage.h
More file actions
53 lines (48 loc) · 1.35 KB
/
language.h
File metadata and controls
53 lines (48 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef LANGUAGE_H
#define LANGUAGE_H
#include <QString>
#include <QStringList>
#include <QTextCharFormat>
class Language {
public:
// Constructors
Language(const QString& name,
const QStringList& stringExtensions,
const QStringList& extensions,
const QStringList& comments,
const QStringList& multiLineStringsStart,
const QStringList& multiLineStringsEnd,
const QStringList& multiLineCommentsStart,
const QStringList& multiLineCommentsEnd,
const QStringList& openIndents,
const QStringList& closeIndents,
const QStringList& closeIndentsWords,
const QStringList& defWordList,
const QStringList& fileExtensions,
const std::unordered_map<QString, int>& colorMapTS,
const int& index);
Language();
// Copy constructor
Language(const Language& other);
// Copy assignment operator
Language& operator=(const Language& other);
// Destructor
~Language();
public:
QString name;
QStringList strings;
QStringList stringExtensions;
QStringList comments;
QStringList multiLineStringsStart;
QStringList multiLineStringsEnd;
QStringList multiLineCommentsStart;
QStringList multiLineCommentsEnd;
QStringList openIndents;
QStringList closeIndents;
QStringList closeIndentsWords;
QStringList defWordList;
QStringList fileExtensions;
std::unordered_map<QString, int> colorMapTS;
int index;
};
#endif // LANGUAGE_H