X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=extra%2Flint%2Fvocabs%2Fvocabs.factor;h=8b692cc1c05b2586314238605aa7dd0b96340618;hp=c701a05145b70ec9b3db9029dd6628d4f1898f39;hb=0cb35fccbba1bf28ec91487fd06247a56feb0514;hpb=c0a790904791be6f356a0a5737fad17e8aeaeb6f diff --git a/extra/lint/vocabs/vocabs.factor b/extra/lint/vocabs/vocabs.factor index c701a05145..8b692cc1c0 100644 --- a/extra/lint/vocabs/vocabs.factor +++ b/extra/lint/vocabs/vocabs.factor @@ -1,7 +1,7 @@ ! Copyright (C) 2022 CapitalEx ! See http://factorcode.org/license.txt for BSD license. -USING: accessors arrays assocs compiler.units continuations -formatting hash-sets hashtables io io.encodings.utf8 io.files +USING: accessors arrays assocs compiler.units formatting +hash-sets hashtables io io.encodings.utf8 io.files kernel namespaces regexp sequences sequences.deep sets sorting splitting unicode vocabs vocabs.loader ; FROM: namespaces => set ; @@ -35,7 +35,7 @@ SYMBOL: old-dictionary "USING: [^;]+ ;|USE: \\S+" all-matching-subseqs ; : clean-up-source ( string -- string ) - "\"(\\\\\"|[^\"])*\"|(R/ (\\\\/|[^/])*/)|\\\\\\s+(USE:|USING:)|POSTPONE:\\s+(USE:|USING:)|! [^\n]*" "" re-replace ; + "\"(\\\\\"|[^\"])*\"|R/ (\\\\/|[^/])*/|\\\\\\s+(USE:|USING:)|POSTPONE:\\s+(USE:|USING:)|! [^\n]*|CHAR:\\s+\\S+\\s+" "" re-replace ; : strip-syntax ( seq -- seq ) [ "USING: | ;|USE: " " " re-replace ] map ;