update syntax

This commit is contained in:
Viktor Varland 2016-02-09 07:39:14 +01:00
parent a929c4dfa5
commit f551bd39b7
2 changed files with 15 additions and 2 deletions

View file

@ -18,3 +18,6 @@ The plugin works as such. As you strike full-stop ('.') followed by a space
in reasonably rapid succession (one second or so) 5 spaces are inserted instead
of one. There is some syntax highlighting as well. Most prominently (and
perhaps incorrectly so) on the '.' character.
Other dividers, like comma, can be nice to cluster and has the same time-delay
as full-stops or exclamation/question marks.

View file

@ -2,8 +2,18 @@ if exists("b:current_syntax")
finish
endif
syntax match clustertextOperator "\v\."
syntax match clustertextOperator1 "\v\."
syntax match clustertextOperator2 "\v\,"
syntax match clustertextOperator3 "\v\!"
syntax match clustertextOperator3 "\v\?"
syntax match clustertextOperator4 "\v\;"
syntax match clustertextOperator5 "\v\:"
highlight link clustertextOperator Operator
highlight link clustertextOperator1 Operator
highlight link clustertextOperator2 Operator
highlight link clustertextOperator3 Operator
highlight link clustertextOperator4 Operator
highlight link clustertextOperator5 Operator
highlight link clustertextOperator6 Operator
let b:current_syntax = "clustertext"