Skip to content

Instantly share code, notes, and snippets.

@mbostock
Created August 13, 2012 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbostock/3344600 to your computer and use it in GitHub Desktop.
Save mbostock/3344600 to your computer and use it in GitHub Desktop.
CSV Syntax Definition
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>csv</string>
</array>
<key>name</key>
<string>Comma-Separated Values</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>"</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.csv</string>
</dict>
</dict>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.csv</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.csv</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>""</string>
<key>name</key>
<string>constant.character.escape.csv</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>keyword.operator.comma.csv</string>
</dict>
</array>
<key>scopeName</key>
<string>source.csv</string>
<key>uuid</key>
<string>52759074-4591-47e8-a812-c86cf7a6881a</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment