Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update syntax.

  • Loading branch information...
commit d09026ee323975c5ce5b2becb65c57dda0108b10 1 parent 5a146f4
aohta authored
Showing with 19 additions and 2 deletions.
  1. +19 −2 plugin/blockdiag.vim
View
21 plugin/blockdiag.vim
@@ -8,14 +8,31 @@ if exists ("b:current_syntax")
endif
syn match diagComment "//.*$"
-syn keyword diagKeyword label failed
+
+syn keyword diagKeyword label return failed color
+syn keyword diagKeyword diagonal note rightnote leftnote
+
syn region diagString start=+"+ skip=+\\.+ end=+"+
-syn match diagOperator "->\|-->\|--->\|<-\|<--\|<---"
+
+syn match diagOperator "->"
+syn match diagOperator "-->"
+syn match diagOperator "--->"
+syn match diagOperator "<-"
+syn match diagOperator "<--"
+syn match diagOperator "<---"
+
+" syn region diagFunction start=+===+ skip=+\\.+ end=+===+
+" syn region diagFunction start=+...+ skip=+\\.+ end=+...+
+
+syn keyword diagConfig edge_length span_height fontsize
+syn keyword diagConfig activation autonumber default_note_color
hi def link diagComment Comment
hi def link diagKeyword Keyword
hi def link diagOperator Operator
hi def link diagString String
+hi def link diagFunction Function
+hi def link diagConfig Special
let b:current_syntax = "diag"
Please sign in to comment.
Something went wrong with that request. Please try again.