Skip to content

Commit

Permalink
Adding syntax file
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinside committed Aug 1, 2011
1 parent 45371d7 commit 6aca0e9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 65 deletions.
97 changes: 32 additions & 65 deletions CodeOverview/syntax/codeoverview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,71 +4,38 @@ if exists("b:current_syntax")
finish
endif

syn match overComment /a/
syn match overString /b/
syn match overNormal /c/
syn match overHighlight /d/
syn match overMaj /e/
syn match overEmpty /f/
syn match overView /g/
syn match overKeyword /h/
syn match overType /i/
syn match overLabel /j/
syn match overConditional /k/
syn match overRepeat /l/
syn match overStructure /m/
syn match overStatement /n/
syn match overPreproc /o/
syn match overMacro /p/
syn match overTypedef /q/
syn match overException /r/
syn match overOperator /s/
syn match overInclude /t/
syn match overStorageClass /u/
syn match overChar /v/
syn match overNumber /w/
syn match overFloat /x/
syn match overBool /y/
syn match overFunction /z/
syn match codeOverviewcomment /a/
syn match codeOverviewstring /b/
syn match codeOverviewnormal /c/
syn match codeOverviewhighlight /d/
syn match codeOverviewmaj /e/
syn match codeOverviewempty /f/
syn match codeOverviewview /g/
syn match codeOverviewkeyword /h/
syn match codeOverviewtype /i/
syn match codeOverviewlabel /j/
syn match codeOverviewconditional /k/
syn match codeOverviewrepeat /l/
syn match codeOverviewstructure /m/
syn match codeOverviewstatement /n/
syn match codeOverviewpreproc /o/
syn match codeOverviewmacro /p/
syn match codeOverviewtypedef /q/
syn match codeOverviewexception /r/
syn match codeOverviewoperator /s/
syn match codeOverviewinclude /t/
syn match codeOverviewstorageClass /u/
syn match codeOverviewchar /v/
syn match codeOverviewnumber /w/
syn match codeOverviewfloat /x/
syn match codeOverviewbool /y/
syn match codeOverviewfunction /z/

syn match overTag /0/
syn match overAttribTag /1/
syn match overError /2/
syn match overWarning /3/
syn match overInfo /4/
syn match codeOverviewtag /0/
syn match codeOverviewattribTag /1/
syn match codeOverviewerror /2/
syn match codeOverviewwarning /3/
syn match codeOverviewinfo /4/


hi link overComment Comment
hi link overString String
hi link overNormal Normal
hi link overHighlight Highlight
hi link overMaj Normal
hi link overEmpty Normal
hi link overView View
hi link overKeyword Keyword
hi link overType Type
hi link overLabel Label
hi link overConditional Conditional
hi link overRepeat Repeat
hi link overStructure Structure
hi link overStatement Statement
hi link overPreproc Preproc
hi link overMacro Macro
hi link overTypedef Typedef
hi link overException Exception
hi link overOperator Operator
hi link overInclude Include
hi link overStorageClass StorageClass
hi link overChar Char
hi link overNumber Number
hi link overFloat Float
hi link overBool Bool
hi link overFunction Function
hi link overTag Tag
hi link overAttribTag AttribTag
hi link overError Error
hi link overWarning Warning
hi link overInfo Info

let b:current_syntax = "codeoverview"
let b:current_syntax = "CodeOverview"

7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ ifeq ($(shell uname),WindowsNT)
SHELL:=cmd
EXEEXT:=.exe
HOMEDIR:=${USERPROFILE}
VIMDIR:=${HOMEDIR}/vimfiles
else
HOMEDIR:=${HOME}
VIMDIR:=${HOMEDIR}/.vim
ifeq ($(shell uname),Darwin)
HOMEDIR:=${HOME}
EXEEXT:=.osx
else
HOMEDIR:=${HOME}
EXEEXT:=
endif
endif
Expand All @@ -24,3 +28,6 @@ conf:
clean:
runhaskell Setup.hs clean

deploy:
cp CodeOverview/plugin/CodeOverview.vim ${VIMDIR}/bundle/vim-codeoverview/plugin/CodeOverview.vim
cp CodeOverview/syntax/codeoverview.vim ${VIMDIR}/bundle/vim-codeoverview/syntax/codeoverview.vim

0 comments on commit 6aca0e9

Please sign in to comment.