1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 18:22:41 +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', 'syntax.filemap',
'wild', 'wild',
array( array(
'@\.arcconfig$@' => 'js', '@\.arcconfig$@' => 'json',
'@\.arclint$@' => 'js', '@\.arclint$@' => 'json',
'@\.divinerconfig$@' => 'js', '@\.divinerconfig$@' => 'json',
)) ))
->setSummary( ->setSummary(
pht('Override what language files (based on filename) highlight as.')) pht('Override what language files (based on filename) highlight as.'))