mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 16:19:28 +02:00
+ also support & to escape identifiers (and for octal notation) in Delplhi
mode (patch by Blaise Thorn, mantis #15930) git-svn-id: trunk@15031 -
This commit is contained in:
parent
6db635210a
commit
87c9773ac0
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -10317,6 +10317,7 @@ tests/webtbs/tw15777f.pp svneol=native#text/plain
|
||||
tests/webtbs/tw15812.pp svneol=native#text/plain
|
||||
tests/webtbs/tw15909.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1592.pp svneol=native#text/plain
|
||||
tests/webtbs/tw15930.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1617.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1622.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1623.pp svneol=native#text/plain
|
||||
|
@ -3494,7 +3494,7 @@ In case not, the value returned can be arbitrary.
|
||||
|
||||
'&' :
|
||||
begin
|
||||
if m_fpc in current_settings.modeswitches then
|
||||
if [m_fpc,m_delphi] * current_settings.modeswitches <> [] then
|
||||
begin
|
||||
readnumber;
|
||||
if length(pattern)=1 then
|
||||
|
16
tests/webtbs/tw15930.pp
Normal file
16
tests/webtbs/tw15930.pp
Normal file
@ -0,0 +1,16 @@
|
||||
{ %norun }
|
||||
|
||||
{$mode delphi}
|
||||
|
||||
var
|
||||
&file: integer;
|
||||
&do: string;
|
||||
&in: boolean;
|
||||
&for: char;
|
||||
begin
|
||||
&file:=1;
|
||||
&do:='abc';
|
||||
&in:=true;
|
||||
&for:='h'
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user