From: Capital-Ex Date: Tue, 6 Sep 2022 02:38:18 +0000 (-0400) Subject: Made RegExp More Specific X-Git-Tag: 0.99~1099 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=ba6e4972de6558b342ad9f0027b555bb885af62f Made RegExp More Specific Fixed issue where all postponed words would be ignored. --- diff --git a/extra/lint/vocabs/vocabs.factor b/extra/lint/vocabs/vocabs.factor index 3063edb090..358a353dd9 100644 --- a/extra/lint/vocabs/vocabs.factor +++ b/extra/lint/vocabs/vocabs.factor @@ -35,7 +35,7 @@ SYMBOL: old-dictionary "USING: [^;]+ ;|USE: \\S+" all-matching-subseqs ; : clean-up-source ( string -- string ) - "\"(\\\"|[^\"]*)\"|(R/ (\\\\/|[^/])*/)|\\\\\\s+\\S+|POSTPONE: \\S+|! ([^\n])*" "" re-replace ; + "\"(\\\"|[^\"]*|\n)\"|(R/ (\\\\/|[^/])*/)|\\\\\\s+(USE:|USING:)|POSTPONE:\\s+(USE:|USING:)|! ([^\n])*" "" re-replace ; : strip-syntax ( seq -- seq ) [ "USING: | ;|USE: " " " re-replace ] map ;