fix(parser): stop folding trailing comments into Kotlin import targets
tree-sitter-kotlin folds any comment that follows the LAST import into that import_header node. `_extract_import` had no Kotlin branch, so it fell through to the generic `imports.append(text)` fallback and recorded the entire node text — import statement plus the trailing comment — as the module name. `_do_resolve_module` then turned that string into a filesystem path and called `os.stat` on it. A trailing KDoc block long enough to exceed the path limit raised `OSError: [Errno 63] File name too long`, which `_extract_imports` does not catch, so the whole file failed to parse. Every Kotlin file was affected: the last import always produced an IMPORTS_FROM edge whose target carried the trailing comment. Only files whose trailing comment was long enough to overflow the path limit actually crashed. Add a Kotlin branch that reads the `identifier` child (comments are separate `multiline_comment` siblings) and re-appends ".*" for wildcard imports. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
郭
郭松 committed
716a389bb423bc8797cb9836ff5205547a5866d0
Parent: 1a010de