highlightIdByKey top-level constant

Map<String, String> const highlightIdByKey

Implementation

const highlightIdByKey = <String, String>{
  // special filenames
  'dockerfile': 'dockerfile',
  'makefile': 'makefile',
  'cmakelists.txt': 'cmake',
  'nginx.conf': 'nginx',
  'apache.conf': 'apache',
  'httpd.conf': 'apache',
  'rakefile': 'ruby',
  'gemfile': 'ruby',
  'gradlew': 'bash',
  '.bashrc': 'bash',
  '.zshrc': 'bash',
  '.profile': 'bash',
  'gradlew.bat': 'dos',
  'readme': 'markdown',
  'license': 'plaintext',
  'changelog': 'plaintext',
  '.env': 'plaintext',
  '.gitignore': 'plaintext',
  '.dockerignore': 'plaintext',
  '.gitattributes': 'plaintext',
  '.gitmodules': 'plaintext',
  '.npmrc': 'plaintext',
  '.editorconfig': 'plaintext',

  // common extensions that differ from ids
  'py': 'python',
  'rs': 'rust',
  'cs': 'csharp',
  'js': 'javascript',
  'jsx': 'javascript',
  'tsx': 'typescript',
  'ts': 'typescript',
  'yml': 'yaml',
  'html': 'xml',
  'sh': 'bash',
  'zsh': 'bash',
  'ksh': 'bash',
  'ps1': 'powershell',
  'bat': 'dos',
  'cmd': 'dos',
  'rb': 'ruby',
  'kt': 'kotlin',
  'kts': 'kotlin',
  'erl': 'erlang',
  'ex': 'elixir',
  'exs': 'elixir',
  'cc': 'cpp',
  'cxx': 'cpp',
  'hpp': 'cpp',
  'hh': 'cpp',
  'h': 'cpp',
  'jsonl': 'json',
  'ndjson': 'json',
  'md': 'markdown',
  'txt': 'plaintext',
  'log': 'plaintext',
  'env': 'plaintext',
  'conf': 'plaintext',
};