annotate runtime/syntax/web.vim @ 32385:49a13ac4a1b1 v9.0.1524

patch 9.0.1524: passing -1 for bool is not always rejected Commit: https://github.com/vim/vim/commit/8cf51376b842e0060edf08bd2e5bd9933c552ecf Author: zeertzjq <zeertzjq@outlook.com> Date: Mon May 8 15:31:38 2023 +0100 patch 9.0.1524: passing -1 for bool is not always rejected Problem: Passing -1 for bool is not always rejected. Solution: Check for error in a better way. (closes https://github.com/vim/vim/issues/12358)
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 May 2023 16:45:03 +0200
parents 43efa4f5a8ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: WEB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Andreas Scherer <andreas.scherer@pobox.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: April 30, 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Details of the WEB language can be found in the article by Donald E. Knuth,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " "The WEB System of Structured Documentation", included as "webman.tex" in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " the standard WEB distribution, available for anonymous ftp at
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " ftp://labrea.stanford.edu/pub/tex/web/.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
11 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
12 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Although WEB is the ur-language for the "Literate Programming" paradigm,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " we base this syntax file on the modern superset, CWEB. Note: This shortcut
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " may introduce some illegal constructs, e.g., CWEB's "@c" does _not_ start a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " code section in WEB. Anyway, I'm not a WEB programmer.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
20 runtime! syntax/cweb.vim
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
21 unlet b:current_syntax
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Replace C/C++ syntax by Pascal syntax.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syntax include @webIncludedC <sfile>:p:h/pascal.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Double-@ means single-@, anywhere in the WEB source (as in CWEB).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Don't misinterpret "@'" as the start of a Pascal string.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syntax match webIgnoredStuff "@[@']"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 let b:current_syntax = "web"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " vim: ts=8