1
0
mirror of https://github.com/sharkdp/bat.git synced 2026-02-08 00:32:08 +00:00

[CSV] don't apply string highlighting by default

This commit is contained in:
Keith Hall
2025-12-07 21:49:38 +02:00
parent 4d188e45fe
commit d15e399fce
4 changed files with 8 additions and 7 deletions

View File

@@ -11,6 +11,7 @@
## Syntaxes ## Syntaxes
- Change the URL of Zig submodule from GitHub to Codeberg, see #3519 (@sorairolake) - Change the URL of Zig submodule from GitHub to Codeberg, see #3519 (@sorairolake)
- Don't color strings inside CSV files, to make it easier to tell which column they belong to, see #3521 (@keith-hall)
## Themes ## Themes

View File

@@ -79,7 +79,7 @@ contexts:
double_quoted_string: double_quoted_string:
- meta_include_prototype: false - meta_include_prototype: false
- meta_scope: string.quoted.double.csv - meta_scope: meta.string.quoted.double.csv
- match: '""' - match: '""'
scope: constant.character.escape.csv scope: constant.character.escape.csv
- match: '"' - match: '"'

View File

@@ -1,7 +1,7 @@
first,last,address,city,zip first,last,address,city,zip
John,Doe,120 any st.,"Anytown, WW",08123 John,Doe,120 any st.,"Anytown, WW",08123
a,b a,b
1,"ha  1,"ha 
""ha""  ""ha"" 
ha",120 any st.,"Anytown, WW",08123 ha",120 any st.,"Anytown, WW",08123
3,4,120 any st.,"Anytown, WW",08123 3,4,120 any st.,"Anytown, WW",08123
Can't render this file because it contains an unexpected character in line 2 and column 177.

View File

@@ -1,3 +1,3 @@
foo bar baz|;, test hello world tsv foo bar baz|;, test hello world tsv
1,2 1,7 2,7 a b c "hello again" tsv 1,2 1,7 2,7 a b c "hello again" tsv
";|," ;|, baz test "hello world" tsv ";|," ;|, baz test "hello world" tsv
Can't render this file because it contains an unexpected character in line 2 and column 218.