Skip to content
Browse files

update syntax.

  • Loading branch information...
1 parent 5a146f4 commit d09026ee323975c5ce5b2becb65c57dda0108b10 aohta committed
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"

0 comments on commit d09026e

Please sign in to comment.
Something went wrong with that request. Please try again.