Hi,

Attached is runtime/syntax/mallard.vim, a syntax file for the Mallard [1] markup language. It is based on the latest version of the Mallard Mallard 1.0 DRAFT as of Monday, 11 February 2013.

Mallard is an XML-based markup language that is extensively used by the GNOME project, and as far as I know, the only text editor that provides support for it is currently gedit. It would be nice for Vim to be the second editor to support this promising language.

Thank you,
Jaromir Hradilek

[1] http://www.projectmallard.org/
[2] http://projectmallard.org/1.0/index.html

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


" Vim syntax file
" Language:    Mallard
" Maintainer:  Jaromir Hradilek <jhradi...@gmail.com>
" URL:         https://github.com/jhradilek/vim-syntax
" Last Change: 11 February 2013
" Description: A syntax file for the Mallard markup language according to
"              Mallard 1.0 DRAFT as of 2013-02-11.

if exists("b:current_syntax")
  finish
endif

do Syntax xml
syn cluster xmlTagHook add=mallardTagName
syn spell toplevel
syn case match

syn keyword mallardTagName app cite cmd code col colgroup comment contained
syn keyword mallardTagName credit desc em email example figure contained
syn keyword mallardTagName file gui guiseq info input item key contained
syn keyword mallardTagName keyseq license link links list listing contained
syn keyword mallardTagName media name note output p page quote contained
syn keyword mallardTagName revision screen section span steps contained
syn keyword mallardTagName subtitle synopsis sys table tbody td contained
syn keyword mallardTagName terms tfoot thead title tr tree var contained
syn keyword mallardTagName years contained

syn region mallardComment start="<comment\>" end="</comment>"me=e-10 
contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell 
keepend
syn region mallardEmphasis start="<em\>" end="</em>"me=e-5 
contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell 
keepend
syn region mallardTitle start="<title\>" end="</title>"me=e-8 
contains=xmlTag,xmlNamespace,xmlTagName,xmlEndTag,xmlRegion,xmlEntity,@Spell 
keepend

hi def link mallardComment  Comment
hi def link mallardTagName  Statement
hi def link mallardTitle    Title
hi def mallardEmphasis term=italic cterm=italic gui=italic

let b:current_syntax = "mallard"

Raspunde prin e-mail lui