Skip to content

Commit 5323aad

Browse files
committed
Merge pull request livecode#2824 from livecodeali/bugfix-15805
[[ Bug 15805 ]] Don't overwrite previously specified Syntax docs elements
2 parents 5bba78e + 24d4296 commit 5323aad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/notes/bugfix-15805.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Docs: Second Syntax element overwrites first

ide-support/revdocsparser.livecodescript

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ function revDocsFormatInlineComments pDataA, pIsLibrary
726726
put tElementA["content"] into tType
727727
next repeat
728728
else if tElement is "Syntax" then
729-
put tElementA["content"] into tSyntax
729+
put tElementA["content"] into tSyntax[the number of elements of tSyntax + 1]
730730
next repeat
731731
end if
732732

@@ -802,12 +802,11 @@ function revDocsFormatInlineComments pDataA, pIsLibrary
802802
put return after tEntryDoc
803803
end repeat
804804
if tHasA["Syntax"] is not true then
805-
repeat with x = 1 to the number of elements in pDataA["syntax"]
806-
put "Syntax:" && pDataA["syntax"][x] & return & return before tEntryDoc
807-
end repeat
808-
else
809-
put "Syntax:" && tSyntax & return & return before tEntryDoc
805+
put pDataA["syntax"] into tSyntax
810806
end if
807+
repeat with x = 1 to the number of elements in tSyntax
808+
put "Syntax:" && tSyntax[x] & return & return before tEntryDoc
809+
end repeat
811810

812811
if tHasA["Type"] is not true then
813812
put pDataA["type"] into tType

0 commit comments

Comments
 (0)