Explorar o código

* allow %... for binary constants in delphi mode, resolves #39503

Florian Klämpfl %!s(int64=3) %!d(string=hai) anos
pai
achega
25eab57a58
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 1
      compiler/scanner.pas
  2. 0 1
      tests/tbs/tb0689.pp

+ 1 - 1
compiler/scanner.pas

@@ -4938,7 +4938,7 @@ type
 
              '%' :
                begin
-                 if not(m_fpc in current_settings.modeswitches) then
+                 if [m_fpc,m_delphi] * current_settings.modeswitches = [] then
                   Illegal_Char(c)
                  else
                   begin

+ 0 - 1
tests/tbf/tb0067.pp → tests/tbs/tb0689.pp

@@ -1,4 +1,3 @@
-{ %FAIL }
 { Old file: tbf0326.pp }
 {  }