Skip to content

Commit

Permalink
Scope throw & throw* as exception operators
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewschleifer committed Mar 29, 2011
1 parent f711da5 commit 7465a18
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion Syntaxes/Nu.tmLanguage
Expand Up @@ -613,7 +613,7 @@
<key>name</key> <key>name</key>
<string>meta.expression.nu</string> <string>meta.expression.nu</string>
<key>begin</key> <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> <key>beginCaptures</key>
<dict> <dict>
<key>1</key> <key>1</key>
Expand Down Expand Up @@ -849,6 +849,29 @@
</dict> </dict>
</array> </array>
</dict> </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> <dict>
<key>begin</key> <key>begin</key>
<string>\(\s*(load|import)\s+</string> <string>\(\s*(load|import)\s+</string>
Expand Down

0 comments on commit 7465a18

Please sign in to comment.