mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
markdown compliant language identifiers
This commit is contained in:
parent
28ad5b1ed1
commit
e6bcd05a7e
@ -1003,10 +1003,10 @@ void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
|
||||
db->language = "c";
|
||||
break;
|
||||
case CXLanguage_CPlusPlus:
|
||||
db->language = "c++";
|
||||
db->language = "cpp";
|
||||
break;
|
||||
case CXLanguage_ObjC:
|
||||
db->language = "objc";
|
||||
db->language = "objectivec";
|
||||
break;
|
||||
case CXLanguage_Invalid:
|
||||
db->language = "invalid";
|
||||
|
@ -473,7 +473,8 @@ struct IndexFile {
|
||||
std::string path;
|
||||
std::vector<std::string> args;
|
||||
int64_t last_modification_time = 0;
|
||||
// "c++", "c", "obj-c", "invalid" or "unknown"
|
||||
// markdown compatible language identifier.
|
||||
// "cpp", "c", "objectivec", or invalid"
|
||||
std::string language;
|
||||
|
||||
// The path to the translation unit cc file which caused the creation of this
|
||||
|
Loading…
Reference in New Issue
Block a user