root/trunk/RBSkinning/RBSkinning/pythonskin.vim

Revision 266, 1.2 kB (checked in by sholloway, 6 years ago)

Added py:module to address being able to COMPLETELY define a UI in skin files
Rearranged py:inline so py:module could effectively inherit from it
Added pythonskin.vim for all those vimmers out there

Line 
1 " Vim syntax file
2 " Language:     RuneBlade Foundation Skinning
3 " Maintainer:   Shane Holloway <shane.holloway@runeblade.com>
4 " URL:          http://www.runeblade.com
5 " Last Change:  2002 April 23
6
7 if exists("b:current_syntax")
8   finish
9 endif
10
11 if !exists("main_syntax")
12   let main_syntax = 'python'
13 endif
14
15 runtime! syntax/xml.vim
16 unlet b:current_syntax
17 syn include @PythonSkin syntax/python.vim
18
19 syn cluster xmlRegionHook add=PythonInsideSkin
20
21 syn region  PythonInsideSkin keepend matchgroup=Delimiter start=+<py:inline+ end=+</py:inline>+ contains=@PythonSkin
22 syn region  PythonInsideSkin keepend matchgroup=Delimiter start=+<py:module+ end=+</py:module>+ contains=@PythonSkin
23 syn region  PythonInsideSkin keepend matchgroup=Delimiter start=+<py:evaluate+ end=+</py:evaluate>+ contains=@PythonSkin
24 syn region  PythonInsideSkin keepend matchgroup=Delimiter start=+<py:element_factory+ end=+</py:element_factory>+ contains=@PythonSkin
25
26 syn region  PythonInsideSkin keepend matchgroup=Delimiter start=+<XO:substitute+ end=+</XO:substitute>+ contains=@PythonSkin
27 syn region  PythonInsideSkin keepend matchgroup=Delimiter start=+<XO:substitute_long+ end=+</XO:substitute_long>+ contains=@PythonSkin
28
29 let b:current_syntax = "PythonSkin"
Note: See TracBrowser for help on using the browser.