autocorrect 1.10.7

A linter and formatter for help you improve copywriting, to correct spaces, words, punctuations between CJK (Chinese, Japanese, Korean).
Documentation
1
2
3
4
5
6
7
8
9
10
newline = @{ "\n" | "\r" }
space = @{ " "+ }

other = ${ !(comment) ~ ANY }
comment = ${ single_line_comment | multiline_comment }
single_line_comment = _{ "#" ~ (!(newline) ~ ANY)* }
multiline_comment = _{ "/*" ~ (!("*/") ~ ANY)* ~ "*/"}

line = _{ comment | space | newline | other }
item = _{ SOI ~ line* ~ EOI }