This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new c5b4cbb49 ASDocComment: fix detection of space/tab after see asdoc tag
c5b4cbb49 is described below

commit c5b4cbb4978ca82fe3086310d9c82495d253e142
Author: Josh Tynjala <[email protected]>
AuthorDate: Fri Mar 21 08:58:33 2025 -0700

    ASDocComment: fix detection of space/tab after see asdoc tag
---
 .../java/org/apache/royale/compiler/asdoc/royale/ASDocComment.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/asdoc/royale/ASDocComment.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/asdoc/royale/ASDocComment.java
index cc307d441..638d558ff 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/asdoc/royale/ASDocComment.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/asdoc/royale/ASDocComment.java
@@ -127,10 +127,13 @@ public class ASDocComment implements IASDocComment
                if (tagMap == null)
                        tagMap = new HashMap<String, List<IASDocTag>>();
                
-               int after = line.indexOf(" ", at + 1);
+               int spaceAfter = line.indexOf(" ", at + 1);
                int tabAfter = line.indexOf("\t", at + 1);
-               if (tabAfter != -1 && after != -1 && tabAfter < after)
+                int after = spaceAfter;
+               if (tabAfter != -1 && (spaceAfter == -1 || spaceAfter > 
tabAfter))
+                {
                        after = tabAfter;
+                }
                if (after == -1)
                {
                        tagMap.put(line.substring(at + 1), null);

Reply via email to