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

Quoted #2463

Merged
merged 5 commits into from Dec 20, 2019
Merged

Quoted #2463

merged 5 commits into from Dec 20, 2019

Conversation

HansOlsson
Copy link
Collaborator

Try to clarify single-quoted identifiers.
Closes #2408

Since this is a straightforward but non-trivial change, I want that in addition to the review that you vote thumbs up to accept or thumbs down if you don't think it should be accepted.

The poll is running to 2019-12-19.

Comment on lines 84 to 86
The single quotes are part of the identifier, i.e., \lstinline!'x'! and \lstinline!x!
are distinct identifiers, but the redundant escapes (\lstinline!'\?'! and \lstinline!'\"'!) are the same as the corresponding non-escaped
variants (\lstinline!'?'! and \lstinline!'"'!). A full BNF definition of the Modelica syntax and
variants (\lstinline!'?'! and \lstinline!'"'!), and outside of Modelica source code the redundant escapes shall not be used.
Copy link
Member

Choose a reason for hiding this comment

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

Might be easier to grasp if that long sentence is split in two or three parts.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed, and I tried to do that.

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.

I agree with intentions. Just some comments on wording.

chapters/lexicalstructure.tex Outdated Show resolved Hide resolved
chapters/lexicalstructure.tex Outdated Show resolved Hide resolved
@HansOlsson HansOlsson merged commit faa97b9 into modelica:master Dec 20, 2019
@HansOlsson HansOlsson deleted the QuotedId branch December 20, 2019 09:26
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.

Single-quoted identifier representation in filenames, package.order, and simulation results
5 participants