-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f84c49c
commit f9b6952
Showing
8 changed files
with
120 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// https://tools.ietf.org/html/rfc4180 | ||
|
||
Prism.languages.csv = { | ||
'value': /[^\r\n,"]+|"(?:[^"]|"")*"(?!")/, | ||
'punctuation': /,/ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Prism.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<h2>Full example</h2> | ||
<pre><code>Year,Make,Model,Description,Price | ||
1997,Ford,E350,"ac, abs, moon",3000.00 | ||
1999,Chevy,"Venture ""Extended Edition""","",4900.00 | ||
1999,Chevy,"Venture ""Extended Edition, Very Large""",,5000.00 | ||
1996,Jeep,Grand Cherokee,"MUST SELL! | ||
air, moon roof, loaded",4799.00</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
aaa,bbb,ccc | ||
zzz,yyy,xxx | ||
|
||
"aaa","bbb","ccc" | ||
|
||
"aaa","b | ||
bb","ccc" | ||
|
||
"aaa","b""bb","ccc" | ||
|
||
Year,Make,Model,Description,Price | ||
1997,Ford,E350,"ac, abs, moon",3000.00 | ||
1999,Chevy,"Venture ""Extended Edition""","",4900.00 | ||
1999,Chevy,"Venture ""Extended Edition, Very Large""",,5000.00 | ||
1996,Jeep,Grand Cherokee,"MUST SELL! | ||
air, moon roof, loaded",4799.00 | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["value", "aaa"], | ||
["punctuation", ","], | ||
["value", "bbb"], | ||
["punctuation", ","], | ||
["value", "ccc"], | ||
|
||
["value", "zzz"], | ||
["punctuation", ","], | ||
["value", "yyy"], | ||
["punctuation", ","], | ||
["value", "xxx"], | ||
|
||
["value", "\"aaa\""], | ||
["punctuation", ","], | ||
["value", "\"bbb\""], | ||
["punctuation", ","], | ||
["value", "\"ccc\""], | ||
|
||
["value", "\"aaa\""], | ||
["punctuation", ","], | ||
["value", "\"b\r\nbb\""], | ||
["punctuation", ","], | ||
["value", "\"ccc\""], | ||
|
||
["value", "\"aaa\""], | ||
["punctuation", ","], | ||
["value", "\"b\"\"bb\""], | ||
["punctuation", ","], | ||
["value", "\"ccc\""], | ||
|
||
["value", "Year"], | ||
["punctuation", ","], | ||
["value", "Make"], | ||
["punctuation", ","], | ||
["value", "Model"], | ||
["punctuation", ","], | ||
["value", "Description"], | ||
["punctuation", ","], | ||
["value", "Price"], | ||
|
||
["value", "1997"], | ||
["punctuation", ","], | ||
["value", "Ford"], | ||
["punctuation", ","], | ||
["value", "E350"], | ||
["punctuation", ","], | ||
["value", "\"ac, abs, moon\""], | ||
["punctuation", ","], | ||
["value", "3000.00"], | ||
|
||
["value", "1999"], | ||
["punctuation", ","], | ||
["value", "Chevy"], | ||
["punctuation", ","], | ||
["value", "\"Venture \"\"Extended Edition\"\"\""], | ||
["punctuation", ","], | ||
["value", "\"\""], | ||
["punctuation", ","], | ||
["value", "4900.00"], | ||
|
||
["value", "1999"], | ||
["punctuation", ","], | ||
["value", "Chevy"], | ||
["punctuation", ","], | ||
["value", "\"Venture \"\"Extended Edition, Very Large\"\"\""], | ||
["punctuation", ","], | ||
["punctuation", ","], | ||
["value", "5000.00"], | ||
|
||
["value", "1996"], | ||
["punctuation", ","], | ||
["value", "Jeep"], | ||
["punctuation", ","], | ||
["value", "Grand Cherokee"], | ||
["punctuation", ","], | ||
["value", "\"MUST SELL!\r\nair, moon roof, loaded\""], | ||
["punctuation", ","], | ||
["value", "4799.00"] | ||
] |