@typespec/prettier-plugin-typespec 1.7.0-dev.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.js.map +2 -2
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -5955,6 +5955,9 @@ function createParser(code, options = {}) {
|
|
|
5955
5955
|
if (token() === Token.Identifier) {
|
|
5956
5956
|
sv = tokenValue();
|
|
5957
5957
|
nextToken();
|
|
5958
|
+
} else if (token() === Token.DocCodeSpan) {
|
|
5959
|
+
sv = tokenValue();
|
|
5960
|
+
nextToken();
|
|
5958
5961
|
} else {
|
|
5959
5962
|
sv = "";
|
|
5960
5963
|
warning({ code: "doc-invalid-identifier", messageId });
|