Replies: 1 comment 6 replies
-
Nothing has been changed regarding "quoted and unquoted strings". Quoted and unquoted attribute values are still supported, as prior to version 2.
However, as explained in chapter Lenient Parsing:
Hence lenient parsing allows us to alternatively write:
Yes, this has been changed in version 2.
In version 2 you need to write:
Note that the title must no more be quoted, because the title's text is now defined in a standard text node, and no more in an attribute value.
... then the quotes would be rendered in the target HTML document as part of the title (i.e.
Yes. And titles can contain inline nodes, e.g.:
The ability to render styled titles was one of the main reasons to no longer use attributes for titles. Note that the new line in the title of the above example will not be rendered as a new line in the target HTML document, because of the Whitespace Handling rule applied in text nodes: Quoted attribute values can also contain new lines, e.g.
Note that whitespace in attribute values is preserved (not replaced), as stated here
That's great. Thank you.
Yes, as discussed in #56 |
Beta Was this translation helpful? Give feedback.
-
I've resumed updating the Sublime PML package so that it can support PML 2.0.0.
Question: If I've understood correctly, there is no longer the difference between quoted and unquoted strings, there are only unquoted strings — e.g. in
title
tags. Is that correct? Can I safely delete all code that used to handle quoted strings, and all associated completions, Symbol indexing, etc.?I've been going through the PML CHANGELOG, in order to fully understand the backward breaking changes, but I soon realized there's more at stake then what mentioned therein — e.g. now that
title
is no longer an attribute but a node, it means that titles can span multiple lines, which requires some acrobatic tweaking in editor syntaxes that are RegEx based, sine they can only parse one line at the time.It's really just a matter of time, since I have to ensure that all previously supported nodes and features are back and running again, which means having to fine-comb the whole package, plus some testing of edge cases with the new PML parser.
I hope that the package might be usable again in a week or two, and when this happens I'll just submit it to PackageControl so that users can be able to install it, even if not every PML feature is fully implemented (those that aren't will be simply treated as generic nodes).
The harder part is going to cover lenient parsing, which requires handling all tags individually, compared to shared snippets the syntax could count on before. But eventually it should be covered too, which is the key to provide context-smart completions.
Beta Was this translation helpful? Give feedback.
All reactions