forked from aniani/vim
updated for version 7.1a
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
" Maintainers: Markus Mottl <markus.mottl@gmail.com>
|
||||
" Fabrizio Zeno Cornelli <zeno@filibusta.crema.unimi.it>
|
||||
" URL: http://www.ocaml.info/vim/syntax/sml.vim
|
||||
" Last Change: 2006 Feb 05
|
||||
" Last Change: 2006 Oct 23 - Fixed character highlighting bug (MM)
|
||||
" 2002 Jun 02 - Fixed small typo (MM)
|
||||
" 2001 Nov 20 - Fixed small highlighting bug with modules (MM)
|
||||
" 2001 Aug 29 - Fixed small highlighting bug (MM)
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -137,7 +137,7 @@ syn match smlConstructor "\u\(\w\|'\)*\>"
|
||||
" Module prefix
|
||||
syn match smlModPath "\u\(\w\|'\)*\."he=e-1
|
||||
|
||||
syn match smlCharacter +#"."\|#"\\\d\d\d"+
|
||||
syn match smlCharacter +#"\\""\|#"."\|#"\\\d\d\d"+
|
||||
syn match smlCharErr +#"\\\d\d"\|#"\\\d"+
|
||||
syn region smlString start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Verilog
|
||||
" Maintainer: Mun Johl <mun_johl@sierralogic.com>
|
||||
" Last Update: Tue Jun 7 14:27:10 PDT 2005
|
||||
" Maintainer: Mun Johl <Mun.Johl@emulex.com>
|
||||
" Last Update: Fri Oct 13 11:44:32 PDT 2006
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -76,10 +76,10 @@ syn match verilogGlobal "$[a-zA-Z0-9_]\+\>"
|
||||
|
||||
syn match verilogConstant "\<[A-Z][A-Z0-9_]\+\>"
|
||||
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[bB]\s*[0-1_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[oO]\s*[0-7_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[dD]\s*[0-9_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[hH]\s*[0-9a-fA-F_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[bB]\s*[0-1_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[oO]\s*[0-7_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[dD]\s*[0-9_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\(\<\d\+\|\)'[sS]\?[hH]\s*[0-9a-fA-F_xXzZ?]\+\>"
|
||||
syn match verilogNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)\>"
|
||||
|
||||
syn region verilogString start=+"+ skip=+\\"+ end=+"+ contains=verilogEscape,@Spell
|
||||
|
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: xmath (a simulation tool)
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Apr 12, 2006
|
||||
" Version: 5
|
||||
" Last Change: Sep 11, 2006
|
||||
" Version: 6
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
@@ -175,7 +175,7 @@ syn match xmathLabel "^\s*<[a-zA-Z_][a-zA-Z0-9]*>"
|
||||
" String and Character constants
|
||||
" Highlight special characters (those which have a backslash) differently
|
||||
syn match xmathSpecial contained "\\\d\d\d\|\\."
|
||||
syn region xmathString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=xmathSpecial
|
||||
syn region xmathString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=xmathSpecial,@Spell
|
||||
syn match xmathCharacter "'[^\\]'"
|
||||
syn match xmathSpecialChar "'\\.'"
|
||||
|
||||
@@ -184,9 +184,10 @@ syn match xmathNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
|
||||
" Comments:
|
||||
" xmath supports #... (like Unix shells)
|
||||
" and #{ ... }# comment blocks
|
||||
syn cluster xmathCommentGroup contains=xmathString,xmathTodo,@Spell
|
||||
syn keyword xmathTodo contained COMBAK DEBUG FIXME Todo TODO XXX
|
||||
syn match xmathComment "#.*$" contains=xmathString,xmathTodo,@Spell
|
||||
syn region xmathCommentBlock start="#{" end="}#" contains=xmathString,xmathTodo
|
||||
syn match xmathComment "#.*$" contains=@xmathCommentGroup
|
||||
syn region xmathCommentBlock start="#{" end="}#" contains=@xmathCommentGroup
|
||||
|
||||
" synchronizing
|
||||
syn sync match xmathSyncComment grouphere xmathCommentBlock "#{"
|
||||
|
Reference in New Issue
Block a user