diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-29 20:33:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-29 20:33:07 +0200 |
commit | 9db580634c0055674017eab535b1b9eec7d6939d (patch) | |
tree | d34ad271b13df816deeeae7622757b8dd385cf1a /runtime/syntax/sed.vim | |
parent | f05e3b0220a6b68791b5563ddf67ad42dbf74ee2 (diff) | |
download | vim-9db580634c0055674017eab535b1b9eec7d6939d.zip |
Various improvements to undo file code to make it more robust.
Diffstat (limited to 'runtime/syntax/sed.vim')
-rw-r--r-- | runtime/syntax/sed.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/syntax/sed.vim b/runtime/syntax/sed.vim index 0383b6fe4..42ad6d8e6 100644 --- a/runtime/syntax/sed.vim +++ b/runtime/syntax/sed.vim @@ -2,7 +2,7 @@ " Language: sed " Maintainer: Haakon Riiser <hakonrk@fys.uio.no> " URL: http://folk.uio.no/hakonrk/vim/syntax/sed.vim -" Last Change: 2005 Dec 15 +" Last Change: 2010 May 29 " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded @@ -49,7 +49,7 @@ syn match sedReplaceMeta "&\|\\\($\|.\)" contains=sedTab contained " Metacharacters: $ * . \ ^ [ ~ " @ is used as delimiter and treated on its own below let __at = char2nr("@") -let __sed_i = char2nr(" ") +let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64 if has("ebcdic") let __sed_last = 255 else @@ -105,8 +105,8 @@ if version >= 508 || !exists("did_sed_syntax_inits") if exists("highlight_sedtabs") HiLink sedTab Todo endif - let __sed_i = 32 - while __sed_i <= 126 + let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64 + while __sed_i <= __sed_last exe "HiLink sedRegexp".__sed_i "Macro" exe "HiLink sedReplacement".__sed_i "NONE" let __sed_i = __sed_i + 1 @@ -115,7 +115,7 @@ if version >= 508 || !exists("did_sed_syntax_inits") delcommand HiLink endif -unlet __sed_i __sed_delimiter __sed_metacharacters +unlet __sed_i __sed_last __sed_delimiter __sed_metacharacters let b:current_syntax = "sed" |