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
11
12
13
14
15
16
newline = ${ "\n" | "\r" }
space = ${ " "+ }

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

string = ${ string_val }
string_val = _{ 
  ("\"" ~ (!(newline | "\"") ~ ANY)* ~ "\"") 
}

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