Skip to content

Rust program to extra java comments (and optionally strings) in a sea of whitespace.

License

Notifications You must be signed in to change notification settings

cmore-zz/java_comment_extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java_comment_extractor

A fast, offset-preserving Java comment and string extractor.

  • Extracts comments (//, /* ... */) and optionally string contents.
  • Replaces non-comment, non-string code with spaces, preserving line/column alignment.
  • Supports Java 15+ triple-quoted """ text blocks.
  • Useful for grammar checking with Flycheck + LanguageTool or Vale.

Usage

java_comment_extractor [--preserve-strings] <input-file>

About

Rust program to extra java comments (and optionally strings) in a sea of whitespace.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published