Skip to content

Commit

Permalink
Merge pull request #605 from mmlb/master
Browse files Browse the repository at this point in the history
syntax/go: do not treat builtins as keywords
  • Loading branch information
fatih committed Nov 22, 2015
2 parents 3ea1ead + d52c164 commit fe85bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ syn match goDeclaration /\<func\>/


" Predefined functions and values
syn keyword goBuiltins append cap close complex copy delete imag len
syn keyword goBuiltins make new panic print println real recover
syn match goBuiltins /\v(append|cap|close|complex|copy|delete|imag|len)\ze\(/
syn match goBuiltins /\v(make|new|panic|print|println|real|recover)\ze\(/
syn keyword goBoolean iota true false nil

hi def link goBuiltins Keyword
Expand Down

0 comments on commit fe85bd6

Please sign in to comment.