-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitattributes
More file actions
27 lines (23 loc) · 1.19 KB
/
.gitattributes
File metadata and controls
27 lines (23 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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/fixtures/cases/*/*.md eol=lf
tests/fixtures/cases/*/*.qmd eol=lf
tests/fixtures/cases/*/*.Rmd eol=lf
crates/panache-parser/tests/fixtures/cases/*/*.md eol=lf
crates/panache-parser/tests/fixtures/cases/*/*.qmd eol=lf
crates/panache-parser/tests/fixtures/cases/*/*.Rmd eol=lf
tests/fixtures/bibtex_samples/*.bib eol=lf
crates/panache-parser/tests/fixtures/yaml-test-suite/**/in.yaml eol=lf
# Preserve CRLF in test cases that specifically test CRLF handling (must have CRLF line endings)
tests/fixtures/cases/crlf_*/* -text
tests/fixtures/cases/line_ending_crlf/* -text
tests/fixtures/cases/line_ending_lf/* -text
crates/panache-parser/tests/fixtures/cases/crlf_*/* -text
crates/panache-parser/tests/fixtures/cases/line_ending_crlf/* -text
crates/panache-parser/tests/fixtures/cases/line_ending_lf/* -text
tests/fixtures/bibtex_samples/bibtex_crlf.bib -text
# CST fixtures (parser-internal) should use LF endings
tests/fixtures/bibtex_samples/*.cst eol=lf
# Other test cases can use LF (the default for most projects)
# Individual test cases can override if needed