Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Allow extensions to add new file extensions to existing languages #2966

@peterflynn

Description

@peterflynn

Currently, Language._addFileExtension() is private (and it may not work well if not called early enough). We should make it a public fully supported API.

This enables:

  • Extensions to add less-common filename aliases, forestalling the need for core changes like Added jsx file extension #2949
  • Extensions for new languages to use existing, similar CM modes as a quick hack to get better-than-nothing support. For example, interpreting JSP, ColdFusion, or Mustache template files as plain HTML. Or interpreting ActionScript as TypeScript, etc...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions