diff --git a/vbdotnet.JSON-tmLanguage b/vbdotnet.JSON-tmLanguage
index 80f3d5a..818aff5 100644
--- a/vbdotnet.JSON-tmLanguage
+++ b/vbdotnet.JSON-tmLanguage
@@ -22,6 +22,7 @@
{ "include": "#interfaceDefinition" },
{ "include": "#classDefinition" },
{ "include": "#functionDefinition" },
+ { "include": "#lambdaDefinition" },
{ "include": "#propertyDefinition" },
{ "include": "#propertyGetSet" },
{ "include": "#definitionEnd" },
@@ -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)"
diff --git a/vbdotnet.tmLanguage b/vbdotnet.tmLanguage
index 28796ba..5717aeb 100644
--- a/vbdotnet.tmLanguage
+++ b/vbdotnet.tmLanguage
@@ -90,6 +90,10 @@
include
#functionDefinition
+
+ include
+ #lambdaDefinition
+
include
#propertyDefinition
@@ -292,6 +296,13 @@
name
meta.interface.vbnet
+ lambdaDefinition
+
+ match
+ (?i:function|sub)
+ name
+ support.type.lambda.vbnet
+
languageContants
match