forth-mode.el (forth-comment-region): New. Use \ for commenting
regions. ( also worked, but it seems nicer to \ for "block comments"
and ( ) for stack comments.
(forth-mode-syntax-table): Change syntax table again so that comments
work a bit better in Emacs23.
(forth-mode): Setup comment-region-function.
Also fix comment-start-skip. (Allthough it's not clear why
we need to set this at all.)
test/tests.el (forth-comment-dwim): Add tests with active region.
(forth-should-region-before/after): New helper.
(forth-paren-comment-font-lock): Fixing comment-start-skip changed
the faces back again.
forth-syntax.el (forth-syntax--parse-comment): Use "!" (i.e. generic
comment) here so that the syntax table can use "<" and ">".
forth-mode.el (forth-comment-region): New. Use \ for commenting regions. ( also worked, but it seems nicer to \ for "block comments" and ( ) for stack comments. (forth-mode-syntax-table): Change syntax table again so that comments work a bit better in Emacs23. (forth-mode): Setup comment-region-function. Also fix comment-start-skip. (Allthough it's not clear why we need to set this at all.)
test/tests.el (forth-comment-dwim): Add tests with active region. (forth-should-region-before/after): New helper. (forth-paren-comment-font-lock): Fixing comment-start-skip changed the faces back again.
forth-syntax.el (forth-syntax--parse-comment): Use "!" (i.e. generic comment) here so that the syntax table can use "<" and ">".