Skip to content

Commit

Permalink
Various tweaks to sublime syntax file
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Jan 11, 2014
1 parent bf8c1a2 commit f1b6753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
4 changes: 2 additions & 2 deletions contrib/Julia.tmbundle/Preferences/Comments.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>^\s*((end|else|elseif|catch)\b)</string>
<string>^\s*((end|else|elseif|catch|finally)\b)</string>
<key>increaseIndentPattern</key>
<string>^\s*(if|while|for|begin|function|macro|immutable|type|let|else|elseif|quote|try|catch)\b.*\s*$</string>
<string>(^\s*(if|while|for|function|macro|immutable|type|let|else|elseif|quote|try|catch|finally)\b.*\s*$)|(^.*\b(do|begin)\b\s*$)</string>
<key>shellVariables</key>
<array>
<dict>
Expand Down
17 changes: 3 additions & 14 deletions contrib/Julia.tmbundle/Syntaxes/Julia.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<key>begin</key>
<string>\[</string>
<key>end</key>
<string>\](')?</string>
<string>\]('*)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
Expand All @@ -85,12 +85,6 @@
<key>name</key>
<string>constant.numeric.julia</string>
</dict>
<dict>
<key>match</key>
<string>(?:\]')</string>
<key>name</key>
<string>keyword.operator</string>
</dict>
<dict>
<key>include</key>
<string>$self</string>
Expand Down Expand Up @@ -172,7 +166,7 @@
<array>
<dict>
<key>match</key>
<string>^\s*([a-zA-Z0-9_]+!?)(?=.*\)\s*=(?!=))</string>
<string>^\s*([a-zA-Z0-9\._]+!?)(?=.*\)\s*=(?!=))</string>
<key>captures</key>
<dict>
<key>1</key>
Expand All @@ -184,7 +178,7 @@
</dict>
<dict>
<key>match</key>
<string>\b(function|macro)\s+([a-zA-Z0-9_]+!?)\b</string>
<string>\b(function|macro)\s+([a-zA-Z0-9_\.]+!?)\b</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -328,11 +322,6 @@
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
Expand Down

0 comments on commit f1b6753

Please sign in to comment.