Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add erlangPreProc and erlangModule matchers #17

Open
wants to merge 1 commit into from

1 participant

@cloudhead

erlangPreProc is useful for matching on all -foo type lines.
erlangModule matches the foo in foo:bar (github applies special highlighting to that part for example)

@choptastic choptastic referenced this pull request from a commit in choptastic/vimerl
@jimenezrick jimenezrick Fix #17: disable syntax checking when Vim older than 7.3 1684668
@onlychoice onlychoice referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 14, 2012
  1. @cloudhead
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  syntax/erlang.vim
View
2  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\)[( ]\@=/
Something went wrong with that request. Please try again.