jpeg pushed a commit to branch master.

http://git.enlightenment.org/editors/vim-configs.git/commit/?id=2e78e1dca9e448c16284a0a8673c5f1d87f43b93

commit 2e78e1dca9e448c16284a0a8673c5f1d87f43b93
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Jan 15 15:23:24 2015 +0900

    EDC: Add some new keywords and LazEDC support
    
    Whitespace changes included, use git show -w
---
 syntax/edc.vim | 45 +++++++++++++++++++++++++++++----------------
 1 file changed, 29 insertions(+), 16 deletions(-)

diff --git a/syntax/edc.vim b/syntax/edc.vim
index 6d87d70..15790ec 100644
--- a/syntax/edc.vim
+++ b/syntax/edc.vim
@@ -16,11 +16,14 @@ syn keyword edcBlock        images data fonts collections 
group contained
 syn keyword    edcBlock        part parts dragable description contained
 syn keyword    edcBlock        text font fill origin size image proxy contained
 syn keyword    edcBlock        programs program styles style contained
-syn keyword    edcBlock        gradient spectra spectrum contained
-syn keyword    edcBlock        color_classes color_class rel1 rel2 contained
-syn keyword    edcBlock        items item file params externals contained
-syn keyword    edcBlock        map rotation perspective script lua_script 
contained
-syn keyword edcBlock    set
+syn keyword    edcBlock        gradient spectra spectrum contained
+syn keyword    edcBlock        color_classes color_class rel1 rel2 contained
+syn keyword    edcBlock        items item file params externals contained
+syn keyword    edcBlock        map rotation perspective script lua_script 
contained
+syn keyword    edcBlock        set
+syn keyword    edcBlock        sequence link contained
+" LazEDC blocks
+syn keyword    edcBlock        desc rect swallow textblock box table external 
spacer contained
 
 syn keyword    edcLabel        item name alias min max type effect contained
 syn keyword    edcLabel        mouse_events repeat_events clip_to contained
@@ -32,7 +35,7 @@ syn keyword   edcLabel        source5 source6 multiline 
pointer_mode contained
 syn keyword    edcLabel        state visible step aspect fixed middle contained
 syn keyword    edcLabel        aspect_preference ellipsis elipsis image 
contained
 syn keyword    edcLabel        relative offset to to_x to_y contained
-syn keyword edcLabel source_visible source_clip contained
+syn keyword    edcLabel        source_visible source_clip contained
 syn keyword    edcLabel        border border_scale border_scale_by scale_hint 
color color2 color3 font size contained
 syn keyword    edcLabel        signal action transition in filter contained
 syn keyword    edcLabel        target after fit align contained
@@ -46,16 +49,23 @@ syn keyword edcLabel        on perspective light 
perspective_on contained
 syn keyword    edcLabel        backface_cull alpha center focus zplane focal 
contained
 syn keyword    edcLabel        int double string external script_only contained
 syn keyword    edcLabel        insert_before insert_after contained
+syn keyword    edcLabel        script_recursion contained
+syn keyword    edcLabel        limit broadcast_signal targets target_group 
groups size_range contained
+" LazEDC synonyms
+syn keyword    edcLabel        before after ignore pointer alt_font clip  
contained
 
-syn keyword    edcConstant     COMP RAW LOSSY NONE ON_HOLD AUTOGRAB NOGRAB
-syn keyword    edcConstant     TEXT IMAGE RECT TEXTBLOCK SWALLOW GRADIENT GROUP
-syn keyword    edcConstant             SPACER
-syn keyword    edcConstant     NONE PLAIN OUTLINE SOFT_OUTLINE SHADOW PROXY
-syn keyword    edcConstant     SOFT_SHADOW OUTLINE_SHADOW OUTLINE_SOFT_SHADOW
+" LazEDC shorthand
+syn keyword    edcLazShort     broadcast nobroadcast mouse nomouse repeat 
norepeat precise noprecise noscale vis hid contained
+
+syn keyword    edcConstant     COMP RAW LOSSY NONE ON_HOLD AUTOGRAB NOGRAB
+syn keyword    edcConstant     TEXT IMAGE RECT TEXTBLOCK SWALLOW GRADIENT GROUP
+syn keyword    edcConstant     SPACER
+syn keyword    edcConstant     NONE PLAIN OUTLINE SOFT_OUTLINE SHADOW PROXY
+syn keyword    edcConstant     SOFT_SHADOW OUTLINE_SHADOW OUTLINE_SOFT_SHADOW
 syn keyword    edcConstant     GLOW FAR_SHADOW FAR_SOFT_SHADOW
-syn keyword edcConstant BOTTOM_RIGHT BOTTOM BOTTOM_LEFT LEFT
-syn keyword edcConstant TOP_LEFT TOP TOP_RIGHT RIGHT
-syn keyword    edcConstant     STATE_SET ACTION_STOP SIGNAL_EMIT FOCUS_SET
+syn keyword    edcConstant     BOTTOM_RIGHT BOTTOM BOTTOM_LEFT LEFT
+syn keyword    edcConstant     TOP_LEFT TOP TOP_RIGHT RIGHT
+syn keyword    edcConstant     STATE_SET ACTION_STOP SIGNAL_EMIT FOCUS_SET
 syn keyword    edcConstant     DRAG_VAL_SET DRAG_VAL_STEP DRAG_VAL_PAGE
 syn keyword    edcConstant     LINEAR SINUSOIDAL ACCELERATE DECELERATE
 syn keyword    edcConstant     LIN DECEL DIVIS BOUNCE SPRING CURRENT
@@ -63,12 +73,14 @@ syn keyword edcConstant     ACCEL_FAC DECEL_FAC SIN_FAC 
DIVISOR_INTERP
 syn keyword    edcConstant     ACCELERATE_FACTOR DECELERATE_FACTOR
 syn keyword    edcConstant     VERTICAL HORIZONTAL BOTH BOX TABLE
 syn keyword    edcConstant     EDITABLE PASSWORD "default"
-syn keyword edcConstant DEFAULT EXPLICIT
-syn keyword edcConstant SOLID
+syn keyword    edcConstant     DEFAULT EXPLICIT
+syn keyword    edcConstant     SOLID
+syn keyword    edcConstant     WIDTH HEIGHT
 
 syn keyword    edcTodo         contained TODO FIXME XXX
 
 syn match      edcLabelMatch   "\w\+:" contains=edcLabel
+syn match      edcLazSMatch    "\w\+;" contains=edcLazShort
 syn match      edcBlockMatch   "\w\+\_s*{" contains=edcBlock
 syn match      edcBlockMatch   "\w\+\.\a"me=e-2 contains=edcBlock
 " edcCommentGroup allows adding matches for special things in comments
@@ -200,6 +212,7 @@ if version >= 508 || !exists("did_edc_syn_inits")
   HiLink edcCommentL           edcComment
   HiLink edcCommentStart       edcComment
   HiLink edcLabel              Label
+  HiLink edcLazShort           Label
   HiLink edcUserLabel          Label
   HiLink edcConditional                Conditional
   HiLink edcRepeat             Repeat

-- 


Reply via email to