Permalink
Browse files

[vb mode] Highlight Try/Catch keywords

  • Loading branch information...
1 parent 52cfc2e commit af7755984d836d6a0073a35c7c87bb96b2f447ad @marijnh marijnh committed Sep 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mode/vb/vb.js
View
@@ -12,8 +12,8 @@ CodeMirror.defineMode("vb", function(conf, parserConf) {
var tripleDelimiters = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");
var identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*");
- var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property'];
- var middleKeywords = ['else','elseif','case'];
+ var openingKeywords = ['class','module', 'sub','enum','select','while','if','function', 'get','set','property', 'try'];
+ var middleKeywords = ['else','elseif','case', 'catch'];
var endKeywords = ['next','loop'];
var wordOperators = wordRegexp(['and', 'or', 'not', 'xor', 'in']);

0 comments on commit af77559

Please sign in to comment.