From 3c4724d70e4ac7bfc06b97f6fad8936f97479b6b Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 17 Nov 2021 20:37:00 +0000 Subject: Add .gitattribute assisted language detection to blame, diff and render (#17590) Use check attribute code to check the assigned language of a file and send that in to chroma as a hint for the language of the file. Signed-off-by: Andrew Thornton --- modules/highlight/highlight_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/highlight/highlight_test.go') diff --git a/modules/highlight/highlight_test.go b/modules/highlight/highlight_test.go index 29a15c0b53..3f47b6a48f 100644 --- a/modules/highlight/highlight_test.go +++ b/modules/highlight/highlight_test.go @@ -96,7 +96,7 @@ steps: for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - if got := File(tt.numLines, tt.fileName, []byte(tt.code)); !reflect.DeepEqual(got, tt.want) { + if got := File(tt.numLines, tt.fileName, "", []byte(tt.code)); !reflect.DeepEqual(got, tt.want) { t.Errorf("File() = %v, want %v", got, tt.want) } }) -- cgit v1.2.3