# Let Git auto-detect text files
* text=auto

# All test case input/expected files should use LF by default (for consistent AST across platforms)
tests/cases/*/*.md eol=lf
tests/cases/*/*.qmd eol=lf
tests/cases/*/*.Rmd eol=lf
tests/bibtex_samples/*.bib eol=lf

# Preserve CRLF in test cases that specifically test CRLF handling (must have CRLF line endings)
tests/cases/crlf_*/* -text
tests/cases/line_ending_crlf/* -text
tests/cases/line_ending_lf/* -text
tests/bibtex_samples/bibtex_crlf.bib -text

# AST files should always use LF endings (they contain literal string representations)
tests/cases/*/cst.txt eol=lf
tests/bibtex_samples/*.cst eol=lf

# Other test cases can use LF (the default for most projects)
# Individual test cases can override if needed
