mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: modify .gitattributes to categorize *.vsh and v.mod files properly (#13674)
This commit is contained in:
parent
e6270b05dc
commit
0fd4c699dd
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,5 +1,7 @@
|
||||
*.v linguist-language=V text=auto eol=lf
|
||||
*.vv linguist-language=V text=auto eol=lf
|
||||
*.vsh linguist-language=V text=auto eol=lf
|
||||
**/v.mod linguist-language=V text=auto eol=lf
|
||||
*.bat text=auto eol=crlf
|
||||
Dockerfile.* linguist-language=Dockerfile
|
||||
*.toml text eol=lf
|
||||
|
@ -77,6 +77,8 @@ vls.log
|
||||
fn gitattributes_content() string {
|
||||
return '*.v linguist-language=V text=auto eol=lf
|
||||
*.vv linguist-language=V text=auto eol=lf
|
||||
*.vsh linguist-language=V text=auto eol=lf
|
||||
**/v.mod linguist-language=V text=auto eol=lf
|
||||
'
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,8 @@ fn init_and_check() ? {
|
||||
assert os.read_file('.gitattributes') ? == [
|
||||
'*.v linguist-language=V text=auto eol=lf',
|
||||
'*.vv linguist-language=V text=auto eol=lf',
|
||||
'*.vsh linguist-language=V text=auto eol=lf',
|
||||
'**/v.mod linguist-language=V text=auto eol=lf',
|
||||
'',
|
||||
].join_lines()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user