Skip to content

escape multi-line comment close tag #77

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 2 commits into from
Jan 7, 2020

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Jan 6, 2020

Fixes doc strings containing */ causing mult-line comments to be closed prematurely.

Fixes #74

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@kstich kstich left a comment

Choose a reason for hiding this comment

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

Please add a test for this.

Copy link
Contributor

@trivikr trivikr left a comment

Choose a reason for hiding this comment

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

Confirmed that *\\/ doesn't close multi-line comment in JavaScript

@srchase
Copy link
Contributor Author

srchase commented Jan 6, 2020

@trivikr, the Java needs its own escape. The generated comment ends up as *\/.

@srchase srchase requested a review from kstich January 6, 2020 21:52
@trivikr
Copy link
Contributor

trivikr commented Jan 6, 2020

@trivikr, the Java needs its own escape. The generated comment ends up as *\/.

Confirmed that *\/ doesn't close multiline comment in JavaScript

@srchase
Copy link
Contributor Author

srchase commented Jan 6, 2020

Please add a test for this.

added in ac7e28d.

@kstich kstich merged commit 27b49d9 into smithy-lang:master Jan 7, 2020
@srchase srchase deleted the escape-comment-close branch January 7, 2020 16:29
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
srchase pushed a commit that referenced this pull request Mar 23, 2023
…ersion is used (#77)

* Standardize usage of TSLib across all packages, and ensure a single version is used

* Ensure noEmitHelpers is also set in each tsconfig file

* Include TSLib as a dependency in all new modules and ensure importHelpers and noEmitHelpers are enabled by default
srchase pushed a commit that referenced this pull request Jun 16, 2023
…ersion is used (#77)

* Standardize usage of TSLib across all packages, and ensure a single version is used

* Ensure noEmitHelpers is also set in each tsconfig file

* Include TSLib as a dependency in all new modules and ensure importHelpers and noEmitHelpers are enabled by default
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.

*/ ends the comment in models/index.ts
3 participants