Branch: refs/heads/master Author: Benjamin Chrétien chretien@lirmm.fr Committer: Matthew Brush matt@geany.org Date: Fri, 16 Aug 2013 00:55:36 UTC Commit: 1a185d87a4e40a2b361bfa6c469190b7a3cfd927 https://github.com/geany/geany/commit/1a185d87a4e40a2b361bfa6c469190b7a3cfd9...
Log Message: ----------- Add CUDA C/C++ support
Closes #147
Modified Paths: -------------- data/filetype_extensions.conf data/filetypes.CUDA.conf
Modified: data/filetype_extensions.conf 5 files changed, 3 insertions(+), 2 deletions(-) =================================================================== @@ -1,5 +1,5 @@ # Filetype extension configuration file for Geany -# Insert as many items as you want, seperate them with a ";". +# Insert as many items as you want, separate them with a ";". # See Geany's main documentation for details. [Extensions] Abaqus=*.inp; @@ -12,6 +12,7 @@ Batch=*.bat;*.cmd;*.nt; CAML=*.ml;*.mli; C=*.c;*.h; C++=*.cpp;*.cxx;*.c++;*.cc;*.h;*.hpp;*.hxx;*.h++;*.hh;*.C;*.H; +CUDA=*.cu;*.cuh;*.h; C#=*.cs; CMake=CMakeLists.txt;*.cmake;*.ctest; COBOL=*.cob;*.cpy;*.cbl;*.cobol; @@ -67,7 +68,7 @@ None=*;
# Note: restarting is required after editing groups [Groups] -Programming=Cython;Genie;Go;Rust;Scala; +Programming=CUDA;Cython;Genie;Go;Rust;Scala; Script=Graphviz; Markup= Misc=
Modified: data/filetypes.CUDA.conf 60 files changed, 60 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,60 @@ +# For complete documentation of this file, please see Geany's main documentation +[styling=C] + +[keywords] +# all items must be in one line +primary=alignas alignof and and_eq asm auto bitand bitor bool break case catch char char16_t char32_t class compl const const_cast constexpr continue decltype default delete do double dynamic_cast else enum explicit export extern false final float for friend goto if inline int int8_t int16_t int32_t int64_t long mutable namespace new noexcept not not_eq nullptr operator or or_eq override private protected ptrdiff_t public register reinterpret_cast return short signed sizeof size_t static static_assert static_cast struct switch template this thread_local throw true try typedef typeid typename union unsigned using virtual void volatile wchar_t while xor xor_eq + +# CUDA keywords set as secondary keywords +secondary=__device__ __global__ __shared__ __host__ __constant__ gridDim blockIdx blockDim threadIdx warpSize <<< >>> dim3 char1 uchar1 char2 uchar2 char3 uchar3 char4 uchar4 short1 ushort1 short2 ushort2 short3 ushort3 short4 ushort4 int1 uint1 int2 uint2 int3 uint3 int4 uint4 long1 ulong1 long2 ulong2 long3 ulong3 long4 ulong4 float1 float2 float3 float4 double1 double2 + +# these are the Doxygen keywords +docComment=a addindex addtogroup anchor arg attention author authors b brief bug c callergraph callgraph category cite class code cond copybrief copydetails copydoc copyright date def defgroup deprecated details dir dontinclude dot dotfile e else elseif em endcode endcond enddot endhtmlonly endif endinternal endlatexonly endlink endmanonly endmsc endrtfonly endverbatim endxmlonly enum example exception extends file fn headerfile hideinitializer htmlinclude htmlonly if ifnot image implements include includelineno ingroup interface internal invariant latexonly li line link mainpage manonly memberof msc mscfile n name namespace nosubgrouping note overload p package page par paragraph param post pre private privatesection property protected protectedsection protocol public publicsection ref related relatedalso relates relatesalso remark remarks result return returns retval rtfonly sa section see short showinitializer since skip skipline snippet struct subpage subsection subsubsection tableofcontents test throw throws todo tparam typedef union until var verbatim verbinclude version warning weakgroup xmlonly xrefitem + +[lexer_properties] +styling.within.preprocessor=1 +lexer.cpp.track.preprocessor=0 +preprocessor.symbol.$(file.patterns.cpp)=# +preprocessor.start.$(file.patterns.cpp)=if ifdef ifndef +preprocessor.middle.$(file.patterns.cpp)=else elif +preprocessor.end.$(file.patterns.cpp)=endif + +[settings] +lexer_filetype=C + +# default extension used when saving files +extension=cu + +# the following characters are these which a "word" can contains, see documentation +#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 + +# single comments, like # in this file +comment_single=// +# multiline comments +comment_open=/* +comment_close=*/ + +# set to false if a comment character/string should start at column 0 of a line, true uses any +# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d + #command_example(); +# setting to false would generate this +# command_example(); +# This setting works only for single line comments +comment_use_indent=true + +# context action command (please see Geany's main documentation for details) +context_action_cmd= + +[indentation] +#width=4 +# 0 is spaces, 1 is tabs, 2 is tab & spaces +#type=1 + +[build_settings] +# %f will be replaced by the complete filename +# %e will be replaced by the filename without extension +# (use only one of it at one time) +compiler=nvcc -c "%f" +linker=nvcc -o "%e" "%f" +run_cmd="./%e" +
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).