comparison runtime/syntax/nsis.vim @ 31139:20cf2080f1ee

Update runtime files Commit: https://github.com/vim/vim/commit/d13166e788fcaef59ec65c20b46ca4be16625669 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 18 21:49:57 2022 +0000 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Nov 2022 23:00:05 +0100
parents ebedba7a4898
children
comparison
equal deleted inserted replaced
31138:e3510cfd5e37 31139:20cf2080f1ee
1 " Vim syntax file 1 " Vim syntax file
2 " Language: NSIS script, for version of NSIS 3.08 and later 2 " Language: NSIS script, for version of NSIS 3.08 and later
3 " Maintainer: Ken Takata 3 " Maintainer: Ken Takata
4 " URL: https://github.com/k-takata/vim-nsis 4 " URL: https://github.com/k-takata/vim-nsis
5 " Previous Maintainer: Alex Jakushev <Alex.Jakushev@kemek.lt> 5 " Previous Maintainer: Alex Jakushev <Alex.Jakushev@kemek.lt>
6 " Last Change: 2020-10-18 6 " Last Change: 2022-11-05
7 7
8 " quit when a syntax file was already loaded 8 " quit when a syntax file was already loaded
9 if exists("b:current_syntax") 9 if exists("b:current_syntax")
10 finish 10 finish
11 endif 11 endif
392 392
393 syn keyword nsisInstruction contained CreateShortcut nextgroup=nsisCreateShortcutOpt skipwhite 393 syn keyword nsisInstruction contained CreateShortcut nextgroup=nsisCreateShortcutOpt skipwhite
394 syn region nsisCreateShortcutOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCreateShortcutKwd 394 syn region nsisCreateShortcutOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCreateShortcutKwd
395 syn match nsisCreateShortcutKwd contained "/NoWorkingDir\>" 395 syn match nsisCreateShortcutKwd contained "/NoWorkingDir\>"
396 396
397 syn keyword nsisInstruction contained GetWinVer nextgroup=nsisGetWinVerOpt skipwhite
398 syn region nsisGetWinVerOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetWinVerKwd
399 syn keyword nsisGetWinVerKwd contained Major Minor Build ServicePack
400
397 syn keyword nsisInstruction contained GetDLLVersion GetDLLVersionLocal nextgroup=nsisGetDLLVersionOpt skipwhite 401 syn keyword nsisInstruction contained GetDLLVersion GetDLLVersionLocal nextgroup=nsisGetDLLVersionOpt skipwhite
398 syn region nsisGetDLLVersionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetDLLVersionKwd 402 syn region nsisGetDLLVersionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetDLLVersionKwd
399 syn match nsisGetDLLVersionKwd contained "/ProductVersion\>" 403 syn match nsisGetDLLVersionKwd contained "/ProductVersion\>"
400 404
401 syn keyword nsisInstruction contained GetFullPathName nextgroup=nsisGetFullPathNameOpt skipwhite 405 syn keyword nsisInstruction contained GetFullPathName nextgroup=nsisGetFullPathNameOpt skipwhite
402 syn region nsisGetFullPathNameOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetFullPathNameKwd 406 syn region nsisGetFullPathNameOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetFullPathNameKwd
403 syn match nsisGetFullPathNameKwd contained "/SHORT\>" 407 syn match nsisGetFullPathNameKwd contained "/SHORT\>"
404 408
560 syn match nsisSystem contained "!error\>" 564 syn match nsisSystem contained "!error\>"
561 syn match nsisSystem contained "!execute\>" 565 syn match nsisSystem contained "!execute\>"
562 syn match nsisSystem contained "!makensis\>" 566 syn match nsisSystem contained "!makensis\>"
563 syn match nsisSystem contained "!packhdr\>" 567 syn match nsisSystem contained "!packhdr\>"
564 syn match nsisSystem contained "!finalize\>" 568 syn match nsisSystem contained "!finalize\>"
569 syn match nsisSystem contained "!uninstfinalize\>"
565 syn match nsisSystem contained "!system\>" 570 syn match nsisSystem contained "!system\>"
566 syn match nsisSystem contained "!tempfile\>" 571 syn match nsisSystem contained "!tempfile\>"
567 syn match nsisSystem contained "!getdllversion\>" 572
568 syn match nsisSystem contained "!gettlbversion\>" 573 " Add 'P' to avoid conflicts with nsisGetDLLVersionOpt. ('P' for preprocessor.)
574 syn match nsisSystem contained "!getdllversion\>" nextgroup=nsisPGetdllversionOpt skipwhite
575 syn region nsisPGetdllversionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPGetdllversionKwd
576 syn match nsisPGetdllversionKwd contained "/\%(noerrors\|packed\|productversion\)\>"
577
578 syn match nsisSystem contained "!gettlbversion\>" nextgroup=nsisPGettlbversionOpt skipwhite
579 syn region nsisPGettlbversionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPGettlbversionKwd
580 syn match nsisPGettlbversionKwd contained "/\%(noerrors\|packed\)\>"
581
569 syn match nsisSystem contained "!warning\>" 582 syn match nsisSystem contained "!warning\>"
570 583
571 syn match nsisSystem contained "!pragma\>" nextgroup=nsisPragmaOpt skipwhite 584 syn match nsisSystem contained "!pragma\>" nextgroup=nsisPragmaOpt skipwhite
572 syn region nsisPragmaOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPragmaKwd 585 syn region nsisPragmaOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPragmaKwd
573 syn keyword nsisPragmaKwd contained enable disable default push pop 586 syn keyword nsisPragmaKwd contained enable disable default push pop
579 "PREPROCESSOR (5.4) 592 "PREPROCESSOR (5.4)
580 syn match nsisDefine contained "!define\>" nextgroup=nsisDefineOpt skipwhite 593 syn match nsisDefine contained "!define\>" nextgroup=nsisDefineOpt skipwhite
581 syn region nsisDefineOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDefineKwd 594 syn region nsisDefineOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDefineKwd
582 syn match nsisDefineKwd contained "/\%(ifndef\|redef\|date\|utcdate\|file\|intfmt\|math\)\>" 595 syn match nsisDefineKwd contained "/\%(ifndef\|redef\|date\|utcdate\|file\|intfmt\|math\)\>"
583 596
584 syn match nsisDefine contained "!undef\>" 597 syn match nsisDefine contained "!undef\>" nextgroup=nsisUndefineOpt skipwhite
598 syn region nsisUndefineOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisUndefineKwd
599 syn match nsisUndefineKwd contained "/noerrors\>"
600
585 syn match nsisPreCondit contained "!ifdef\>" 601 syn match nsisPreCondit contained "!ifdef\>"
586 syn match nsisPreCondit contained "!ifndef\>" 602 syn match nsisPreCondit contained "!ifndef\>"
587 603
588 syn match nsisPreCondit contained "!if\>" nextgroup=nsisIfOpt skipwhite 604 syn match nsisPreCondit contained "!if\>" nextgroup=nsisIfOpt skipwhite
589 syn region nsisIfOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisIfKwd 605 syn region nsisIfOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisIfKwd
657 hi def link nsisDeleteRegKeyKwd Constant 673 hi def link nsisDeleteRegKeyKwd Constant
658 hi def link nsisWriteRegMultiStrKwd Constant 674 hi def link nsisWriteRegMultiStrKwd Constant
659 hi def link nsisSetRegViewKwd Constant 675 hi def link nsisSetRegViewKwd Constant
660 hi def link nsisCopyFilesKwd Constant 676 hi def link nsisCopyFilesKwd Constant
661 hi def link nsisCreateShortcutKwd Constant 677 hi def link nsisCreateShortcutKwd Constant
678 hi def link nsisGetWinVerKwd Constant
662 hi def link nsisGetDLLVersionKwd Constant 679 hi def link nsisGetDLLVersionKwd Constant
663 hi def link nsisGetFullPathNameKwd Constant 680 hi def link nsisGetFullPathNameKwd Constant
664 hi def link nsisFileAttrib Constant 681 hi def link nsisFileAttrib Constant
665 hi def link nsisMessageBox Constant 682 hi def link nsisMessageBox Constant
666 hi def link nsisFileWriteUTF16LEKwd Constant 683 hi def link nsisFileWriteUTF16LEKwd Constant
694 hi def link nsisLineContinuation Special 711 hi def link nsisLineContinuation Special
695 hi def link nsisIncludeKwd Constant 712 hi def link nsisIncludeKwd Constant
696 hi def link nsisAddplugindirKwd Constant 713 hi def link nsisAddplugindirKwd Constant
697 hi def link nsisAppendfileKwd Constant 714 hi def link nsisAppendfileKwd Constant
698 hi def link nsisDelfileKwd Constant 715 hi def link nsisDelfileKwd Constant
716 hi def link nsisPGetdllversionKwd Constant
717 hi def link nsisPGettlbversionKwd Constant
699 hi def link nsisPragmaKwd Constant 718 hi def link nsisPragmaKwd Constant
700 hi def link nsisVerboseKwd Constant 719 hi def link nsisVerboseKwd Constant
701 hi def link nsisDefineKwd Constant 720 hi def link nsisDefineKwd Constant
721 hi def link nsisUndefineKwd Constant
702 hi def link nsisIfKwd Constant 722 hi def link nsisIfKwd Constant
703 hi def link nsisSearchparseKwd Constant 723 hi def link nsisSearchparseKwd Constant
704 hi def link nsisSearchreplaceKwd Constant 724 hi def link nsisSearchreplaceKwd Constant
705 725
706 726