annotate runtime/syntax/cuda.vim @ 18501:c9777bf23eb8

Added tag v8.1.2244 for changeset c0445cb7cfe0432628191cc5c7d21400bd2dab75
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Nov 2019 23:30:04 +0100
parents 167a030448fa
children e7137eab4b6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: CUDA (NVIDIA Compute Unified Device Architecture)
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
3 " Maintainer: Timothy B. Terriberry <tterribe@users.sourceforge.net>
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
4 " Last Change: 2018 Feb 06
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
5
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
6 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
7 if exists("b:current_syntax")
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
8 finish
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
9 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
10
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
11 " Read the C++ syntax to start with
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
12 runtime! syntax/cpp.vim
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
13
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
14 " CUDA extentions
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
15 syn keyword cudaStorageClass __device__ __global__ __host__
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
16 syn keyword cudaStorageClass __constant__ __shared__
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
17 syn keyword cudaStorageClass __inline__ __align__ __thread__
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
18 "syn keyword cudaStorageClass __import__ __export__ __location__
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn keyword cudaStructure template
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
20 syn keyword cudaType char1 char2 char3 char4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
21 syn keyword cudaType uchar1 uchar2 uchar3 uchar4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
22 syn keyword cudaType short1 short2 short3 short4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
23 syn keyword cudaType ushort1 ushort2 ushort3 ushort4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
24 syn keyword cudaType int1 int2 int3 int4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
25 syn keyword cudaType uint1 uint2 uint3 uint4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
26 syn keyword cudaType long1 long2 long3 long4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
27 syn keyword cudaType ulong1 ulong2 ulong3 ulong4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
28 syn keyword cudaType float1 float2 float3 float4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
29 syn keyword cudaType ufloat1 ufloat2 ufloat3 ufloat4
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
30 syn keyword cudaType dim3 texture textureReference
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
31 syn keyword cudaType cudaError_t cudaDeviceProp cudaMemcpyKind
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
32 syn keyword cudaType cudaArray cudaChannelFormatKind
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
33 syn keyword cudaType cudaChannelFormatDesc cudaTextureAddressMode
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
34 syn keyword cudaType cudaTextureFilterMode cudaTextureReadMode
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
35 syn keyword cudaVariable gridDim blockIdx blockDim threadIdx
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
36 syn keyword cudaConstant __DEVICE_EMULATION__
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
37 syn keyword cudaConstant cudaSuccess
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
38 " Many more errors are defined, but only these are listed in the maunal
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
39 syn keyword cudaConstant cudaErrorMemoryAllocation
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
40 syn keyword cudaConstant cudaErrorInvalidDevicePointer
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
41 syn keyword cudaConstant cudaErrorInvalidSymbol
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
42 syn keyword cudaConstant cudaErrorMixedDeviceExecution
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
43 syn keyword cudaConstant cudaMemcpyHostToHost
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
44 syn keyword cudaConstant cudaMemcpyHostToDevice
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
45 syn keyword cudaConstant cudaMemcpyDeviceToHost
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
46 syn keyword cudaConstant cudaMemcpyDeviceToDevice
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
47 syn keyword cudaConstant cudaReadModeElementType
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
48 syn keyword cudaConstant cudaReadModeNormalizedFloat
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
49 syn keyword cudaConstant cudaFilterModePoint
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
50 syn keyword cudaConstant cudaFilterModeLinear
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
51 syn keyword cudaConstant cudaAddressModeClamp
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
52 syn keyword cudaConstant cudaAddressModeWrap
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
53 syn keyword cudaConstant cudaChannelFormatKindSigned
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
54 syn keyword cudaConstant cudaChannelFormatKindUnsigned
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
55 syn keyword cudaConstant cudaChannelFormatKindFloat
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
56
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
57 hi def link cudaStorageClass StorageClass
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
58 hi def link cudaStructure Structure
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
59 hi def link cudaType Type
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
60 hi def link cudaVariable Identifier
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
61 hi def link cudaConstant Constant
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
62
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
63 let b:current_syntax = "cuda"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
64
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
65 " vim: ts=8