Skip to content

Commit

Permalink
Add some missing VB.NET keywords (#1)
Browse files Browse the repository at this point in the history
* Add AndAlso and OrElse Keywords

VB.NET has `AndAlso` and `OrElse` as a short-circuiting alternative to `And` and `Or`.

References:
- https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/operators/andalso-operator
- https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/operators/orelse-operator

* Add `End While` and `End With`

* Add Try, Catch, Finally and End Try

* Add Using and End Using

* Add Namespace block support

Co-authored-by: Niklas Mollenhauer <[email protected]>
  • Loading branch information
kant2002 and nikeee authored Apr 19, 2022
1 parent 0cc4e1d commit 5164486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Syntaxes/ASP VB.net.plist
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@
</dict>
<dict>
<key>match</key>
<string>(?i:\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\b)</string>
<string>(?i:\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|End While|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|Try|Catch|Finally|End Try|Using|End Using|With|End With|Namespace|End Namespace|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\b)</string>
<key>name</key>
<string>keyword.control.asp</string>
</dict>
<dict>
<key>match</key>
<string>(?i:\b(Mod|And|Not|Or|Xor|as)\b)</string>
<string>(?i:\b(Mod|And|AndAlso|Not|Or|OrElse|Xor|as)\b)</string>
<key>name</key>
<string>keyword.operator.asp</string>
</dict>
Expand Down

0 comments on commit 5164486

Please sign in to comment.