Permalink
Browse files

Scope throw & throw* as exception operators

  • Loading branch information...
andrewschleifer committed Mar 27, 2011
1 parent f711da5 commit 7465a1821dba5895c5f2caf70c99ae98ac6bd352
Showing with 24 additions and 1 deletion.
  1. +24 −1 Syntaxes/Nu.tmLanguage
View
@@ -613,7 +613,7 @@
<key>name</key>
<string>meta.expression.nu</string>
<key>begin</key>
<string>\(\s*(\&amp;|\|and|or|not|\&gt;|\&lt;|\&gt;=|\&lt;=|==|\!=|eq\??|ne\??|gt\??|lt\??|ge\??|le\??|\&lt;\&lt;|\&gt;\&gt;|\*|\/|\%|\+|\-|\*\*|synchronized|throw\*?|array|dict|list|regex|uname|system|gets|puts|print|beep|random|srandom|sleep|exit|help|\?|let|macrox)\s+</string>
<string>\(\s*(\&amp;|\|and|or|not|\&gt;|\&lt;|\&gt;=|\&lt;=|==|\!=|eq\??|ne\??|gt\??|lt\??|ge\??|le\??|\&lt;\&lt;|\&gt;\&gt;|\*|\/|\%|\+|\-|\*\*|synchronized|array|dict|list|regex|uname|system|gets|puts|print|beep|random|srandom|sleep|exit|help|\?|let|macrox)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
@@ -849,6 +849,29 @@
</dict>
</array>
</dict>
<dict>
<key>name</key>
<string>meta.expression.nu</string>
<key>begin</key>
<string>\(\s*(throw\*?)\s+</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.operator.exception.nu</string>
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>$self</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>\(\s*(load|import)\s+</string>

0 comments on commit 7465a18

Please sign in to comment.