Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set file editor mode based on filename (#276)
Replaces `CodeMirror.findModeByExtension` with `findModeByFileName` to detect nginx config files properly. If `CodeMirror.findModeByFileName` doesn't match anything it automatically tries to find a match via `findModeByExtension`. If that fails to return info as well, we try to determine a mode by calling `CodeMirror.findModeByMIME`. This is the discussion + pr in the CodeMirror repo: * codemirror/codemirror5#2940 * codemirror/codemirror5#3027 Fixes #187
- Loading branch information