mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 21:58: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";
|
db->language = "c";
|
||||||
break;
|
break;
|
||||||
case CXLanguage_CPlusPlus:
|
case CXLanguage_CPlusPlus:
|
||||||
db->language = "c++";
|
db->language = "cpp";
|
||||||
break;
|
break;
|
||||||
case CXLanguage_ObjC:
|
case CXLanguage_ObjC:
|
||||||
db->language = "objc";
|
db->language = "objectivec";
|
||||||
break;
|
break;
|
||||||
case CXLanguage_Invalid:
|
case CXLanguage_Invalid:
|
||||||
db->language = "invalid";
|
db->language = "invalid";
|
||||||
|
@ -473,7 +473,8 @@ struct IndexFile {
|
|||||||
std::string path;
|
std::string path;
|
||||||
std::vector<std::string> args;
|
std::vector<std::string> args;
|
||||||
int64_t last_modification_time = 0;
|
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;
|
std::string language;
|
||||||
|
|
||||||
// The path to the translation unit cc file which caused the creation of this
|
// The path to the translation unit cc file which caused the creation of this
|
||||||
|
Loading…
Reference in New Issue
Block a user