annotate runtime/syntax/cuda.vim @ 49:000769ce6c9d default tip

Added tag v7-3-618 for changeset 67300faee616
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 01 Aug 2012 18:08:37 +0900
parents db46d51a3939
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
db46d51a3939 Initial revision
axmo
parents:
diff changeset
1 " Vim syntax file
db46d51a3939 Initial revision
axmo
parents:
diff changeset
2 " Language: CUDA (NVIDIA Compute Unified Device Architecture)
db46d51a3939 Initial revision
axmo
parents:
diff changeset
3 " Maintainer: Timothy B. Terriberry <tterribe@users.sourceforge.net>
db46d51a3939 Initial revision
axmo
parents:
diff changeset
4 " Last Change: 2007 Oct 13
db46d51a3939 Initial revision
axmo
parents:
diff changeset
5
db46d51a3939 Initial revision
axmo
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
db46d51a3939 Initial revision
axmo
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
db46d51a3939 Initial revision
axmo
parents:
diff changeset
8 if version < 600
db46d51a3939 Initial revision
axmo
parents:
diff changeset
9 syntax clear
db46d51a3939 Initial revision
axmo
parents:
diff changeset
10 elseif exists("b:current_syntax")
db46d51a3939 Initial revision
axmo
parents:
diff changeset
11 finish
db46d51a3939 Initial revision
axmo
parents:
diff changeset
12 endif
db46d51a3939 Initial revision
axmo
parents:
diff changeset
13
db46d51a3939 Initial revision
axmo
parents:
diff changeset
14 " Read the C syntax to start with
db46d51a3939 Initial revision
axmo
parents:
diff changeset
15 if version < 600
db46d51a3939 Initial revision
axmo
parents:
diff changeset
16 source <sfile>:p:h/c.vim
db46d51a3939 Initial revision
axmo
parents:
diff changeset
17 else
db46d51a3939 Initial revision
axmo
parents:
diff changeset
18 runtime! syntax/c.vim
db46d51a3939 Initial revision
axmo
parents:
diff changeset
19 endif
db46d51a3939 Initial revision
axmo
parents:
diff changeset
20
db46d51a3939 Initial revision
axmo
parents:
diff changeset
21 " CUDA extentions
db46d51a3939 Initial revision
axmo
parents:
diff changeset
22 syn keyword cudaStorageClass __device__ __global__ __host__
db46d51a3939 Initial revision
axmo
parents:
diff changeset
23 syn keyword cudaStorageClass __constant__ __shared__
db46d51a3939 Initial revision
axmo
parents:
diff changeset
24 syn keyword cudaStorageClass __inline__ __align__ __thread__
db46d51a3939 Initial revision
axmo
parents:
diff changeset
25 "syn keyword cudaStorageClass __import__ __export__ __location__
db46d51a3939 Initial revision
axmo
parents:
diff changeset
26 syn keyword cudaStructure template
db46d51a3939 Initial revision
axmo
parents:
diff changeset
27 syn keyword cudaType char1 char2 char3 char4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
28 syn keyword cudaType uchar1 uchar2 uchar3 uchar4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
29 syn keyword cudaType short1 short2 short3 short4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
30 syn keyword cudaType ushort1 ushort2 ushort3 ushort4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
31 syn keyword cudaType int1 int2 int3 int4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
32 syn keyword cudaType uint1 uint2 uint3 uint4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
33 syn keyword cudaType long1 long2 long3 long4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
34 syn keyword cudaType ulong1 ulong2 ulong3 ulong4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
35 syn keyword cudaType float1 float2 float3 float4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
36 syn keyword cudaType ufloat1 ufloat2 ufloat3 ufloat4
db46d51a3939 Initial revision
axmo
parents:
diff changeset
37 syn keyword cudaType dim3 texture textureReference
db46d51a3939 Initial revision
axmo
parents:
diff changeset
38 syn keyword cudaType cudaError_t cudaDeviceProp cudaMemcpyKind
db46d51a3939 Initial revision
axmo
parents:
diff changeset
39 syn keyword cudaType cudaArray cudaChannelFormatKind
db46d51a3939 Initial revision
axmo
parents:
diff changeset
40 syn keyword cudaType cudaChannelFormatDesc cudaTextureAddressMode
db46d51a3939 Initial revision
axmo
parents:
diff changeset
41 syn keyword cudaType cudaTextureFilterMode cudaTextureReadMode
db46d51a3939 Initial revision
axmo
parents:
diff changeset
42 syn keyword cudaVariable gridDim blockIdx blockDim threadIdx
db46d51a3939 Initial revision
axmo
parents:
diff changeset
43 syn keyword cudaConstant __DEVICE_EMULATION__
db46d51a3939 Initial revision
axmo
parents:
diff changeset
44 syn keyword cudaConstant cudaSuccess
db46d51a3939 Initial revision
axmo
parents:
diff changeset
45 " Many more errors are defined, but only these are listed in the maunal
db46d51a3939 Initial revision
axmo
parents:
diff changeset
46 syn keyword cudaConstant cudaErrorMemoryAllocation
db46d51a3939 Initial revision
axmo
parents:
diff changeset
47 syn keyword cudaConstant cudaErrorInvalidDevicePointer
db46d51a3939 Initial revision
axmo
parents:
diff changeset
48 syn keyword cudaConstant cudaErrorInvalidSymbol
db46d51a3939 Initial revision
axmo
parents:
diff changeset
49 syn keyword cudaConstant cudaErrorMixedDeviceExecution
db46d51a3939 Initial revision
axmo
parents:
diff changeset
50 syn keyword cudaConstant cudaMemcpyHostToHost
db46d51a3939 Initial revision
axmo
parents:
diff changeset
51 syn keyword cudaConstant cudaMemcpyHostToDevice
db46d51a3939 Initial revision
axmo
parents:
diff changeset
52 syn keyword cudaConstant cudaMemcpyDeviceToHost
db46d51a3939 Initial revision
axmo
parents:
diff changeset
53 syn keyword cudaConstant cudaMemcpyDeviceToDevice
db46d51a3939 Initial revision
axmo
parents:
diff changeset
54 syn keyword cudaConstant cudaReadModeElementType
db46d51a3939 Initial revision
axmo
parents:
diff changeset
55 syn keyword cudaConstant cudaReadModeNormalizedFloat
db46d51a3939 Initial revision
axmo
parents:
diff changeset
56 syn keyword cudaConstant cudaFilterModePoint
db46d51a3939 Initial revision
axmo
parents:
diff changeset
57 syn keyword cudaConstant cudaFilterModeLinear
db46d51a3939 Initial revision
axmo
parents:
diff changeset
58 syn keyword cudaConstant cudaAddressModeClamp
db46d51a3939 Initial revision
axmo
parents:
diff changeset
59 syn keyword cudaConstant cudaAddressModeWrap
db46d51a3939 Initial revision
axmo
parents:
diff changeset
60 syn keyword cudaConstant cudaChannelFormatKindSigned
db46d51a3939 Initial revision
axmo
parents:
diff changeset
61 syn keyword cudaConstant cudaChannelFormatKindUnsigned
db46d51a3939 Initial revision
axmo
parents:
diff changeset
62 syn keyword cudaConstant cudaChannelFormatKindFloat
db46d51a3939 Initial revision
axmo
parents:
diff changeset
63
db46d51a3939 Initial revision
axmo
parents:
diff changeset
64 hi def link cudaStorageClass StorageClass
db46d51a3939 Initial revision
axmo
parents:
diff changeset
65 hi def link cudaStructure Structure
db46d51a3939 Initial revision
axmo
parents:
diff changeset
66 hi def link cudaType Type
db46d51a3939 Initial revision
axmo
parents:
diff changeset
67 hi def link cudaVariable Identifier
db46d51a3939 Initial revision
axmo
parents:
diff changeset
68 hi def link cudaConstant Constant
db46d51a3939 Initial revision
axmo
parents:
diff changeset
69
db46d51a3939 Initial revision
axmo
parents:
diff changeset
70 let b:current_syntax = "cuda"
db46d51a3939 Initial revision
axmo
parents:
diff changeset
71
db46d51a3939 Initial revision
axmo
parents:
diff changeset
72 " vim: ts=8