commit 5ab171975dc4239f91ecc9459d46d899cb730097
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Mon Feb 27 16:51:56 2012 +0100
doc/concepts*: guard syntax file, minor changes
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
doc/concepts | 24 +++++++++++-------------
doc/concepts_syntax.vim | 47 +++++++++++++++++++++++++++--------------------
2 files changed, 38 insertions(+), 33 deletions(-)
---
diff --git a/doc/concepts b/doc/concepts
index 3dd1dcd..f72c9bd 100644
--- a/doc/concepts
+++ b/doc/concepts
@@ -164,12 +164,11 @@ concept ResourceProvider
# Q: also queried at runtime (i.e., dynamical)?
name
-# sample concrete Resource
-concept ResourceApache derives Resource:
- serverRoot
- configFile
- ...
-# similarly for other resources (not interesting in this context)
+>>> # sample concrete Resource (similarly for others)
+>>> concept ResourceApache derives Resource:
+>>> serverRoot
+>>> configFile
+>>> ...
# -- CONSTRAINTS (aka Resource Dependencies) -----------------------------
@@ -216,13 +215,12 @@ concept FenceDeviceStatus derives MetaEnumeration:
FdsActive
FdsInactive
-# sample concrete FenceDevice
-concept APCPowerSwitch derives SharedFenceDevice:
- port
- login
- password
- ...
-# similarly for other fence devices
+>>> # sample concrete FenceDevice (similarly for others)
+>>> concept APCPowerSwitch derives SharedFenceDevice:
+>>> port
+>>> login
+>>> password
+>>> ...
# -- FAILOVER DOMAINS ----------------------------------------------------
diff --git a/doc/concepts_syntax.vim b/doc/concepts_syntax.vim
index 016bbe5..3a68d6d 100644
--- a/doc/concepts_syntax.vim
+++ b/doc/concepts_syntax.vim
@@ -1,30 +1,37 @@
-" common prologue skipped
+" Language: concepts
+" Maintainer: Jan Pokorny <jpokorny(a)redhat.com>
+" Last Change: 2012
+" quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
- finish
+ finish
endif
-syn keyword conceptStatement concept derives
-syn keyword conceptKeyword backref
-syn keyword conceptRelation ManyToOne ManyToMany
-syn keyword conceptMeta MetaEnumeration MetaBool
+syn keyword conceptStatement concept derives
+syn keyword conceptKeyword backref
+syn keyword conceptRelation ManyToOne ManyToMany
+syn keyword conceptMeta MetaEnumeration MetaBool
-syn match conceptComment "\(#.*\)"
-syn match conceptKind "\(@.[^ ]*\)"
-syn match conceptLexical "\(<[a-zA-Z0-9_]\+>\)"
+syn match conceptComment "\(#.*\)"
+syn match conceptExStart "\(^>\+\)"
+syn match conceptFlag "\(@.[^ ]*\)"
+syn match conceptLexical "\(<[a-zA-Z0-9_]\+>\)"
+syn match conceptEllipsis "\(\.\.\.\)"
" blindly borrowed from python.vim
-syn match conceptDefinition "\%(\%(concept\|derives\)\s*\)\@<=\h\%(\w\)*"
-syn match conceptType "\%(\%(:\|(\)\s*\)\@<=\h\%(\w\)*\(\[\]\)\?"
+syn match conceptDefinition
"\%(\%(concept\|derives\)\s*\)\@<=\h\%(\w\)*"
+syn match conceptType
"\%(\%(:\|(\)\s*\)\@<=\h\%(\w\)*\(\[\]\)\?"
-highlight link conceptStatement Statement
-highlight link conceptKeyword Keyword
-highlight link conceptComment Comment
-highlight link conceptKind Define
-highlight link conceptMeta Include
-highlight link conceptRelation Operator
-highlight link conceptDefinition Identifier
-highlight link conceptType Structure
-highlight link conceptLexical String
+highlight link conceptEllipsis Todo
+highlight link conceptStatement Statement
+highlight link conceptKeyword Keyword
+highlight link conceptComment Comment
+highlight link conceptExStart Special
+highlight link conceptFlag Define
+highlight link conceptMeta Include
+highlight link conceptRelation Operator
+highlight link conceptDefinition Identifier
+highlight link conceptType Type
+highlight link conceptLexical String
"let b:current_syntax = "concepts"
Show replies by date