Skip to content

Commit

Permalink
fix highlighting version on gomod
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Sep 23, 2018
1 parent de896a6 commit db4a07f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syntax/gomod.vim
Expand Up @@ -39,7 +39,8 @@ highlight default link gomodReplaceOperator Operator

" highlight semver, note that this is very simple. But it works for now
syntax match gomodVersion "v\d\+\.\d\+\.\d\+"
syntax match gomodVersion "v\d\+\.\d\+\.\d\+-.*"
syntax match gomodVersion "v\d\+\.\d\+\.\d\+-\S*"
syntax match gomodVersion "v\d\+\.\d\+\.\d\++incompatible"
highlight default link gomodVersion Identifier

let b:current_syntax = "gomod"

0 comments on commit db4a07f

Please sign in to comment.