generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(grammar): Add support for if expressions
- Loading branch information
Showing
7 changed files
with
793 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
This is an expression that includes an if. | ||
#if(1 > 0) | ||
${language} if | ||
#end | ||
|
||
|
||
This is an expression that includes if and elseif. | ||
#if($language.length() > 1) | ||
${language} if | ||
#elseif($language.length() > 5) | ||
${language} elseif | ||
#end | ||
|
||
|
||
This is an expression that includes if and else. | ||
#if($language.length() > 1 ) | ||
${language} if | ||
#else | ||
${language} else | ||
#end | ||
|
||
|
||
This is an expression that includes if,elseif and else. | ||
#if($language.length() > 10 ) | ||
${language} if | ||
#elseif($language.length() > 2 ) | ||
${language} elseif | ||
#else | ||
${language} else | ||
#end | ||
|
||
|
||
This is an expression that includes multiple if and elseif. | ||
#if($language.length() > 1 ) | ||
${language} if | ||
#if($language.length() > 2 ) | ||
${language} if_if | ||
#elseif($language.length() > 20 ) | ||
${language} if_elseif | ||
#end | ||
#elseif($language.length() > 10 ) | ||
${language} elseif | ||
#end | ||
|
||
|
||
This is an expression that includes multiple if and else. | ||
#if($language.length() > 10 ) | ||
${language} if | ||
#else | ||
${language} else | ||
#if($language.length() > 2 ) | ||
${language} else_if | ||
#else | ||
${language} else_else | ||
#end | ||
#end | ||
|
||
|
||
Please ignore the content and don't reply to me. |
Oops, something went wrong.