v: update linguist languages, add .vdocignore (#21321)

This commit is contained in:
Turiiya 2024-04-20 17:52:42 +02:00 committed by GitHub
parent a1497c0943
commit dbf48eaac4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

9
.gitattributes vendored
View File

@ -1,7 +1,10 @@
* text=auto eol=lf
*.bat eol=crlf
*.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
.vdocignore linguist-language=ignore
Dockerfile.* linguist-language=Dockerfile

View File

@ -248,6 +248,7 @@ fn (c &Create) write_gitattributes() {
**/*.vv linguist-language=V
**/*.vsh linguist-language=V
**/v.mod linguist-language=V
.vdocignore linguist-language=ignore
'
os.write_file(path, content) or { panic(err) }
}

View File

@ -91,6 +91,7 @@ fn init_and_check() ! {
'**/*.vv linguist-language=V',
'**/*.vsh linguist-language=V',
'**/v.mod linguist-language=V',
'.vdocignore linguist-language=ignore',
'',
].join_lines()