summaryrefslogtreecommitdiffstats
path: root/runtime/doc/syntax.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-27 17:22:07 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-27 17:22:07 +0000
commit3d14c0f2b964195d08b34bb43f89ec5f99255194 (patch)
tree163e4b2f4c8ec11c664d0a0bc92e41da1f87a2a8 /runtime/doc/syntax.txt
parentc07f11e42fc2eac5e750bf05aa3030f9b02a22ca (diff)
patch 8.2.3686: filetype detection often mixes up Forth and F#v8.2.3686
Problem: Filetype detection often mixes up Forth and F#. Solution: Add a function to inspect the file contents. (Doug Kearns)
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r--runtime/doc/syntax.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 08d3f5f111..3bc5cf4b0a 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1533,6 +1533,14 @@ gvim display. Here, statements are colored LightYellow instead of Yellow, and
conditionals are LightBlue for better distinction.
+FORTH *forth.vim* *ft-forth-syntax*
+
+Files matching "*.fs" could be F# or Forth. If the automatic detection
+doesn't work for you, or you don't edit F# at all, use this in your
+startup vimrc: >
+ :let filetype_fs = "forth"
+
+
FORTRAN *fortran.vim* *ft-fortran-syntax*
Default highlighting and dialect ~