1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00

Change syntax highlighting for custom phabricator dot configs

Test Plan:
Created new paste with title '.arcconfig' without choosing a language; observed that the paste gets highlighted as JSON.

JSON mode:
{F4901762}

Javascript mode:
{F4901763}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T11667

Differential Revision: https://secure.phabricator.com/D17682
This commit is contained in:
Austin McKinley 2017-04-13 13:18:16 -07:00
parent 5587abf04c
commit bfffd807d6

View file

@ -122,9 +122,9 @@ final class PhabricatorSyntaxHighlightingConfigOptions
'syntax.filemap',
'wild',
array(
'@\.arcconfig$@' => 'js',
'@\.arclint$@' => 'js',
'@\.divinerconfig$@' => 'js',
'@\.arcconfig$@' => 'json',
'@\.arclint$@' => 'json',
'@\.divinerconfig$@' => 'json',
))
->setSummary(
pht('Override what language files (based on filename) highlight as.'))