Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages