on master help sign in
Add CSV syntax hightlighting test
commitaa205c6a9face3a833d1b743562a93de8928cc9a authorThiago Arrais <thiago.arrais@gmail.com> dateTue 6 Oct 2020, 13:47 (6 years ago) parent44bfad2
3 files changed+41
tests/syntax-tests/highlighted/CSV/comma_in_quotes.csv+7 tests/syntax-tests/source/CSV/LICENSE.md+27 tests/syntax-tests/source/CSV/comma_in_quotes.csv+7
tests/syntax-tests/highlighted/CSV/comma_in_quotes.csvnew file+7
@@ -0,0 +1,7 @@
1+first,last,address,city,zip
2+John,Doe,120 any st.,"Anytown, WW",08123
3+a,b
4+1,"ha 
5+""ha"" 
6+ha",120 any st.,"Anytown, WW",08123
7+3,4,120 any st.,"Anytown, WW",08123
tests/syntax-tests/source/CSV/LICENSE.mdnew file+27
@@ -0,0 +1,27 @@
1+The `comma_in_quotes.csv` file" has been added from https://github.com/maxogden/csv-spectrum under the following license:
2+
3+BSD 2-Clause License
4+
5+Copyright (c) [year], [fullname]
6+All rights reserved.
7+
8+Redistribution and use in source and binary forms, with or without
9+modification, are permitted provided that the following conditions are met:
10+
11+1. Redistributions of source code must retain the above copyright notice, this
12+ list of conditions and the following disclaimer.
13+
14+2. Redistributions in binary form must reproduce the above copyright notice,
15+ this list of conditions and the following disclaimer in the documentation
16+ and/or other materials provided with the distribution.
17+
18+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
tests/syntax-tests/source/CSV/comma_in_quotes.csvnew file+7
@@ -0,0 +1,7 @@
1+first,last,address,city,zip
2+John,Doe,120 any st.,"Anytown, WW",08123
3+a,b
4+1,"ha
5+""ha""
6+ha",120 any st.,"Anytown, WW",08123
7+3,4,120 any st.,"Anytown, WW",08123