X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=extra%2Flint%2Fvocabs%2Fvocabs.factor;h=031f5df81489bd5749c1b9b5e7a5c7792e9811e3;hp=8b692cc1c05b2586314238605aa7dd0b96340618;hb=68394b0ce17cbf00c35ed7a75c8168ffe319480c;hpb=0cb35fccbba1bf28ec91487fd06247a56feb0514 diff --git a/extra/lint/vocabs/vocabs.factor b/extra/lint/vocabs/vocabs.factor index 8b692cc1c0..031f5df814 100644 --- a/extra/lint/vocabs/vocabs.factor +++ b/extra/lint/vocabs/vocabs.factor @@ -9,6 +9,11 @@ IN: lint.vocabs +LINT-VOCABS-REGEX set-global : save-dictionary ( -- ) dictionary get clone @@ -35,7 +40,7 @@ SYMBOL: old-dictionary "USING: [^;]+ ;|USE: \\S+" all-matching-subseqs ; : clean-up-source ( string -- string ) - "\"(\\\\\"|[^\"])*\"|R/ (\\\\/|[^/])*/|\\\\\\s+(USE:|USING:)|POSTPONE:\\s+(USE:|USING:)|! [^\n]*|CHAR:\\s+\\S+\\s+" "" re-replace ; + LINT-VOCABS-REGEX get-global "" re-replace ; : strip-syntax ( seq -- seq ) [ "USING: | ;|USE: " " " re-replace ] map ;