neovim/runtime/syntax
Christian Clason 9a761019da vim-patch:f7f33e3719c8
runtime(dosbatch): improve '::' comment highlighting

Added a syntax region for command blocks so that the highlighting of
`::` comments in them can be controlled.  The `dosbatch_colons_comment`
variable now controls if all `::` comments in a code block are
highlighted as comments or errors.  A `::` comment at the end of a
command block is always highlighted as an error.

This re-enables the highlighting of `::` comments in `.bat` files as
requested in vim/vim#13666, while allowing control of highlighting them in
command blocks requested in vim/vim#11778 and first attempted in vim/vim#11980.

related: vim/vim#11980
fixes: vim/vim#13666

f7f33e3719

Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Mike Williams <mikew@globalgraphics.com>
2024-02-06 11:42:15 +01:00
..
modula2/opt vim-patch:9.1.0013: Modula2 filetype support lacking (#27020) 2024-01-16 17:45:57 +00:00
shared vim-patch:2b89afd5eb63 2023-11-03 10:04:55 +01:00
2html.vim
8th.vim vim-patch:379df7c1dbb2 2023-12-19 23:44:20 +01:00
a2ps.vim
a65.vim
aap.vim
abap.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
abaqus.vim
abc.vim
abel.vim
acedb.vim
ada.vim
aflex.vim
ahdl.vim
aidl.vim
alsaconf.vim
amiga.vim
aml.vim
ampl.vim
ant.vim vim-patch:0cc6108fea21 2024-01-27 19:38:05 +01:00
antlr.vim
apache.vim
apachestyle.vim
aptconf.vim
arch.vim
arduino.vim
art.vim
asciidoc.vim
asm68k.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
asm.vim
asmh8300.vim
asn.vim
aspperl.vim
aspvbs.vim
asterisk.vim
asteriskvm.vim
atlas.vim
autodoc.vim
autohotkey.vim
autoit.vim
automake.vim
ave.vim
avra.vim
awk.vim
ayacc.vim
b.vim
baan.vim
bash.vim
basic.vim
bc.vim
bdf.vim
bib.vim
bindzone.vim
bitbake.vim
blank.vim
bsdl.vim
bst.vim
btm.vim
bzl.vim
bzr.vim
c.vim vim-patch:ca0e9823a1df 2024-01-24 11:05:25 +01:00
cabal.vim
cabalconfig.vim
cabalproject.vim
calendar.vim
catalog.vim
cdl.vim
cdrdaoconf.vim
cdrtoc.vim
cf.vim
cfg.vim
ch.vim
chaiscript.vim
change.vim
changelog.vim
chaskell.vim
chatito.vim
checkhealth.vim
cheetah.vim
chicken.vim
chill.vim
chordpro.vim
chuck.vim vim-patch:3b2c27415d7d 2024-01-22 23:40:50 +01:00
cl.vim
clean.vim
clipper.vim
clojure.vim
cmake.vim vim-patch:3afc9f2556fa 2023-12-15 10:30:13 +01:00
cmod.vim
cmusrc.vim
cobol.vim
coco.vim
colortest.vim
conaryrecipe.vim
conf.vim
config.vim
confini.vim
context.vim
cpp.vim vim-patch:ff0baca86523 (#26476) 2023-12-09 07:45:31 +08:00
crm.vim
crontab.vim
cs.vim
csc.vim
csdl.vim
csh.vim
csp.vim
css.vim
cterm.vim
ctrlh.vim
cucumber.vim vim-patch:715a8058895f 2023-12-29 00:54:09 +01:00
cuda.vim
cupl.vim
cuplsim.vim
cvs.vim
cvsrc.vim
cweb.vim
cynlib.vim
cynpp.vim
d.vim
dart.vim
datascript.vim
dcd.vim
dcl.vim
deb822sources.vim vim-patch:7b7cda67a124 2023-10-27 10:06:52 +02:00
debchangelog.vim vim-patch:7b7cda67a124 2023-10-27 10:06:52 +02:00
debcontrol.vim vim-patch:ec97edcbb9f6 2023-12-23 12:41:10 +01:00
debcopyright.vim
debsources.vim vim-patch:7b7cda67a124 2023-10-27 10:06:52 +02:00
def.vim
denyhosts.vim
dep3patch.vim
desc.vim
desktop.vim
dictconf.vim
dictdconf.vim
diff.vim vim-patch:9.1.0016: default diff highlighting is too noisy 2024-01-12 13:52:26 +01:00
dircolors.vim
dirpager.vim
diva.vim
django.vim
dns.vim
dnsmasq.vim
docbk.vim
docbksgml.vim
docbkxml.vim
dockerfile.vim
dosbatch.vim vim-patch:f7f33e3719c8 2024-02-06 11:42:15 +01:00
dosini.vim
dot.vim
doxygen.vim
dracula.vim
dsl.vim
dtd.vim
dtml.vim
dtrace.vim
dts.vim
dune.vim
dylan.vim
dylanintr.vim
dylanlid.vim
ecd.vim
edif.vim
editorconfig.vim
eiffel.vim
elf.vim
elinks.vim
elm.vim
elmfilt.vim
erlang.vim
eruby.vim
esmtprc.vim
esqlc.vim
esterel.vim
eterm.vim
euphoria3.vim
euphoria4.vim
eviews.vim
exim.vim
expect.vim
exports.vim
falcon.vim
fan.vim
fasm.vim
fdcc.vim
fetchmail.vim
fgl.vim
fish.vim
flexwiki.vim
focexec.vim
form.vim
forth.vim
fortran.vim vim-patch:9204f39580bd 2024-02-02 08:59:49 +01:00
foxpro.vim
fpcmake.vim
framescript.vim
freebasic.vim
fstab.vim
fvwm2m4.vim
fvwm.vim
gdb.vim
gdmo.vim
gdresource.vim
gdscript.vim
gdshader.vim
gedcom.vim
gemtext.vim
gift.vim
git.vim vim-patch:757714c0cba7 2023-12-29 00:54:09 +01:00
gitattributes.vim
gitcommit.vim vim-patch:fda02d03c0cf 2023-12-29 00:54:09 +01:00
gitconfig.vim
gitignore.vim
gitolite.vim
gitrebase.vim
gitsendemail.vim
gkrellmrc.vim
gnash.vim
gnuplot.vim
go.vim vim-patch:ea9a93e5b098 2024-01-22 23:40:50 +01:00
godoc.vim
gp.vim
gpg.vim
gprof.vim
grads.vim
gretl.vim
groff.vim
groovy.vim
group.vim
grub.vim
gsp.vim
gtkrc.vim
gvpr.vim
gyp.vim
haml.vim
hamster.vim
hare.vim
haskell.vim
haste.vim
hastepreproc.vim
hb.vim
help_ru.vim
help.vim vim-patch:9.1.0016: default diff highlighting is too noisy 2024-01-12 13:52:26 +01:00
hercules.vim
hex.vim
hgcommit.vim
hitest.vim
hlsplaylist.vim
hog.vim
hollywood.vim
hostconf.vim
hostsaccess.vim
html.vim vim-patch:a9058440b7b9 2023-11-29 21:00:07 +01:00
htmlcheetah.vim
htmldjango.vim
htmlm4.vim
htmlos.vim
i3config.vim vim-patch:a39af0290496 2024-01-18 08:42:00 +01:00
ia64.vim
ibasic.vim
icemenu.vim
icon.vim
idl.vim
idlang.vim
indent.vim
inform.vim
initex.vim
initng.vim
inittab.vim
ipfilter.vim
ishd.vim
iss.vim
ist.vim
j.vim
jal.vim
jam.vim
jargon.vim
java.vim
javacc.vim
javascript.vim
javascriptreact.vim
jess.vim
jgraph.vim
jovial.vim
jproperties.vim
json5.vim vim-patch:cc944b145254 2023-12-22 01:07:50 +01:00
json.vim
jsonc.vim
jsp.vim
julia.vim
kconfig.vim
kivy.vim
kix.vim
kotlin.vim
krl.vim
kscript.vim
kwt.vim
lace.vim
latte.vim
lc.vim
ld.vim
ldapconf.vim
ldif.vim
less.vim
lex.vim
lftp.vim
lhaskell.vim
libao.vim
lifelines.vim
lilo.vim
limits.vim
liquid.vim
lisp.vim
lite.vim
litestep.vim
livebook.vim
loginaccess.vim
logindefs.vim
logtalk.vim vim-patch:0f61943eb776 2023-12-16 15:57:22 +01:00
lotos.vim
lout.vim
lpc.vim
lprolog.vim
lscript.vim
lsl.vim
lsp_markdown.vim
lss.vim
lua.vim
luau.vim
lynx.vim vim-patch:2c133f6c1a16 2023-11-12 10:53:57 +01:00
lyrics.vim
m3build.vim
m3quake.vim
m4.vim
mail.vim vim-patch:046a0f75d025 2024-01-26 08:51:13 +01:00
mailaliases.vim
mailcap.vim
make.vim
mallard.vim
man.vim
manconf.vim
manual.vim
maple.vim
markdown.vim
masm.vim vim-patch:37468879977a 2023-12-22 01:07:50 +01:00
mason.vim
master.vim
matlab.vim
maxima.vim
mel.vim
mermaid.vim vim-patch:a03647acc313 2023-12-28 10:42:09 +01:00
meson.vim
messages.vim
mf.vim
mgl.vim
mgp.vim
mib.vim
mix.vim
mma.vim
mmix.vim
mmp.vim
modconf.vim
model.vim
modsim3.vim
modula2.vim vim-patch:9.1.0013: Modula2 filetype support lacking (#27020) 2024-01-16 17:45:57 +00:00
modula3.vim
mojo.vim
monk.vim
moo.vim
mp.vim
mplayerconf.vim
mrxvtrc.vim
msidl.vim
msmessages.vim
msql.vim
mupad.vim
murphi.vim
mush.vim
muttrc.vim
mysql.vim
n1ql.vim
named.vim
nanorc.vim
nasm.vim
nastran.vim
natural.vim
ncf.vim
neomuttrc.vim
netrc.vim
netrw.vim
nginx.vim vim-patch:cf40409e7d17 2023-11-26 16:17:03 +01:00
ninja.vim
nix.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
nosyntax.vim
nqc.vim
nroff.vim
nsis.vim
obj.vim
objc.vim
objcpp.vim
obse.vim
ocaml.vim
occam.vim
odin.vim vim-patch:211211052d04 (#27048) 2024-01-16 23:08:41 +00:00
omnimark.vim
opam.vim
openroad.vim
openscad.vim
openvpn.vim
opl.vim
ora.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
pacmanlog.vim vim-patch:9.0.2148: Vim does not detect pacman.log file 2023-12-05 09:45:13 +01:00
pamconf.vim
pamenv.vim
papp.vim
pascal.vim
passwd.vim
pbtxt.vim
pcap.vim
pccts.vim
pdf.vim
perl.vim
pf.vim
pfmain.vim
php.vim
phtml.vim
pic.vim
pike.vim
pilrc.vim
pine.vim
pinfo.vim
plaintex.vim
pli.vim
plm.vim
plp.vim
plsql.vim
po.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
pod.vim
poefilter.vim
poke.vim
postscr.vim
pov.vim
povini.vim
ppd.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
ppwiz.vim
prescribe.vim
privoxy.vim
procmail.vim
progress.vim
prolog.vim
promela.vim
proto.vim
protocols.vim
ps1.vim
ps1xml.vim
psf.vim
psl.vim
ptcap.vim
purifylog.vim
pymanifest.vim
pyrex.vim
python2.vim
python.vim
qb64.vim
qf.vim
qml.vim
quake.vim
quarto.vim
query.lua docs: enforce "treesitter" spelling #27110 2024-01-28 17:53:14 -08:00
r.vim vim-patch:9042bd8b09ba 2023-12-27 10:55:29 +01:00
racc.vim
racket.vim vim-patch:5eb9cb53d619 2023-12-16 15:57:22 +01:00
radiance.vim
raku.vim
raml.vim
rapid.vim
ratpoison.vim
rc.vim
rcs.vim
rcslog.vim
readline.vim
README.txt
rebol.vim
redif.vim
registry.vim
rego.vim
remind.vim
resolv.vim
reva.vim
rexx.vim
rhelp.vim
rib.vim
rmd.vim vim-patch:9042bd8b09ba 2023-12-27 10:55:29 +01:00
rnc.vim
rng.vim
rnoweb.vim
robots.vim
routeros.vim
rpcgen.vim
rpl.vim
rrst.vim
rst.vim
rtf.vim
ruby.vim
rust.vim
samba.vim
sas.vim
sass.vim
sather.vim
sbt.vim
scala.vim
scdoc.vim
scheme.vim
scilab.vim
screen.vim
scss.vim
sd.vim
sdc.vim
sdl.vim
sed.vim
sendpr.vim
sensors.vim
services.vim
setserial.vim
sexplib.vim
sgml.vim
sgmldecl.vim
sgmllnx.vim
sh.vim vim-patch:add31baedaf0 2024-01-22 23:40:50 +01:00
shada.vim
sicad.vim
sieve.vim
sil.vim
simula.vim
sinda.vim
sindacmp.vim
sindaout.vim
sisu.vim
skill.vim
sl.vim
slang.vim
slice.vim
slpconf.vim
slpreg.vim
slpspi.vim
slrnrc.vim
slrnsc.vim
sm.vim
smarty.vim
smcl.vim
smil.vim
smith.vim
sml.vim
snnsnet.vim
snnspat.vim
snnsres.vim
snobol4.vim
solidity.vim
spec.vim
specman.vim
spice.vim
splint.vim
spup.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
spyce.vim
sql.vim
sqlanywhere.vim
sqlforms.vim
sqlhana.vim
sqlinformix.vim
sqlj.vim
sqloracle.vim
sqr.vim
squid.vim
squirrel.vim vim-patch:ff0baca86523 (#26476) 2023-12-09 07:45:31 +08:00
srec.vim
srt.vim
ssa.vim
sshconfig.vim
sshdconfig.vim
st.vim
stata.vim
stp.vim
strace.vim
structurizr.vim
sudoers.vim
svg.vim
svn.vim
swayconfig.vim vim-patch:46d67d22b9ba 2024-01-18 08:42:00 +01:00
swift.vim
swiftgyb.vim
swig.vim vim-patch:9.0.2128: runtime(swig): add syntax and filetype plugins 2023-11-26 00:41:59 +01:00
synload.vim
syntax.vim
sysctl.vim
systemd.vim
systemverilog.vim
tads.vim
tags.vim
tak.vim
takcmp.vim
takout.vim
tap.vim
tar.vim
taskdata.vim
taskedit.vim
tasm.vim
tcl.vim
tcsh.vim
template.vim
teraterm.vim
terminfo.vim
tex.vim
texinfo.vim
texmf.vim
tf.vim
tidy.vim
tilde.vim
tli.vim
tmux.vim vim-patch:b42703a662e8 2023-12-18 10:25:08 +01:00
toml.vim
tpp.vim
trasys.vim
treetop.vim
trustees.vim
tsalt.vim
tsscl.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00
tssgm.vim
tssop.vim
tt2.vim
tt2html.vim
tt2js.vim
tutor.vim
typescript.vim
typescriptreact.vim
uc.vim
udevconf.vim
udevperm.vim
udevrules.vim
uil.vim
unison.vim
updatedb.vim
upstart.vim
upstreamdat.vim
upstreaminstalllog.vim
upstreamlog.vim
upstreamrpt.vim
urlshortcut.vim
usserverlog.vim
usw2kagtlog.vim
valgrind.vim
vb.vim
vdf.vim
vera.vim
verilog.vim
verilogams.vim
vgrindefs.vim
vhdl.vim
vim.vim vim-patch:7c5aeaffa2be (#27327) 2024-02-04 07:09:54 +08:00
viminfo.vim
vimnormal.vim
virata.vim
vmasm.vim
voscm.vim
vrml.vim
vroom.vim
vsejcl.vim
vue.vim
wat.vim vim-patch:9.0.2104: wast filetype should be replaced by wat filetype 2023-11-14 21:51:28 +01:00
wdiff.vim
wdl.vim
web.vim
webmacro.vim
wget2.vim vim-patch:d56f15caf602 2023-11-09 19:17:11 +01:00
wget.vim vim-patch:d56f15caf602 2023-11-09 19:17:11 +01:00
whitespace.vim
winbatch.vim
wml.vim
wsh.vim
wsml.vim
wvdial.vim
xbl.vim
xcompose.vim vim-patch:9.0.2098: No filetype support for xcompose files (#25983) 2023-11-12 07:51:25 +08:00
xdefaults.vim
xf86conf.vim
xhtml.vim
xinetd.vim
xkb.vim
xmath.vim
xml.vim
xmodmap.vim
xpm2.vim
xpm.vim
xquery.vim
xs.vim
xsd.vim
xslt.vim
xxd.vim
yacc.vim
yaml.vim
z8a.vim
zig.vim vim-patch:e08bfef88bd0 2023-10-19 10:20:55 -05:00
zimbu.vim
zir.vim
zserio.vim
zsh.vim vim-patch:dbf749bd5aae (#25665) 2023-10-16 16:36:25 +08:00

This directory contains Vim scripts for syntax highlighting.

These scripts are not for a language, but are used by Vim itself:

syntax.vim	Used for the ":syntax on" command.  Uses synload.vim.

manual.vim	Used for the ":syntax manual" command.  Uses synload.vim.

synload.vim	Contains autocommands to load a language file when a certain
		file name (extension) is used.  And sets up the Syntax menu
		for the GUI.

nosyntax.vim	Used for the ":syntax off" command.  Undo the loading of
		synload.vim.

The "shared" directory contains generated files and what is used by more than
one syntax.


A few special files:

2html.vim	Converts any highlighted file to HTML (GUI only).
colortest.vim	Check for color names and actual color on screen.
hitest.vim	View the current highlight settings.
whitespace.vim  View Tabs and Spaces.


If you want to write a syntax file, read the docs at ":help usr_44.txt".

If you make a new syntax file which would be useful for others, please send it
to the vim-dev mailing list <vim-dev@vim.org>.  Include instructions for
detecting the file type for this language, by file name extension or by
checking a few lines in the file. And please write the file in a portable way,
see ":help 44.12".

If you have remarks about an existing file, send them to the maintainer of
that file.  Only when you get no response send a message to the vim-dev
mailing list: <vim-dev@vim.org>.

If you are the maintainer of a syntax file and make improvements, send the new
version to the vim-dev mailing list: <vim-dev@vim.org>

For further info see ":help syntax" in Vim.