Some small fixes
This commit is contained in:
parent
6d6ffcc659
commit
afd409ebf8
1 changed files with 4 additions and 2 deletions
|
@ -65,8 +65,9 @@ function C4ctrl(prev_cursor_pos, mods, first_line, last_line, command, ...) rang
|
||||||
" buffer. It will be deleted at the end of C4ctrl(). "
|
" buffer. It will be deleted at the end of C4ctrl(). "
|
||||||
" ******************************************************************** "
|
" ******************************************************************** "
|
||||||
|
|
||||||
|
syn clear
|
||||||
" Match topics
|
" Match topics
|
||||||
syn match Identifier "^\s*\%(\w*/\?\)\+\ze\s*="
|
syn match Identifier "^\s*[[:alnum:]/]\+\ze\s*="
|
||||||
" Match color values with 3 digits
|
" Match color values with 3 digits
|
||||||
syn match Number "=\s*\zs\%(\s*\x\)\{3}"
|
syn match Number "=\s*\zs\%(\s*\x\)\{3}"
|
||||||
" Match color values with 6 digits
|
" Match color values with 6 digits
|
||||||
|
@ -107,7 +108,7 @@ function C4ctrl(prev_cursor_pos, mods, first_line, last_line, command, ...) rang
|
||||||
silent execute "0 read !" s:c4ctrl "-o -"
|
silent execute "0 read !" s:c4ctrl "-o -"
|
||||||
if v:shell_error == 0
|
if v:shell_error == 0
|
||||||
call s:SynHighlight()
|
call s:SynHighlight()
|
||||||
set nomodified " Mark unmodified.
|
set nomodified " Mark as unmodified.
|
||||||
else
|
else
|
||||||
redraw | echohl WarningMsg
|
redraw | echohl WarningMsg
|
||||||
echo printf("Error: %s returned exit code %d!", s:c4ctrl, v:shell_error)
|
echo printf("Error: %s returned exit code %d!", s:c4ctrl, v:shell_error)
|
||||||
|
@ -204,6 +205,7 @@ function C4ctrl(prev_cursor_pos, mods, first_line, last_line, command, ...) rang
|
||||||
else
|
else
|
||||||
execute "saveas" fnameescape(filename)
|
execute "saveas" fnameescape(filename)
|
||||||
endif
|
endif
|
||||||
|
call s:SynHighlight()
|
||||||
|
|
||||||
else
|
else
|
||||||
" ****************** "
|
" ****************** "
|
||||||
|
|
Loading…
Reference in a new issue