Skip to content

Syntax/Pascal: Support multiline strings #2720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

baka0815
Copy link
Contributor

Delphi introduced multiline strings in version 12. They start with ''' and end with ``'''```.

Before:
grafik

After:
grafik

Delphi introduced multiline strings in version 12. They start with ''' and end with '''.
@sdottaka sdottaka merged commit 5dcea0f into WinMerge:master Apr 11, 2025
3 checks passed
@sdottaka
Copy link
Member

Thank you for the PR. I’ve merged it.
By the way, you're currently using COOKIE_BLOCK_STYLE, but this constant represents a block within a <style> tag in an HTML file. I plan to replace it with a more appropriate name later.

sdottaka added a commit that referenced this pull request Apr 12, 2025
sdottaka added a commit that referenced this pull request Apr 12, 2025
@sdottaka
Copy link
Member

I reverted it because it was treated as a multi-line string in the following cases. Could you fix this issue and submit the PR again?

  a = AnsiChar('''');

@baka0815
Copy link
Contributor Author

@sdottaka I can take a look at it again.

Is there a better constant thant COOKIE_BLOCK_STYLE? Should I introduce a new one?
Is the rest of the code "ok" or is there anything else I should change while I'm at it?

@sdottaka
Copy link
Member

I think it's better to use COOKIE_RAWSTRING instead of COOKIE_BLOCK_STYLE. I'll check later if there are any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants