Skip to content

Commit

Permalink
change syntax names for wbond/package_control_channel#6865
Browse files Browse the repository at this point in the history
  • Loading branch information
mechatroner committed Jan 30, 2018
1 parent 8f62515 commit 71911c3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion csv.tmLanguage → CSV (Rainbow).tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<string>csv</string>
</array>
<key>name</key>
<string>csv</string>
<string>CSV (Rainbow)</string>
<key>patterns</key>
<array>
<dict>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tsv.tmLanguage → TSV (Rainbow).tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<string>tsv</string>
</array>
<key>name</key>
<string>tsv</string>
<string>TSV (Rainbow)</string>
<key>patterns</key>
<array>
<dict>
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

def get_view_delim(view_settings):
syntax = view_settings.get('syntax')
if syntax.find('csv.tmLanguage') != -1:
if syntax.find('CSV (Rainbow).tmLanguage') != -1:
return ','
if syntax.find('tsv.tmLanguage') != -1:
if syntax.find('TSV (Rainbow).tmLanguage') != -1:
return '\t'
return None

Expand Down

0 comments on commit 71911c3

Please sign in to comment.