Update runtime files.

This commit is contained in:
Bram Moolenaar
2021-04-17 16:31:09 +02:00
parent 112a006417
commit 56994d2158
29 changed files with 764 additions and 173 deletions

7
.github/CODEOWNERS vendored
View File

@ -22,6 +22,7 @@ runtime/autoload/vimball.vim @cecamp
runtime/autoload/xmlformat.vim @chrisbra runtime/autoload/xmlformat.vim @chrisbra
runtime/autoload/zip.vim @cecamp runtime/autoload/zip.vim @cecamp
runtime/compiler/checkstyle.vim @dkearns runtime/compiler/checkstyle.vim @dkearns
runtime/compiler/cm3.vim @dkearns
runtime/compiler/cucumber.vim @tpope runtime/compiler/cucumber.vim @tpope
runtime/compiler/dart.vim @dkearns runtime/compiler/dart.vim @dkearns
runtime/compiler/dart2js.vim @dkearns runtime/compiler/dart2js.vim @dkearns
@ -90,8 +91,11 @@ runtime/ftplugin/javascript.vim @dkearns
runtime/ftplugin/javascriptreact.vim @dkearns runtime/ftplugin/javascriptreact.vim @dkearns
runtime/ftplugin/kconfig.vim @chrisbra runtime/ftplugin/kconfig.vim @chrisbra
runtime/ftplugin/liquid.vim @tpope runtime/ftplugin/liquid.vim @tpope
runtime/ftplugin/m3build.vim @dkearns
runtime/ftplugin/m3quake.vim @dkearns
runtime/ftplugin/markdown.vim @tpope runtime/ftplugin/markdown.vim @tpope
runtime/ftplugin/matlab.vim @cecamp runtime/ftplugin/matlab.vim @cecamp
runtime/ftplugin/modula3.vim @dkearns
runtime/ftplugin/nroff.vim @a-vrma runtime/ftplugin/nroff.vim @a-vrma
runtime/ftplugin/nsis.vim @k-takata runtime/ftplugin/nsis.vim @k-takata
runtime/ftplugin/pdf.vim @tpope runtime/ftplugin/pdf.vim @tpope
@ -167,10 +171,13 @@ runtime/syntax/lex.vim @cecamp
runtime/syntax/liquid.vim @tpope runtime/syntax/liquid.vim @tpope
runtime/syntax/lisp.vim @cecamp runtime/syntax/lisp.vim @cecamp
runtime/syntax/lynx.vim @dkearns runtime/syntax/lynx.vim @dkearns
runtime/syntax/m3build.vim @dkearns
runtime/syntax/m3quake.vim @dkearns
runtime/syntax/mailcap.vim @dkearns runtime/syntax/mailcap.vim @dkearns
runtime/syntax/make.vim @rohieb runtime/syntax/make.vim @rohieb
runtime/syntax/maple.vim @cecamp runtime/syntax/maple.vim @cecamp
runtime/syntax/markdown.vim @tpope runtime/syntax/markdown.vim @tpope
runtime/syntax/modula3.vim @dkearns
runtime/syntax/netrw.vim @cecamp runtime/syntax/netrw.vim @cecamp
runtime/syntax/nroff.vim @jmarshall runtime/syntax/nroff.vim @jmarshall
runtime/syntax/nsis.vim @k-takata runtime/syntax/nsis.vim @k-takata

View File

@ -7,12 +7,14 @@
## What is Vim? ## ## What is Vim? ##
Vim is a greatly improved version of the good old UNIX editor Vi. Many new Vim is a greatly improved version of the good old UNIX editor
[Vi](https://en.wikipedia.org/wiki/Vi). Many new
features have been added: multi-level undo, syntax highlighting, command line features have been added: multi-level undo, syntax highlighting, command line
history, on-line help, spell checking, filename completion, block operations, history, on-line help, spell checking, filename completion, block operations,
script language, etc. There is also a Graphical User Interface (GUI) script language, etc. There is also a Graphical User Interface (GUI)
available. Still, Vi compatibility is maintained, those who have Vi "in the available. Still, Vi compatibility is maintained, those who have Vi "in the
fingers" will feel at home. See `runtime/doc/vi_diff.txt` for differences with fingers" will feel at home.
See [`runtime/doc/vi_diff.txt`](runtime/doc/vi_diff.txt) for differences with
Vi. Vi.
This editor is very useful for editing programs and other plain text files. This editor is very useful for editing programs and other plain text files.
@ -42,7 +44,7 @@ want or must compile it yourself. Check http://www.vim.org/download.php for
an overview of currently available distributions. an overview of currently available distributions.
Some popular places to get the latest Vim: Some popular places to get the latest Vim:
* Check out the git repository from [github](https://github.com/vim/vim). * Check out the git repository from [GitHub](https://github.com/vim/vim).
* Get the source code as an [archive](https://github.com/vim/vim/releases). * Get the source code as an [archive](https://github.com/vim/vim/releases).
* Get a Windows executable from the * Get a Windows executable from the
[vim-win32-installer](https://github.com/vim/vim-win32-installer/releases) repository. [vim-win32-installer](https://github.com/vim/vim-win32-installer/releases) repository.
@ -53,14 +55,14 @@ Some popular places to get the latest Vim:
If you obtained a binary distribution you don't need to compile Vim. If you If you obtained a binary distribution you don't need to compile Vim. If you
obtained a source distribution, all the stuff for compiling Vim is in the obtained a source distribution, all the stuff for compiling Vim is in the
`src` directory. See `src/INSTALL` for instructions. [`src`](/src) directory. See [`src/INSTALL`](src/INSTALL) for instructions.
## Installation ## ## Installation ##
See one of these files for system-specific instructions. Either in the See one of these files for system-specific instructions. Either in the
READMEdir directory (in the repository) or the top directory (if you unpack an [READMEdir directory](./READMEdir/) (in the repository) or
archive): the top directory (if you unpack an archive):
README_ami.txt Amiga README_ami.txt Amiga
README_unix.txt Unix README_unix.txt Unix
@ -78,8 +80,9 @@ The Vim tutor is a one hour training course for beginners. Often it can be
started as `vimtutor`. See `:help tutor` for more information. started as `vimtutor`. See `:help tutor` for more information.
The best is to use `:help` in Vim. If you don't have an executable yet, read The best is to use `:help` in Vim. If you don't have an executable yet, read
`runtime/doc/help.txt`. It contains pointers to the other documentation [`runtime/doc/help.txt`](/runtime/doc/help.txt).
files. The User Manual reads like a book and is recommended to learn to use It contains pointers to the other documentation files.
The User Manual reads like a book and is recommended to learn to use
Vim. See `:help user-manual`. Vim. See `:help user-manual`.
@ -87,7 +90,8 @@ Vim. See `:help user-manual`.
Vim is Charityware. You can use and copy it as much as you like, but you are Vim is Charityware. You can use and copy it as much as you like, but you are
encouraged to make a donation to help orphans in Uganda. Please read the file encouraged to make a donation to help orphans in Uganda. Please read the file
`runtime/doc/uganda.txt` for details (do `:help uganda` inside Vim). [`runtime/doc/uganda.txt`](runtime/doc/uganda.txt)
for details (do `:help uganda` inside Vim).
Summary of the license: There are no restrictions on using or distributing an Summary of the license: There are no restrictions on using or distributing an
unmodified copy of Vim. Parts of Vim may also be distributed, but the license unmodified copy of Vim. Parts of Vim may also be distributed, but the license
@ -103,8 +107,8 @@ your appreciation for the work and motivate Bram and others to continue
working on Vim please send a donation. working on Vim please send a donation.
Since Bram is back to a paid job the money will now be used to help children Since Bram is back to a paid job the money will now be used to help children
in Uganda. See `runtime/doc/uganda.txt`. But at the same time donations in Uganda. See [`runtime/doc/uganda.txt`](runtime/doc/uganda.txt). But
increase Bram's motivation to keep working on Vim! at the same time donations increase Bram's motivation to keep working on Vim!
For the most recent information about sponsoring look on the Vim web site: For the most recent information about sponsoring look on the Vim web site:
http://www.vim.org/sponsor/ http://www.vim.org/sponsor/
@ -112,7 +116,8 @@ For the most recent information about sponsoring look on the Vim web site:
## Contributing ## ## Contributing ##
If you would like to help making Vim better, see the [CONTRIBUTING.md](https://github.com/vim/vim/blob/master/CONTRIBUTING.md) file. If you would like to help making Vim better, see the
[CONTRIBUTING.md](/CONTRIBUTING.md) file.
## Information ## ## Information ##

View File

@ -1,28 +1,12 @@
README_mac.txt for version 8.2 of Vim: Vi IMproved. README_mac.txt for version 8.2 of Vim: Vi IMproved.
This file explains the installation of Vim on Macintosh systems. This file explains the installation of Vim on MacOS systems.
See "README.txt" for general information about Vim. See "README.txt" for general information about Vim.
To build from source get the files with git from https://github.com/vim/vim.
The find the instructions in src/INSTALLmac.txt.
To build from sources, like on Unix Installing Vim using Homebrew:
1. Get the build tools: "clang" and "make". These can be installed with the
"CommandLineTools" package. If you don't have one, do
xcode-select --install
Just like for any software development with OS X.
2. Get the source code. Best is to use git (which you need to install first),
see http://www.vim.org/git.php
Or you can download and unpack the Unix tar archive, see
http://www.vim.org/download.php
3. Go to the top directory of the source tree, do
make
sudo make install
A newly built vim will be installed under "/usr/local".
If you can't manage to make this work, there is a fallback using Homebrew:
1. Install Homebrew from http://brew.sh/ 1. Install Homebrew from http://brew.sh/
2. Install latest Vim with: brew install vim 2. Install the latest Vim with:
brew install vim

26
runtime/compiler/cm3.vim Normal file
View File

@ -0,0 +1,26 @@
" Vim compiler file
" Compiler: Critical Mass Modula-3 Compiler
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 Apr 08
if exists("current_compiler")
finish
endif
let current_compiler = "cm3"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo&vim
" TODO: better handling of Quake errors
CompilerSet makeprg=cm3
CompilerSet errorformat=%D---\ building\ in\ %f\ ---,
\%W\"%f\"\\,\ line\ %l:\ warning:\ %m,
\%E\"%f\"\\,\ line\ %l:\ %m,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save

View File

@ -1,4 +1,4 @@
*options.txt* For Vim version 8.2. Last change: 2021 Apr 07 *options.txt* For Vim version 8.2. Last change: 2021 Apr 16
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar

View File

@ -3936,6 +3936,7 @@ E1050 vim9.txt /*E1050*
E107 eval.txt /*E107* E107 eval.txt /*E107*
E108 eval.txt /*E108* E108 eval.txt /*E108*
E109 eval.txt /*E109* E109 eval.txt /*E109*
E1091 vim9.txt /*E1091*
E1092 vim9.txt /*E1092* E1092 vim9.txt /*E1092*
E1094 vim9.txt /*E1094* E1094 vim9.txt /*E1094*
E11 cmdline.txt /*E11* E11 cmdline.txt /*E11*
@ -10144,8 +10145,10 @@ vim9-differences vim9.txt /*vim9-differences*
vim9-export vim9.txt /*vim9-export* vim9-export vim9.txt /*vim9-export*
vim9-final vim9.txt /*vim9-final* vim9-final vim9.txt /*vim9-final*
vim9-gotchas vim9.txt /*vim9-gotchas* vim9-gotchas vim9.txt /*vim9-gotchas*
vim9-ignored-argument vim9.txt /*vim9-ignored-argument*
vim9-import vim9.txt /*vim9-import* vim9-import vim9.txt /*vim9-import*
vim9-lambda vim9.txt /*vim9-lambda* vim9-lambda vim9.txt /*vim9-lambda*
vim9-lambda-arguments vim9.txt /*vim9-lambda-arguments*
vim9-mix vim9.txt /*vim9-mix* vim9-mix vim9.txt /*vim9-mix*
vim9-namespace vim9.txt /*vim9-namespace* vim9-namespace vim9.txt /*vim9-namespace*
vim9-rationale vim9.txt /*vim9-rationale* vim9-rationale vim9.txt /*vim9-rationale*
@ -10153,7 +10156,9 @@ vim9-reload vim9.txt /*vim9-reload*
vim9-scopes vim9.txt /*vim9-scopes* vim9-scopes vim9.txt /*vim9-scopes*
vim9-script-intro usr_46.txt /*vim9-script-intro* vim9-script-intro usr_46.txt /*vim9-script-intro*
vim9-types vim9.txt /*vim9-types* vim9-types vim9.txt /*vim9-types*
vim9-unpack-ignore vim9.txt /*vim9-unpack-ignore*
vim9-user-command vim9.txt /*vim9-user-command* vim9-user-command vim9.txt /*vim9-user-command*
vim9-variable-arguments vim9.txt /*vim9-variable-arguments*
vim9.txt vim9.txt /*vim9.txt* vim9.txt vim9.txt /*vim9.txt*
vim9script vim9.txt /*vim9script* vim9script vim9.txt /*vim9script*
vim: options.txt /*vim:* vim: options.txt /*vim:*

View File

@ -1,4 +1,4 @@
*todo.txt* For Vim version 8.2. Last change: 2021 Apr 05 *todo.txt* For Vim version 8.2. Last change: 2021 Apr 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -38,16 +38,19 @@ browser use: https://github.com/vim/vim/issues/1234
*known-bugs* *known-bugs*
-------------------- Known bugs and current work ----------------------- -------------------- Known bugs and current work -----------------------
make "skiprtp" also omit 'packpath'?
- Implement blob index and slice assignment?
Make all of test_blob run in three ways
Vim9 - Make everything work: Vim9 - Make everything work:
- use CheckLegacyAndVim9Success(lines) in many more places
- For builtin functions using tv_get_string*() use check_for_string() to be - For builtin functions using tv_get_string*() use check_for_string() to be
more strict about the argument type (not a bool). more strict about the argument type (not a bool).
done: balloon_() done: balloon_()
- Check many more builtin function arguments at compile time. - Check many more builtin function arguments at compile time.
- Using ".." at script level doesn't convert arguments to a string. map() could check that the return type of the function argument matches
- This fails in a :def function but not at the script level: the type of the list or dict member. (#8092)
var s = 'asdf'->((a) => a)('x')
Disallow passing more arguments to lambda than expected?
- Implement blob index and slice, also with assignment?
- Compile replacement of :s command: s/pat/\=expr/ - Compile replacement of :s command: s/pat/\=expr/
- Compile redir to local variable: var_redir_start(). - Compile redir to local variable: var_redir_start().
- Implement type cast at the script level. - Implement type cast at the script level.
@ -61,6 +64,7 @@ Vim9 - Make everything work:
- expandcmd() with `=expr` in filename uses legacy expression. - expandcmd() with `=expr` in filename uses legacy expression.
- eval_expr() in ex_cexpr() - eval_expr() in ex_cexpr()
- eval_expr() call in dbg_parsearg() and debuggy_find() - eval_expr() call in dbg_parsearg() and debuggy_find()
- compile_member() guesses the type, should figure out at runtime.
- compile "skip" argument of searchpair() - compile "skip" argument of searchpair()
- compile "expr" and "call" expression of a channel in channel_exe_cmd()? - compile "expr" and "call" expression of a channel in channel_exe_cmd()?
- give an error for "echo Func()" if Func() does not return anything. - give an error for "echo Func()" if Func() does not return anything.
@ -126,6 +130,8 @@ Popup windows:
- Add a termcap entry for changing the cursor when it goes under the popup and - Add a termcap entry for changing the cursor when it goes under the popup and
back. like t_SI and t_EI (t_SU and t_EU, where "U" means under?) back. like t_SI and t_EI (t_SU and t_EU, where "U" means under?)
- With terminal in popup, allow for popup_hide() to temporarily hide it.? - With terminal in popup, allow for popup_hide() to temporarily hide it.?
- Make it possible to scroll horizontally when 'wrap' is off. Does this
require an ascii scrollbar, like with the vertical one?
- Fire some autocommand event after a new popup window was created and - Fire some autocommand event after a new popup window was created and
positioned? PopupNew? Could be used to set some options or move it out of positioned? PopupNew? Could be used to set some options or move it out of
the way. (#5737) the way. (#5737)
@ -495,6 +501,9 @@ Assuming the files are text, print the line with the difference.
Result of synID() sometimes wrong in help files. (#5252) Result of synID() sometimes wrong in help files. (#5252)
When a help file is opened that doesn't have "ft=help" in the modeline then
the FileType is first set to "text" before it is set to "help". (#8099)
Problem showing a line if the number column width changes when using "o". Problem showing a line if the number column width changes when using "o".
(Mateusz Morusiewicz, #4245) (Mateusz Morusiewicz, #4245)
@ -1013,8 +1022,7 @@ for a path separator. (xtal8, #2201)
Would be nice for Insert mode completion to highlight the text that was added Would be nice for Insert mode completion to highlight the text that was added
(and may change when picking another completion). (and may change when picking another completion).
Test runtime files. Test more runtime files.
Start with filetype detection: testdir/test_filetype.vim
Window not closed when deleting buffer. (Harm te Hennepe, 2017 Aug 27, #2029) Window not closed when deleting buffer. (Harm te Hennepe, 2017 Aug 27, #2029)
@ -1987,6 +1995,10 @@ Patch for :tabrecently. (Hirokazu Yoshida, 2012 Jan 30)
Problem with "syn sync grouphere". (Gustavo Niemeyer, 2011 Jan 27) Problem with "syn sync grouphere". (Gustavo Niemeyer, 2011 Jan 27)
Using "syn sync breaklines=2" works for when text is changed, but not when
scrolling or redrawing. Should start search for syntax patterns above the
first drawn line. (#8103)
Loading autoload script even when usage is inside "if 0". (Christian Brabandt, Loading autoload script even when usage is inside "if 0". (Christian Brabandt,
2010 Dec 18) 2010 Dec 18)

View File

@ -416,6 +416,10 @@ Denotes the end of the options.
Arguments after this will be handled as a file name. Arguments after this will be handled as a file name.
This can be used to edit a filename that starts with a '\-'. This can be used to edit a filename that starts with a '\-'.
.TP .TP
\-\-clean
Do not use any personal configuration (vimrc, plugins, etc.). Useful to see if
a problem reproduces with a clean Vim setup.
.TP
\-\-echo\-wid \-\-echo\-wid
GTK GUI only: Echo the Window ID on stdout. GTK GUI only: Echo the Window ID on stdout.
.TP .TP

View File

@ -300,6 +300,10 @@ OPTIONS
be handled as a file name. This can be used to edit a be handled as a file name. This can be used to edit a
filename that starts with a '-'. filename that starts with a '-'.
--clean Do not use any personal configuration (vimrc, plugins,
etc.). Useful to see if a problem reproduces with a clean
Vim setup.
--echo-wid GTK GUI only: Echo the Window ID on stdout. --echo-wid GTK GUI only: Echo the Window ID on stdout.
--help Give a help message and exit, just like "-h". --help Give a help message and exit, just like "-h".

View File

@ -1,4 +1,4 @@
*vim9.txt* For Vim version 8.2. Last change: 2021 Apr 06 *vim9.txt* For Vim version 8.2. Last change: 2021 Apr 11
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -334,10 +334,11 @@ The "g:" prefix is not needed for auto-load functions.
Since `&opt = value` is now assigning a value to option "opt", ":&" cannot be Since `&opt = value` is now assigning a value to option "opt", ":&" cannot be
used to repeat a `:substitute` command. used to repeat a `:substitute` command.
*vim9-unpack-ignore*
For an unpack assignment the underscore can be used to ignore a list item, For an unpack assignment the underscore can be used to ignore a list item,
similar to how a function argument can be ignored: > similar to how a function argument can be ignored: >
[a, _, c] = theList [a, _, c] = theList
To ignore any remaining items: >
[a, b; _] = longList [a, b; _] = longList
< *E1092* < *E1092*

View File

@ -1,4 +1,4 @@
*windows.txt* For Vim version 8.2. Last change: 2021 Mar 21 *windows.txt* For Vim version 8.2. Last change: 2021 Apr 10
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -521,14 +521,14 @@ CTRL-W J Move the current window to be at the very bottom, using the
CTRL-W H Move the current window to be at the far left, using the CTRL-W H Move the current window to be at the far left, using the
full height of the screen. This works like closing the full height of the screen. This works like closing the
current window and then creating another one with current window and then creating another one with
":vert topleft split", except that the current window contents `:vert topleft split`, except that the current window contents
is used for the new window. is used for the new window.
*CTRL-W_L* *CTRL-W_L*
CTRL-W L Move the current window to be at the far right, using the full CTRL-W L Move the current window to be at the far right, using the full
height of the screen. This works like closing the height of the screen. This works like closing the
current window and then creating another one with current window and then creating another one with
":vert botright split", except that the current window `:vert botright split`, except that the current window
contents is used for the new window. contents is used for the new window.
*CTRL-W_T* *CTRL-W_T*
@ -571,7 +571,7 @@ CTRL-W < Decrease current window width by N (default 1).
*CTRL-W_>* *CTRL-W_>*
CTRL-W > Increase current window width by N (default 1). CTRL-W > Increase current window width by N (default 1).
:vertical res[ize] [N] *:vertical-resize* *CTRL-W_bar* :vert[ical] res[ize] [N] *:vertical-resize* *CTRL-W_bar*
CTRL-W | Set current window width to N (default: widest possible). CTRL-W | Set current window width to N (default: widest possible).
You can also resize a window by dragging a status line up or down with the You can also resize a window by dragging a status line up or down with the

View File

@ -1,7 +1,7 @@
" Vim support file to detect file types " Vim support file to detect file types
" "
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2021 Apr 05 " Last Change: 2021 Apr 17
" Listen very carefully, I will say this only once " Listen very carefully, I will say this only once
if exists("did_load_filetypes") if exists("did_load_filetypes")

View File

@ -1,6 +1,6 @@
" Language: gprof " Language: gprof
" Maintainer: Dominique Pelle <dominique.pelle@gmail.com> " Maintainer: Dominique Pelle <dominique.pelle@gmail.com>
" Last Change: 2013 Jun 09 " Last Change: 2021 Apr 08
" When cursor is on one line of the gprof call graph, " When cursor is on one line of the gprof call graph,
" calling this function jumps to this function in the call graph. " calling this function jumps to this function in the call graph.
@ -16,7 +16,7 @@ fun! <SID>GprofJumpToFunctionIndex()
norm! $y% norm! $y%
call search('^' . escape(@", '[]'), 'sw') call search('^' . escape(@", '[]'), 'sw')
norm! zz norm! zz
elseif l:line =~ '^\(\s\+[0-9\.]\+\)\{3}\s\+' elseif l:line =~ '^\(\s*[0-9\.]\+\)\{3}\s\+'
" We're in line in the flat profile. " We're in line in the flat profile.
norm! 55|eby$ norm! 55|eby$
call search('^\[\d\+\].*\d\s\+' . escape(@", '[]*.') . '\>', 'sW') call search('^\[\d\+\].*\d\s\+' . escape(@", '[]*.') . '\>', 'sW')

View File

@ -0,0 +1,24 @@
" Vim filetype plugin file
" Language: Modula-3 Makefile
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 April 15
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
runtime! ftplugin/m3quake.vim
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "Modula-3 Makefile (m3makefile m3overrides)\tm3makefile;m3overrides\n" ..
\ "All Files (*.*)\t*.*\n"
endif
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8 noet:

View File

@ -0,0 +1,33 @@
" Vim filetype plugin file
" Language: Modula-3 Quake
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 April 15
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
setlocal comments=s1:/*,mb:*,ex:*/,:%
setlocal commentstring=%\ %s
setlocal formatoptions-=t formatoptions+=croql
if exists("loaded_matchit") && !exists("b:match_words")
let b:match_words = '\<\%(proc\|if\|foreach\)\>:\<else\>:\<end\>'
endif
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "Modula-3 Quake Source Files (*.quake)\t*.quake\n" ..
\ "All Files (*.*)\t*.*\n"
endif
let b:undo_ftplugin = "setl fo< com< cms< " ..
\ "| unlet! b:browsefilter b:match_words"
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8 noet:

View File

@ -0,0 +1,39 @@
" Vim filetype plugin file
" Language: Modula-2
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 Apr 08
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
setlocal comments=s0:(*,mb:\ ,ex:*)
setlocal commentstring=(*%s*)
setlocal formatoptions-=t formatoptions+=croql
if exists("loaded_matchit") && !exists("b:match_words")
" The second branch of the middle pattern is intended to match CASE labels
let b:match_words = '\<REPEAT\>:\<UNTIL\>,' ..
\ '\<\%(BEGIN\|CASE\|FOR\|IF\|LOOP\|WHILE\|WITH\)\>' ..
\ ':' ..
\ '\<\%(ELSIF\|ELSE\)\>\|\%(^\s*\)\@<=\w\+\%(\s*\,\s*\w\+\)\=\s*\:=\@!' ..
\ ':' ..
\ '\<END\>'
endif
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "Modula-2 Source Files (*.def *.mod)\t*.def;*.mod\n" ..
\ "All Files (*.*)\t*.*\n"
endif
let b:undo_ftplugin = "setl com< cms< fo< " ..
\ "| unlet! b:browsefilter b:match_words"
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8 noet:

View File

@ -0,0 +1,38 @@
" Vim filetype plugin file
" Language: Modula-3
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 Apr 08
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
setlocal comments=s0:(*,mb:\ ,ex:*)
setlocal commentstring=(*%s*)
setlocal formatoptions-=t formatoptions+=croql
if exists("loaded_matchit") && !exists("b:match_words")
let b:match_words = '\<REPEAT\>:\<UNTIL\>,' ..
\ '\<\%(BEGIN\|CASE\|FOR\|IF\|LOCK\|LOOP\|TRY\|TYPECASE\|WHILE\|WITH\)\>' ..
\ ':' ..
\ '\<\%(ELSIF\|ELSE\|EXCEPT\|FINALLY\)\>\|\%(^\s*\)\@<=\S.*=>' ..
\ ':' ..
\ '\<END\>'
endif
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "Modula-3 Source Files (*.m3)\t*.m3\n" ..
\ "All Files (*.*)\t*.*\n"
endif
let b:undo_ftplugin = "setl com< cms< fo< " ..
\ "| unlet! b:browsefilter b:match_words"
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8 noet:

View File

@ -1,7 +1,7 @@
" Vim filetype plugin " Vim filetype plugin
" Language: Vim " Language: Vim
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2021 Feb 20 " Last Change: 2021 Apr 11
" Only do this when not done yet for this buffer " Only do this when not done yet for this buffer
if exists("b:did_ftplugin") if exists("b:did_ftplugin")
@ -94,11 +94,11 @@ if exists("loaded_matchit")
" func name " func name
" require a parenthesis following, then there can be an "endfunc". " require a parenthesis following, then there can be an "endfunc".
let b:match_words = let b:match_words =
\ '\<\%(fu\%[nction]\|def\)!\=\s\+\S\+(:\<retu\%[rn]\>:\<\%(endf\%[unction]\|enddef\)\>,' . \ '\<\%(fu\%[nction]\|def\)!\=\s\+\S\+(:\%(\%(^\||\)\s*\)\@<=\<retu\%[rn]\>:\%(\%(^\||\)\s*\)\@<=\<\%(endf\%[unction]\|enddef\)\>,' .
\ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' . \ '\<\(wh\%[ile]\|for\)\>:\%(\%(^\||\)\s*\)\@<=\<brea\%[k]\>:\%(\%(^\||\)\s*\)\@<=\<con\%[tinue]\>:\%(\%(^\||\)\s*\)\@<=\<end\(w\%[hile]\|fo\%[r]\)\>,' .
\ '\<if\>:\<el\%[seif]\>:\<en\%[dif]\>,' . \ '\<if\>:\%(\%(^\||\)\s*\)\@<=\<el\%[seif]\>:\%(\%(^\||\)\s*\)\@<=\<en\%[dif]\>,' .
\ '{:},' . \ '{:},' .
\ '\<try\>:\<cat\%[ch]\>:\<fina\%[lly]\>:\<endt\%[ry]\>,' . \ '\<try\>:\%(\%(^\||\)\s*\)\@<=\<cat\%[ch]\>:\%(\%(^\||\)\s*\)\@<=\<fina\%[lly]\>:\%(\%(^\||\)\s*\)\@<=\<endt\%[ry]\>,' .
\ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,' \ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,'
" Ignore syntax region commands and settings, any 'en*' would clobber " Ignore syntax region commands and settings, any 'en*' would clobber
" if-endif. " if-endif.

View File

@ -1,8 +1,9 @@
" Menu Translations: Francais " Menu Translations: Francais
" Maintainer: Adrien Beau <version.francaise@free.fr> " Maintainer: Adrien Beau <version.francaise@free.fr>
" First Version: Francois Thunus <thunus@systran.fr> " First Version: Francois Thunus <thunus@systran.fr>
" Last Modification: David Blanchet <david.blanchet@free.fr> " Contributors: David Blanchet <david.blanchet@free.fr>
" Last Change: 2018 Apr 25 " Gabriel Dupras <gabrieldupras@gmail.com>
" Last Change: 2021 Feb 16
" Quit when menu translations have already been done. " Quit when menu translations have already been done.
if exists("did_menu_trans") if exists("did_menu_trans")
@ -78,11 +79,12 @@ menutrans Find\ and\ Rep&lace<Tab>:%s Re&mplacer<Tab>:%s
menutrans Find\ and\ Rep&lace<Tab>:s Re&mplacer<Tab>:s menutrans Find\ and\ Rep&lace<Tab>:s Re&mplacer<Tab>:s
" -SEP3- " -SEP3-
menutrans Settings\ &Window Fe&n<EFBFBD>tre\ des\ r<EFBFBD>glages menutrans Settings\ &Window Fe&n<EFBFBD>tre\ des\ r<EFBFBD>glages
menutrans Startup\ &Settings R<EFBFBD>glages\ de\ &lancement
menutrans &Global\ Settings R<EFBFBD>glages\ globau&x menutrans &Global\ Settings R<EFBFBD>glages\ globau&x
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &Surligner\ recherche\ on/off<Tab>:set\ hls! menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &Surligner\ recherche\ on/off<Tab>:set\ hls!
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! &Ignorer\ casse\ on/off<Tab>:set\ ic! menutrans Toggle\ &Ignoring\ case<Tab>:set\ ic! &Ignorer\ casse\ on/off<Tab>:set\ ic!
menutrans Toggle\ &Showmatch<Tab>:set\ sm! V<EFBFBD>rifier\ parenth&<26>ses\ on/off<Tab>:set\ sm! menutrans Toggle\ &Showing\ Matched\ Pairs<Tab>:set\ sm! V<EFBFBD>rifier\ parenth&<26>ses\ on/off<Tab>:set\ sm!
menutrans &Context\ lines Lignes\ &autour\ du\ curseur menutrans &Context\ lines Lignes\ &autour\ du\ curseur
@ -94,7 +96,7 @@ menutrans Block\ and\ Insert &Bloc\ et\ insertion
menutrans Always &Toujours menutrans Always &Toujours
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! I&nsertion\ permanente\ on/off<Tab>:set\ im! menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! I&nsertion\ permanente\ on/off<Tab>:set\ im!
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! &Compatibilit<EFBFBD>\ Vi\ on/off<Tab>:set\ cp! menutrans Toggle\ Vi\ C&ompatibility<Tab>:set\ cp! &Compatibilit<EFBFBD>\ Vi\ on/off<Tab>:set\ cp!
menutrans Search\ &Path\.\.\. Chemin\ de\ rec&herche\ des\ fichiers\.\.\. menutrans Search\ &Path\.\.\. Chemin\ de\ rec&herche\ des\ fichiers\.\.\.
menutrans Ta&g\ Files\.\.\. Fichiers\ d'&<26>tiquettes\.\.\. menutrans Ta&g\ Files\.\.\. Fichiers\ d'&<26>tiquettes\.\.\.
" -SEP1- " -SEP1-
@ -109,12 +111,13 @@ let g:menutrans_tags_dialog = "Entrez les noms des fichiers d'
menutrans F&ile\ Settings R<EFBFBD>glages\ fichie&r menutrans F&ile\ Settings R<EFBFBD>glages\ fichie&r
menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! &Num<EFBFBD>rotation\ on/off<Tab>:set\ nu! menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! &Num<EFBFBD>rotation\ on/off<Tab>:set\ nu!
menutrans Toggle\ Relati&ve\ Line\ Numbering<Tab>:set\ rnu! &Num<EFBFBD>rotation\ relative\ on/off<Tab>:set\ nu!
menutrans Toggle\ &List\ Mode<Tab>:set\ list! Mode\ &listing\ on/off<Tab>:set\ list! menutrans Toggle\ &List\ Mode<Tab>:set\ list! Mode\ &listing\ on/off<Tab>:set\ list!
menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! &Retour\ <20>\ la\ ligne\ on/off<Tab>:set\ wrap! menutrans Toggle\ Line\ &Wrapping<Tab>:set\ wrap! &Retour\ <20>\ la\ ligne\ on/off<Tab>:set\ wrap!
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! Retour\ sur\ &mot\ on/off<Tab>:set\ lbr! menutrans Toggle\ W&rapping\ at\ Word<Tab>:set\ lbr! Retour\ sur\ &mot\ on/off<Tab>:set\ lbr!
menutrans Toggle\ &expand-tab<Tab>:set\ et! &Tab\.\ en\ espaces\ on/off<Tab>:set\ et! menutrans Toggle\ Tab\ &Expanding<Tab>:set\ et! &Tab\.\ en\ espaces\ on/off<Tab>:set\ et!
menutrans Toggle\ &auto-indent<Tab>:set\ ai! Indentation\ &auto\.\ on/off<Tab>:set\ ai! menutrans Toggle\ &Auto\ Indenting<Tab>:set\ ai! Indentation\ &auto\.\ on/off<Tab>:set\ ai!
menutrans Toggle\ &C-indenting<Tab>:set\ cin! Indent\.\ langage\ &C\ on/off<Tab>:set\ cin! menutrans Toggle\ &C-Style\ Indenting<Tab>:set\ cin! Indent\.\ langage\ &C\ on/off<Tab>:set\ cin!
" -SEP2- " -SEP2-
menutrans &Shiftwidth Largeur\ des\ in&dentations menutrans &Shiftwidth Largeur\ des\ in&dentations
menutrans Soft\ &Tabstop &Pseudo-tabulations menutrans Soft\ &Tabstop &Pseudo-tabulations
@ -126,7 +129,9 @@ let g:menutrans_fileformat_dialog = "Choisissez le format dans lequel
let g:menutrans_fileformat_choices = " &Unix \n &Dos \n &Mac \n &Annuler " let g:menutrans_fileformat_choices = " &Unix \n &Dos \n &Mac \n &Annuler "
menutrans C&olor\ Scheme &Jeu\ de\ couleurs menutrans C&olor\ Scheme &Jeu\ de\ couleurs
menutrans Show\ C&olor\ Schemes\ in\ Menu Afficher\ les\ &jeux\ de\ couleurs
menutrans &Keymap &Type\ de\ clavier menutrans &Keymap &Type\ de\ clavier
menutrans Show\ &Keymaps\ in\ Menu Afficher\ les\ &types\ de\ clavier
menutrans None (aucun) menutrans None (aucun)
menutrans Select\ Fo&nt\.\.\. S<EFBFBD>lectionner\ &police\.\.\. menutrans Select\ Fo&nt\.\.\. S<EFBFBD>lectionner\ &police\.\.\.
@ -146,16 +151,17 @@ menutrans To\ &Previous\ error<Tab>[s
menutrans Suggest\ &Corrections<Tab>z= Sugg<EFBFBD>rer\ &correction<Tab>z= menutrans Suggest\ &Corrections<Tab>z= Sugg<EFBFBD>rer\ &correction<Tab>z=
menutrans &Repeat\ correction<Tab>:spellrepall &Reporter\ la\ correction<Tab>:spellrepall menutrans &Repeat\ correction<Tab>:spellrepall &Reporter\ la\ correction<Tab>:spellrepall
an 40.335.205 &Tools.&Spelling.Fran<EFBFBD>ais\ (fr) :set spl=fr spell<CR> an 40.335.205 &Tools.&Spelling.Dictionnaire\ &fran<EFBFBD>ais\ (fr) :set spl=fr spell<CR>
menutrans Set\ language\ to\ "en" Anglais menutrans Set\ language\ to\ "en" Dictionnaire\ &anglais\ (en)
menutrans Set\ language\ to\ "en_au" Anglais\ (en_au) menutrans Set\ language\ to\ "en_au" Dictionnaire\ anglais\ (en_au)
menutrans Set\ language\ to\ "en_ca" Anglais\ (en_ca) menutrans Set\ language\ to\ "en_ca" Dictionnaire\ anglais\ (en_ca)
menutrans Set\ language\ to\ "en_gb" Anglais\ (en_gb) menutrans Set\ language\ to\ "en_gb" Dictionnaire\ anglais\ (en_gb)
menutrans Set\ language\ to\ "en_nz" Anglais\ (en_nz) menutrans Set\ language\ to\ "en_nz" Dictionnaire\ anglais\ (en_nz)
menutrans Set\ language\ to\ "en_us" Anglais\ (en_us) menutrans Set\ language\ to\ "en_us" Dictionnaire\ anglais\ (en_us)
menutrans &Find\ More\ Languages &Trouver\ d'autres\ langues menutrans &Find\ More\ Languages &Trouver\ d'autres\ langues
let g:menutrans_set_lang_to = "Dictionnaire "
menutrans &Folding &Replis menutrans &Folding &Replis
@ -211,6 +217,7 @@ menutrans &Convert\ to\ HEX<Tab>:%!xxd Convertir\ en\ he&xa<Tab>:%!xxd
menutrans Conve&rt\ back<Tab>:%!xxd\ -r D<EFBFBD>con&vertir<Tab>:%!xxd\ -r menutrans Conve&rt\ back<Tab>:%!xxd\ -r D<EFBFBD>con&vertir<Tab>:%!xxd\ -r
menutrans Se&T\ Compiler &Type\ de\ compilateur menutrans Se&T\ Compiler &Type\ de\ compilateur
menutrans Show\ Compiler\ Se&ttings\ in\ Menu &Afficher\ les\ compilateurs
menutrans &Buffers &Tampons menutrans &Buffers &Tampons
@ -268,10 +275,15 @@ menutrans &Delete &Effacer
" -SEP2- " -SEP2-
menutrans Select\ Blockwise S<EFBFBD>lectionner\ &bloc menutrans Select\ Blockwise S<EFBFBD>lectionner\ &bloc
menutrans Select\ &Word S<EFBFBD>lectionner\ &mot menutrans Select\ &Word S<EFBFBD>lectionner\ &mot
menutrans Select\ &Sentence S<EFBFBD>lectionner\ &phrase
menutrans Select\ Pa&ragraph S<EFBFBD>lectionner\ pa&ragraphe
menutrans Select\ &Line S<EFBFBD>lectionner\ &ligne menutrans Select\ &Line S<EFBFBD>lectionner\ &ligne
menutrans Select\ &Block S<EFBFBD>lectionner\ &bloc menutrans Select\ &Block S<EFBFBD>lectionner\ &bloc
menutrans Select\ &All S<EFBFBD>lectionner\ &tout menutrans Select\ &All S<EFBFBD>lectionner\ &tout
let g:menutrans_spell_change_ARG_to = 'Remplacer\ "%s"\ par'
let g:menutrans_spell_add_ARG_to_word_list = 'Ajouter\ "%s"\ au\ dictionnaire'
let g:menutrans_spell_ignore_ARG = 'Ignorer\ "%s"'
" ToolBar " ToolBar
@ -459,7 +471,7 @@ menutrans XXD\ hex\ dump Sortie\ hexa\.\ de\ xxd
menutrans XFree86\ Config Config\.\ XFree86 menutrans XFree86\ Config Config\.\ XFree86
" The End Of The Syntax Menu " The End Of The Syntax Menu
menutrans &Show\ filetypes\ in\ menu &Afficher\ tout\ le\ menu menutrans &Show\ file\ types\ in\ menu &Afficher\ tout\ le\ menu
" -SEP1- " -SEP1-
menutrans Set\ '&syntax'\ only Changer\ '&syntax'\ seulement menutrans Set\ '&syntax'\ only Changer\ '&syntax'\ seulement
menutrans Set\ '&filetype'\ too Changer\ '&filetype'\ aussi menutrans Set\ '&filetype'\ too Changer\ '&filetype'\ aussi

View File

@ -1,6 +1,6 @@
" Vim plugin for showing matching parens " Vim plugin for showing matching parens
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2021 Apr 07 " Last Change: 2021 Apr 08
" Exit quickly when: " Exit quickly when:
" - this plugin was already loaded (or disabled) " - this plugin was already loaded (or disabled)
@ -110,7 +110,7 @@ func s:Highlight_Matching_Pair()
" We match "escape" for special items, such as lispEscapeSpecial, and " We match "escape" for special items, such as lispEscapeSpecial, and
" match "symbol" for lispBarSymbol. " match "symbol" for lispBarSymbol.
let s_skip = '!empty(filter(map(synstack(line("."), col(".")), ''synIDattr(v:val, "name")''), ' . let s_skip = '!empty(filter(map(synstack(line("."), col(".")), ''synIDattr(v:val, "name")''), ' .
\ '''v:val =~? "string\\|character\\|singlequote\\|escape\\symbol\\|comment"''))' \ '''v:val =~? "string\\|character\\|singlequote\\|escape\\|symbol\\|comment"''))'
" If executing the expression determines that the cursor is currently in " If executing the expression determines that the cursor is currently in
" one of the syntax types, then we want searchpairpos() to find the pair " one of the syntax types, then we want searchpairpos() to find the pair
" within those syntax types (i.e., not skip). Otherwise, the cursor is " within those syntax types (i.e., not skip). Otherwise, the cursor is

View File

@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" Language: Syntax for Gprof Output " Language: Syntax for Gprof Output
" Maintainer: Dominique Pelle <dominique.pelle@gmail.com> " Maintainer: Dominique Pelle <dominique.pelle@gmail.com>
" Last Change: 2013 Jun 09 " Last Change: 2021 Apr 08
" Quit when a syntax file was already loaded " Quit when a syntax file was already loaded
if exists("b:current_syntax") if exists("b:current_syntax")
@ -28,7 +28,7 @@ syn match gprofCallGraphTitle "Call graph (explanation follows)"
syn region gprofCallGraphHeader syn region gprofCallGraphHeader
\ start="^granularity: each sample hit covers.*" \ start="^granularity: each sample hit covers.*"
\ end="^\s*index % time\s\+self\s\+children\s\+called\s\+name$" \ end="^\s*index % time\s\+self\s\+children\s\+called\s\+name$"
syn match gprofCallGraphFunction "\s\+\(\d\+\.\d\+\s\+\)\{3}\([0-9+]\+\)\?\s\+[a-zA-Z_<].*\ze\[" syn match gprofCallGraphFunction "\<\(\d\+\.\d\+\s\+\)\{3}\([0-9+]\+\)\?\s\+[a-zA-Z_<].*\ze\["
syn match gprofCallGraphSeparator "^-\+$" syn match gprofCallGraphSeparator "^-\+$"
syn region gprofCallGraphTrailer syn region gprofCallGraphTrailer
\ start="This table describes the call tree of the program" \ start="This table describes the call tree of the program"
@ -41,7 +41,7 @@ syn region gprofIndex
syn match gprofIndexFunctionTitle "^Index by function name$" syn match gprofIndexFunctionTitle "^Index by function name$"
syn match gprofNumbers "^\s\+[0-9 ./+]\+" syn match gprofNumbers "^\s*[0-9 ./+]\+"
syn match gprofFunctionIndex "\[\d\+\]" syn match gprofFunctionIndex "\[\d\+\]"
syn match gprofSpecial "<\(spontaneous\|cycle \d\+\)>" syn match gprofSpecial "<\(spontaneous\|cycle \d\+\)>"

File diff suppressed because one or more lines are too long

177
runtime/syntax/m3build.vim Normal file
View File

@ -0,0 +1,177 @@
" Vim syntax file
" Language: Modula-3 Makefile
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 April 15
if exists("b:current_syntax")
finish
endif
runtime! syntax/m3quake.vim
" Identifiers
syn match m3buildPredefinedVariable "\<\%(TARGET\|OS_TYPE\|BUILD_DIR\|PKG_USE\|WDROOT\)\>"
" Build Procedures {{{1
" Generated from cm3/m3-sys/cm3/src/M3Build.m3
syn keyword m3buildProcedure HasCBackend
" (* packages & locations *)
syn keyword m3buildProcedure Pkg
syn keyword m3buildProcedure override
syn keyword m3buildProcedure path_of
syn keyword m3buildProcedure pkg_subdir
" (* names *)
syn keyword m3buildProcedure program_name
syn keyword m3buildProcedure library_name
" (* calls in the generated .M3EXPORT files *)
syn keyword m3buildProcedure _define_lib
syn keyword m3buildProcedure _define_pgm
syn keyword m3buildProcedure _import_template
syn keyword m3buildProcedure _import_m3lib
syn keyword m3buildProcedure _import_otherlib
syn keyword m3buildProcedure _map_add_interface
syn keyword m3buildProcedure _map_add_generic_interface
syn keyword m3buildProcedure _map_add_module
syn keyword m3buildProcedure _map_add_generic_module
syn keyword m3buildProcedure _map_add_c
syn keyword m3buildProcedure _map_add_h
syn keyword m3buildProcedure _map_add_s
" (* compiler options *)
syn keyword m3buildProcedure m3_debug
syn keyword m3buildProcedure m3_optimize
syn keyword m3buildProcedure build_shared
syn keyword m3buildProcedure build_standalone
" (* derived files *)
syn keyword m3buildProcedure m3_compile_only
syn keyword m3buildProcedure m3_finish_up
" (* predefined system libraries *)
syn keyword m3buildProcedure import_sys_lib
" (* options *)
syn keyword m3buildProcedure m3_option
syn keyword m3buildProcedure remove_m3_option
" (* deleting *)
syn keyword m3buildProcedure deriveds
" (* imports *)
syn keyword m3buildProcedure include_dir
syn keyword m3buildProcedure include_pkg
syn keyword m3buildProcedure import
syn keyword m3buildProcedure import_version
syn keyword m3buildProcedure import_obj
syn keyword m3buildProcedure import_lib
" (* objects *)
syn keyword m3buildProcedure pgm_object
" (* sources *)
syn keyword m3buildProcedure source
syn keyword m3buildProcedure pgm_source
syn keyword m3buildProcedure interface
syn keyword m3buildProcedure Interface
syn keyword m3buildProcedure implementation
syn keyword m3buildProcedure module
syn keyword m3buildProcedure Module
syn keyword m3buildProcedure h_source
syn keyword m3buildProcedure c_source
syn keyword m3buildProcedure s_source
syn keyword m3buildProcedure ship_source
" (* generics *)
syn keyword m3buildProcedure generic_interface
syn keyword m3buildProcedure Generic_interface
syn keyword m3buildProcedure generic_implementation
syn keyword m3buildProcedure Generic_implementation
syn keyword m3buildProcedure generic_module
syn keyword m3buildProcedure Generic_module
syn keyword m3buildProcedure build_generic_intf
syn keyword m3buildProcedure build_generic_impl
" (* derived sources *)
syn keyword m3buildProcedure derived_interface
syn keyword m3buildProcedure derived_implementation
syn keyword m3buildProcedure derived_c
syn keyword m3buildProcedure derived_h
" (* hiding/exporting *)
syn keyword m3buildProcedure hide_interface
syn keyword m3buildProcedure hide_generic_interface
syn keyword m3buildProcedure hide_generic_implementation
syn keyword m3buildProcedure export_interface
syn keyword m3buildProcedure export_generic_interface
syn keyword m3buildProcedure export_generic_implementation
" (* templates *)
syn keyword m3buildProcedure template
" (* library building *)
syn keyword m3buildProcedure library
syn keyword m3buildProcedure Library
" (* program building *)
syn keyword m3buildProcedure program
syn keyword m3buildProcedure Program
syn keyword m3buildProcedure c_program
syn keyword m3buildProcedure C_program
" (* man pages *)
syn keyword m3buildProcedure manPage
syn keyword m3buildProcedure ManPage
" (* emacs *)
syn keyword m3buildProcedure Gnuemacs
syn keyword m3buildProcedure CompiledGnuemacs
" (* "-find" support *)
syn keyword m3buildProcedure find_unit
syn keyword m3buildProcedure enum_units
" (* export functions *)
syn keyword m3buildProcedure install_sources
syn keyword m3buildProcedure install_derived
syn keyword m3buildProcedure install_derived_link
syn keyword m3buildProcedure install_derived_symbolic_link
syn keyword m3buildProcedure install_derived_hard_link
syn keyword m3buildProcedure install_link_to_derived
syn keyword m3buildProcedure install_symbolic_link_to_derived
syn keyword m3buildProcedure install_hard_link_to_derived
syn keyword m3buildProcedure install_symbolic_link
syn keyword m3buildProcedure install_file
" (* installation functions *)
syn keyword m3buildProcedure BindExport
syn keyword m3buildProcedure BinExport
syn keyword m3buildProcedure LibdExport
syn keyword m3buildProcedure LibExport
syn keyword m3buildProcedure EmacsdExport
syn keyword m3buildProcedure EmacsExport
syn keyword m3buildProcedure DocdExport
syn keyword m3buildProcedure DocExport
syn keyword m3buildProcedure MandExport
syn keyword m3buildProcedure ManExport
syn keyword m3buildProcedure HtmlExport
syn keyword m3buildProcedure RootExport
syn keyword m3buildProcedure RootdExport
" (* misc *)
syn keyword m3buildProcedure gen_m3exports
syn keyword m3buildProcedure generate_tfile
syn keyword m3buildProcedure delete_file
syn keyword m3buildProcedure link_file
syn keyword m3buildProcedure symbolic_link_file
syn keyword m3buildProcedure hard_link_file
" }}}
hi def link m3buildPredefinedVariable Identifier
hi def link m3buildProcedure Function
let b:current_syntax = "m3build"
" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker:

View File

@ -0,0 +1,74 @@
" Vim syntax file
" Language: Modula-3 Quake
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 April 15
if exists("b:current_syntax")
finish
endif
" Keywords
syn keyword m3quakeKeyword else end foreach if in is local or proc readonly
syn keyword m3quakeKeyword return
" Builtin procedures {{{
" Generated from m3-sys/m3quake/src/QMachine.m3
syn keyword m3quakeProcedure arglist cp_if defined empty equal error escape
syn keyword m3quakeProcedure exec cm3_exec file format include make_dir
syn keyword m3quakeProcedure normalize path stale try_exec try_cm3_exec
syn keyword m3quakeProcedure unlink_file write datetime date datestamp
syn keyword m3quakeProcedure TRACE_INSTR eval_func hostname
syn keyword m3quakeProcedure pushd popd cd getwd
syn keyword m3quakeProcedure quake
syn keyword m3quakeProcedure q_exec q_exec_put q_exec_get
syn keyword m3quakeProcedure fs_exists fs_readable fs_writable fs_executable
syn keyword m3quakeProcedure fs_isdir fs_isfile fs_contents fs_putfile
syn keyword m3quakeProcedure fs_mkdir fs_touch fs_lsdirs fs_lsfiles fs_rmdir
syn keyword m3quakeProcedure fs_rmfile fs_rmrec fs_cp
syn keyword m3quakeProcedure pn_valid pn_decompose pn_compose pn_absolute
syn keyword m3quakeProcedure pn_prefix pn_last pn_base pn_lastbase pn_lastext
syn keyword m3quakeProcedure pn_join pn_join2 pn_replace_ext pn_parent
syn keyword m3quakeProcedure pn_current
syn keyword m3quakeProcedure len
syn keyword m3quakeProcedure split sub skipl skipr squeeze compress pos
syn keyword m3quakeProcedure tcontains bool encode decode subst_chars
syn keyword m3quakeProcedure del_chars subst subst_env add_prefix add_suffix
" }}}
" Identifiers
syn match m3quakeEnvVariable "$\h\w\+"
" Operators
syn match m3quakeOperator "&"
syn match m3quakeOperator "\<\%(contains\|not\|and\|or\)\>"
" Strings
syn match m3quakeEscape "\\[\\nrtbf"]" contained display
syn region m3quakeString start=+"+ end=+"+ contains=m3quakeEscape
" Comments
syn keyword m3quakeTodo TODO FIXME XXX contained
syn region m3quakeComment start="%" end="$" contains=m3quakeTodo,@Spell
syn region m3quakeComment start="/\*" end="\*/" contains=m3quakeTodo,@Spell
" Default highlighting
hi def link m3quakeCommand Statement
hi def link m3quakeComment Comment
hi def link m3quakeEnvVariable Identifier
hi def link m3quakeEscape Special
hi def link m3quakeKeyword Keyword
hi def link m3quakeOperator Operator
hi def link m3quakeProcedure Function
hi def link m3quakeString String
hi def link m3quakeTodo Todo
let b:current_syntax = "m3quake"
" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker:

View File

@ -1,59 +1,96 @@
" Vim syntax file " Vim syntax file
" Language: Modula-3 " Language: Modula-3
" Maintainer: Timo Pedersen <dat97tpe@ludat.lth.se> " Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2001 May 10 " Previous Maintainer: Timo Pedersen <dat97tpe@ludat.lth.se>
" Last Change: 2021 Apr 08
" Basic things only...
" Based on the modula 2 syntax file
" quit when a syntax file was already loaded
if exists("b:current_syntax") if exists("b:current_syntax")
finish finish
endif endif
" Modula-3 is case-sensitive
" syn case ignore
" Modula-3 keywords " Modula-3 keywords
syn keyword modula3Keyword ABS ADDRES ADR ADRSIZE AND ANY syn keyword modula3Keyword ANY ARRAY AS BITS BRANDED BY CASE CONST DEFINITION
syn keyword modula3Keyword ARRAY AS BITS BITSIZE BOOLEAN BRANDED BY BYTESIZE syn keyword modula3Keyword EVAL EXIT EXCEPT EXCEPTION EXIT EXPORTS FINALLY
syn keyword modula3Keyword CARDINAL CASE CEILING CHAR CONST DEC DEFINITION syn keyword modula3Keyword FROM GENERIC IMPORT LOCK METHOD OF RAISE RAISES
syn keyword modula3Keyword DISPOSE DIV syn keyword modula3Keyword READONLY RECORD REF RETURN SET TRY TYPE TYPECASE
syn keyword modula3Keyword EVAL EXIT EXCEPT EXCEPTION syn keyword modula3Keyword UNSAFE VALUE VAR WITH
syn keyword modula3Keyword EXIT EXPORTS EXTENDED FALSE FINALLY FIRST FLOAT
syn keyword modula3Keyword FLOOR FROM GENERIC IMPORT syn match modula3keyword "\<UNTRACED\>"
syn keyword modula3Keyword IN INC INTEGER ISTYPE LAST LOCK
syn keyword modula3Keyword LONGREAL LOOPHOLE MAX METHOD MIN MOD MUTEX
syn keyword modula3Keyword NARROW NEW NIL NOT NULL NUMBER OF OR ORD RAISE
syn keyword modula3Keyword RAISES READONLY REAL RECORD REF REFANY
syn keyword modula3Keyword RETURN ROOT
syn keyword modula3Keyword ROUND SET SUBARRAY TEXT TRUE TRUNC TRY TYPE
syn keyword modula3Keyword TYPECASE TYPECODE UNSAFE UNTRACED VAL VALUE VAR WITH
" Special keywords, block delimiters etc " Special keywords, block delimiters etc
syn keyword modula3Block PROCEDURE FUNCTION MODULE INTERFACE REPEAT THEN syn keyword modula3Block PROCEDURE FUNCTION MODULE INTERFACE REPEAT THEN
syn keyword modula3Block BEGIN END OBJECT METHODS OVERRIDES RECORD REVEAL syn keyword modula3Block BEGIN END OBJECT METHODS OVERRIDES RECORD REVEAL
syn keyword modula3Block WHILE UNTIL DO TO IF FOR ELSIF ELSE LOOP syn keyword modula3Block WHILE UNTIL DO TO IF FOR ELSIF ELSE LOOP
" Comments " Reserved identifiers
syn region modula3Comment start="(\*" end="\*)" syn keyword modula3Identifier ABS ADR ADRSIZE BITSIZE BYTESIZE CEILING DEC
syn keyword modula3Identifier DISPOSE FIRST FLOAT FLOOR INC ISTYPE LAST
syn keyword modula3Identifier LOOPHOLE MAX MIN NARROW NEW NUMBER ORD ROUND
syn keyword modula3Identifier SUBARRAY TRUNC TYPECODE VAL
" Predefined types
syn keyword modula3Type ADDRESS BOOLEAN CARDINAL CHAR EXTENDED INTEGER
syn keyword modula3Type LONGCARD LONGINT LONGREAL MUTEX NULL REAL REFANY TEXT
syn keyword modula3Type WIDECHAR
syn match modula3Type "\<\%(UNTRACED\s\+\)\=ROOT\>"
" Operators
syn keyword modulaOperator DIV MOD IN AND OR NOT
if exists("modula3_operators")
syn match modula3Operator "\^"
syn match modula3Operator "+\|-\|\*\|/\|&"
" TODO: need to exclude = in procedure definitions
syn match modula3Operator "<=\|<\|>=\|>\|:\@<!=\|#"
endif
" Booleans
syn keyword modula3Boolean TRUE FALSE
" Nil
syn keyword modula3Nil NIL
" Integers
syn match modula3Integer "\<\d\+L\=\>"
syn match modula3Integer "\<\d\d\=_\x\+L\=\>"
" Reals
syn match modula3Real "\c\<\d\+\.\d\+\%([EDX][+-]\=\d\+\)\=\>"
" String escape sequences
syn match modula3Escape "\\['"ntrf]" contained display
syn match modula3Escape "\\\o\{3}" contained display
syn match modula3Escape "\\\\" contained display
" Characters
syn match modula3Character "'\%([^']\|\\.\|\\\o\{3}\)'" contains=modula3Escape
" Strings " Strings
syn region modula3String start=+"+ end=+"+ syn region modula3String start=+"+ end=+"+ contains=modula3Escape
syn region modula3String start=+'+ end=+'+
" Define the default highlighting. " Pragmas
" Only when an item doesn't have highlighting yet syn region modula3Pragma start="<\*" end="\*>"
" The default methods for highlighting. Can be overridden later " Comments
hi def link modula3Keyword Statement syn region modula3Comment start="(\*" end="\*)" contains=modula3Comment,@Spell
hi def link modula3Block PreProc
" Default highlighting
hi def link modula3Block Statement
hi def link modula3Boolean Boolean
hi def link modula3Character Character
hi def link modula3Comment Comment hi def link modula3Comment Comment
hi def link modula3Escape Special
hi def link modula3Identifier Keyword
hi def link modula3Integer Number
hi def link modula3Keyword Statement
hi def link modula3Nil Constant
hi def link modula3Operator Operator
hi def link modula3Pragma PreProc
hi def link modula3Real Float
hi def link modula3String String hi def link modula3String String
hi def link modula3Type Type
let b:current_syntax = "modula3" let b:current_syntax = "modula3"
"I prefer to use this... " vim: nowrap sw=2 sts=2 ts=8 noet:
"set ai
"vim: ts=8

83
runtime/syntax/psl.vim Normal file
View File

@ -0,0 +1,83 @@
" Vim syntax file
" Language: Property Specification Language (PSL)
" Maintainer: Daniel Kho <daniel.kho@logik.haus>
" Last Changed: 2021 Apr 17 by Daniel Kho
" quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
" Read in VHDL syntax files
runtime! syntax/vhdl.vim
unlet b:current_syntax
let s:cpo_save = &cpo
set cpo&vim
" case is not significant
syn case ignore
" Add ! character to keyword recognition.
setlocal iskeyword+=33
" PSL keywords
syn keyword pslOperator A AF AG AX
syn keyword pslOperator E EF EG EX
syn keyword pslOperator F G U W X X!
syn keyword pslOperator abort always assert assume async_abort
syn keyword pslOperator before before! before!_ before_ bit bitvector boolean
syn keyword pslOperator clock const countones cover
syn keyword pslOperator default
syn keyword pslOperator ended eventually!
syn keyword pslOperator fairness fell for forall
syn keyword pslOperator hdltype
syn keyword pslOperator in inf inherit isunknown
syn keyword pslOperator mutable
syn keyword pslOperator never next next! next_a next_a! next_e next_e! next_event next_event! next_event_a next_event_a! next_event_e next_event_e! nondet nondet_vector numeric
syn keyword pslOperator onehot onehot0
syn keyword pslOperator property prev
syn keyword pslOperator report restrict restrict! rose
syn keyword pslOperator sequence stable string strong sync_abort
syn keyword pslOperator union until until! until!_ until_
syn keyword pslOperator vmode vpkg vprop vunit
syn keyword pslOperator within
"" Common keywords with VHDL
"syn keyword pslOperator and is not or to
" PSL operators
syn match pslOperator "=>\||=>"
syn match pslOperator "<-\|->"
syn match pslOperator "@"
"Modify the following as needed. The trade-off is performance versus functionality.
syn sync minlines=600
" Define the default highlighting.
" Only when an item doesn't have highlighting yet
hi def link pslSpecial Special
hi def link pslStatement Statement
hi def link pslCharacter Character
hi def link pslString String
hi def link pslVector Number
hi def link pslBoolean Number
hi def link pslTodo Todo
hi def link pslFixme Fixme
hi def link pslComment Comment
hi def link pslNumber Number
hi def link pslTime Number
hi def link pslType Type
hi def link pslOperator Operator
hi def link pslError Error
hi def link pslAttribute Special
hi def link pslPreProc PreProc
let b:current_syntax = "psl"
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8

View File

@ -2,10 +2,9 @@
" Language: Ratpoison configuration/commands file ( /etc/ratpoisonrc ~/.ratpoisonrc ) " Language: Ratpoison configuration/commands file ( /etc/ratpoisonrc ~/.ratpoisonrc )
" Maintainer: Magnus Woldrich <m@japh.se> " Maintainer: Magnus Woldrich <m@japh.se>
" URL: http://github.com/trapd00r/vim-syntax-ratpoison " URL: http://github.com/trapd00r/vim-syntax-ratpoison
" Last Change: 2011 Apr 11 " Last Change: 2021-04-12 13:46:04
" Previous Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au> " Previous Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
" quit when a syntax file was already loaded
if exists("b:current_syntax") if exists("b:current_syntax")
finish finish
endif endif
@ -38,7 +37,7 @@ syn keyword ratpoisonCommandArg select set setenv sfdump shrink contained
syn keyword ratpoisonCommandArg source sselect startup_message time title contained syn keyword ratpoisonCommandArg source sselect startup_message time title contained
syn keyword ratpoisonCommandArg tmpwm unalias undefinekey undo unmanage contained syn keyword ratpoisonCommandArg tmpwm unalias undefinekey undo unmanage contained
syn keyword ratpoisonCommandArg unsetenv verbexec version vsplit warp contained syn keyword ratpoisonCommandArg unsetenv verbexec version vsplit warp contained
syn keyword ratpoisonCommandArg windows contained syn keyword ratpoisonCommandArg windows framefmt infofmt contained
syn match ratpoisonGravityArg "\<\(n\|north\)\>" contained syn match ratpoisonGravityArg "\<\(n\|north\)\>" contained
syn match ratpoisonGravityArg "\<\(nw\|northwest\)\>" contained syn match ratpoisonGravityArg "\<\(nw\|northwest\)\>" contained
@ -92,19 +91,27 @@ syn keyword ratpoisonSetArg barpadding contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg bgcolor syn keyword ratpoisonSetArg bgcolor
syn keyword ratpoisonSetArg border contained nextgroup=ratpoisonNumberArg syn keyword ratpoisonSetArg border contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg fgcolor syn keyword ratpoisonSetArg fgcolor
syn keyword ratpoisonSetArg framefmt contained nextgroup=ratpoisonWinFmtArg
syn keyword ratpoisonSetArg fwcolor syn keyword ratpoisonSetArg fwcolor
syn keyword ratpoisonSetArg framemsgwait contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg gravity contained nextgroup=ratpoisonGravityArg
syn keyword ratpoisonSetArg bwcolor syn keyword ratpoisonSetArg bwcolor
syn keyword ratpoisonSetArg gravity contained nextgroup=ratpoisonGravityArg
syn keyword ratpoisonSetArg historysize syn keyword ratpoisonSetArg historysize
syn keyword ratpoisonSetArg historycompaction syn keyword ratpoisonSetArg historycompaction
syn keyword ratpoisonSetArg historyexpansion syn keyword ratpoisonSetArg historyexpansion
syn keyword ratpoisonSetArg infofmt contained nextgroup=ratpoisonWinFmtArg
syn keyword ratpoisonSetArg topkmap syn keyword ratpoisonSetArg topkmap
syn keyword ratpoisonSetArg barinpadding syn keyword ratpoisonSetArg barinpadding
syn keyword ratpoisonSetArg font syn keyword ratpoisonSetArg font
syn keyword ratpoisonSetArg framesels syn keyword ratpoisonSetArg framesels
syn keyword ratpoisonSetArg maxundos
syn keyword ratpoisonSetArg inputwidth contained nextgroup=ratpoisonNumberArg syn keyword ratpoisonSetArg inputwidth contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg maxsizegravity contained nextgroup=ratpoisonGravityArg syn keyword ratpoisonSetArg maxsizegravity contained nextgroup=ratpoisonGravityArg
syn keyword ratpoisonSetArg msgwait contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg padding contained nextgroup=ratpoisonNumberArg syn keyword ratpoisonSetArg padding contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg resizeunit contained nextgroup=ratpoisonNumberArg syn keyword ratpoisonSetArg resizeunit contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg startup_message
syn keyword ratpoisonSetArg transgravity contained nextgroup=ratpoisonGravityArg syn keyword ratpoisonSetArg transgravity contained nextgroup=ratpoisonGravityArg
syn keyword ratpoisonSetArg waitcursor contained nextgroup=ratpoisonNumberArg syn keyword ratpoisonSetArg waitcursor contained nextgroup=ratpoisonNumberArg
syn keyword ratpoisonSetArg winfmt contained nextgroup=ratpoisonWinFmtArg syn keyword ratpoisonSetArg winfmt contained nextgroup=ratpoisonWinFmtArg
@ -113,6 +120,8 @@ syn keyword ratpoisonSetArg winliststyle contained nextgroup=ratpoisonWinListArg
syn keyword ratpoisonSetArg winname contained nextgroup=ratpoisonWinNameArg syn keyword ratpoisonSetArg winname contained nextgroup=ratpoisonWinNameArg
syn match ratpoisonWinFmtArg "%[nstacil]" contained nextgroup=ratpoisonWinFmtArg skipwhite syn match ratpoisonWinFmtArg "%[nstacil]" contained nextgroup=ratpoisonWinFmtArg skipwhite
syn match ratpoisonFrameFmtArg "%[nstacil]" contained nextgroup=ratpoisonWinFmtArg skipwhite
syn match ratpoisonInfoFmtArg "%[nstacil]" contained nextgroup=ratpoisonWinFmtArg skipwhite
syn match ratpoisonWinListArg "\<\(row\|column\)\>" contained syn match ratpoisonWinListArg "\<\(row\|column\)\>" contained
@ -126,6 +135,7 @@ syn match ratpoisonDefCommand "^\s*defbgcolor\s*"
syn match ratpoisonDefCommand "^\s*defborder\s*" nextgroup=ratpoisonNumberArg syn match ratpoisonDefCommand "^\s*defborder\s*" nextgroup=ratpoisonNumberArg
syn match ratpoisonDefCommand "^\s*deffgcolor\s*" syn match ratpoisonDefCommand "^\s*deffgcolor\s*"
syn match ratpoisonDefCommand "^\s*deffont\s*" syn match ratpoisonDefCommand "^\s*deffont\s*"
syn match ratpoisonDefCommand "^\s*defframefmt\s*" nextgroup=ratpoisonWinFmtArg
syn match ratpoisonDefCommand "^\s*defframesels\s*" syn match ratpoisonDefCommand "^\s*defframesels\s*"
syn match ratpoisonDefCommand "^\s*definputwidth\s*" nextgroup=ratpoisonNumberArg syn match ratpoisonDefCommand "^\s*definputwidth\s*" nextgroup=ratpoisonNumberArg
syn match ratpoisonDefCommand "^\s*defmaxsizegravity\s*" nextgroup=ratpoisonGravityArg syn match ratpoisonDefCommand "^\s*defmaxsizegravity\s*" nextgroup=ratpoisonGravityArg
@ -243,14 +253,13 @@ syn match ratpoisonVoidCommand "^\s*\zsversion\ze\s*$"
syn match ratpoisonVoidCommand "^\s*\zsvsplit\ze\s*$" syn match ratpoisonVoidCommand "^\s*\zsvsplit\ze\s*$"
syn match ratpoisonVoidCommand "^\s*\zswindows\ze\s*$" syn match ratpoisonVoidCommand "^\s*\zswindows\ze\s*$"
" Define the default highlighting.
" Only when an item doesn't have highlighting yet
hi def link ratpoisonBooleanArg Boolean hi def link ratpoisonBooleanArg Boolean
hi def link ratpoisonCommandArg Keyword hi def link ratpoisonCommandArg Keyword
hi def link ratpoisonComment Comment hi def link ratpoisonComment Comment
hi def link ratpoisonDefCommand Identifier hi def link ratpoisonDefCommand Identifier
hi def link ratpoisonFrameFmtArg Special
hi def link ratpoisonGravityArg Constant hi def link ratpoisonGravityArg Constant
hi def link ratpoisonInfoFmtArg Special
hi def link ratpoisonKeySeqArg Special hi def link ratpoisonKeySeqArg Special
hi def link ratpoisonNumberArg Number hi def link ratpoisonNumberArg Number
hi def link ratpoisonSetArg Keyword hi def link ratpoisonSetArg Keyword
@ -261,7 +270,6 @@ hi def link ratpoisonWinFmtArg Special
hi def link ratpoisonWinNameArg Constant hi def link ratpoisonWinNameArg Constant
hi def link ratpoisonWinListArg Constant hi def link ratpoisonWinListArg Constant
let b:current_syntax = "ratpoison" let b:current_syntax = "ratpoison"
" vim: ts=8 " vim: ts=8

View File

@ -682,7 +682,7 @@ Not: Arama dosyanın sonuna ulaştığında dosyanın başından sürecektir. Bu
Ders 5.3'ün iki adet kopyası olduğunu görün, özgün sürümü ve kopyası. Ders 5.3'ün iki adet kopyası olduğunu görün, özgün sürümü ve kopyası.
NOT: Bu komutu kullanarak bir dış komutun çıktısını da dosyanın içine NOT: Bu komutu kullanarak bir dış komutun çıktısını da dosyanın içine
koyabilirsiniz. Örneğin :r :!ls yazmak ls komutunun vereceği çıktıyı koyabilirsiniz. Örneğin :r !ls yazmak ls komutunun vereceği çıktıyı
dosyanın içinde hemen imlecin altındaki satıra koyar. dosyanın içinde hemen imlecin altındaki satıra koyar.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,64 +1,83 @@
INSTALLmac.txt - Installation of Vim on Macintosh INSTALLmac.txt - Installation of Vim on Apple MacOS
This file contains instructions for compiling Vim. If you already have an This file contains instructions for compiling Vim. If you already have an
executable version of Vim, you don't need this. executable version of Vim, you don't need this.
First, make sure you've installed Xcode or CommandLineTools. If not, open a MacOS Classic is no longer supported. If you really want it use Vim 6.4.
terminal and do Only '/' is supported as path separator.
----------------------------------------------------------------------------
Prerequisites
----------------------------------------------------------------------------
Make sure you've installed Xcode and CommandLineTools. You can download Xcode
from the Mac App Store, for free.
To check for CommandLineTools open a terminal and do:
$ make --version $ make --version
A window pops up instructing you to install the developer tools. If not installed yet a window pops up instructing you to install the developer
tools.
If you don't have the source yet, best is to use git (which you need to
install first), see http://www.vim.org/git.php
Or you can download and unpack the Unix tar archive, see
http://www.vim.org/download.php
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
Summary Build and install the terminal version.
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
1 MacOS X
1.1. Terminal version
1.2. X (Athena, GTK, Motif) or plain text.
MacOS Classic is no longer supported. If you really want it use Vim 6.4.
----------------------------------------------------------------------------
1 MacOS X
----------------------------------------------------------------------------
1.0 Considerations
Only '/' is supported as path separator.
1.1 Terminal version (default)
You can compile vim with the standard Unix routine: You can compile vim with the standard Unix routine:
cd .../src cd vim/src
make make
make test make test
sudo make install sudo make install
You need at least Xcode 1.5. If you get an error "glibtool: command not found" search on stackoverflow for
mac-osx-where-can-i-download-glibtool.
To overrule the architecture do this before running make: With Homebrew, run:
./configure --with-mac-arch=intel brew install libtool
or
./configure --with-mac-arch=ppc To build libtool from source:
1. Download the source code from https://www.gnu.org/software/libtool/.
2. Run these commands from the root of the source code directory:
./configure --program-prefix=g
make
sudo make install
1.2 X-Windows ----------------------------------------------------------------------------
Build and install the GUI version with X-Windows
----------------------------------------------------------------------------
You must explicitly tell configure to use a GUI. First, install XQuartz, which you can download from https://www.xquartz.org.
cd .../src To tell configure to use a GUI you can edit the Makefile and uncomment these
./configure --disable-darwin --enable-gui=gtk2 two lines (remove the # at the start of the line):
make; make install
NOTE: The following GUI options are possible (but might not work): CONF_OPT_GUI = --enable-gui=athena
no (for terminal only), motif, athena, nextaw CONF_OPT_DARWIN = --disable-darwin
gtk, gtk2, gnome, gnome2,
NOTE: You need to first install XFree86 and XDarwin. Do "make distclean" to start with a clean slate.
Please visit http://www.XDarwin.org Then build as with the terminal version above.
Instead of "athena" you can try "gtk2" but you probably need to install GTK
first.
----------------------------------------------------------------------------
Notes
----------------------------------------------------------------------------
Mac-specific configure options are explained in the Makefile:
--disable-darwin
--with-mac-arch
------------------------------------------------------