Commit c0263d1f authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: add custom language id mapping for PHP

parent e9f97a78
...@@ -174,6 +174,9 @@ static QString languageId(const QString &mode) ...@@ -174,6 +174,9 @@ static QString languageId(const QString &mode)
result = QStringLiteral("fortran"); result = QStringLiteral("fortran");
} else if (result.contains(QLatin1String("objective caml"))) { } else if (result.contains(QLatin1String("objective caml"))) {
result = QStringLiteral("ocaml"); result = QStringLiteral("ocaml");
} else if (result.startsWith(QLatin1String("php"))) {
// only consider at start, as it might be a subset of other generated languages
result = QStringLiteral("php");
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment