← 返回
未分类 中文

splitsym

Extract comments and split symbols from source files. Use when users want to extract inline comments, docstrings, or block comments from code files to unders...
从源代码文件中提取注释和分割符号,适用于用户需要提取行内注释、文档字符串或块注释的场景。
turinfohlen turinfohlen 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 291
下载
💾 0
安装
1
版本
#latest

概述

splitsym

Extract split symbols (line or pair) from source files. Analyzes source code and extracts comments based on file type.

Usage

splitsym <file> [--lines M-N] [--config CONFIG]

Arguments

ArgumentDescription
-----------------------
fileSource file to analyze (required)
--linesOptional line range (e.g., 100-200)
--configPath to symbols.json config (default: ~/.config/splitsym/symbols.json)

Supported File Types

ExtensionComment Style
--------------------------
.py, .rb, .sh, .yaml# comment
.c, .js, .ts, .java// comment
.sql, .hs-- comment
.lisp, .clj; comment
.tex, .erl% comment
.html, .xml, .vue
.py"""docstring""" or '''docstring'''
.ml, .mli( comment )

Example

# Extract all comments from a Python file
splitsym myfile.py

# Extract comments from specific line range
splitsym myfile.py --lines 100-200

# Use custom config
splitsym myfile.py --config ./my-symbols.json

Output Format

   123      PAIR: multi-line comment content...
     45    # This is a comment line
  • Line numbers are right-aligned (6 digits)
  • Indentation is preserved
  • PAIR: prefix indicates multi-line block comments

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 02:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,173
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,309
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 687 📥 331,444