Skip to content
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

Simplify quoted identifier in text annotations #3593

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

HansOlsson
Copy link
Collaborator

@HansOlsson HansOlsson commented Oct 28, 2024

I was confused by the previous text and almost thought it was an error.
Currently it says "( e.g., rec.'}'.'quoted ident')" and the proposed change is "( e.g., 'a}x' or 'quoted ident')"

I believe the rewrite is as clear and it preserves the two important parts of the previous change:

  • embedded space (only for quoted identifier)
  • embedded } (cannot simplify string parsing due to this).

It does not include a hierarchical name as that it is now explained separately. Should thus be merged after #3592

Not needed, but I think it avoids my confusion and is clearer

…r in the source.

I believe this is as clear and it preserves the two important parts of the previous change: embedded space (required quoted identifier) and embedded } (more complicated quoting).
It does not include a hierarchical name as that it is now explained separately.
Should thus be merged after modelica#3592
Not needed, but I think it avoids issue.
@HansOlsson HansOlsson changed the title I was confused by the previous text and almost thought it was an error Simplify quoted identifier in text annotations Oct 28, 2024
@HansOlsson
Copy link
Collaborator Author

An alternative to a}x would be a{b}c

@HansOlsson
Copy link
Collaborator Author

An alternative to a}x would be a{b}c

I have now used that. It will still have to merged with #3592, but together I think they make more sense.

Copy link
Collaborator

@henrikt-ma henrikt-ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be good to keep the emphasis on the closing brace inside a quoted identifier.

chapters/annotations.tex Outdated Show resolved Hide resolved
Copy link
Collaborator

@henrikt-ma henrikt-ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@HansOlsson HansOlsson merged commit 189ba88 into modelica:master Nov 7, 2024
1 check passed
@HansOlsson HansOlsson deleted the Quoted2 branch November 7, 2024 14:03
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