File tree 3 files changed +7371
-7223
lines changed
antlr3/org/sonar/plugins/delphi/antlr
java/org/sonar/plugins/delphi/antlr
3 files changed +7371
-7223
lines changed Original file line number Diff line number Diff line change @@ -489,8 +489,10 @@ factor : '@' factor
489
489
| designator
490
490
| typeId ' (' expression ' )'
491
491
;
492
- stringFactor : (ControlString | ControlChar) (QuotedString (ControlString | ControlChar))* (QuotedString)?
493
- | QuotedString ((ControlString | ControlChar) QuotedString)* (ControlString | ControlChar)?
492
+ stringFactor : (controlString) (QuotedString (controlString))* (QuotedString)?
493
+ | QuotedString ((controlString) QuotedString)* (controlString)?
494
+ ;
495
+ controlString : ControlChar (ControlChar)*
494
496
;
495
497
setSection : ' [ ' (expression ((' ,' | ' .. ' ) expression)*)? ' ] '
496
498
;
@@ -958,8 +960,6 @@ ControlChar : '^' ( {isControlchar()}?=> Alpha
958
960
;
959
961
QuotedString : ' \' ' (' \'\' ' | ~ (' \' ' ))* ' \' ' // taken from PASCAL grammar
960
962
;
961
- ControlString : ControlChar (ControlChar)*
962
- ;
963
963
fragment
964
964
Alpha : ' a' .. ' z'
965
965
| ' A' .. ' Z'
You can’t perform that action at this time.
0 commit comments