mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
Quick hack to make symbol lookup work for C#.
Summary: This is kind of a quick hack to make symbol lookup work for C#. ctags calls C# 'csharp', while pygments recognises it as 'cs' (or at least, I have to put 'cs' in the Arcanist indexed languages for the clickables to appear, while it's 'csharp' in the symbol database). Test Plan: Tested this in my live install and it makes symbol lookup work. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7497
This commit is contained in:
parent
eccbbce9a2
commit
448d8684e8
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ foreach (Futures($futures)->limit(8) as $file => $future) {
|
||||||
|
|
||||||
// also, "normalize" c++ and c#
|
// also, "normalize" c++ and c#
|
||||||
$language = str_ireplace("c++", "cpp", $language);
|
$language = str_ireplace("c++", "cpp", $language);
|
||||||
$language = str_ireplace("c#", "csharp", $language);
|
$language = str_ireplace("c#", "cs", $language);
|
||||||
|
|
||||||
// Ruby has "singleton method", for example
|
// Ruby has "singleton method", for example
|
||||||
$type = substr(str_replace(' ', '_', $type), 0, 12);
|
$type = substr(str_replace(' ', '_', $type), 0, 12);
|
||||||
|
|
Loading…
Reference in a new issue