" Auteur : Dimitri Robert " Ce fichier de syntaxe est sous licence Creative Commons BY-SA " http://creativecommons.org/licenses/by-sa/2.0/fr/ " " À lire : http://vim.dindinx.net/traduit/html/syntax.txt.php " " Le mot-clé syntax identifie un élément à colorier. Ce peut être " - un mot-clé inscrit en dur " syntax keyword " - un motif " syntax match " - une région (motif pour le début et la fin) " syntax region " " Le mot-clé highlight défini les couleurs à utiliser pour un élément donné " On distingue trois environnements : " - terminal en noir et blanc -> term " - terminal en couleurs -> cterm, ctermfg, ctermbg " - interface graphique (gvim) -> gui, guifg, guibg syntax region italique matchgroup=italique start="{" end="}" skip="}}" syntax region gras matchgroup=gras start="{{" end="}}" highlight italique term=italic cterm=italic highlight gras term=bold cterm=bold "syntax region Titre3 matchgroup=accolad start="{" end="}" skip="}}" syntax region Titre2 start="^- " end="\n" syntax region Titre1 matchgroup=accolad start="{{{" end="}}}\n" highlight Titre1 term=bold cterm=bold ctermfg=red highlight Titre2 term=none cterm=none ctermfg=darkred "highlight Titre3 term=none ctermfg=yellow highlight accolad term=bold ctermfg=darkmagenta "syntax region gras matchgroup=gras start="{{" end="}}" skip="}}\n" syntax match puce1 "^-\*" syntax match puce2 "^-\*\*" syntax match puce3 "^-\*\*\*" syntax match puce1 "^-\#" syntax match puce2 "^-\#\#" syntax match puce3 "^-\#\#\#" highlight puce1 ctermfg=yellow highlight puce2 ctermfg=darkgreen highlight puce3 ctermfg=darkmagenta syntax region lien matchgroup=liencrochet start="\[" end="\]" contains=fleche syntax match fleche "->" contained highlight lien ctermfg=darkyellow highlight liencrochet ctermfg=blue highlight fleche ctermfg=blue syntax region code matchgroup=codetag start="" end="" highlight code cterm=underline highlight codetag ctermfg=darkblue syntax region cadre start="" end="" highlight cadre ctermbg=darkblue syntax region quote start="" end="" highlight quote ctermbg=darkgreen ctermfg=black syntax region note start="\[\[" end="\]\]" highlight note cterm=inverse syntax region wikipedia start="\[?" end="\]" highlight wikipedia ctermfg=cyan syntax region indocument matchgroup=chevron start="<" end=">" contains=pipe syntax match pipe "|" contained highlight indocument ctermfg=green highlight chevron ctermfg=yellow highlight pipe ctermfg=yellow