Skip to content

Commit

Permalink
RAI-16086 fix string quotes auto closing after doc/raw keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaSBCrea committed Sep 25, 2023
1 parent a924272 commit bc92c0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ const relLanguage = language.LRLanguage.define({
]
}),
languageData: {
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`", '"""'] },
closeBrackets: {
brackets: ["(", "[", "{", "'", '"', "`", '"""'],
stringPrefixes: ["doc", "raw"]
},
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
}
});
Expand Down
5 changes: 4 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export const relLanguage = LRLanguage.define({
]
}),
languageData: {
closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`", '"""']},
closeBrackets: {
brackets: ["(", "[", "{", "'", '"', "`", '"""'],
stringPrefixes: ["doc", "raw"]
},
commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
}
})
Expand Down

0 comments on commit bc92c0d

Please sign in to comment.