blob: 27664c52db8803d5ecde32f81f69e1e6457f54af (
plain)
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
|
//===========================================
// Lumina-DE source code
// Copyright (c) 2015, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "syntaxSupport.h"
QStringList Custom_Syntax::availableRules(){
QStringList avail;
avail << "C++";
return avail;
}
QString Custom_Syntax::ruleForFile(QString filename){
QString suffix = filename.section(".",-1);
if(suffix=="cpp" || suffix=="hpp" || suffix=="c" || suffix=="h"){ return "C++"; }
return "";
}
void Custom_Syntax::loadRules(QString type){
rules.clear();
if(type=="C++"){
}
}
|