Skip to content

Commit

Permalink
added lambda definition
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-ben-0007 committed Jul 5, 2014
1 parent 4c08514 commit 18bcb51
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vbdotnet.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{ "include": "#interfaceDefinition" },
{ "include": "#classDefinition" },
{ "include": "#functionDefinition" },
{ "include": "#lambdaDefinition" },
{ "include": "#propertyDefinition" },
{ "include": "#propertyGetSet" },
{ "include": "#definitionEnd" },
Expand Down Expand Up @@ -181,6 +182,10 @@
"match": "(?i:^\\s*(end)\\s+(function|sub|class|namespace|module|interface|property|addhandler|enum|event|operator|raiseevent|removehandler|select|structure|synclock))",
"name": "keyword.control.end-definition.vbnet"
},
"lambdaDefinition":{
"match": "(?i:function|sub)",
"name": "support.type.lambda.vbnet"
},
"inheritanceModifiers":{
"name": "storage.modifier.inheritance.vbnet",
"match": "(?i:overloads|overrides|overridable|notoverridable|mustoverride|mustoverride overrides|notoverridable overrides|overloads overrides|mustinherit|notinheritable)"
Expand Down
11 changes: 11 additions & 0 deletions vbdotnet.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
<key>include</key>
<string>#functionDefinition</string>
</dict>
<dict>
<key>include</key>
<string>#lambdaDefinition</string>
</dict>
<dict>
<key>include</key>
<string>#propertyDefinition</string>
Expand Down Expand Up @@ -292,6 +296,13 @@
<key>name</key>
<string>meta.interface.vbnet</string>
</dict>
<key>lambdaDefinition</key>
<dict>
<key>match</key>
<string>(?i:function|sub)</string>
<key>name</key>
<string>support.type.lambda.vbnet</string>
</dict>
<key>languageContants</key>
<dict>
<key>match</key>
Expand Down

0 comments on commit 18bcb51

Please sign in to comment.