feat(compiler): Support comments in html element.#67179
Conversation
f8ea349 to
38dd529
Compare
de62b79 to
d4e467c
Compare
cd2cd11 to
a7d7341
Compare
|
I thought this is an interesting approach, but is there any prior art to similar syntax? |
|
That we be indeed a novelty, that LLMs will have to learn. Also we do see potential to support ts compiler directives comments like |
|
@JeanMeche Thank you Matthieu for clarifying! I didn't know about Svelte's approach. If this could potentially become a new convention for component writing, it would gradually become easier for LLMs to understand as well. |
| it('should maintain correct source spans with comments', () => { | ||
| // 0 1 2 3 4 | ||
| // 0123456789012345678901234567890123456789012345 | ||
| // <div attr1="a" /* comment */ attr2="b"></div> |
There was a problem hiding this comment.
Are these comments still relevant?
```
<div
// comment 0
/* comment 1 */
attr1="value1"
/*
comment 2
spanning multiple lines
*/
attr2="value2"
></div>
```
a5230f5 to
dd5c508
Compare
|
Presubmit is ok, breakage is unrelated |
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Let's support comments !