# 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
# 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
# Preserve LF in test cases that specifically test LF handling (must have LF line endings)
tests/cases/line_ending_lf/* eol=lf
# AST files should always use LF endings (they contain literal string representations)
tests/cases/*/ast.txt eol=lf
# Other test cases can use LF (the default for most projects)
# Individual test cases can override if needed