File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
src/org/opensolaris/opengrok/analysis/sh
test/org/opensolaris/opengrok/analysis/sh Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ Identifier = [a-zA-Z_] [a-zA-Z0-9_]*
27
27
Number = \$? [0-9]+\.[0-9]+| [0-9][0-9]* | [0][xX] [0-9a-fA-F]+
28
28
29
29
/*
30
- * Rather than enumerate letters, just treat all hyphen-single-char as a
31
- * unary op. "req_lookahead" because an assertion is needed that it is followed
32
- * by non-word or end-of-line.
30
+ * Rather than enumerate letters, just treat all hyphen- or plus- with a
31
+ * single-char as a unary op. "req_lookahead" because an assertion is needed
32
+ * that it is followed by non-word or end-of-line.
33
33
*/
34
- Unary_op_req_lookahead = [\-]{Unary_op_char}
34
+ Unary_op_req_lookahead = [\-\+ ]{Unary_op_char}
35
35
Unary_op_char = [A-Za-z]
36
36
37
37
Binary_op = [\-]("ef"|"nt"|"ot"|"eq"|"ge"|"gt"|"le"|"lt"|"ne"){WhspChar}
Original file line number Diff line number Diff line change @@ -268,3 +268,4 @@ exit 0
268
268
typeset -i vint
269
269
vint=0xFFEF
270
270
echo ' http://example.com'
271
+ typeset +l -i vint2
Original file line number Diff line number Diff line change 276
276
< a class ="l " name ="268 " href ="#268 "> 268</ a > < b > typeset</ b > -i < a href ="/source/s?defs=vint " class ="intelliWindow-symbol " data-definition-place ="undefined-in-file "> vint</ a >
277
277
< a class ="l " name ="269 " href ="#269 "> 269</ a > < a href ="/source/s?defs=vint " class ="intelliWindow-symbol " data-definition-place ="undefined-in-file "> vint</ a > =< span class ="n "> 0xFFEF</ span >
278
278
< a class ="hl " name ="270 " href ="#270 "> 270</ a > < b > echo</ b > < span class ="s "> '< a href ="http://example.com "> http://example.com</ a > '</ span >
279
- < a class ="l " name ="271 " href ="#271 "> 271</ a > </ body >
279
+ < a class ="l " name ="271 " href ="#271 "> 271</ a > < b > typeset</ b > +l -i < a href ="/source/s?defs=vint2 " class ="intelliWindow-symbol " data-definition-place ="undefined-in-file "> vint2</ a >
280
+ < a class ="l " name ="272 " href ="#272 "> 272</ a > </ body >
280
281
</ html >
Original file line number Diff line number Diff line change 209
209
null
210
210
vint
211
211
vint
212
+ vint2
You can’t perform that action at this time.
0 commit comments