From 448d8684e8c41eaa31a26cdd746d652b88e18a30 Mon Sep 17 00:00:00 2001 From: James Rhodes Date: Sat, 9 Nov 2013 15:08:49 -0800 Subject: [PATCH] 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 --- scripts/symbols/generate_ctags_symbols.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/symbols/generate_ctags_symbols.php b/scripts/symbols/generate_ctags_symbols.php index 15bc14b481..9a8ee30604 100755 --- a/scripts/symbols/generate_ctags_symbols.php +++ b/scripts/symbols/generate_ctags_symbols.php @@ -71,7 +71,7 @@ foreach (Futures($futures)->limit(8) as $file => $future) { // also, "normalize" c++ and c# $language = str_ireplace("c++", "cpp", $language); - $language = str_ireplace("c#", "csharp", $language); + $language = str_ireplace("c#", "cs", $language); // Ruby has "singleton method", for example $type = substr(str_replace(' ', '_', $type), 0, 12);