File tree Expand file tree Collapse file tree 5 files changed +38
-3
lines changed Expand file tree Collapse file tree 5 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ plugins {
10
10
apply plugin : ' org.jetbrains.grammarkit'
11
11
12
12
group ' co.anbora.labs'
13
- version ' 2.5.6-SNAPSHOT '
13
+ version ' 2.5.8 '
14
14
15
15
repositories {
16
16
mavenCentral()
Original file line number Diff line number Diff line change 34
34
COMMA = ','
35
35
EQ = '='
36
36
DOT = '.'
37
+ Q_MARK = '?'
37
38
DOT_COMMA = ';'
38
39
MODULO = '%'
39
40
char = 'regexp:[\n\r\u2028\u2029]'
@@ -189,6 +190,7 @@ Expression ::=
189
190
| LogicalEqExprItem
190
191
| AddExprItem
191
192
| MulExprItem
193
+ | TernaryExpr
192
194
| NegateExpr
193
195
| AtomExpr
194
196
//{ name="expr" }
@@ -198,6 +200,8 @@ NegateExpr ::= NEGATE Expression
198
200
IndexExpr ::= Expression '[' (RangeExpr|Expression) ']'
199
201
private RangeExpr ::= Expression ':' Expression
200
202
203
+ TernaryExpr ::= Expression '?' Expression ':' Expression
204
+
201
205
202
206
IdentifierExpr ::= IDENTIFIER
203
207
DotExpr ::= Expression DOT Expression
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ PathBuiltIn=[$][(][a-zA-Z_\-0-9]+[a-zA-Z_\.\-0-9]*[)]
113
113
">" { return GT ; }
114
114
">=" { return GE ; }
115
115
"!" { return NEGATE ; }
116
+ "?" { return Q_MARK ; }
116
117
117
118
"+" { return PLUS_OP ; }
118
119
"-" { return MINUS_OP ; }
Original file line number Diff line number Diff line change 1
1
Versions:
2
2
< ul >
3
- < li > All Intellij products support: 2.5.6 </ li >
4
- < li > Android Studio support: 2.5.7 </ li >
3
+ < li > All Intellij products support: 2.5.8 </ li >
4
+ < li > Android Studio support: 2.5.9 </ li >
5
5
</ ul >
6
6
< br >
7
7
Plugin updates:
8
8
< ul >
9
+ < li > < b > 2.5.9</ b > < em > (2021-05-27)</ em > - Fixed minor issues - Android version</ li >
10
+ < ul >
11
+ < li > Added ternary operator </ li >
12
+ </ ul >
13
+ < li > < b > 2.5.8</ b > < em > (2021-05-27)</ em > - Fixed minor issues</ li >
14
+ < ul >
15
+ < li > Added ternary operator </ li >
16
+ </ ul >
9
17
< li > < b > 2.5.7</ b > < em > (2021-05-02)</ em > - Fixed minor issues - Android version</ li >
10
18
< ul >
11
19
< li > Fixed formatting code issues </ li >
Original file line number Diff line number Diff line change
1
+ interface Functions {
2
+
3
+ path (String value );
4
+
5
+ exists (Object path );
6
+
7
+ existsAfter (Object path );
8
+
9
+ get (Object path );
10
+
11
+ getAfter (Object path );
12
+
13
+ bool (String value );
14
+
15
+ float (String value );
16
+
17
+ float (Integer value );
18
+
19
+ int (String value );
20
+
21
+ int (Integer value );
22
+ }
You can’t perform that action at this time.
0 commit comments