//! Format-specific cursor context detectors.
//!
//! Each sub-module is responsible for parsing a specific file format and
//! converting a (buffer, cursor) pair into a [`CursorContext`].
//!
//! Add new sub-modules here when adding YAML/JSON/etc. support.
use Path;
use cratePosition;
use crateCursorContext;
/// Detect the cursor context for the file at `path`.
///
/// Returns `None` if the format is unsupported or context detection fails,
/// in which case the caller should fall back to the legacy heuristic.