Browse files

Add erlangPreProc and erlangModule matchers

  • Loading branch information...
1 parent 31f99c5 commit 40507b4640506ac831f98eae9ccf8a8da28008f3 @cloudhead cloudhead committed Feb 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 syntax/erlang.vim
@@ -57,6 +57,7 @@ syn region erlangString start=/"/ end=/"/ skip=/\\/ contain
syn match erlangVariable /\<[A-Z_]\w*\>/
syn match erlangAtom /\%(\%(^-\)\|#\)\@<!\<[a-z][A-Za-z0-9_]*\>\%(\s*[(:]\)\@!/
syn match erlangAtom /\\\@<!'[^']*\\\@<!'/
+syn match erlangModule /\%([a-z_0-9]\+\):/
syn match erlangRecord /#\w\+/
@@ -68,6 +69,7 @@ syn match erlangInclude /^-include\%(_lib\)\?\s*(\@=/
syn match erlangRecordDef /^-record\s*(\@=/
syn match erlangDefine /^-\%(define\|undef\)\s*(\@=/
syn match erlangPreCondit /^-\%(ifdef\|ifndef\|else\|endif\)\%(\s*(\@=\)\?/
+syn match erlangPreProc /^-\%([a-z_]\+\)/
syn match erlangType /^-\%(spec\|type\)[( ]\@=/

0 comments on commit 40507b4

Please sign in to comment.