LANG : Add matlab basic parser (not compleate)

HL : Corection of a parser bug
This commit is contained in:
2011-08-16 10:01:28 +02:00
parent 1f08a99ac1
commit bd8c11a9da
10 changed files with 74 additions and 9 deletions

View File

@@ -276,7 +276,7 @@ void Highlight::Parse2(int32_t start,
//EDN_INFO("Find Pattern in the Buffer : (" << resultat.beginStart << "," << resultat.endStop << ")" );
// Add curent element in the list ...
metaData.PushBack(resultat);
elementStart = resultat.endStop;
elementStart = resultat.endStop-1;
// Exit current cycle
break;
}

View File

@@ -114,6 +114,11 @@ void HighlightManager::loadLanguages(void)
myHightline = new Highlight(xmlFilename);
listHighlight.PushBack(myHightline);
xmlFilename = homedir;
xmlFilename += "lang_matlab.xml";
myHightline = new Highlight(xmlFilename);
listHighlight.PushBack(myHightline);
//myHightline->Display();
}