Skip to content

Commit

Permalink
fix for python and fsharp
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 23, 2024
1 parent 1520965 commit ca6ee87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Logs
dtos/
logs
*.log
npm-debug.log*
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async function updateReference(lang:string, target:string) {
var lines = existingRefSrc.split(/\r?\n/)
for (let i = 0; i < lines.length; i++) {
var line = lines[i]
if (line.startsWith("*/"))
if (line.startsWith("*/") || line.startsWith("*)") || line.startsWith('"""'))
break
if (lang === "vbnet") {
if (line.trim().length === 0)
Expand All @@ -234,7 +234,7 @@ async function updateReference(lang:string, target:string) {
if (line.startsWith("BaseUrl: ")) {
baseUrl = line.substring("BaseUrl: ".length)
} else if (baseUrl) {
if (!line.startsWith("//") && !line.startsWith("'")) {
if (!line.startsWith("//") && !line.startsWith("'") && !line.startsWith("#")) {
var parts = splitOnFirst(line, ":")
if (parts.length === 2) {
var key = parts[0].trim()
Expand Down

0 comments on commit ca6ee87

Please sign in to comment.