annotate runtime/syntax/xs.vim @ 4305:b01e3cff9253 v7.3.902

updated for version 7.3.902 Problem: When deleting last buffer in other tab the tabline is not updated. Solution: Set the redraw_tabline flag. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Mon, 15 Apr 2013 15:55:19 +0200
parents b9e314fe473f
children 2eb30f341e8d
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
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
2 " Language: XS (Perl extension interface language)
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
3 " Maintainer: Andy Lester <andy@petdance.com>
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
4 " URL: http://github.com/petdance/vim-perl
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
5 " Last Change: 2009-08-14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
7 " Quit when a syntax file was already loaded
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
8 if exists("b:current_syntax")
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
9 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Read the C syntax to start with
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
13 runtime! syntax/c.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " XS extentions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " TODO: Figure out how to look for trailing '='.
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
17 syn keyword xsKeyword MODULE PACKAGE PREFIX
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
18 syn keyword xsKeyword OUTPUT: CODE: INIT: PREINIT: INPUT:
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
19 syn keyword xsKeyword PPCODE: REQUIRE: CLEANUP: BOOT:
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
20 syn keyword xsKeyword VERSIONCHECK: PROTOTYPES: PROTOTYPE:
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
21 syn keyword xsKeyword ALIAS: INCLUDE: CASE:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " TODO: Figure out how to look for trailing '('.
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
23 syn keyword xsMacro SV EXTEND PUSHs
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
24 syn keyword xsVariable RETVAL NO_INIT
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
25 "syn match xsCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*<"me=e-1
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
26 "syn match xsCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
28 " Define the default highlighting, but only when an item doesn't have highlighting yet
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
29 command -nargs=+ HiLink hi def link <args>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
31 HiLink xsKeyword Keyword
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
32 HiLink xsMacro Macro
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
33 HiLink xsVariable Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
35 delcommand HiLink
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 let b:current_syntax = "xs"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " vim: ts=8