Closed tancnle closed 2 years ago
@Alexey-T could you help to review this PR and verify if it addresses the reported issue? 🙏🏼
function Name : integer;
begin
Name := 2;
Name := Name + 1
end.
not correct snippet! end with dot is only at the end of UNIT FILE, but end of a function has end;
.
not correct snippet! end with dot is only at the end of UNIT FILE, but end of a function has
end;
.
Gotcha 👍🏼. Thanks for noting this. I have fixed the snippet in the test and extended the rules to cater for both end;
and end.
Both free pascal and puppet are sharing the same file extension, that is
.pp
. This change adds.pp
as a possible extension for thepascal
lexer and disambiguates betweenpuppet
andpascal
using keywords.Addresses https://github.com/rouge-ruby/rouge/issues/1842