REQUIRES: embedded process ;
-
-USING: embedded io ;
-
-
-! Generate vim syntax highlighting rules
-"contrib/vim" cd
-"factor.vim.fgen" "factor.vim" embedded-convert
-
-! vim word, similar to the jedit word
PROVIDE: vim {
"vim.factor"
} ;
IN: vim
-USING: definitions io kernel parser prettyprint process
-sequences ;
+USING: embedded io kernel parser prettyprint process sequences ;
: file-modified stat fourth ;
dup where first2 >r ?resource-path [ file-modified ] keep r>
dupd vim-line/file file-modified = [ drop ] [ reload ] if ;
+: vim-syntax
+ #! Generate a new factor.vim file for syntax highlighting
+ "contrib/vim/factor.vim.fgen" "factor.vim" embedded-convert ;
+