diff --git a/CHANGELOG.md b/CHANGELOG.md index ae6cac4d..63d70e2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ## Syntaxes - 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 diff --git a/assets/syntaxes/02_Extra/CSV/CSV.sublime-syntax b/assets/syntaxes/02_Extra/CSV/CSV.sublime-syntax index 8ce83acb..aad614a6 100644 --- a/assets/syntaxes/02_Extra/CSV/CSV.sublime-syntax +++ b/assets/syntaxes/02_Extra/CSV/CSV.sublime-syntax @@ -79,7 +79,7 @@ contexts: double_quoted_string: - meta_include_prototype: false - - meta_scope: string.quoted.double.csv + - meta_scope: meta.string.quoted.double.csv - match: '""' scope: constant.character.escape.csv - match: '"' diff --git a/tests/syntax-tests/highlighted/CSV/comma_in_quotes.csv b/tests/syntax-tests/highlighted/CSV/comma_in_quotes.csv index 8f4004a0..5635cd8e 100644 --- a/tests/syntax-tests/highlighted/CSV/comma_in_quotes.csv +++ b/tests/syntax-tests/highlighted/CSV/comma_in_quotes.csv @@ -1,7 +1,7 @@ first,last,address,city,zip -John,Doe,120 any st.,"Anytown, WW",08123 +John,Doe,120 any st.,"Anytown, WW",08123 a,b -1,"ha  -""ha""  -ha",120 any st.,"Anytown, WW",08123 -3,4,120 any st.,"Anytown, WW",08123 +1,"ha  +""ha""  +ha",120 any st.,"Anytown, WW",08123 +3,4,120 any st.,"Anytown, WW",08123 diff --git a/tests/syntax-tests/highlighted/CSV/simple.tsv b/tests/syntax-tests/highlighted/CSV/simple.tsv index 7dd1a9de..204c7523 100644 --- a/tests/syntax-tests/highlighted/CSV/simple.tsv +++ b/tests/syntax-tests/highlighted/CSV/simple.tsv @@ -1,3 +1,3 @@ foo bar baz|;, test hello world tsv 1,2 1,7 2,7 a b c "hello again" tsv -";|," ;|, baz test "hello world" tsv +";|," ;|, baz test "hello world" tsv