Skip to content

Commit

Permalink
Add erlangPreProc and erlangModule matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Feb 14, 2012
1 parent 31f99c5 commit 40507b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/erlang.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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\+/

Expand All @@ -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\)[( ]\@=/

Expand Down

0 comments on commit 40507b4

Please sign in to comment.