You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2013/07/18 23:10:28 UTC

[lucy-commits] git commit: refs/heads/master - Add Vim syntax file for Clownfish .cfh files.

Updated Branches:
  refs/heads/master adacb96f4 -> bf58f4a85


Add Vim syntax file for Clownfish .cfh files.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/bf58f4a8
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/bf58f4a8
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/bf58f4a8

Branch: refs/heads/master
Commit: bf58f4a8584b8a7e55f0a6a038837d9232126de8
Parents: adacb96
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Thu Jul 18 14:07:56 2013 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Thu Jul 18 14:09:59 2013 -0700

----------------------------------------------------------------------
 devel/conf/clownfish.vim | 73 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/bf58f4a8/devel/conf/clownfish.vim
----------------------------------------------------------------------
diff --git a/devel/conf/clownfish.vim b/devel/conf/clownfish.vim
new file mode 100644
index 0000000..9cff03b
--- /dev/null
+++ b/devel/conf/clownfish.vim
@@ -0,0 +1,73 @@
+" Licensed to the Apache Software Foundation (ASF) under one or more
+" contributor license agreements.  See the NOTICE file distributed with
+" this work for additional information regarding copyright ownership.
+" The ASF licenses this file to You under the Apache License, Version 2.0
+" (the "License"); you may not use this file except in compliance with
+" the License.  You may obtain a copy of the License at
+"
+"     http://www.apache.org/licenses/LICENSE-2.0
+"
+" Unless required by applicable law or agreed to in writing, software
+" distributed under the License is distributed on an "AS IS" BASIS,
+" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+" See the License for the specific language governing permissions and
+" limitations under the License.
+"
+" Vim syntax file
+" Language:     Clownfish
+" Maintainer:   Apache Lucy Developers
+" URL:          http://lucy.apache.org
+
+if exists("b:current_syntax")
+    finish
+endif
+
+syn keyword cfishType int8_t  int16_t  int32_t  int64_t  bool_t
+syn keyword cfishType uint8_t uint16_t uint32_t uint64_t
+syn keyword cfishType size_t
+syn keyword cfishType float double
+syn keyword cfishType char short int long
+syn keyword cfishType va_list
+syn keyword cfishType void
+syn keyword cfishType class
+syn keyword cfishType parcel
+
+syn keyword cfishAttribute inherits cnick
+
+syn keyword cfishModifier public private
+syn keyword cfishModifier abstract inert const final
+syn keyword cfishModifier incremented decremented nullable
+
+syn keyword cfishConstant NULL true false
+
+syn match  cfishNumber  "\<\d\+\>"
+syn match  cfishNumber  "\<0[xX]\x\+\>"
+syn match  cfishNumber  "\<\d\+\.\d\+\>"
+
+syn region cfishString start=+"+ skip=+\\\\\|\\"+ end=+"+
+
+syn keyword cfishTodo TODO XXX
+syn region cfishComment start="/\*" end="\*/" contains=cfishTodo
+syn match cfishLineComment "//.*" contains=cfishTodo
+syn region cfishDocuComment start="/\*\*" end="\*/" contains=cfishDocuCommentBrief,cfishDocuCommentTags,cfishTodo
+syn region cfishDocuCommentBrief contained matchgroup=cfishDocuComment start="/\*\*" matchgroup=cfishDocuCommentBrief keepend end="\.$" end="\.\s\+" end="\*/"
+syn match cfishDocuCommentTags contained "@param\s\+\S\+" contains=cfishDocuCommentParam
+syn match cfishDocuCommentParam contained "\s\S\+"
+
+hi def link cfishType               Type
+hi def link cfishConstant           Constant
+hi def link cfishModifier           Operator
+hi def link cfishExposure           Operator
+hi def link cfishAttribute          Statement
+hi def link cfishNumber             Number
+hi def link cfishString             String
+hi def link cfishTodo               Todo
+hi def link cfishDocuCommentBrief   SpecialComment
+hi def link cfishDocuComment        Comment
+hi def link cfishComment            Comment
+hi def link cfishLineComment        Comment
+hi def link cfishDocuCommentTags    Special
+hi def link cfishDocuCommentParam   Function
+
+let b:current_syntax = "clownfish"
+