mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Add auto indent settings for textmate
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Indent</string>
|
||||
<key>scope</key>
|
||||
<string>source.coffee</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>decreaseIndentPattern</key>
|
||||
<string>^\s*(\}|\])$</string>
|
||||
<key>increaseIndentPattern</key>
|
||||
<string>(?x)
|
||||
^\s*
|
||||
(.*class
|
||||
|[a-zA-Z\$_](\w|\$|:|\.)*\s*(?=\:(\s*\(.*\))?\s*((=|-)>\s*$)) # function that is not one line
|
||||
|[a-zA-Z\$_](\w|\$|\.)*\s*(?=(?!\::)\:(?!(\s*\(.*\))?\s*((=|-)>))):\s*(if(?!.*?then)|while|for|$) # assignment using multiline if/while/for
|
||||
|if(?!.*?then)|while|for
|
||||
|.*\{$
|
||||
|.*\[$)</string>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>C5D6C716-12FE-4CE8-A916-6CABEDE8AFE7</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user