annotate runtime/syntax/cabalproject.vim @ 24246:35603c7991d7 v8.2.2664

patch 8.2.2664: Vim9: not enough function arguments checked for string Commit: https://github.com/vim/vim/commit/32105ae88f3aa6a6af30336f0bc9f8eb81292cd7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 27 18:59:25 2021 +0100 patch 8.2.2664: Vim9: not enough function arguments checked for string Problem: Vim9: not enough function arguments checked for string. Solution: Check in balloon functions. Refactor function arguments.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Mar 2021 19:00:04 +0100
parents 29c5f168c6fd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Cabal Project
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: profunctor@pm.me
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: Marcin Szamotulski
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 " Original Author: Marcin Szamotulski
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 if exists("b:current_syntax")
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 finish
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 endif
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 syn match CabalProjectComment /^\s*--.*/ contains=@Spell
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 syn match CabalProjectField /^\w\%(\w\|-\)\+/ contains=@NoSpell
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 syn keyword CabalProjectBoolean true false True False
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 syn keyword CabalProjectCompiler ghc ghcjs jhc lhc uhc haskell-suite
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syn match CabalProjectNat /\<\d\+\>/
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 syn keyword CabalProjectJobs $ncpus
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 syn keyword CabalProjectProfilingLevel default none exported-functions toplevel-functions all-functions
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 hi def link CabalProjectComment Comment
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 hi def link CabalProjectField Statement
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 hi def link CabalProjectBoolean Boolean
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 hi def link CabalProjectCompiler Identifier
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 hi def link CabalProjectNat Number
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 hi def link CabalProjectJobs Number
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 hi def link CabalProjectProfilingLevel Statement
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 let b:current_syntax = "cabal.project"